# Game functions replaced by runtime hooks. Address = function entry.
# recomp.py ignores the text after '#'.
# Prefix @ for an instruction site inside a function.
# Write `same` after an entry when that whole-function replacement was checked against builds that compile it differently.

02ACD218  # frame allocator: wait for the ring at this+0x4A8 on nested grow
024D752C same  # draw queues: drop items whose model pointer at node+0x28 is null
@022A79C4  # DistantViewMgr::calcView_: scale the flicker before it is added to the projection
022A7760  # DistantViewMgr::calcView_: keep the distant-view projection on the chosen aspect
029A6170  # BgScrollMgr screen update: widen scalar and background X edges with the camera
029B85C8  # layer draw: fader layers cover the wide picture
02A06818  # sead::OrthoProjection::setTBLR: widen or heighten a 16:9 screen rect
02A061AC  # sead::PerspectiveProjection ctor: replace a baked 16:9 aspect
02A062EC  # sead::PerspectiveProjection::set: same replacement on the per-frame setter
02994164  # Scene::setNextScene: onSceneChange and scene src for mod API transitions
029CBBB4 same  # error viewer: this port does not draw it, so the call must not pause the game
024BD86C same  # course setup: skip while a story load is leaving the live course
@024B8324  # course out: after enter type 3, seed map checkpoint/pose if still missing
0226FBC4  # CourseSelectPlayer setup: seed map pose before path resolve / spawn
@0226FD14  # CourseSelectPlayer spawn: seed MainGame pose again before the read
@0226FECC  # CourseSelectPlayer createImmediately: seed player fields before pack
@02270310  # CourseSelectPlayer createLater: seed player fields before pack
@022703A4  # CourseSelectPlayer createImmediately fallback: seed before pack
@0227CCF4  # map focus: copy the opened course node into the camera pose
@0227E2A8  # map focus: same copy on the second pose setup
0252F900  # course HUD: AreaTask is null while a course change replaces the area
025CF020  # course HUD helper: AreaTask is null during course teardown
024EFE58  # ModelFFL::drawOpa: skip while the Mii shader program is null
024F009C  # ModelFFL::drawXlu: skip while the Mii shader program is null
029C52CC  # ApplicationFramework::procCalc_: start a frame; an in-between pass skips the task-tree logic
024FBF6C  # RenderObjRenderMgr::calcView: bake the in-between camera projection for the draw
024B47A8  # course tiles: in-between ortho for this draw, then the logic edges
024B47C8
026904D4
026905C0
02690680
0269083C
02691690
0269179C
026917E4
02691868
0269196C
02691970
026919A4
02691A8C
02691B74
02691DF0
02691EAC
0269206C
026920B0
02692194
0269222C
02692748
0269282C
026928C4
0269325C
0268B70C  # Bg grass/flower TexQuad draw: in-between camera and blended deco arrays
029C4FE4  # ApplicationFramework::procDraw_: a 30 fps step draws no frame
029FD94C  # DualScreenMethodTreeMgr::drawBtm: skip the GamePad picture when that screen is hidden

024F30DC  # ModelG3d::calcGPU: capture the model world pose and draw the in-between pass blended

029D9E30  # SaveMgr::runState: log which save-thread state is starting (state in r5)
@029D94C0  # end of loadSavedata: log read result and per-file exists flags
029D9560  # saveSavedata: log write result and host file size
@029D9CB8  # end of loadPersonalSavedata: log personal save read
@029D9E2C  # end of savePersonalSavedata: log personal save write
029D8270  # SaveMgr::startReadGame: log when a main save read is requested
029D8304  # SaveMgr::startWriteGame: log when a main save write is requested
029D82D4  # SaveMgr::startReadPersonalSavedata: log personal read request
029D8394  # SaveMgr::startWritePersonalSavedata: log personal write request
029872BC same  # continueFirstSave: log empty vs CourseSelect decision
029D8478  # clear the opened file's quick record: keep that progress in the story record first
029D7648  # applySaveFile: log which file record is applied
029D8C10  # startSaveGame: remember main vs quick before the live snapshot
@029D8C48  # startSaveGame: if that snapshot did not move, keep the quick record in main
@029D71A4  # file-select course flags: quick record when that slot path is the caller
@02631BE4  # file-select completion byte, quick path (slot builder 0x02631B50)
@0263ADD8  # file-select completion byte, quick path (slot builder 0x0263AD40)
@02641A4C  # file-select completion byte, quick path (slot builder 0x02641974)
@026730C4  # layout build: add a native Settings button to the world-map start menu
@02AB7040  # anim parse: give the Settings button the same open and close curves
@02682674  # cursor hit refresh: keep Settings in the right column
025A4218  # CourseSelectMenu destructor: drop the settings button
025A42CC  # CourseSelectMenu::create: move Quick Save and Main Menu into the left and middle columns
025A4B98  # CourseSelectMenu::execute: keep that grid and open settings from the new button
