//
// GameSettingsLayer::create from 0x100164304 to 0x100164380 (124 bytes)
//
// 3 xrefs:
// > OptionsLayer::onOptions @ 0x1001134dc
// > PauseLayer::onSideButtonPressed @ 0x1001bfc64
// > EditorPauseLayer::onOptions @ 0x100444634
//
// 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 10:59:47 +0000
//
void *__fastcall GameSettingsLayer::create(__int64 a1, __int64 a2)
{
void *v4; // x19
v4 = operator new(0x4A0u);
bzero(v4, 0x4A0u);
GameSettingsLayer::GameSettingsLayer(v4);
if ( (unsigned int)GameSettingsLayer::init(v4, a1, a2) )
{
cocos2d::CCObject::autorelease((__int64)v4);
}
else
{
(*(void (__fastcall **)(void *))(*(_QWORD *)v4 + 16LL))(v4);
return nullptr;
}
return v4;
}