//
// sub_1004D8AD0 from 0x1004d8ad0 to 0x1004d8b90 (192 bytes)
//
// 1 xrefs:
// > sub_1004D7A9C @ 0x1004d7aa4
//
// 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:06:32 +0000
//
void *__fastcall sub_1004D8AD0(__int64 a1)
{
void *v2; // x19
v2 = operator new(0x2B0u);
bzero(v2, 0x2B0u);
FLAlertLayer::FLAlertLayer((__int64)v2);
*(_QWORD *)v2 = &off_10098AE80;
*((_QWORD *)v2 + 40) = off_10098B3D8;
*((_QWORD *)v2 + 41) = &off_10098B448;
*((_QWORD *)v2 + 42) = off_10098B460;
*((_QWORD *)v2 + 43) = off_10098B480;
*((_QWORD *)v2 + 44) = off_10098B4A8;
*((_QWORD *)v2 + 51) = off_10098B4D8;
*((_QWORD *)v2 + 54) = off_10098B558;
*((_QWORD *)v2 + 68) = off_10098B578;
*((_QWORD *)v2 + 83) = &off_10098B5C0;
*((_QWORD *)v2 + 84) = 0;
*((_BYTE *)v2 + 680) = 0;
if ( (unsigned int)sub_1004D8BA4(v2, a1) )
{
cocos2d::CCObject::autorelease((__int64)v2);
}
else
{
(*(void (__fastcall **)(void *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return v2;
}