; ; EndLevelLayer::onMenu from 0x1002f7324 to 0x1002f73f4 (208 bytes) ; ; 4 xrefs: ; > EndLevelLayer::keyBackClicked @ 0x1002f8438 ; > sub_1002F843C @ 0x1002f8440 ; > EndLevelLayer::keyDown @ 0x1002f8bb8 ; > EndLevelLayer::customSetup @ 0x1002f64d8 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; SUB SP, SP, #0x40 ; +0x0, 0x1002f7324 STP X20, X19, [SP,#0x30+var_10] ; +0x4, 0x1002f7328 STP X29, X30, [SP,#0x30+var_s0] ; +0x8, 0x1002f732c ADD X29, SP, #0x30 ; +0xc, 0x1002f7330 LDRB W8, [X0,#0x26B] ; +0x10, 0x1002f7334 TBNZ W8, #0, loc_1002F73E4 ; +0x14, 0x1002f7338 MOV X19, X0 ; +0x18, 0x1002f733c MOV W8, #1 ; +0x1c, 0x1002f7340 STRB W8, [X0,#0x26B] ; +0x20, 0x1002f7344 LDR X0, [X0,#0x260] ; +0x24, 0x1002f7348 MOV W8, #0x376C ; +0x28, 0x1002f734c LDRB W8, [X0,X8] ; +0x2c, 0x1002f7350 TBNZ W8, #0, loc_1002F7378 ; +0x30, 0x1002f7354 LDRB W8, [X19,#0x26C] ; +0x34, 0x1002f7358 TBNZ W8, #0, loc_1002F7378 ; +0x38, 0x1002f735c LDR W8, [X0,#0x3770] ; +0x3c, 0x1002f7360 CMP W8, #0 ; +0x40, 0x1002f7364 B.GT loc_1002F7378 ; +0x44, 0x1002f7368 LDR W8, [X0,#0x3774] ; +0x48, 0x1002f736c CMP W8, #1 ; +0x4c, 0x1002f7370 B.LT loc_1002F7384 ; +0x50, 0x1002f7374 BL GameManager__sharedState ; +0x54, 0x1002f7378 BL GameManager__doQuickSave ; +0x58, 0x1002f737c LDR X0, [X19,#0x260] ; +0x5c, 0x1002f7380 BL PlayLayer__onQuit ; +0x60, 0x1002f7384 STR XZR, [X19,#0x260] ; +0x64, 0x1002f7388 LDR X8, [X19] ; +0x68, 0x1002f738c LDR X8, [X8,#0x518] ; +0x6c, 0x1002f7390 MOV X0, X19 ; +0x70, 0x1002f7394 MOV X1, #0 ; +0x74, 0x1002f7398 BLR X8 ; +0x78, 0x1002f739c BL FMODAudioEngine__sharedEngine ; +0x7c, 0x1002f73a0 MOV X19, X0 ; +0x80, 0x1002f73a4 ADRL X1, aQuitsound01Ogg; "quitSound_01.ogg" ; +0x84, 0x1002f73a8 ADD X0, SP, #0x30+__p; int ; +0x8c, 0x1002f73b0 BL sub_100009900 ; +0x90, 0x1002f73b4 ADRP X8, #dword_100635380@PAGE ; +0x94, 0x1002f73b8 LDR S2, [X8,#dword_100635380@PAGEOFF] ; +0x98, 0x1002f73bc ADD X1, SP, #0x30+__p ; +0x9c, 0x1002f73c0 FMOV S0, #1.0 ; +0xa0, 0x1002f73c4 FMOV S1, WZR ; +0xa4, 0x1002f73c8 MOV X0, X19 ; +0xa8, 0x1002f73cc BL FMODAudioEngine__playEffect ; +0xac, 0x1002f73d0 LDRSB W8, [SP,#0x30+var_11] ; +0xb0, 0x1002f73d4 TBZ W8, #0x1F, loc_1002F73E4 ; +0xb4, 0x1002f73d8 LDR X0, [SP,#0x30+__p]; __p ; +0xb8, 0x1002f73dc BL __ZdlPv; operator delete(void *) ; +0xbc, 0x1002f73e0 LDP X29, X30, [SP,#0x30+var_s0] ; +0xc0, 0x1002f73e4 LDP X20, X19, [SP,#0x30+var_10] ; +0xc4, 0x1002f73e8 ADD SP, SP, #0x40 ; '@' ; +0xc8, 0x1002f73ec RET ; +0xcc, 0x1002f73f0