//
// sub_1004C2BB8 from 0x1004c2bb8 to 0x1004c2c6c (180 bytes)
//
// 2 xrefs:
// > sub_1004C285C @ 0x1004c2974
// > sub_1004E7FB8 @ 0x1004e8120
//
// 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:21 +0000
//
void *__fastcall sub_1004C2BB8(__int64 a1, double *a2, __int64 a3, __int64 a4, __int64 a5, __int64 a6)
{
void *v12; // x19
double v13; // d0
__int64 v15; // [xsp+8h] [xbp-48h] BYREF
v12 = operator new(0x3A8u);
sub_1004C3C7C();
v13 = sub_1000262F4(&v15, a2);
if ( (unsigned int)sub_1004C2E30(v12, a1, &v15, a3, a4, a5, a6, v13) )
{
cocos2d::CCObject::autorelease((__int64)v12);
}
else
{
(*(void (__fastcall **)(void *))(*(_QWORD *)v12 + 16LL))(v12);
return nullptr;
}
return v12;
}