//
// CheckpointGameObject::customObjectSetup from 0x100436f88 to 0x1004370c4 (316 bytes)
//
// 1 xrefs:
// > ??> @ 0x10095a430
//
// 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 11:05:08 +0000
//
__int64 __fastcall CheckpointGameObject::customObjectSetup(__int64 a1, __int64 a2, _QWORD *a3)
{
_QWORD *v6; // x21
const char *v7; // x0
int v8; // w0
int v9; // w8
const char *v10; // x0
int v11; // w0
int v12; // w8
const char *v13; // x0
int v14; // w0
const char *v15; // x0
__int64 result; // x0
__int64 v17; // x8
const char *v18; // x0
EffectGameObject::customObjectSetup(a1, a2, (__int64)a3);
v6 = (_QWORD *)*a3;
if ( v6[51] )
{
v7 = (const char *)(*(_QWORD *)a2 + 1224LL);
if ( *(char *)(*(_QWORD *)a2 + 1247LL) < 0 )
v7 = *(const char **)v7;
v8 = atoi(v7);
}
else
{
v8 = 0;
}
v9 = v8 & ~(v8 >> 31);
if ( v9 >= 9999 )
v9 = 9999;
*(_DWORD *)(a1 + 1464) = v9;
if ( v6[71] )
{
v10 = (const char *)(*(_QWORD *)a2 + 1704LL);
if ( *(char *)(*(_QWORD *)a2 + 1727LL) < 0 )
v10 = *(const char **)v10;
v11 = atoi(v10);
}
else
{
v11 = 0;
}
v12 = v11 & ~(v11 >> 31);
if ( v12 >= 9999 )
v12 = 9999;
*(_DWORD *)(a1 + 1468) = v12;
if ( v6[448] )
{
v13 = (const char *)(*(_QWORD *)a2 + 10752LL);
if ( *(char *)(*(_QWORD *)a2 + 10775LL) < 0 )
v13 = *(const char **)v13;
v14 = atoi(v13);
}
else
{
v14 = 0;
}
*(_DWORD *)(a1 + 1844) = v14;
if ( v6[604] )
{
v15 = (const char *)(*(_QWORD *)a2 + 14496LL);
if ( *(char *)(*(_QWORD *)a2 + 14519LL) < 0 )
v15 = *(const char **)v15;
result = atoi(v15);
}
else
{
result = 0;
}
*(_DWORD *)(a1 + 1848) = result;
v17 = v6[138];
if ( v17 )
{
v18 = (const char *)(*(_QWORD *)a2 + 3312LL);
if ( *(char *)(*(_QWORD *)a2 + 3335LL) < 0 )
v18 = *(const char **)v18;
result = atoi(v18);
LOBYTE(v17) = (_DWORD)result != 0;
}
*(_BYTE *)(a1 + 1684) = v17;
return result;
}