//
// UIPOptionsLayer::create from 0x10029f040 to 0x10029f14c (268 bytes)
//
// 2 xrefs:
// > GameOptionsLayer::onUIPOptions @ 0x10029ec04
// > PauseLayer::onSideButtonPressed @ 0x1003c1602
//
// 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:27:54 +0000
//
_QWORD *UIPOptionsLayer::create()
{
_QWORD *v0; // rbx
v0 = operator new(0x410u);
SetupTriggerPopup::SetupTriggerPopup((__int64)v0);
*v0 = off_100B0A138;
v0[40] = off_100B0A728;
v0[41] = &off_100B0A798;
v0[42] = off_100B0A7B0;
v0[43] = off_100B0A7D0;
v0[44] = off_100B0A7F8;
v0[51] = off_100B0A828;
v0[54] = off_100B0A8A8;
v0[68] = off_100B0A8C8;
v0[83] = &off_100B0A910;
v0[84] = off_100B0A928;
*((_DWORD *)v0 + 253) = -1;
v0[127] = 0;
sub_1002782A0(v0 + 128);
sub_1002782A0(v0 + 129);
if ( (*(unsigned __int8 (__fastcall **)(_QWORD *))(*v0 + 80LL))(v0) )
{
cocos2d::CCObject::autorelease(v0);
}
else
{
(*(void (__fastcall **)(_QWORD *))(*v0 + 16LL))(v0);
return nullptr;
}
return v0;
}