//
// LabelGameObject::setupCustomSprites from 0x89a20c to 0x89a32c (288 bytes)
//
// 2 xrefs:
// > ??> @ 0x7f7f8
// > ??> @ 0x144ca18
//
// 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:56:11 +0000
//
__int64 __fastcall LabelGameObject::setupCustomSprites(__int64 a1, char *a2)
{
char v4; // w0
__int64 v5; // x0
__int64 v6; // x1
__int64 v8; // [xsp+30h] [xbp+30h] BYREF
__int64 v9; // [xsp+38h] [xbp+38h]
void *v10; // [xsp+40h] [xbp+40h]
v8 = 0;
v4 = *a2;
v9 = 0;
v10 = nullptr;
if ( (v4 & 1) != 0 )
{
std::string::__init(&v8, *((void **)a2 + 2), *((_QWORD *)a2 + 1));
}
else
{
v5 = *(_QWORD *)a2;
v6 = *((_QWORD *)a2 + 1);
v10 = *((void **)a2 + 2);
v8 = v5;
v9 = v6;
}
GameObject::setupCustomSprites((GameObject *)a1);
if ( (v8 & 1) != 0 )
operator delete(v10);
if ( *(_DWORD *)(a1 + 1028) == 1615 )
{
*(_BYTE *)(a1 + 559) = 1;
v8 = 0;
v9 = 0;
v10 = nullptr;
std::string::__init(&v8, "0", 1u);
LabelGameObject::createLabel(a1, (unsigned __int8 *)&v8);
if ( (v8 & 1) != 0 )
operator delete(v10);
}
return _stack_chk_guard;
}