; ; AppDelegate::trySaveGame from 0x3077a0 to 0x307858 (184 bytes) ; ; 0 xrefs: ; ; 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 ; LDR R3, =(__stack_chk_guard_ptr - 0x3077A8) ; +0x0, 0x3077a0 PUSH {R4,R5,LR} ; +0x2, 0x3077a2 ADD R3, PC; __stack_chk_guard_ptr ; +0x4, 0x3077a4 LDR R3, [R3]; __stack_chk_guard ; +0x6, 0x3077a6 SUB SP, SP, #0x14 ; +0x8, 0x3077a8 MOV R5, R0 ; +0xa, 0x3077aa LDR R2, [R3] ; +0xc, 0x3077ac MOV R4, R3 ; +0xe, 0x3077ae STR R2, [SP,#0x14+var_8] ; +0x10, 0x3077b0 CBZ R1, loc_3077B8 ; +0x12, 0x3077b2 MOVS R3, #0 ; +0x14, 0x3077b4 STR R3, [R0,#0x18] ; +0x16, 0x3077b6 VLDR S15, [R5,#0x18] ; +0x18, 0x3077b8 VCMP.F32 S15, #0.0 ; +0x1c, 0x3077bc VMRS APSR_nzcv, FPSCR ; +0x20, 0x3077c0 BEQ loc_307804 ; +0x24, 0x3077c4 MOVS R0, #0; clock_id ; +0x26, 0x3077c6 ADD R1, SP, #0x14+var_10; tp ; +0x28, 0x3077c8 BLX clock_gettime ; +0x2a, 0x3077ca VLDR S13, [SP,#0x14+var_C] ; +0x2e, 0x3077ce VLDR D5, =1.0e9 ; +0x32, 0x3077d2 VCVT.F64.S32 D6, S13 ; +0x36, 0x3077d6 VLDR S15, [SP,#0x14+var_10] ; +0x3a, 0x3077da VDIV.F64 D6, D6, D5 ; +0x3e, 0x3077de VCVT.F64.S32 D7, S15 ; +0x42, 0x3077e2 VADD.F64 D6, D7, D6 ; +0x46, 0x3077e6 VLDR S14, [R5,#0x18] ; +0x4a, 0x3077ea VCVT.F64.F32 D7, S14 ; +0x4e, 0x3077ee VSUB.F64 D7, D6, D7 ; +0x52, 0x3077f2 VMOV.F64 D6, #10.0 ; +0x56, 0x3077f6 VCMPE.F64 D7, D6 ; +0x5a, 0x3077fa VMRS APSR_nzcv, FPSCR ; +0x5e, 0x3077fe BMI loc_307848 ; +0x62, 0x307802 LDRB R3, [R5,#0x10] ; +0x64, 0x307804 CBZ R3, loc_307844 ; +0x66, 0x307806 BL _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x68, 0x307808 BL _ZN8GManager4saveEv; GManager::save(void) ; +0x6c, 0x30780c BL _ZN17LocalLevelManager11sharedStateEv; LocalLevelManager::sharedState(void) ; +0x70, 0x307810 BL _ZN8GManager4saveEv; GManager::save(void) ; +0x74, 0x307814 MOVS R0, #0; clock_id ; +0x78, 0x307818 ADD R1, SP, #0x14+var_10; tp ; +0x7a, 0x30781a BLX clock_gettime ; +0x7c, 0x30781c VLDR S15, [SP,#0x14+var_10] ; +0x80, 0x307820 VLDR D5, =1.0e9 ; +0x84, 0x307824 VCVT.F64.S32 D6, S15 ; +0x88, 0x307828 VLDR S15, [SP,#0x14+var_C] ; +0x8c, 0x30782c VCVT.F64.S32 D7, S15 ; +0x90, 0x307830 VDIV.F64 D7, D7, D5 ; +0x94, 0x307834 VADD.F64 D7, D6, D7 ; +0x98, 0x307838 VCVT.F32.F64 S14, D7 ; +0x9c, 0x30783c VSTR S14, [R5,#0x18] ; +0xa0, 0x307840 BL _ZN15PlatformToolbox11gameDidSaveEv; PlatformToolbox::gameDidSave(void) ; +0xa4, 0x307844 LDR R2, [SP,#0x14+var_8] ; +0xa8, 0x307848 LDR R3, [R4] ; +0xaa, 0x30784a CMP R2, R3 ; +0xac, 0x30784c BEQ loc_307854 ; +0xae, 0x30784e BLX __stack_chk_fail ; +0xb0, 0x307850 ADD SP, SP, #0x14 ; +0xb4, 0x307854 POP {R4,R5,PC} ; +0xb6, 0x307856