# Guest functions routed through runtime hooks (implementations in this directory).
# Addresses are in BLUS30187 (disc 01.01, APP_VER 01.00 with the 01.35 update applied).
# Read by acfa-recomp emit --hooks; a hooked f_<addr> calls ppu::hook_<name>(ctx, original).
# A line named "setjmp" hooks nothing: it marks the guest's setjmp, whose callers acfa-recomp
# emits resumable for the longjmp hook (recomp/emit.h).
0x010f5770 setjmp                  # libc setjmp (Lua's luaD_rawrunprotected 0xeb7e38 and others call it)
0x010f5894 longjmp                 # libc longjmp: registers from the jmp_buf, then a throw to the setjmp caller
0x00ea7fa8 lua_load                # Lua 5.0.2 lua_load(L, reader, data, chunk name): the optional ORDER MATCH AI fixes (script_fixes.cpp)
0x00ef9078 ms_stream_dtor          # MultiStream stream destructor
0x00ef8ea8 ms_stream_dtor_delete   # its deleting variant (an inlined copy of the same body)
0x00e4e860 pad_update_b            # the pad class of port 0 (port at +372, sticks normalized at +1160): the mouse as the right stick
0x00efa5d8 snd_bank_find           # sound bank Find (vtable slot 6): name -> cue
0x00ef9ff0 ms_bank_remove          # sound bank removal
0x0070b548 input_pitch_set         # look (pitch) command setter thunk (view slot 9 -> 0x70e960)
0x007a2fb8 look_update             # an AC's look control: turn (0x7a2940; +4 the camera's yaw against the body), then pitch (0x7a22d0, +48)
0x0070eb30 input_turn_set          # turn command setter (view slot 6; r3 view, f1 value): the mouse camera's AC chase
0x0070ed88 input_turn_set          # the tutorial view's turn setter (0x70eb30 plus its step flag)
0x00753170 ac_turn_input           # an AC's turn input, every frame (r3 controller, r4 input): the player's turn object for the mouse camera
0x007535d0 ac_turn_input_b         # the same in the other operator state
0x00753ac8 ac_turn_input_vob       # the same during a VOB flight's first part (its turn step 0x6ff0b0: the VOB's turn speeds)
0x00708770 ac_turn_update          # an AC body's yaw rate (body +516) from the frame's turn input (r3 turn object): the stick's full turn rate (probe)
0x00ab2090 camera_follow           # the follow camera's eye / look-at point toward the frame's wanted ones (r3 camera, r5 wanted, f1 dt; spring 0xab14b8)
0x0008ad48 menu_frame              # every frame: pads to key messages (menu mouse: probe, hover; menu_mouse.cpp)
0x002d9248 menu_dispatch           # dialog manager: a key message to its top dialog (stops the menu mouse probe)
0x002d9008 menu_dispatch_sys       # the system dialog manager's (same)
