//
// LabelGameObject::customObjectSetup from 0x4e8b28 to 0x4e8c24 (252 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:51:07 +0000
//
int __fastcall LabelGameObject::customObjectSetup(int a1, int *a2, int a3)
{
int v6; // r0
int v7; // r0
const char *v8; // r0
int v9; // r0
const char *v10; // r0
int v11; // r0
const char *v12; // r0
int v13; // r3
void (__fastcall *v14)(int, int); // r7
int v15; // r1
const char *v16; // r0
int v17; // r1
const char *v18; // r0
int result; // r0
const char *v20; // r0
v6 = *(_DWORD *)(*(_DWORD *)a3 + 320);
if ( v6 )
{
v7 = *a2;
if ( (*(_BYTE *)(*a2 + 960) & 1) != 0 )
v8 = *(const char **)(v7 + 968);
else
v8 = (const char *)(v7 + 961);
v6 = atoi(v8);
}
*(_DWORD *)(a1 + 1500) = v6;
v9 = *(_DWORD *)(*(_DWORD *)a3 + 1556);
if ( v9 )
{
if ( (*(_BYTE *)(*a2 + 4668) & 1) != 0 )
v10 = *(const char **)(*a2 + 4676);
else
v10 = (const char *)(*a2 + 4669);
LOBYTE(v9) = atoi(v10) != 0;
}
*(_BYTE *)(a1 + 1676) = v9;
v11 = *(_DWORD *)(*(_DWORD *)a3 + 1560);
if ( v11 )
{
if ( (*(_BYTE *)(*a2 + 4680) & 1) != 0 )
v12 = *(const char **)(*a2 + 4688);
else
v12 = (const char *)(*a2 + 4681);
v11 = atoi(v12);
}
v13 = *(_DWORD *)a1;
*(_DWORD *)(a1 + 1680) = v11;
v14 = *(void (__fastcall **)(int, int))(v13 + 876);
v15 = *(_DWORD *)(*(_DWORD *)a3 + 1952);
if ( v15 )
{
if ( (*(_BYTE *)(*a2 + 5856) & 1) != 0 )
v16 = *(const char **)(*a2 + 5864);
else
v16 = (const char *)(*a2 + 5857);
v15 = atoi(v16);
}
v14(a1, v15);
v17 = *(_DWORD *)(*(_DWORD *)a3 + 1564);
if ( v17 )
{
if ( (*(_BYTE *)(*a2 + 4692) & 1) != 0 )
v18 = *(const char **)(*a2 + 4700);
else
v18 = (const char *)(*a2 + 4693);
v17 = atoi(v18);
}
LabelGameObject::updateLabelAlign(a1, v17);
result = *(_DWORD *)(*(_DWORD *)a3 + 1864);
if ( result )
{
if ( (*(_BYTE *)(*a2 + 5592) & 1) != 0 )
v20 = *(const char **)(*a2 + 5600);
else
v20 = (const char *)(*a2 + 5593);
result = atoi(v20) != 0;
}
*(_BYTE *)(a1 + 1684) = result;
return result;
}