//
// UIOptionsLayer::create from 0x5dd6a8 to 0x5dd760 (184 bytes)
//
// 5 xrefs:
// > GameOptionsLayer::onUIOptions @ 0x5dd768
// > UIOptionsLayer::onReset @ 0x5dd7aa
// > UIOptionsLayer::valueDidChange @ 0x5dd988
// > UISaveLoadLayer::onSave @ 0x5dd9f8
// > UISaveLoadLayer::onLoad @ 0x5ddb28
//
// 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:13 +0000
//
SetupTriggerPopup *__fastcall UIOptionsLayer::create(UIOptionsLayer *this, bool a2)
{
char v2; // r5
SetupTriggerPopup *v3; // r4
int v4; // r3
int *v5; // r0
v2 = (char)this;
v3 = (SetupTriggerPopup *)operator new(0x2E4u);
SetupTriggerPopup::SetupTriggerPopup(v3);
*(_DWORD *)v3 = &off_CBBC08;
*((_DWORD *)v3 + 66) = &off_CBBF00;
*((_DWORD *)v3 + 67) = &off_CBBF38;
*((_DWORD *)v3 + 68) = &off_CBBF44;
*((_DWORD *)v3 + 69) = &off_CBBF54;
*((_DWORD *)v3 + 70) = &off_CBBF68;
*((_DWORD *)v3 + 79) = &off_CBBF80;
*((_DWORD *)v3 + 83) = &off_CBBFC0;
*((_DWORD *)v3 + 110) = &off_CBBFD0;
*((_DWORD *)v3 + 130) = &off_CBBFF4;
*((_DWORD *)v3 + 131) = &off_CBC000;
*((_BYTE *)v3 + 712) = 0;
*((_DWORD *)v3 + 179) = 0;
*((_DWORD *)v3 + 180) = 0;
*((_DWORD *)v3 + 181) = 0;
*((_DWORD *)v3 + 182) = 0;
*((_DWORD *)v3 + 183) = 0;
*((_DWORD *)v3 + 184) = 0;
if ( UIOptionsLayer::init(v3, v2) )
{
cocos2d::CCObject::autorelease(v3);
}
else
{
v4 = *(_DWORD *)v3;
v5 = (int *)v3;
v3 = nullptr;
(*(void (__fastcall **)(int *))(v4 + 8))(v5);
}
return v3;
}