//
// ProgressGameObject::customObjectSetup from 0x894f4c to 0x8950f0 (420 bytes)
//
// 2 xrefs:
// > ??> @ 0xb9ae8
// > ??> @ 0x14573d8
//
// 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:09 +0000
//
__int64 __fastcall ProgressGameObject::customObjectSetup(__int64 a1, __int64 *a2, __int64 a3)
{
const char *v6; // x0
const char *v7; // x0
const char *v8; // x0
const char *v9; // x0
const char *v10; // x0
__int64 result; // x0
EffectGameObject::customObjectSetup(a1, a2, a3);
if ( !*(_QWORD *)(*(_QWORD *)a3 + 4816LL) )
{
*(_DWORD *)(a1 + 1840) = 0;
if ( *(_QWORD *)(*(_QWORD *)a3 + 4824LL) )
goto LABEL_5;
LABEL_18:
*(_BYTE *)(a1 + 1844) = 0;
if ( *(_QWORD *)(*(_QWORD *)a3 + 4840LL) )
goto LABEL_8;
LABEL_19:
*(_BYTE *)(a1 + 1845) = 0;
if ( *(_QWORD *)(*(_QWORD *)a3 + 640LL) )
goto LABEL_11;
goto LABEL_20;
}
v6 = (const char *)(*a2 + 14449);
if ( (*(_BYTE *)(*a2 + 14448) & 1) != 0 )
v6 = *(const char **)(*a2 + 14464);
*(_DWORD *)(a1 + 1840) = atoi(v6);
if ( !*(_QWORD *)(*(_QWORD *)a3 + 4824LL) )
goto LABEL_18;
LABEL_5:
v7 = (const char *)(*a2 + 14473);
if ( (*(_BYTE *)(*a2 + 14472) & 1) != 0 )
v7 = *(const char **)(*a2 + 14488);
*(_BYTE *)(a1 + 1844) = atoi(v7) != 0;
if ( !*(_QWORD *)(*(_QWORD *)a3 + 4840LL) )
goto LABEL_19;
LABEL_8:
v8 = (const char *)(*a2 + 14521);
if ( (*(_BYTE *)(*a2 + 14520) & 1) != 0 )
v8 = *(const char **)(*a2 + 14536);
*(_BYTE *)(a1 + 1845) = atoi(v8) != 0;
if ( *(_QWORD *)(*(_QWORD *)a3 + 640LL) )
{
LABEL_11:
v9 = (const char *)(*a2 + 1921);
if ( (*(_BYTE *)(*a2 + 1920) & 1) != 0 )
v9 = *(const char **)(*a2 + 1936);
*(_DWORD *)(a1 + 1680) = atoi(v9);
if ( *(_QWORD *)(*(_QWORD *)a3 + 760LL) )
goto LABEL_14;
LABEL_21:
*(_DWORD *)(a1 + 1668) = 0;
return 0;
}
LABEL_20:
*(_DWORD *)(a1 + 1680) = 0;
if ( !*(_QWORD *)(*(_QWORD *)a3 + 760LL) )
goto LABEL_21;
LABEL_14:
v10 = (const char *)(*a2 + 2281);
if ( (*(_BYTE *)(*a2 + 2280) & 1) != 0 )
v10 = *(const char **)(*a2 + 2296);
result = atoi(v10);
*(_DWORD *)(a1 + 1668) = result;
return result;
}