//
// LevelOptionsLayer2::init from 0x6aa0d0 to 0x6aa172 (162 bytes)
//
// 1 xrefs:
// > LevelOptionsLayer2::create @ 0x6aa244
//
// 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:56:34 +0000
//
cocos2d::CCDirector *__fastcall LevelOptionsLayer2::init(LevelOptionsLayer2 *this, LevelSettingsObject *a2)
{
cocos2d::CCDirector *v3; // r0
cocos2d::CCDirector *v4; // r7
const char *v5; // r2
int v6; // r4
void (__fastcall *v7)(int, _BYTE *); // r9
float v9[2]; // [sp+4h] [bp-18h] BYREF
_BYTE v10[8]; // [sp+Ch] [bp-10h] BYREF
v3 = LevelOptionsLayer::init(this, a2);
v4 = v3;
if ( v3 )
{
cocos2d::CCDirector::sharedDirector(v3);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v9);
v6 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Legacy Options", "goldFont.fnt", v5);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v6 + 80))(v6, 1060320051);
v7 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v6 + 92);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v10,
v9[0] * 0.5,
(float)((float)(*((float *)this + 140) * 0.5) + (float)(v9[1] * 0.5)) - 20.0);
v7(v6, v10);
(*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v6, 1);
}
return v4;
}