//
// GameObject::addInternalGlowChild from 0x140197580 to 0x14019764e (206 bytes)
//
// 31 xrefs:
// > GameObject::setupCustomSprites @ 0x1401af33e
// > GameObject::setupCustomSprites @ 0x1401af51e
// > GameObject::setupCustomSprites @ 0x1401af583
// > GameObject::setupCustomSprites @ 0x1401af5e8
// > GameObject::setupCustomSprites @ 0x1401af766
// > GameObject::setupCustomSprites @ 0x1401af8e9
// > GameObject::setupCustomSprites @ 0x1401af94e
// > GameObject::setupCustomSprites @ 0x1401afa73
// > GameObject::setupCustomSprites @ 0x1401afc1e
// > GameObject::setupCustomSprites @ 0x1401afec3
// > GameObject::setupCustomSprites @ 0x1401affdd
// > GameObject::setupCustomSprites @ 0x1401b0b38
// > GameObject::setupCustomSprites @ 0x1401b0eb5
// > GameObject::setupCustomSprites @ 0x1401b246b
// > GameObject::setupCustomSprites @ 0x1401b354a
// > GameObject::setupCustomSprites @ 0x1401b4955
// > GameObject::setupCustomSprites @ 0x1401b4f7c
// > GameObject::setupCustomSprites @ 0x1401b50e4
// > GameObject::setupCustomSprites @ 0x1401b5154
// > GameObject::setupCustomSprites @ 0x1401b52e9
// > GameObject::setupCustomSprites @ 0x1401b534e
// > GameObject::setupCustomSprites @ 0x1401b53b3
// > GameObject::setupCustomSprites @ 0x1401b547f
// > GameObject::setupCustomSprites @ 0x1401b5600
// > GameObject::setupCustomSprites @ 0x1401b5661
// > GameObject::setupCustomSprites @ 0x1401b56c2
// > GameObject::setupCustomSprites @ 0x1401b9a59
// > GameObject::setupCustomSprites @ 0x1401b9a9d
// > GameObject::setupCustomSprites @ 0x1401bbc20
// > GameObject::setupCustomSprites @ 0x1401bc988
// > ??> @ 0x1406cba48
//
// 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
struct cocos2d::CCSprite *__fastcall GameObject::addInternalGlowChild(__int64 a1, const char *a2)
{
cocos2d::CCNode *v4; // rcx
const char *v6; // rcx
struct cocos2d::CCSprite *v7; // rbx
struct cocos2d::CCPoint v8; // [rsp+20h] [rbp-38h] BYREF
cocos2d::CCPoint v9; // [rsp+28h] [rbp-30h] BYREF
const char *v10; // [rsp+30h] [rbp-28h]
v10 = a2;
v4 = *(cocos2d::CCNode **)(a1 + 752);
if ( v4 )
{
cocos2d::CCNode::convertToNodeSpace(v4, &v8);
v6 = a2;
if ( *((_QWORD *)a2 + 3) > 0xFu )
v6 = *(const char **)a2;
v7 = cocos2d::CCSprite::createWithSpriteFrameName(v6);
cocos2d::CCPoint::operator+(&v8, &v9);
v7->setPosition_0(v7, &v9);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *, __int64))(**(_QWORD **)(a1 + 752) + 440LL))(
*(_QWORD *)(a1 + 752),
v7,
0xFFFFFFFFLL);
sub_14003A830((__int64)a2);
return v7;
}
else
{
sub_14003A830((__int64)a2);
return nullptr;
}
}