//
// GameObject::addCustomBlackChild from 0x452a9c to 0x452b52 (182 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:48:37 +0000
//
int __fastcall GameObject::addCustomBlackChild(int a1, int a2, float a3, int a4)
{
int v6; // r5
_BYTE v8[8]; // [sp+8h] [bp-1Ch] BYREF
int v9[3]; // [sp+10h] [bp-14h] BYREF
if ( a4 )
{
std::string::basic_string(v9, a2);
v6 = GameObject::addCustomColorChild((GameObject *)a1, (int)v9);
std::string::~string((int)v9);
}
else
{
std::string::basic_string(v9, a2);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, (const cocos2d::CCPoint *)&unk_D2B868);
v6 = GameObject::addCustomChild((cocos2d::CCPoint *)a1, (int)v9, (int)v8, -2);
std::string::~string((int)v9);
(*(void (__fastcall **)(int, void *))(*(_DWORD *)v6 + 480))(v6, &unk_BEBC04);
*(float *)(a1 + 544) = a3;
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v6 + 456))(v6, (unsigned __int8)(unsigned int)(float)(a3 * 255.0));
*(_BYTE *)(a1 + 540) = 1;
}
return v6;
}