//
// UIOptionsLayer::create from 0x1002e2040 to 0x1002e2108 (200 bytes)
//
// 5 xrefs:
// > GameOptionsLayer::onUIOptions @ 0x1002e1d34
// > UIOptionsLayer::onReset @ 0x1002e3df8
// > UIOptionsLayer::valueDidChange @ 0x1002e42b4
// > UISaveLoadLayer::onSave @ 0x1002e4b90
// > UISaveLoadLayer::onLoad @ 0x1002e4d50
//
// 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
//
UIOptionsLayer *__fastcall UIOptionsLayer::create(bool a1)
{
char *v2; // x19
v2 = (char *)operator new(0x3E0u);
SetupTriggerPopup::SetupTriggerPopup((SetupTriggerPopup *)v2);
*(_QWORD *)v2 = &off_1007E2DE8;
*((_QWORD *)v2 + 40) = off_1007E33B8;
*((_QWORD *)v2 + 41) = &off_1007E3428;
*((_QWORD *)v2 + 42) = off_1007E3440;
*((_QWORD *)v2 + 43) = off_1007E3460;
*((_QWORD *)v2 + 44) = off_1007E3480;
*((_QWORD *)v2 + 51) = off_1007E34A8;
*((_QWORD *)v2 + 54) = off_1007E3528;
*((_QWORD *)v2 + 79) = off_1007E3548;
*((_QWORD *)v2 + 80) = &off_1007E3590;
*((_QWORD *)v2 + 81) = off_1007E35A8;
v2[937] = 0;
*((_OWORD *)v2 + 59) = 0u;
*((_OWORD *)v2 + 60) = 0u;
*(_OWORD *)(v2 + 972) = 0u;
if ( UIOptionsLayer::init((UIOptionsLayer *)v2, a1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return (UIOptionsLayer *)v2;
}