# Functions implemented (replace) or intercepted (wrap) by the runtime.
# Format: <address> <replace|wrap>  # comment
# See tools/recomp.py (load_hle) and src/hle_*.cpp.

003A60E0 wrap     # printf (newlib) - mirrored to the log
00331DF0 wrap     # panic(fmt, ...) - game fatal error
00331E48 replace  # debug printf (formats and discards in the release build) - logged with --log game
0033D4F8 wrap     # StrmFindFile(path) -> TOC index: logs files missing from the disc
003670C8 wrap     # MoviePlay(name) - EOD_SKIP_MOVIES
0039AFB0 wrap     # movie bit reader: consume n bits and refill (src/movie_bits.cpp; generated code as fallback)
0034D328 wrap     # display mode (0 normal, 1 widescreen, 2 letterbox) - AspectRatio=16:9 / 4:3 forces it
0018AFE0 wrap     # car setup: computes the damage multiplier (car+0x4B0) from the chassis mass - DamageScale

# Busy-wait loops on memory set by interrupt handlers: sleep until the next
# event instead of spinning.
0035C460 idle     # frame loop: wait for the vblank counter to change
0035C528 idle     # frame loop: wait for the draw-done state (1 or 7)
