; ; CCCountdown::init from 0x3c5118 to 0x3c52b8 (416 bytes) ; ; 1 xrefs: ; > CCCountdown::create @ 0x3c5430 ; ; 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:46:33 +0000 ; PUSH.W {R4-R11,LR} ; +0x0, 0x3c5118 MOV R4, R0 ; +0x4, 0x3c511c VPUSH {D8} ; +0x6, 0x3c511e LDR R6, =(__stack_chk_guard_ptr - 0x3C512A) ; +0xa, 0x3c5122 LDR R1, =(aTimerOutercirc - 0x3C5130); "timer_outerCircle.png" ; +0xc, 0x3c5124 ADD R6, PC; __stack_chk_guard_ptr ; +0xe, 0x3c5126 LDR R6, [R6]; __stack_chk_guard ; +0x10, 0x3c5128 SUB SP, SP, #0x24 ; +0x12, 0x3c512a ADD R1, PC; "timer_outerCircle.png" ; +0x14, 0x3c512c LDR R3, [R6] ; +0x16, 0x3c512e STR R3, [SP,#0x24+var_8] ; +0x18, 0x3c5130 BL _ZN7cocos2d8CCSprite12initWithFileEPKc; cocos2d::CCSprite::initWithFile(char const*) ; +0x1a, 0x3c5132 MOV R8, R0 ; +0x1e, 0x3c5136 CMP R0, #0 ; +0x20, 0x3c5138 BEQ.W loc_3C52A0 ; +0x22, 0x3c513a LDR R0, =(aTimerInnercirc - 0x3C514A); "timer_innerCircle.png" ; +0x26, 0x3c513e VMOV.F32 S16, #0.5 ; +0x28, 0x3c5140 ADD R5, SP, #0x24+var_10 ; +0x2c, 0x3c5144 ADD R0, PC; "timer_innerCircle.png" ; +0x2e, 0x3c5146 BL _ZN7cocos2d8CCSprite6createEPKc; cocos2d::CCSprite::create(char const*) ; +0x30, 0x3c5148 BL _ZN7cocos2d15CCProgressTimer6createEPNS_8CCSpriteE; cocos2d::CCProgressTimer::create(cocos2d::CCSprite *) ; +0x34, 0x3c514c MOVS R1, #0 ; +0x38, 0x3c5150 STR.W R0, [R4,#0x1FC] ; +0x3a, 0x3c5152 BL _ZN7cocos2d15CCProgressTimer7setTypeENS_19CCProgressTimerTypeE; cocos2d::CCProgressTimer::setType(cocos2d::CCProgressTimerType) ; +0x3e, 0x3c5156 LDR R3, [R4] ; +0x42, 0x3c515a LDR.W R1, [R4,#0x1FC] ; +0x44, 0x3c515c MOV.W R2, #0xFFFFFFFF ; +0x48, 0x3c5160 MOV R0, R4 ; +0x4c, 0x3c5164 LDR.W R3, [R3,#0xE8] ; +0x4e, 0x3c5166 BLX R3 ; +0x52, 0x3c516a LDR.W R7, [R4,#0x1FC] ; +0x54, 0x3c516c MOV R0, R4 ; +0x58, 0x3c5170 LDR R3, [R7] ; +0x5a, 0x3c5172 LDR.W R9, [R3,#0x5C] ; +0x5c, 0x3c5174 LDR R3, [R4] ; +0x60, 0x3c5178 LDR.W R3, [R3,#0xA4] ; +0x62, 0x3c517a BLX R3 ; +0x66, 0x3c517e LDR R3, [R4] ; +0x68, 0x3c5180 LDR.W R3, [R3,#0xA4] ; +0x6a, 0x3c5182 VLDR S17, [R0] ; +0x6e, 0x3c5186 MOV R0, R4 ; +0x72, 0x3c518a BLX R3 ; +0x74, 0x3c518c VMUL.F32 S17, S17, S16 ; +0x76, 0x3c518e VMOV R1, S17; float ; +0x7a, 0x3c5192 VLDR S15, [R0,#4] ; +0x7e, 0x3c5196 MOV R0, R5; this ; +0x82, 0x3c519a VMUL.F32 S15, S15, S16 ; +0x84, 0x3c519c VMOV R2, S15; float ; +0x88, 0x3c51a0 BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x8c, 0x3c51a4 MOV R0, R7 ; +0x90, 0x3c51a8 MOV R1, R5 ; +0x92, 0x3c51aa BLX R9 ; +0x94, 0x3c51ac LDR.W R0, [R4,#0x1FC]; this ; +0x96, 0x3c51ae LDR R1, flt_3C52B8; float ; +0x9a, 0x3c51b2 MOV.W R9, #1 ; +0x9c, 0x3c51b4 BL _ZN7cocos2d15CCProgressTimer13setPercentageEf; cocos2d::CCProgressTimer::setPercentage(float) ; +0xa0, 0x3c51b8 LDR.W R3, [R4,#0x1FC] ; +0xa4, 0x3c51bc MOV R1, R5 ; +0xa8, 0x3c51c0 MOVS R2, #0 ; +0xaa, 0x3c51c2 LDR.W R0, [R3,#0x120] ; +0xac, 0x3c51c4 LDR R3, [R0] ; +0xb0, 0x3c51c8 LDR.W R3, [R3,#0x1E0] ; +0xb2, 0x3c51ca STRB.W R2, [SP,#0x24+var_10] ; +0xb6, 0x3c51ce MOVS R2, #0x28 ; '(' ; +0xba, 0x3c51d2 STRB.W R2, [SP,#0x24+var_F] ; +0xbc, 0x3c51d4 MOVS R2, #0x46 ; 'F' ; +0xc0, 0x3c51d8 STRB.W R2, [SP,#0x24+var_E] ; +0xc2, 0x3c51da BLX R3 ; +0xc6, 0x3c51de LDR.W R0, [R4,#0x1FC]; this ; +0xc8, 0x3c51e0 BL _ZN7cocos2d15CCProgressTimer11updateColorEv; cocos2d::CCProgressTimer::updateColor(void) ; +0xcc, 0x3c51e4 LDR.W R3, [R4,#0x1FC] ; +0xd0, 0x3c51e8 LDR R0, =(a0 - 0x3C51F8); "0" ; +0xd4, 0x3c51ec LDR R1, =(aLevelfontFnt - 0x3C51FA); "levelFont.fnt" ; +0xd6, 0x3c51ee STRB.W R9, [R3,#0x13C] ; +0xd8, 0x3c51f0 ADD R0, PC; "0" ; +0xdc, 0x3c51f4 ADD R1, PC; "levelFont.fnt" ; +0xde, 0x3c51f6 BL _ZN7cocos2d13CCLabelBMFont6createEPKcS2_; cocos2d::CCLabelBMFont::create(char const*,char const*) ; +0xe0, 0x3c51f8 STR.W R0, [R4,#0x208] ; +0xe4, 0x3c51fc MOV R7, R0 ; +0xe8, 0x3c5200 LDR R3, [R0] ; +0xea, 0x3c5202 MOV R0, R4 ; +0xec, 0x3c5204 LDR.W R10, [R3,#0x5C] ; +0xee, 0x3c5206 LDR R3, [R4] ; +0xf2, 0x3c520a LDR.W R3, [R3,#0xA4] ; +0xf4, 0x3c520c BLX R3 ; +0xf8, 0x3c5210 LDR R3, [R4] ; +0xfa, 0x3c5212 LDR.W R3, [R3,#0xA4] ; +0xfc, 0x3c5214 VLDR S17, [R0] ; +0x100, 0x3c5218 MOV R0, R4 ; +0x104, 0x3c521c BLX R3 ; +0x106, 0x3c521e VMUL.F32 S17, S17, S16 ; +0x108, 0x3c5220 VMOV R1, S17; float ; +0x10c, 0x3c5224 VLDR S15, [R0,#4] ; +0x110, 0x3c5228 MOV R0, R5; this ; +0x114, 0x3c522c VMUL.F32 S15, S15, S16 ; +0x116, 0x3c522e VMOV R2, S15; float ; +0x11a, 0x3c5232 BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x11e, 0x3c5236 MOV R0, R7 ; +0x122, 0x3c523a MOV R1, R5 ; +0x124, 0x3c523c BLX R10 ; +0x126, 0x3c523e LDR.W R7, [R4,#0x208] ; +0x128, 0x3c5240 VMOV R2, S16; float ; +0x12c, 0x3c5244 MOV R0, R5; this ; +0x130, 0x3c5248 VMOV R1, S16; float ; +0x132, 0x3c524a LDR R3, [R7] ; +0x136, 0x3c524e LDR.W R10, [R3,#0x94] ; +0x138, 0x3c5250 BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x13c, 0x3c5254 MOV R0, R7 ; +0x140, 0x3c5258 MOV R1, R5 ; +0x142, 0x3c525a BLX R10 ; +0x144, 0x3c525c LDR.W R7, [R4,#0x208] ; +0x146, 0x3c525e ADD.W R10, SP, #0x24+var_18 ; +0x14a, 0x3c5262 LDR R3, [R7] ; +0x14e, 0x3c5266 MOV R0, R7 ; +0x150, 0x3c5268 LDR R2, [R3,#0x5C] ; +0x152, 0x3c526a LDR R3, [R3,#0x60] ; +0x154, 0x3c526c STR R2, [SP,#0x24+var_20] ; +0x156, 0x3c526e BLX R3 ; +0x158, 0x3c5270 MOVS R1, #0; float ; +0x15a, 0x3c5272 LDR R2, flt_3C52BC; float ; +0x15c, 0x3c5274 MOV R11, R0 ; +0x15e, 0x3c5276 MOV R0, R10; this ; +0x160, 0x3c5278 BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x162, 0x3c527a MOV R2, R10 ; +0x166, 0x3c527e MOV R0, R5 ; +0x168, 0x3c5280 MOV R1, R11 ; +0x16a, 0x3c5282 BL _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x16c, 0x3c5284 MOV R0, R7 ; +0x170, 0x3c5288 MOV R1, R5 ; +0x172, 0x3c528a LDR R3, [SP,#0x24+var_20] ; +0x174, 0x3c528c BLX R3 ; +0x176, 0x3c528e LDR R3, [R4] ; +0x178, 0x3c5290 MOV R0, R4 ; +0x17a, 0x3c5292 LDR.W R1, [R4,#0x208] ; +0x17c, 0x3c5294 MOV R2, R9 ; +0x180, 0x3c5298 LDR.W R3, [R3,#0xE8] ; +0x182, 0x3c529a BLX R3 ; +0x186, 0x3c529e LDR R2, [SP,#0x24+var_8] ; +0x188, 0x3c52a0 MOV R0, R8 ; +0x18a, 0x3c52a2 LDR R3, [R6] ; +0x18c, 0x3c52a4 CMP R2, R3 ; +0x18e, 0x3c52a6 BEQ loc_3C52AE ; +0x190, 0x3c52a8 BLX __stack_chk_fail ; +0x192, 0x3c52aa ADD SP, SP, #0x24 ; '$' ; +0x196, 0x3c52ae VPOP {D8} ; +0x198, 0x3c52b0 POP.W {R4-R11,PC} ; +0x19c, 0x3c52b4