//
// GameObject::addEmptyGlow from 0x1005a4820 to 0x1005a48f8 (216 bytes)
//
// 2 xrefs:
// > GameObject::setupCustomSprites @ 0x1004468ae
// > GameObject::setupCustomSprites @ 0x100446bec
//
// 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
//
void __fastcall GameObject::addEmptyGlow(GameObject *a1)
{
cocos2d::CCSprite *m_glowSprite; // rdi
cocos2d::CCSprite *v3; // rax
cocos2d::CCSprite *v4; // r14
__int64 v5; // rax
cocos2d::CCSprite *v6; // rax
char v7[15]; // [rsp+9h] [rbp-27h] BYREF
strcpy(v7, "emptyGlow.png");
m_glowSprite = a1->m_glowSprite;
if ( m_glowSprite )
{
cocos2d::CCObject::release(m_glowSprite);
((void (__fastcall *)(cocos2d::CCSprite *))a1->m_glowSprite->removeMeAndCleanup)(a1->m_glowSprite);
a1->m_glowSprite = nullptr;
}
v3 = cocos2d::CCSprite::createWithSpriteFrameName(v7);
a1->m_glowSprite = v3;
cocos2d::CCObject::retain(v3);
v4 = a1->m_glowSprite;
v5 = ((__int64 (__fastcall *)(GameObject *))a1->getPosition)(a1);
((void (__fastcall *)(cocos2d::CCSprite *, __int64))v4->setPosition)(v4, v5);
((void (__fastcall *)(cocos2d::CCSprite *, __int64))a1->m_glowSprite->setOpacity)(a1->m_glowSprite, 255);
v6 = a1->m_glowSprite;
if ( v6 )
v6->m_bDontDraw = 1;
}