//
// GameObject::createGlow from 0x353cc8 to 0x353d20 (88 bytes)
//
// 2 xrefs:
// > GameObject::addGlow @ 0x353d98
// > GameObject::addEmptyGlow @ 0x354158
//
// 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
//
int __fastcall GameObject::createGlow(_DWORD *a1, const char **a2)
{
cocos2d::CCObject *v3; // r0
cocos2d::CCSprite *v5; // r0
int v6; // r5
void (__fastcall *v7)(int, int); // r6
int v8; // r0
v3 = (cocos2d::CCObject *)a1[160];
if ( v3 )
{
cocos2d::CCObject::release(v3);
(*(void (__fastcall **)(_DWORD))(*(_DWORD *)a1[160] + 260))(a1[160]);
a1[160] = 0;
}
v5 = cocos2d::CCSprite::createWithSpriteFrameName(*a2);
a1[160] = v5;
cocos2d::CCObject::retain(v5);
v6 = a1[160];
v7 = *(void (__fastcall **)(int, int))(*(_DWORD *)v6 + 92);
v8 = (*(int (__fastcall **)(_DWORD *))(*a1 + 96))(a1);
v7(v6, v8);
return (*(int (__fastcall **)(_DWORD, int))(*(_DWORD *)a1[160] + 448))(a1[160], 255);
}