//
// GameObject::createGlow from 0x1002552e0 to 0x100255374 (148 bytes)
//
// 2 xrefs:
// > GameObject::addGlow @ 0x100255040
// > GameObject::addEmptyGlow @ 0x1002553a0
//
// 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 *v4; // x0
cocos2d::CCSprite *v5; // x0
__int64 v6; // x20
__int64 v7; // x0
v4 = (cocos2d::CCObject *)a1[94];
if ( v4 )
{
cocos2d::CCObject::release(v4);
(*(void (__fastcall **)(_QWORD))(*(_QWORD *)a1[94] + 520LL))(a1[94]);
a1[94] = 0;
}
if ( a2[23] < 0 )
a2 = *(const char **)a2;
v5 = cocos2d::CCSprite::createWithSpriteFrameName(a2);
a1[94] = v5;
cocos2d::CCObject::retain(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] + 896LL))(a1[94], 255);
}