//
// sub_1002CFFA4 from 0x1002cffa4 to 0x1002d006c (200 bytes)
//
// 2 xrefs:
// > sub_1002CFB24 @ 0x1002cfb80
// > sub_1002CFEDC @ 0x1002cff18
//
// 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
//
void __fastcall sub_1002CFFA4(int *a1)
{
void **v2; // x0
__int64 v3; // x19
float v4; // s8
__int64 v5; // x0
float v6; // [xsp+0h] [xbp-40h] BYREF
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v8; // [xsp+1Fh] [xbp-21h]
GauntletNode::frameForType(a1[79], __p);
if ( v8 >= 0 )
v2 = __p;
else
v2 = (void **)__p[0];
v3 = cocos2d::CCSprite::createWithSpriteFrameName(v2);
(*(void (__fastcall **)(int *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v3);
v4 = *(float *)(*(__int64 (__fastcall **)(int *))(*(_QWORD *)a1 + 328LL))(a1);
v5 = (*(__int64 (__fastcall **)(int *))(*(_QWORD *)a1 + 328LL))(a1);
sub_1000262BC(&v6, v4 * 0.5, *(float *)(v5 + 4) * 0.5);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v3 + 184LL))(v3, &v6);
if ( v8 < 0 )
operator delete(__p[0]);
}