//
// CheckpointGameObject::customObjectSetup from 0x892288 to 0x892438 (432 bytes)
//
// 2 xrefs:
// > ??> @ 0xa0048
// > ??> @ 0x1450b08
//
// 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:08 +0000
//
bool __fastcall CheckpointGameObject::customObjectSetup(__int64 a1, __int64 *a2, __int64 a3)
{
const char *v6; // x0
int v7; // w0
const char *v8; // x0
int v9; // w0
const char *v10; // x0
const char *v11; // x0
const char *v12; // x0
_BOOL8 result; // x0
EffectGameObject::customObjectSetup(a1, a2, a3);
if ( !*(_QWORD *)(*(_QWORD *)a3 + 408LL) )
{
EffectGameObject::setTargetID(a1, 0);
if ( *(_QWORD *)(*(_QWORD *)a3 + 568LL) )
goto LABEL_5;
LABEL_18:
EffectGameObject::setTargetID2(a1, 0);
if ( *(_QWORD *)(*(_QWORD *)a3 + 3584LL) )
goto LABEL_8;
LABEL_19:
*(_DWORD *)(a1 + 1844) = 0;
if ( *(_QWORD *)(*(_QWORD *)a3 + 4832LL) )
goto LABEL_11;
goto LABEL_20;
}
v6 = (const char *)(*a2 + 1225);
if ( (*(_BYTE *)(*a2 + 1224) & 1) != 0 )
v6 = *(const char **)(*a2 + 1240);
v7 = atoi(v6);
EffectGameObject::setTargetID(a1, v7);
if ( !*(_QWORD *)(*(_QWORD *)a3 + 568LL) )
goto LABEL_18;
LABEL_5:
v8 = (const char *)(*a2 + 1705);
if ( (*(_BYTE *)(*a2 + 1704) & 1) != 0 )
v8 = *(const char **)(*a2 + 1720);
v9 = atoi(v8);
EffectGameObject::setTargetID2(a1, v9);
if ( !*(_QWORD *)(*(_QWORD *)a3 + 3584LL) )
goto LABEL_19;
LABEL_8:
v10 = (const char *)(*a2 + 10753);
if ( (*(_BYTE *)(*a2 + 10752) & 1) != 0 )
v10 = *(const char **)(*a2 + 10768);
*(_DWORD *)(a1 + 1844) = atoi(v10);
if ( *(_QWORD *)(*(_QWORD *)a3 + 4832LL) )
{
LABEL_11:
v11 = (const char *)(*a2 + 14497);
if ( (*(_BYTE *)(*a2 + 14496) & 1) != 0 )
v11 = *(const char **)(*a2 + 14512);
*(_DWORD *)(a1 + 1848) = atoi(v11);
if ( *(_QWORD *)(*(_QWORD *)a3 + 1104LL) )
goto LABEL_14;
LABEL_21:
*(_BYTE *)(a1 + 1684) = 0;
return 0;
}
LABEL_20:
*(_DWORD *)(a1 + 1848) = 0;
if ( !*(_QWORD *)(*(_QWORD *)a3 + 1104LL) )
goto LABEL_21;
LABEL_14:
v12 = (const char *)(*a2 + 3313);
if ( (*(_BYTE *)(*a2 + 3312) & 1) != 0 )
v12 = *(const char **)(*a2 + 3328);
result = atoi(v12) != 0;
*(_BYTE *)(a1 + 1684) = result;
return result;
}