//
// cocos2d::CCDirector::init from 0x7c9edc to 0x7ca080 (420 bytes)
//
// 1 xrefs:
// > cocos2d::CCDirector::sharedDirector @ 0x7c9cac
//
// 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 12:00:29 +0000
//
int __fastcall cocos2d::CCDirector::init(cocos2d::CCDirector *this)
{
cocos2d::CCArray *v2; // r6
_DWORD *v3; // r0
cocos2d::CCScheduler *v4; // r6
cocos2d::CCActionManager *v5; // r6
cocos2d::CCTouchDispatcher *v6; // r6
cocos2d::CCKeypadDispatcher *v7; // r6
cocos2d::CCKeyboardDispatcher *v8; // r6
cocos2d::CCMouseDispatcher *v9; // r6
cocos2d::CCAccelerometer *v10; // r6
cocos2d::CCPoolManager *v11; // r0
cocos2d::CCArray **v12; // r0
float v14[2]; // [sp+4h] [bp-10h] BYREF
cocos2d::CCDirector::setDefaultValues(this);
*((_DWORD *)this + 55) = 0;
*((_DWORD *)this + 56) = 0;
*((_DWORD *)this + 22) = 0;
*((_DWORD *)this + 66) = 0;
v2 = (cocos2d::CCArray *)operator new(0x38u);
cocos2d::CCArray::CCArray(v2);
*((_DWORD *)this + 58) = v2;
cocos2d::CCArray::init(v2);
*((_DWORD *)this + 67) = 0;
*((_BYTE *)this + 304) = 0;
*((_DWORD *)this + 45) = 0;
*((_DWORD *)this + 46) = 0;
*((_DWORD *)this + 47) = 0;
*((_DWORD *)this + 34) = 0;
*((_DWORD *)this + 33) = 0;
*((_DWORD *)this + 48) = 0;
*((_DWORD *)this + 49) = 0;
*((_DWORD *)this + 50) = 0;
*((_DWORD *)this + 53) = 0;
*((_DWORD *)this + 52) = 0;
*((_DWORD *)this + 65) = operator new[](0x10u);
v3 = (_DWORD *)operator new(8u);
*v3 = 0;
v3[1] = 0;
*((_DWORD *)this + 59) = v3;
*((_DWORD *)this + 54) = 0;
*((_BYTE *)this + 140) = 0;
*((_BYTE *)this + 141) = 0;
*((_BYTE *)this + 142) = 0;
*((_DWORD *)this + 36) = 0;
*((_DWORD *)this + 70) = 0;
*((_BYTE *)this + 276) = 0;
*((_BYTE *)this + 305) = 0;
*((_BYTE *)this + 204) = 0;
*((_BYTE *)this + 148) = 0;
cocos2d::CCSize::operator=((float *)this + 62, flt_D2F14C);
*((_DWORD *)this + 38) = 0;
*((_DWORD *)this + 64) = 1065353216;
v4 = (cocos2d::CCScheduler *)operator new(0x58u);
cocos2d::CCScheduler::CCScheduler(v4);
*((_DWORD *)this + 23) = v4;
v5 = (cocos2d::CCActionManager *)operator new(0x40u);
cocos2d::CCActionManager::CCActionManager(v5);
*((_DWORD *)this + 24) = v5;
cocos2d::CCScheduler::scheduleUpdateForTarget(*((cocos2d::CCScheduler **)this + 23), v5, 0x80000000, 0);
v6 = (cocos2d::CCTouchDispatcher *)operator new(0x78u);
cocos2d::CCObject::CCObject(v6);
*((_DWORD *)v6 + 14) = 0;
*((_DWORD *)v6 + 15) = 0;
*((_DWORD *)v6 + 13) = &off_D12B30;
*(_DWORD *)v6 = &off_D12AF0;
*((_DWORD *)v6 + 17) = 0;
*((_DWORD *)v6 + 25) = -500;
*((_DWORD *)v6 + 18) = 0;
*((_DWORD *)v6 + 24) = 0;
*((_DWORD *)v6 + 26) = 0;
*((_DWORD *)v6 + 27) = 0;
*((_DWORD *)v6 + 28) = 0;
*((_DWORD *)v6 + 29) = 0;
*((_DWORD *)this + 25) = v6;
cocos2d::CCTouchDispatcher::init(v6);
v7 = (cocos2d::CCKeypadDispatcher *)operator new(0x44u);
cocos2d::CCKeypadDispatcher::CCKeypadDispatcher(v7);
*((_DWORD *)this + 26) = v7;
v8 = (cocos2d::CCKeyboardDispatcher *)operator new(0x64u);
cocos2d::CCKeyboardDispatcher::CCKeyboardDispatcher(v8);
*((_DWORD *)this + 27) = v8;
v9 = (cocos2d::CCMouseDispatcher *)operator new(0x44u);
cocos2d::CCMouseDispatcher::CCMouseDispatcher(v9);
*((_DWORD *)this + 28) = v9;
*((_QWORD *)this + 15) = 0;
v10 = (cocos2d::CCAccelerometer *)operator new(0x28u);
v11 = (cocos2d::CCPoolManager *)cocos2d::CCAccelerometer::CCAccelerometer(v10);
*((_DWORD *)this + 32) = v10;
v12 = (cocos2d::CCArray **)cocos2d::CCPoolManager::sharedPoolManager(v11);
cocos2d::CCPoolManager::push(v12);
*((_DWORD *)this + 68) = 0;
*((_DWORD *)this + 75) = 0;
cocos2d::CCSize::CCSize(v14, 480.0, 320.0);
cocos2d::CCSize::operator=((float *)this + 71, v14);
return 1;
}