//
// GameObject::createGlow from 0x44c578 to 0x44c5d8 (96 bytes)
//
// 2 xrefs:
// > GameObject::addEmptyGlow @ 0x452b8c
// > GameObject::addGlow @ 0x453376
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:48:34 +0000
//
int __fastcall GameObject::createGlow(_DWORD *a1, int a2)
{
cocos2d::CCObject *v3; // r0
cocos2d::CCSprite *v5; // r0
cocos2d::CCObject *v6; // r0
int v7; // r5
void (__fastcall *v8)(int, int); // r6
int v9; // r0
v3 = (cocos2d::CCObject *)a1[160];
if ( v3 )
{
cocos2d::CCObject::release(v3);
(*(void (__fastcall **)(_DWORD))(*(_DWORD *)a1[160] + 268))(a1[160]);
a1[160] = 0;
}
if ( (*(_BYTE *)a2 & 1) != 0 )
v5 = *(cocos2d::CCSprite **)(a2 + 8);
else
v5 = (cocos2d::CCSprite *)(a2 + 1);
v6 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName(v5, (const char *)a2);
a1[160] = v6;
cocos2d::CCObject::retain(v6);
v7 = a1[160];
v8 = *(void (__fastcall **)(int, int))(*(_DWORD *)v7 + 92);
v9 = (*(int (__fastcall **)(_DWORD *))(*a1 + 96))(a1);
v8(v7, v9);
return (*(int (__fastcall **)(_DWORD, int))(*(_DWORD *)a1[160] + 456))(a1[160], 255);
}