//
// sub_1002CFA20 from 0x1002cfa20 to 0x1002cfacc (172 bytes)
//
// 1 xrefs:
// > GauntletLayer::setupGauntlet @ 0x1002ced7c
//
// 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:02:37 +0000
//
_OWORD *__fastcall sub_1002CFA20(__int64 a1, __int64 a2)
{
_OWORD *v4; // x19
v4 = operator new(0x140u);
*v4 = 0u;
v4[1] = 0u;
v4[2] = 0u;
v4[3] = 0u;
v4[4] = 0u;
v4[5] = 0u;
v4[6] = 0u;
v4[7] = 0u;
v4[8] = 0u;
v4[9] = 0u;
v4[10] = 0u;
v4[11] = 0u;
v4[12] = 0u;
v4[13] = 0u;
v4[14] = 0u;
v4[15] = 0u;
v4[16] = 0u;
v4[17] = 0u;
v4[18] = 0u;
v4[19] = 0u;
cocos2d::CCNode::CCNode();
*(_QWORD *)v4 = &off_10091F570;
if ( (unsigned int)sub_1002CFF28(v4, a1, a2) )
{
cocos2d::CCObject::autorelease((__int64)v4);
}
else
{
(*(void (__fastcall **)(_OWORD *))(*(_QWORD *)v4 + 16LL))(v4);
return nullptr;
}
return v4;
}