//
// SFXSettingsPopup::create from 0x1001f7b08 to 0x1001f7be0 (216 bytes)
//
// 1 xrefs:
// > SFXBrowser::onSettings @ 0x1001f39f4
//
// 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 11:00:41 +0000
//
_QWORD *__fastcall SFXSettingsPopup::create(__int64 a1)
{
_QWORD *v2; // x19
v2 = operator new(0x470u);
GJOptionsLayer::GJOptionsLayer();
*v2 = off_1008F3ED0;
v2[40] = off_1008F44D8;
v2[41] = &off_1008F4548;
v2[42] = off_1008F4560;
v2[43] = off_1008F4580;
v2[44] = off_1008F45A8;
v2[51] = off_1008F45D8;
v2[54] = off_1008F4658;
v2[68] = off_1008F4678;
v2[83] = &off_1008F46C0;
v2[84] = off_1008F46D8;
*((_BYTE *)v2 + 1128) = 0;
v2[140] = a1;
*((_DWORD *)v2 + 253) = 1108344832;
*((_DWORD *)v2 + 258) = 1053609165;
if ( (unsigned int)GJOptionsLayer::init(v2, 1, 110.0) )
{
cocos2d::CCObject::autorelease((__int64)v2);
}
else
{
(*(void (__fastcall **)(_QWORD *))(*v2 + 16LL))(v2);
return nullptr;
}
return v2;
}