//
// sub_1004DF804 from 0x1004df804 to 0x1004df8f0 (236 bytes)
//
// 1 xrefs:
// > sub_1004E7A48 @ 0x1004e7ac8
//
// 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:36 +0000
//
_QWORD *__fastcall sub_1004DF804(__int64 a1, __int64 a2, __int64 a3)
{
_QWORD *v6; // x19
v6 = operator new(0x310u);
FLAlertLayer::FLAlertLayer((__int64)v6);
*v6 = off_1009925A8;
v6[40] = off_100992B20;
v6[41] = &off_100992B90;
v6[42] = off_100992BA8;
v6[43] = off_100992BC8;
v6[44] = off_100992BF0;
v6[51] = off_100992C20;
v6[54] = off_100992CA0;
v6[68] = off_100992CC0;
v6[83] = off_100992D08;
v6[93] = 0;
*((_OWORD *)v6 + 42) = 0u;
*((_OWORD *)v6 + 43) = 0u;
*((_OWORD *)v6 + 44) = 0u;
*((_OWORD *)v6 + 45) = 0u;
*((_DWORD *)v6 + 184) = 0;
*((_DWORD *)v6 + 188) = -1;
v6[95] = 0;
v6[97] = 0;
v6[96] = 0;
if ( (unsigned int)sub_1004DF904(v6, a1, a2, a3) )
{
cocos2d::CCObject::autorelease((__int64)v6);
}
else
{
(*(void (__fastcall **)(_QWORD *))(*v6 + 16LL))(v6);
return nullptr;
}
return v6;
}