//
// GameLevelOptionsLayer::create from 0x5d81d8 to 0x5d8280 (168 bytes)
//
// 2 xrefs:
// > LevelInfoLayer::onLevelOptions @ 0x49af3e
// > EditLevelLayer::onLevelOptions @ 0x49f41e
//
// 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
//
GJOptionsLayer *__fastcall GameLevelOptionsLayer::create(GameLevelOptionsLayer *this, GJGameLevel *a2)
{
GJOptionsLayer *v3; // r4
int v4; // r3
GJOptionsLayer *v5; // r0
v3 = (GJOptionsLayer *)operator new(0x314u);
GJOptionsLayer::GJOptionsLayer(v3);
*(_DWORD *)v3 = &off_CBB7E0;
*((_DWORD *)v3 + 66) = &off_CBBAE8;
*((_DWORD *)v3 + 67) = &off_CBBB20;
*((_DWORD *)v3 + 68) = &off_CBBB2C;
*((_DWORD *)v3 + 69) = &off_CBBB3C;
*((_DWORD *)v3 + 70) = &off_CBBB50;
*((_DWORD *)v3 + 79) = &off_CBBB68;
*((_DWORD *)v3 + 83) = &off_CBBBA8;
*((_DWORD *)v3 + 110) = &off_CBBBB8;
*((_DWORD *)v3 + 130) = &off_CBBBDC;
*((_DWORD *)v3 + 131) = &off_CBBBE8;
*((_DWORD *)v3 + 195) = &off_CBBBF8;
*((_DWORD *)v3 + 196) = 0;
if ( GameLevelOptionsLayer::init(v3, this) )
{
cocos2d::CCObject::autorelease(v3);
}
else
{
v4 = *(_DWORD *)v3;
v5 = v3;
v3 = nullptr;
(*(void (__fastcall **)(GJOptionsLayer *))(v4 + 8))(v5);
}
return v3;
}