; ; DrawGridLayer::update from 0x364fcc to 0x3650bc (240 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.W R3, [R0,#0x168] ; +0x0, 0x364fcc PUSH {R4-R7,LR} ; +0x4, 0x364fd0 MOVW R5, #0x2E94 ; +0x6, 0x364fd2 VPUSH {D8} ; +0xa, 0x364fd6 MOV R4, R0 ; +0xe, 0x364fda STR.W R3, [R0,#0x16C] ; +0x10, 0x364fdc LDR.W R3, [R0,#0x17C] ; +0x14, 0x364fe0 VMOV S16, R1 ; +0x18, 0x364fe4 SUB SP, SP, #0x24 ; +0x1c, 0x364fe8 LDR R3, [R3,R5] ; +0x1e, 0x364fea CMP R3, #0 ; +0x20, 0x364fec BEQ loc_3650B4 ; +0x22, 0x364fee LDRB.W R3, [R3,#0x1D8] ; +0x24, 0x364ff0 CMP R3, #0 ; +0x28, 0x364ff4 BEQ loc_3650B4 ; +0x2a, 0x364ff6 BL _ZN15FMODAudioEngine12sharedEngineEv; FMODAudioEngine::sharedEngine(void) ; +0x2c, 0x364ff8 MOVS R1, #0; int ; +0x30, 0x364ffc BL _ZN15FMODAudioEngine14isMusicPlayingEi; FMODAudioEngine::isMusicPlaying(int) ; +0x32, 0x364ffe VMOV.F32 S13, #-1.0 ; +0x36, 0x365002 VLDR S15, [R4,#0x164] ; +0x3a, 0x365006 LDR.W R3, [R4,#0x17C] ; +0x3e, 0x36500a VCMP.F32 S15, S13 ; +0x42, 0x36500e VMOV.F32 S17, S13 ; +0x46, 0x365012 VMRS APSR_nzcv, FPSCR ; +0x4a, 0x365016 MOV R7, R0 ; +0x4e, 0x36501a BNE loc_365028 ; +0x50, 0x36501c LDR R2, [R3,R5] ; +0x52, 0x36501e LDR.W R2, [R2,#0x1DC] ; +0x54, 0x365020 STR.W R2, [R4,#0x164] ; +0x58, 0x365024 LDR.W R6, [R3,#0x8C0] ; +0x5c, 0x365028 MOVS R5, #0 ; +0x60, 0x36502c ADD.W R3, R3, #0x2E0 ; +0x62, 0x36502e ADD R0, SP, #0x24+var_C; this ; +0x66, 0x365032 LDR.W R1, [R4,#0x168]; float ; +0x68, 0x365034 LDRB.W R2, [R6,#0x119] ; +0x6c, 0x365038 STR R5, [SP,#0x24+var_20]; bool ; +0x70, 0x36503c STR R3, [SP,#0x24+var_18]; int * ; +0x72, 0x36503e STR R2, [SP,#0x24+var_24]; bool ; +0x74, 0x365040 MOVS R2, #1 ; +0x76, 0x365042 STR R5, [SP,#0x24+var_14]; int ; +0x78, 0x365044 STR R2, [SP,#0x24+var_1C]; bool ; +0x7a, 0x365046 LDR.W R2, [R4,#0x194]; cocos2d::CCArray * ; +0x7c, 0x365048 LDR.W R3, [R6,#0x110]; LevelTools * ; +0x80, 0x36504c BL _ZN10LevelTools18posForTimeInternalEfPN7cocos2d7CCArrayEibbbRii; LevelTools::posForTimeInternal(float,cocos2d::CCArray *,int,bool,bool,bool,int &,int) ; +0x84, 0x365050 BL _ZN10LevelTools15getLastTimewarpEv; LevelTools::getLastTimewarp(void) ; +0x88, 0x365054 VMOV S15, R0; this ; +0x8c, 0x365058 VMUL.F32 S16, S16, S15 ; +0x90, 0x36505c CBZ R7, loc_365072 ; +0x94, 0x365060 BL _ZN15FMODAudioEngine12sharedEngineEv; FMODAudioEngine::sharedEngine(void) ; +0x96, 0x365062 MOV R1, R5; int ; +0x9a, 0x365066 BL _ZN15FMODAudioEngine12getMusicTimeEi; FMODAudioEngine::getMusicTime(int) ; +0x9c, 0x365068 VMOV S14, R0 ; +0xa0, 0x36506c B loc_36507A ; +0xa4, 0x365070 VLDR S14, [R4,#0x164] ; +0xa6, 0x365072 VADD.F32 S14, S16, S14 ; +0xaa, 0x365076 VLDR S15, [R4,#0x164] ; +0xae, 0x36507a VCMP.F32 S15, S17 ; +0xb2, 0x36507e VMRS APSR_nzcv, FPSCR ; +0xb6, 0x365082 BEQ loc_3650A8 ; +0xba, 0x365086 VSUB.F32 S15, S14, S15 ; +0xbc, 0x365088 VLDR S13, =1000.0 ; +0xc0, 0x36508c VABS.F32 S15, S15 ; +0xc4, 0x365090 VCMPE.F32 S15, S13 ; +0xc8, 0x365094 VMRS APSR_nzcv, FPSCR ; +0xcc, 0x365098 BPL loc_3650A8 ; +0xd0, 0x36509c VLDR S15, [R4,#0x168] ; +0xd2, 0x36509e VADD.F32 S15, S16, S15 ; +0xd6, 0x3650a2 B loc_3650AC ; +0xda, 0x3650a6 VMOV.F32 S15, S14 ; +0xdc, 0x3650a8 VSTR S15, [R4,#0x168] ; +0xe0, 0x3650ac VSTR S14, [R4,#0x164] ; +0xe4, 0x3650b0 ADD SP, SP, #0x24 ; '$' ; +0xe8, 0x3650b4 VPOP {D8} ; +0xea, 0x3650b6 POP {R4-R7,PC} ; +0xee, 0x3650ba