//
// sub_10051FF74 from 0x10051ff74 to 0x10051ffd4 (96 bytes)
//
// 8 xrefs:
// > sub_100520844 @ 0x100520944
// > sub_100520A38 @ 0x100520b94
// > sub_100520C2C @ 0x100520d80
// > sub_100520E18 @ 0x100520f5c
// > sub_100520FF4 @ 0x1005211b8
// > sub_100521280 @ 0x100521430
// > sub_1005214D4 @ 0x1005216bc
// > sub_10052176C @ 0x100521878
//
// 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:11 +0000
//
void *__fastcall sub_10051FF74(__int64 a1)
{
void *v2; // x19
v2 = operator new(0x490u);
sub_100522D44();
if ( (unsigned int)sub_10051FFE8(v2, a1) )
{
cocos2d::CCObject::autorelease((__int64)v2);
}
else
{
(*(void (__fastcall **)(void *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return v2;
}