//
// GameObject::addInternalGlowChild from 0x1402946f0 to 0x1402947c4 (212 bytes)
//
// 31 xrefs:
// > GameObject::setupCustomSprites @ 0x1402acfc6
// > GameObject::setupCustomSprites @ 0x1402ad1b2
// > GameObject::setupCustomSprites @ 0x1402ad21a
// > GameObject::setupCustomSprites @ 0x1402ad282
// > GameObject::setupCustomSprites @ 0x1402ad406
// > GameObject::setupCustomSprites @ 0x1402ad592
// > GameObject::setupCustomSprites @ 0x1402ad5fa
// > GameObject::setupCustomSprites @ 0x1402ad725
// > GameObject::setupCustomSprites @ 0x1402ad8e2
// > GameObject::setupCustomSprites @ 0x1402adb8d
// > GameObject::setupCustomSprites @ 0x1402adcad
// > GameObject::setupCustomSprites @ 0x1402ae835
// > GameObject::setupCustomSprites @ 0x1402aebc4
// > GameObject::setupCustomSprites @ 0x1402b022b
// > GameObject::setupCustomSprites @ 0x1402b158e
// > GameObject::setupCustomSprites @ 0x1402b2a31
// > GameObject::setupCustomSprites @ 0x1402b30a4
// > GameObject::setupCustomSprites @ 0x1402b321b
// > GameObject::setupCustomSprites @ 0x1402b3291
// > GameObject::setupCustomSprites @ 0x1402b3432
// > GameObject::setupCustomSprites @ 0x1402b349a
// > GameObject::setupCustomSprites @ 0x1402b3502
// > GameObject::setupCustomSprites @ 0x1402b35d4
// > GameObject::setupCustomSprites @ 0x1402b3761
// > GameObject::setupCustomSprites @ 0x1402b37c5
// > GameObject::setupCustomSprites @ 0x1402b3829
// > GameObject::setupCustomSprites @ 0x1402b7c15
// > GameObject::setupCustomSprites @ 0x1402b7c59
// > GameObject::setupCustomSprites @ 0x1402b9eb5
// > GameObject::setupCustomSprites @ 0x1402bac87
// > ??> @ 0x14091d3b4
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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:29:10 +0000
//
// Hidden C++ exception states: #wind=1
struct cocos2d::CCSprite *__fastcall GameObject::addInternalGlowChild(__int64 a1, const char *a2, __int64 a3)
{
__int64 v6; // rcx
const char *v8; // rcx
struct cocos2d::CCSprite *v9; // rbx
_BYTE v10[8]; // [rsp+20h] [rbp-38h] BYREF
_BYTE v11[8]; // [rsp+28h] [rbp-30h] BYREF
const char *v12; // [rsp+30h] [rbp-28h]
v12 = a2;
v6 = *(_QWORD *)(a1 + 752);
if ( v6 )
{
cocos2d::CCNode::convertToNodeSpace(v6, v10, &unk_14090A8F0);
v8 = a2;
if ( *((_QWORD *)a2 + 3) > 0xFu )
v8 = *(const char **)a2;
v9 = cocos2d::CCSprite::createWithSpriteFrameName(v8);
cocos2d::CCPoint::operator+(v10, v11, a3);
(*(void (__fastcall **)(struct cocos2d::CCSprite *, _BYTE *))(*(_QWORD *)v9 + 184LL))(v9, v11);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *, __int64))(**(_QWORD **)(a1 + 752) + 456LL))(
*(_QWORD *)(a1 + 752),
v9,
0xFFFFFFFFLL);
sub_14003D310((__int64)a2);
return v9;
}
else
{
sub_14003D310((__int64)a2);
return nullptr;
}
}