; ; AppDelegate::trySaveGame from 0x3f6c28 to 0x3f6d14 (236 bytes) ; ; 0 xrefs: ; ; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:47:17 +0000 ; PUSH.W {R0-R8,LR} ; +0x0, 0x3f6c28 MOV R4, R0 ; +0x4, 0x3f6c2c LDR R3, =(__stack_chk_guard_ptr - 0x3F6C36) ; +0x6, 0x3f6c2e MOV R6, R1 ; +0x8, 0x3f6c30 ADD R3, PC; __stack_chk_guard_ptr ; +0xa, 0x3f6c32 LDR R3, [R3]; __stack_chk_guard ; +0xc, 0x3f6c34 LDR R2, [R3] ; +0xe, 0x3f6c36 MOV R5, R3 ; +0x10, 0x3f6c38 STR R2, [SP,#0x10+var_4] ; +0x12, 0x3f6c3a CBZ R1, loc_3F6C46 ; +0x14, 0x3f6c3c MOVS R2, #0 ; +0x16, 0x3f6c3e MOVS R3, #0 ; +0x18, 0x3f6c40 STRD.W R2, R3, [R0,#0x18] ; +0x1a, 0x3f6c42 VLDR D7, [R4,#0x18] ; +0x1e, 0x3f6c46 VCMP.F64 D7, #0.0 ; +0x22, 0x3f6c4a VMRS APSR_nzcv, FPSCR ; +0x26, 0x3f6c4e BEQ loc_3F6C8E ; +0x2a, 0x3f6c52 MOVS R0, #0; clock_id ; +0x2c, 0x3f6c54 ADD R1, SP, #0x10+var_C; tp ; +0x2e, 0x3f6c56 BLX clock_gettime ; +0x30, 0x3f6c58 VLDR S15, [SP,#0x10+var_C] ; +0x34, 0x3f6c5c VLDR D5, =1.0e9 ; +0x38, 0x3f6c60 VCVT.F64.S32 D6, S15 ; +0x3c, 0x3f6c64 VLDR S15, [SP,#0x10+var_8] ; +0x40, 0x3f6c68 VCVT.F64.S32 D7, S15 ; +0x44, 0x3f6c6c VDIV.F64 D7, D7, D5 ; +0x48, 0x3f6c70 VADD.F64 D7, D6, D7 ; +0x4c, 0x3f6c74 VLDR D6, [R4,#0x18] ; +0x50, 0x3f6c78 VSUB.F64 D7, D7, D6 ; +0x54, 0x3f6c7c VMOV.F64 D6, #10.0 ; +0x58, 0x3f6c80 VCMPE.F64 D7, D6 ; +0x5c, 0x3f6c84 VMRS APSR_nzcv, FPSCR ; +0x60, 0x3f6c88 BMI loc_3F6D02 ; +0x64, 0x3f6c8c LDRB R3, [R4,#0x10] ; +0x66, 0x3f6c8e CBZ R3, loc_3F6CFE ; +0x68, 0x3f6c90 EOR.W R7, R6, #1 ; +0x6a, 0x3f6c92 BL _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x6e, 0x3f6c96 MOV R1, R7; bool ; +0x72, 0x3f6c9a BL _ZN8GManager4saveEb; GManager::save(bool) ; +0x74, 0x3f6c9c MOV R8, R0 ; +0x78, 0x3f6ca0 BL _ZN17LocalLevelManager11sharedStateEv; LocalLevelManager::sharedState(void) ; +0x7a, 0x3f6ca2 STRB.W R7, [R0,#0x178] ; +0x7e, 0x3f6ca6 BL _ZN17LocalLevelManager11sharedStateEv; LocalLevelManager::sharedState(void) ; +0x82, 0x3f6caa MOV R1, R7; bool ; +0x86, 0x3f6cae BL _ZN8GManager4saveEb; GManager::save(bool) ; +0x88, 0x3f6cb0 CBNZ R0, loc_3F6CBC ; +0x8c, 0x3f6cb4 CMP.W R8, #0 ; +0x8e, 0x3f6cb6 BEQ loc_3F6CE4 ; +0x92, 0x3f6cba MOVS R0, #0; clock_id ; +0x94, 0x3f6cbc ADD R1, SP, #0x10+var_C; tp ; +0x96, 0x3f6cbe BLX clock_gettime ; +0x98, 0x3f6cc0 VLDR S15, [SP,#0x10+var_C] ; +0x9c, 0x3f6cc4 VLDR D5, =1.0e9 ; +0xa0, 0x3f6cc8 VCVT.F64.S32 D6, S15 ; +0xa4, 0x3f6ccc VLDR S15, [SP,#0x10+var_8] ; +0xa8, 0x3f6cd0 VCVT.F64.S32 D7, S15 ; +0xac, 0x3f6cd4 VDIV.F64 D7, D7, D5 ; +0xb0, 0x3f6cd8 VADD.F64 D7, D6, D7 ; +0xb4, 0x3f6cdc VSTR D7, [R4,#0x18] ; +0xb8, 0x3f6ce0 CBZ R6, loc_3F6CFE ; +0xbc, 0x3f6ce4 BL _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0xbe, 0x3f6ce6 MOVS R2, #0; double ; +0xc2, 0x3f6cea LDR R3, =0x403E0000 ; +0xc4, 0x3f6cec BL _ZN8GManager11waitForSaveEd; GManager::waitForSave(double) ; +0xc6, 0x3f6cee BL _ZN17LocalLevelManager11sharedStateEv; LocalLevelManager::sharedState(void) ; +0xca, 0x3f6cf2 MOVS R2, #0; double ; +0xce, 0x3f6cf6 LDR R3, =0x403E0000 ; +0xd0, 0x3f6cf8 BL _ZN8GManager11waitForSaveEd; GManager::waitForSave(double) ; +0xd2, 0x3f6cfa BL _ZN15PlatformToolbox11gameDidSaveEv; PlatformToolbox::gameDidSave(void) ; +0xd6, 0x3f6cfe LDR R2, [SP,#0x10+var_4] ; +0xda, 0x3f6d02 LDR R3, [R5] ; +0xdc, 0x3f6d04 CMP R2, R3 ; +0xde, 0x3f6d06 BEQ loc_3F6D0E ; +0xe0, 0x3f6d08 BLX __stack_chk_fail ; +0xe2, 0x3f6d0a ADD SP, SP, #0x10 ; +0xe6, 0x3f6d0e POP.W {R4-R8,PC} ; +0xe8, 0x3f6d10