//
// sub_10051E860 from 0x10051e860 to 0x10051e940 (224 bytes)
//
// 1 xrefs:
// > sub_10002BE60 @ 0x10002beb0
//
// 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:07:10 +0000
//
char *__fastcall sub_10051E860(__int64 a1, __int64 a2)
{
char *v4; // x19
v4 = (char *)operator new(0x300u);
FLAlertLayer::FLAlertLayer((__int64)v4);
*(_QWORD *)v4 = off_10099E378;
*((_QWORD *)v4 + 40) = off_10099E8E0;
*((_QWORD *)v4 + 41) = &off_10099E950;
*((_QWORD *)v4 + 42) = off_10099E968;
*((_QWORD *)v4 + 43) = off_10099E988;
*((_QWORD *)v4 + 44) = off_10099E9B0;
*((_QWORD *)v4 + 51) = off_10099E9E0;
*((_QWORD *)v4 + 54) = off_10099EA60;
*((_QWORD *)v4 + 68) = off_10099EA80;
*((_QWORD *)v4 + 83) = &off_10099EAC8;
*((_QWORD *)v4 + 84) = off_10099EAE0;
v4[680] = 0;
*((_OWORD *)v4 + 43) = 0u;
*((_OWORD *)v4 + 44) = 0u;
v4[720] = 0;
*((_QWORD *)v4 + 95) = 0;
*(_OWORD *)(v4 + 728) = 0u;
*(_OWORD *)(v4 + 744) = 0u;
if ( (unsigned int)sub_10051E954(v4, a1, a2) )
{
cocos2d::CCObject::autorelease((__int64)v4);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v4 + 16LL))(v4);
return nullptr;
}
return v4;
}