//
// sub_1003C05CC from 0x1003c05cc to 0x1003c068c (192 bytes)
//
// 1 xrefs:
// > sub_100399DFC @ 0x10039a158
//
// 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:04:02 +0000
//
_OWORD *__fastcall sub_1003C05CC(__int64 a1, __int64 a2)
{
_OWORD *v4; // x19
void *__p[2]; // [xsp+0h] [xbp-40h] BYREF
__int64 v7; // [xsp+10h] [xbp-30h]
v4 = operator new(0x1C0u);
cocos2d::CCNode::CCNode((__int64)v4);
*(_QWORD *)v4 = off_100947FC8;
v4[20] = 0u;
v4[21] = 0u;
v4[22] = 0u;
*((_QWORD *)v4 + 46) = 0;
*((_QWORD *)v4 + 55) = 0;
*(_OWORD *)((char *)v4 + 392) = 0u;
*(_OWORD *)((char *)v4 + 408) = 0u;
*(_OWORD *)((char *)v4 + 424) = 0u;
if ( *(char *)(a2 + 23) < 0 )
{
sub_1000097D0(__p, *(void **)a2, *(_QWORD *)(a2 + 8));
}
else
{
*(_OWORD *)__p = *(_OWORD *)a2;
v7 = *(_QWORD *)(a2 + 16);
}
sub_1003C06B4(v4, a1, __p);
if ( SHIBYTE(v7) < 0 )
operator delete(__p[0]);
cocos2d::CCObject::autorelease((__int64)v4);
return v4;
}