// // 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 // int __fastcall CCCountdown::init(cocos2d::CCProgressTimer **this) { const char *v2; // r1 int v3; // r8 cocos2d::CCProgressTimer *v4; // r0 cocos2d::CCSprite *v5; // r1 int v6; // r7 void (__fastcall *v7)(int, char *); // r9 float v8; // s17 int v9; // r0 int v10; // r0 void (__fastcall *v11)(int, char *); // r3 const char *v12; // r2 cocos2d::CCProgressTimer *v13; // r0 cocos2d::CCProgressTimer *v14; // r7 void (__fastcall *v15)(cocos2d::CCProgressTimer *, char *); // r10 float v16; // s17 int v17; // r0 int v18; // r7 void (__fastcall *v19)(int, char *); // r10 int v20; // r7 int v21; // r11 void (__fastcall *v23)(int, char *); // [sp+4h] [bp-20h] _BYTE v24[8]; // [sp+Ch] [bp-18h] BYREF char v25; // [sp+14h] [bp-10h] BYREF _BYTE v26[2]; // [sp+15h] [bp-Fh] BYREF v3 = cocos2d::CCSprite::initWithFile((cocos2d::CCSprite *)this, "timer_outerCircle.png"); if ( v3 ) { v4 = (cocos2d::CCProgressTimer *)cocos2d::CCSprite::create((cocos2d::CCSprite *)"timer_innerCircle.png", v2); *(this + 127) = (cocos2d::CCProgressTimer *)cocos2d::CCProgressTimer::create(v4, v5); cocos2d::CCProgressTimer::setType(); (*((void (__fastcall **)(cocos2d::CCProgressTimer **, _DWORD, int))*this + 58))(this, *(this + 127), -1); v6 = (int)*(this + 127); v7 = *(void (__fastcall **)(int, char *))(*(_DWORD *)v6 + 92); v8 = *(float *)(*((int (__fastcall **)(cocos2d::CCProgressTimer **))*this + 41))(this); v9 = (*((int (__fastcall **)(cocos2d::CCProgressTimer **))*this + 41))(this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v25, v8 * 0.5, *(float *)(v9 + 4) * 0.5); v7(v6, &v25); cocos2d::CCProgressTimer::setPercentage(*(this + 127), 100.0); v10 = *((_DWORD *)*(this + 127) + 72); v11 = *(void (__fastcall **)(int, char *))(*(_DWORD *)v10 + 480); v25 = 0; qmemcpy(v26, "(F", sizeof(v26)); v11(v10, &v25); cocos2d::CCProgressTimer::updateColor(*(this + 127)); *((_BYTE *)*(this + 127) + 316) = 1; v13 = (cocos2d::CCProgressTimer *)cocos2d::CCLabelBMFont::create( (cocos2d::CCLabelBMFont *)"0", "levelFont.fnt", v12); *(this + 130) = v13; v14 = v13; v15 = *(void (__fastcall **)(cocos2d::CCProgressTimer *, char *))(*(_DWORD *)v13 + 92); v16 = *(float *)(*((int (__fastcall **)(cocos2d::CCProgressTimer **))*this + 41))(this); v17 = (*((int (__fastcall **)(cocos2d::CCProgressTimer **))*this + 41))(this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v25, v16 * 0.5, *(float *)(v17 + 4) * 0.5); v15(v14, &v25); v18 = (int)*(this + 130); v19 = *(void (__fastcall **)(int, char *))(*(_DWORD *)v18 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v25, 0.5, 0.5); v19(v18, &v25); v20 = (int)*(this + 130); v23 = *(void (__fastcall **)(int, char *))(*(_DWORD *)v20 + 92); v21 = (*(int (__fastcall **)(int))(*(_DWORD *)v20 + 96))(v20); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, 0.0, -3.0); cocos2d::CCPoint::operator+(&v25, v21, v24); v23(v20, &v25); (*((void (__fastcall **)(cocos2d::CCProgressTimer **, _DWORD, int))*this + 58))(this, *(this + 130), 1); } return v3; }