//
// GameLevelOptionsLayer::init from 0x10037f81c to 0x10037f978 (348 bytes)
//
// 1 xrefs:
// > GameLevelOptionsLayer::create @ 0x10037f7d0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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:03:29 +0000
//
__int64 __fastcall GameLevelOptionsLayer::init(__int64 a1, __int64 a2)
{
__int64 v3; // x20
__int64 v4; // x0
char *v5; // x21
__int64 v6; // x22
float v8; // [xsp+8h] [xbp-68h] BYREF
__int64 v9; // [xsp+10h] [xbp-60h] BYREF
void *__p[2]; // [xsp+18h] [xbp-58h] BYREF
char v11; // [xsp+2Fh] [xbp-41h]
void *v12[2]; // [xsp+30h] [xbp-40h] BYREF
char v13; // [xsp+47h] [xbp-29h]
__int64 v14; // [xsp+48h] [xbp-28h] BYREF
*(_DWORD *)(a1 + 1012) = 1110704128;
*(_DWORD *)(a1 + 1032) = 1053609165;
if ( a2 )
{
*(_QWORD *)(a1 + 1128) = a2;
cocos2d::CCObject::retain(a2);
}
v3 = GJOptionsLayer::init(a1, 2, 280.0);
if ( (_DWORD)v3 )
{
SetupTriggerPopup::preSetup((_BYTE *)a1);
v4 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v4, &v14);
sub_100009900(v12, "Level Options");
sub_100009900(
__p,
"Adjust visual and gameplay settings for this level. These changes only affect how you experience t"
"he level and do not impact other players.");
v5 = InfoAlertButton::create((__int64)v12, (__int64)__p, 0.8);
if ( v11 < 0 )
operator delete(__p[0]);
if ( v13 < 0 )
operator delete(v12[0]);
(*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v5);
v6 = *(_QWORD *)(a1 + 552);
sub_1000262BC(
&v8,
(float)((float)(*(float *)&v14 * 0.5) + (float)(*(float *)(a1 + 732) * 0.5)) + -18.0,
(float)((float)(*((float *)&v14 + 1) * 0.5) + (float)(*(float *)(a1 + 736) * 0.5)) + -18.0);
cocos2d::CCNode::convertToNodeSpace(v6, (__int64)&v8, &v9);
(*(void (__fastcall **)(char *, __int64 *))(*(_QWORD *)v5 + 184LL))(v5, &v9);
SetupTriggerPopup::postSetup((_BYTE *)a1);
}
return v3;
}