//
// GameLevelOptionsLayer::init from 0x5d8094 to 0x5d81bc (296 bytes)
//
// 1 xrefs:
// > GameLevelOptionsLayer::create @ 0x5d8258
//
// 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:54:10 +0000
//
cocos2d::CCDirector *__fastcall GameLevelOptionsLayer::init(GameLevelOptionsLayer *this, GJGameLevel *a2)
{
cocos2d::CCDirector *v3; // r9
cocos2d::CCDirector *v4; // r0
int v5; // r8
const cocos2d::CCPoint *v6; // r11
void (__fastcall *v7)(int, _BYTE *); // r10
float v9[2]; // [sp+4h] [bp-38h] BYREF
_BYTE v10[8]; // [sp+Ch] [bp-30h] BYREF
_BYTE v11[8]; // [sp+14h] [bp-28h] BYREF
int v12[3]; // [sp+1Ch] [bp-20h] BYREF
int v13[3]; // [sp+28h] [bp-14h] BYREF
*((_DWORD *)this + 178) = 1110704128;
*((_DWORD *)this + 183) = 1053609165;
if ( a2 )
{
*((_DWORD *)this + 196) = a2;
cocos2d::CCObject::retain(a2);
}
v3 = GJOptionsLayer::init(this, 2, 280.0);
if ( v3 )
{
v4 = (cocos2d::CCDirector *)SetupTriggerPopup::preSetup(this);
cocos2d::CCDirector::sharedDirector(v4);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v9);
memset(v12, 0, sizeof(v12));
std::string::__init(v12, "Level Options", 0xDu);
memset(v13, 0, sizeof(v13));
std::string::__init(
v13,
"Adjust visual and gameplay settings for this level. These changes only affect how you experience t"
"he level and do not impact other players.",
0xABu);
v5 = InfoAlertButton::create(v12, v13, 1061997773);
std::string::~string((int)v13);
std::string::~string((int)v12);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v5);
v6 = *((const cocos2d::CCPoint **)this + 111);
v7 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v5 + 92);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v10,
(float)((float)(*((float *)this + 139) * 0.5) + (float)(v9[0] * 0.5)) - 18.0,
(float)((float)(*((float *)this + 140) * 0.5) + (float)(v9[1] * 0.5)) - 18.0);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v11, v6);
v7(v5, v11);
SetupTriggerPopup::postSetup(this);
}
return v3;
}