//
// CheckpointGameObject::customObjectSetup from 0x14065bed0 to 0x14065c02a (346 bytes)
//
// 2 xrefs:
// > ??> @ 0x1408241e0
// > ??> @ 0x140931964
//
// This function is hookable on this platform (idp: pc, 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 11:35:46 +0000
//
bool __fastcall CheckpointGameObject::customObjectSetup(__int64 a1, __int64 a2, __int64 a3)
{
int v6; // ebp
int v7; // ebx
int v8; // eax
const char *v9; // rcx
int v10; // eax
const char *v11; // rcx
int v12; // eax
const char *v13; // rcx
int v14; // eax
const char *v15; // rcx
const char *v16; // rcx
EffectGameObject::customObjectSetup(a1, a2, a3);
v6 = 9999;
if ( *(_QWORD *)(*(_QWORD *)a3 + 408LL) )
{
v9 = (const char *)(*(_QWORD *)a2 + 1632LL);
if ( *(_QWORD *)(*(_QWORD *)a2 + 1656LL) > 0xFu )
v9 = *(const char **)v9;
v8 = atoi(v9);
v7 = 0;
if ( v8 < 0 )
v8 = 0;
if ( v8 > 9999 )
v8 = 9999;
}
else
{
v7 = 0;
v8 = 0;
}
*(_DWORD *)(a1 + 1480) = v8;
if ( !*(_QWORD *)(*(_QWORD *)a3 + 568LL) )
{
v10 = 0;
LABEL_16:
v6 = v10;
goto LABEL_17;
}
v11 = (const char *)(*(_QWORD *)a2 + 2272LL);
if ( *(_QWORD *)(*(_QWORD *)a2 + 2296LL) > 0xFu )
v11 = *(const char **)v11;
v10 = atoi(v11);
if ( v10 < 0 )
v10 = 0;
if ( v10 <= 9999 )
goto LABEL_16;
LABEL_17:
*(_DWORD *)(a1 + 1484) = v6;
if ( *(_QWORD *)(*(_QWORD *)a3 + 3584LL) )
{
v13 = (const char *)(*(_QWORD *)a2 + 14336LL);
if ( *(_QWORD *)(*(_QWORD *)a2 + 14360LL) > 0xFu )
v13 = *(const char **)v13;
v12 = atoi(v13);
}
else
{
v12 = 0;
}
*(_DWORD *)(a1 + 1860) = v12;
if ( *(_QWORD *)(*(_QWORD *)a3 + 4832LL) )
{
v15 = (const char *)(*(_QWORD *)a2 + 19328LL);
if ( *(_QWORD *)(*(_QWORD *)a2 + 19352LL) > 0xFu )
v15 = *(const char **)v15;
v14 = atoi(v15);
}
else
{
v14 = 0;
}
*(_DWORD *)(a1 + 1864) = v14;
if ( *(_QWORD *)(*(_QWORD *)a3 + 1104LL) )
{
v16 = (const char *)(*(_QWORD *)a2 + 4416LL);
if ( *(_QWORD *)(*(_QWORD *)a2 + 4440LL) > 0xFu )
v16 = *(const char **)v16;
v7 = atoi(v16);
}
*(_BYTE *)(a1 + 1700) = v7 != 0;
return v7 != 0;
}