//
// GameObject::createGlow from 0x642278 to 0x642318 (160 bytes)
//
// 3 xrefs:
// > GameObject::addGlow @ 0x64244c
// > GameObject::addEmptyGlow @ 0x642a64
// > ??> @ 0x55260
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall GameObject::createGlow(_QWORD *a1, const char **a2)
{
cocos2d::CCObject *v3; // x0
cocos2d::CCSprite *v4; // x0
__int64 v5; // x20
void (__fastcall *v6)(__int64, __int64); // x21
__int64 v7; // x0
char *v9; // [xsp+38h] [xbp+38h]
v3 = (cocos2d::CCObject *)a1[94];
if ( v3 )
{
v9 = (char *)a2;
cocos2d::CCObject::release(v3);
(*(void (__fastcall **)(_QWORD))(*(_QWORD *)a1[94] + 520LL))(a1[94]);
a1[94] = 0;
a2 = (const char **)v9;
}
v4 = cocos2d::CCSprite::createWithSpriteFrameName(*a2);
a1[94] = v4;
cocos2d::CCObject::retain(v4);
v5 = a1[94];
v6 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 184LL);
v7 = (*(__int64 (__fastcall **)(_QWORD *))(*a1 + 192LL))(a1);
v6(v5, v7);
return (*(__int64 (__fastcall **)(_QWORD, __int64))(*(_QWORD *)a1[94] + 896LL))(a1[94], 0xFFFFFFFFLL);
}