//
// GameObject::createGlow from 0x1005a4780 to 0x1005a481d (157 bytes)
//
// 0 xrefs:
//
// 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, __int64 a2)
{
cocos2d::CCObject *v3; // rdi
const char *v4; // r14
cocos2d::CCSprite *v5; // rax
__int64 v6; // r14
__int64 v7; // rax
v3 = (cocos2d::CCObject *)a1[94];
if ( v3 )
{
cocos2d::CCObject::release(v3);
(*(void (__fastcall **)(_QWORD))(*(_QWORD *)a1[94] + 520LL))(a1[94]);
a1[94] = 0;
}
if ( (*(_BYTE *)a2 & 1) != 0 )
v4 = *(const char **)(a2 + 16);
else
v4 = (const char *)(a2 + 1);
v5 = cocos2d::CCSprite::createWithSpriteFrameName(v4);
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);
}