//
// TOSPopup::create from 0x5d5108 to 0x5d518e (134 bytes)
//
// 1 xrefs:
// > MenuLayer::showTOS @ 0x3f93a2
//
// 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
//
FLAlertLayer *__fastcall TOSPopup::create(TOSPopup *this)
{
FLAlertLayer *v1; // r4
int v2; // r3
FLAlertLayer *v3; // r0
v1 = (FLAlertLayer *)operator new(0x208u);
FLAlertLayer::FLAlertLayer(v1);
*(_DWORD *)v1 = &off_CBAE30;
*((_DWORD *)v1 + 66) = &off_CBB0D8;
*((_DWORD *)v1 + 67) = &off_CBB110;
*((_DWORD *)v1 + 68) = &off_CBB11C;
*((_DWORD *)v1 + 69) = &off_CBB12C;
*((_DWORD *)v1 + 70) = &off_CBB140;
*((_DWORD *)v1 + 79) = &off_CBB158;
*((_DWORD *)v1 + 83) = &off_CBB198;
*((_DWORD *)v1 + 110) = &off_CBB1A8;
if ( TOSPopup::init(v1) )
{
cocos2d::CCObject::autorelease(v1);
}
else
{
v2 = *(_DWORD *)v1;
v3 = v1;
v1 = nullptr;
(*(void (__fastcall **)(FLAlertLayer *))(v2 + 8))(v3);
}
return v1;
}