//
// UIPOptionsLayer::create from 0x5d58d0 to 0x5d5990 (192 bytes)
//
// 2 xrefs:
// > PauseLayer::onSideButtonPressed @ 0x48e73a
// > GameOptionsLayer::onUIPOptions @ 0x5d5996
//
// 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:08 +0000
//
_DWORD *__fastcall UIPOptionsLayer::create(UIPOptionsLayer *this)
{
_DWORD *v1; // r4
int v2; // r3
_DWORD *v3; // r0
v1 = (_DWORD *)operator new(0x2E0u);
SetupTriggerPopup::SetupTriggerPopup((SetupTriggerPopup *)v1);
*v1 = &off_CBC010;
v1[66] = &off_CBC308;
v1[67] = &off_CBC340;
v1[68] = &off_CBC34C;
v1[69] = &off_CBC35C;
v1[70] = &off_CBC370;
v1[79] = &off_CBC388;
v1[83] = &off_CBC3C8;
v1[110] = &off_CBC3D8;
v1[130] = &off_CBC3FC;
v1[131] = &off_CBC408;
v1[178] = -1;
v1[179] = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v1 + 180));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v1 + 182));
if ( (*(int (__fastcall **)(_DWORD *))(*v1 + 40))(v1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);
}
else
{
v2 = *v1;
v3 = v1;
v1 = nullptr;
(*(void (__fastcall **)(_DWORD *))(v2 + 8))(v3);
}
return v1;
}