//
// GameLevelOptionsLayer::create from 0x1002b22a0 to 0x1002b250c (620 bytes)
//
// 2 xrefs:
// > EditLevelLayer::onLevelOptions @ 0x1001fd57b
// > LevelInfoLayer::onLevelOptions @ 0x1002c2972
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
GameLevelOptionsLayer *__fastcall GameLevelOptionsLayer::create(GJGameLevel *a1)
{
char *v1; // rbx
v1 = (char *)operator new(0x3F8u);
cocos2d::CCLayerColor::CCLayerColor(v1);
*((_QWORD *)v1 + 72) = 0;
*((_DWORD *)v1 + 146) = 0;
v1[588] = 0;
*((_OWORD *)v1 + 34) = 0;
*(_OWORD *)(v1 + 553) = 0;
*((_OWORD *)v1 + 37) = 0;
*((_QWORD *)v1 + 76) = 0;
*((_DWORD *)v1 + 154) = -1;
*((_WORD *)v1 + 310) = 0;
*((_DWORD *)v1 + 156) = -1;
v1[628] = 0;
*((_OWORD *)v1 + 52) = 0;
*((_OWORD *)v1 + 41) = 0;
*((_WORD *)v1 + 336) = 0;
*(_OWORD *)(v1 + 680) = 0;
*(_OWORD *)(v1 + 689) = 0;
v1[716] = 0;
*(_QWORD *)(v1 + 708) = 0;
*((_OWORD *)v1 + 50) = 0;
*((_OWORD *)v1 + 49) = 0;
*((_OWORD *)v1 + 48) = 0;
*((_OWORD *)v1 + 47) = 0;
*((_OWORD *)v1 + 46) = 0;
*((_OWORD *)v1 + 45) = 0;
*((_QWORD *)v1 + 102) = 0;
*((_QWORD *)v1 + 103) = v1 + 832;
*((_WORD *)v1 + 424) = 0;
*((_QWORD *)v1 + 107) = 0;
*((_QWORD *)v1 + 108) = 0x3F80000000000000LL;
*(_OWORD *)(v1 + 872) = 0;
*(_OWORD *)(v1 + 888) = 0;
*(_OWORD *)(v1 + 904) = 0;
*(_OWORD *)(v1 + 920) = 0;
v1[936] = 0;
*((_OWORD *)v1 + 59) = 0xAFFFFFFFFuLL;
*((_DWORD *)v1 + 250) = 0;
*(_QWORD *)v1 = off_1008FC748;
*((_QWORD *)v1 + 40) = off_1008FCD30;
*((_QWORD *)v1 + 41) = &off_1008FCDA0;
*((_QWORD *)v1 + 42) = off_1008FCDB8;
*((_QWORD *)v1 + 43) = off_1008FCDD8;
*((_QWORD *)v1 + 44) = off_1008FCDF8;
*((_QWORD *)v1 + 51) = off_1008FCE20;
*((_QWORD *)v1 + 54) = off_1008FCEA0;
*((_QWORD *)v1 + 79) = off_1008FCEC0;
*((_QWORD *)v1 + 80) = &off_1008FCF08;
*((_QWORD *)v1 + 81) = off_1008FCF20;
*((_QWORD *)v1 + 126) = 0;
*((_DWORD *)v1 + 235) = 1109393408;
*((_QWORD *)v1 + 120) = 0x430200003ECCCCCDLL;
if ( a1 )
{
*((_QWORD *)v1 + 126) = a1;
cocos2d::CCObject::retain(a1);
}
if ( GJOptionsLayer::init((GJOptionsLayer *)v1, 2) )
{
SetupTriggerPopup::preSetup((SetupTriggerPopup *)v1);
SetupTriggerPopup::postSetup((SetupTriggerPopup *)v1);
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1);
return nullptr;
}
return (GameLevelOptionsLayer *)v1;
}