//
// GameObject::addCustomBlackChild from 0x775738 to 0x7758cc (404 bytes)
//
// 1 xrefs:
// > ??> @ 0x494f8
//
// This function is hookable on this platform (idp: arm, 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 12:53:14 +0000
//
__int64 __fastcall GameObject::addCustomBlackChild(GameObject *this, char *a2, char a3, float a4)
{
char v7; // w0
__int64 v8; // x0
__int64 v9; // x1
__int64 v10; // x20
__int64 v11; // x0
__int64 v12; // x1
_BYTE v14[8]; // [xsp+48h] [xbp+48h] BYREF
__int64 v15; // [xsp+50h] [xbp+50h] BYREF
__int64 v16; // [xsp+58h] [xbp+58h]
void *v17; // [xsp+60h] [xbp+60h]
v7 = *a2;
v15 = 0;
v16 = 0;
v17 = nullptr;
if ( a3 )
{
if ( (v7 & 1) != 0 )
{
std::string::__init(&v15, *((void **)a2 + 2), *((_QWORD *)a2 + 1));
}
else
{
v11 = *(_QWORD *)a2;
v12 = *((_QWORD *)a2 + 1);
v17 = *((void **)a2 + 2);
v15 = v11;
v16 = v12;
}
v10 = GameObject::addCustomColorChild(this, (unsigned __int8 *)&v15);
if ( (v15 & 1) != 0 )
operator delete(v17);
}
else
{
if ( (v7 & 1) != 0 )
{
std::string::__init(&v15, *((void **)a2 + 2), *((_QWORD *)a2 + 1));
}
else
{
v8 = *(_QWORD *)a2;
v9 = *((_QWORD *)a2 + 1);
v17 = *((void **)a2 + 2);
v15 = v8;
v16 = v9;
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, (const cocos2d::CCPoint *)&unk_155C668);
v10 = GameObject::addCustomChild(this, (unsigned __int8 *)&v15, (__int64)v14, 0xFFFFFFFE);
if ( (v15 & 1) != 0 )
operator delete(v17);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v10 + 960LL))(v10, &unk_1141618);
*((float *)this + 161) = a4;
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v10 + 912LL))(v10, (unsigned int)(float)(a4 * 255.0));
*((_BYTE *)this + 640) = 1;
}
return v10;
}