//
// sub_1004F6E14 from 0x1004f6e14 to 0x1004f6e8c (120 bytes)
//
// 3 xrefs:
// > sub_10037A100 @ 0x10037a22c
// > sub_1004F5114 @ 0x1004f5150
// > sub_10050C6F4 @ 0x10050c748
//
// 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:48 +0000
//
void *__fastcall sub_1004F6E14(__int64 a1, __int64 a2, __int64 a3)
{
void *v6; // x19
v6 = operator new(0x3A8u);
sub_10051585C();
if ( (unsigned int)sub_100508F28(v6, a1, a2, a3) )
{
cocos2d::CCObject::autorelease((__int64)v6);
}
else
{
(*(void (__fastcall **)(void *))(*(_QWORD *)v6 + 16LL))(v6);
return nullptr;
}
return v6;
}