//
// sub_1002F24D4 from 0x1002f24d4 to 0x1002f2568 (148 bytes)
//
// 2 xrefs:
// > GameObject::addGlow @ 0x1002f2234
// > sub_1002F2568 @ 0x1002f2594
//
// 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:56 +0000
//
__int64 __fastcall sub_1002F24D4(_QWORD *a1, __int64 a2)
{
_DWORD *v4; // x0
void *v5; // x0
__int64 v6; // x20
__int64 v7; // x0
v4 = (_DWORD *)a1[94];
if ( v4 )
{
cocos2d::CCObject::release(v4);
(*(void (__fastcall **)(_QWORD))(*(_QWORD *)a1[94] + 536LL))(a1[94]);
a1[94] = 0;
}
if ( *(char *)(a2 + 23) < 0 )
a2 = *(_QWORD *)a2;
v5 = cocos2d::CCSprite::createWithSpriteFrameName(a2);
a1[94] = v5;
cocos2d::CCObject::retain((__int64)v5);
v6 = a1[94];
v7 = (*(__int64 (__fastcall **)(_QWORD *))(*a1 + 192LL))(a1);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 184LL))(v6, v7);
return (*(__int64 (__fastcall **)(_QWORD, __int64))(*(_QWORD *)a1[94] + 912LL))(a1[94], 255);
}