//
// GameSettingsLayer::create from 0x1005fe320 to 0x1005fe4a3 (387 bytes)
//
// 3 xrefs:
// > EditorPauseLayer::onOptions @ 0x10027e650
// > PauseLayer::onSideButtonPressed @ 0x1003c15d5
// > OptionsLayer::onOptions @ 0x10087b848
//
// This function is hookable on this platform (idp: pc, 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 12:34:29 +0000
//
char *__fastcall GameSettingsLayer::create(__int64 a1, unsigned int a2)
{
char *v2; // rbx
v2 = (char *)operator new(0x4A0u);
__bzero(v2, 1184);
SetupTriggerPopup::SetupTriggerPopup((__int64)v2);
*(_OWORD *)(v2 + 1048) = 0;
*(_OWORD *)(v2 + 1032) = 0;
*(_OWORD *)(v2 + 1016) = 0;
*((_QWORD *)v2 + 133) = 0xFFFFFFFF00000000LL;
*((_OWORD *)v2 + 67) = 0;
*(_QWORD *)v2 = off_100B7EF40;
*((_QWORD *)v2 + 40) = off_100B7F540;
*((_QWORD *)v2 + 41) = &off_100B7F5B0;
*((_QWORD *)v2 + 42) = off_100B7F5C8;
*((_QWORD *)v2 + 43) = off_100B7F5E8;
*((_QWORD *)v2 + 44) = off_100B7F610;
*((_QWORD *)v2 + 51) = off_100B7F640;
*((_QWORD *)v2 + 54) = off_100B7F6C0;
*((_QWORD *)v2 + 68) = off_100B7F6E0;
*((_QWORD *)v2 + 83) = &off_100B7F728;
*((_QWORD *)v2 + 84) = off_100B7F740;
*((_QWORD *)v2 + 136) = &off_100B7F760;
*(_OWORD *)(v2 + 1112) = 0;
*(_OWORD *)(v2 + 1096) = 0;
*((_QWORD *)v2 + 141) = 0;
*((_DWORD *)v2 + 284) = 1065353216;
*((_QWORD *)v2 + 143) = 0;
*((_DWORD *)v2 + 288) = 0;
*(_OWORD *)(v2 + 1160) = 0;
*((_WORD *)v2 + 588) = 0;
if ( (unsigned __int8)GameSettingsLayer::init(v2, a1, a2) )
{
cocos2d::CCObject::autorelease((__int64)v2);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return v2;
}