//
// GameObject::createGlow from 0x14018e6d0 to 0x14018e7ab (219 bytes)
//
// 3 xrefs:
// > GameObject::addGlow @ 0x14018e215
// > GameObject::addEmptyGlow @ 0x14018e6af
// > ??> @ 0x1406cb8c8
//
// 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
//
// Hidden C++ exception states: #wind=1
void __fastcall GameObject::createGlow(_QWORD *a1, const char *a2)
{
cocos2d::CCObject *v4; // rcx
const char *v5; // rcx
struct cocos2d::CCSprite *v6; // rax
__int64 v7; // rbx
__int64 v8; // rax
__int64 v9; // rdx
v4 = (cocos2d::CCObject *)a1[94];
if ( v4 )
{
cocos2d::CCObject::release(v4);
(*(void (__fastcall **)(_QWORD))(*(_QWORD *)a1[94] + 512LL))(a1[94]);
a1[94] = 0;
}
v5 = a2;
if ( *((_QWORD *)a2 + 3) > 0xFu )
v5 = *(const char **)a2;
v6 = cocos2d::CCSprite::createWithSpriteFrameName(v5);
a1[94] = v6;
cocos2d::CCObject::retain(v6);
v7 = *(_QWORD *)a1[94];
v8 = (*(__int64 (__fastcall **)(_QWORD *))(*a1 + 200LL))(a1);
(*(void (__fastcall **)(_QWORD, __int64))(v7 + 184))(a1[94], v8);
LOBYTE(v9) = -1;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)(a1[94] + 320LL) + 40LL))(a1[94] + 320LL, v9);
sub_14003A830((__int64)a2);
}