//
// ObjectControlGameObject::customObjectSetup from 0x140663ae0 to 0x140663b66 (134 bytes)
//
// 2 xrefs:
// > ??> @ 0x14082f910
// > ??> @ 0x140931c4c
//
// 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:49 +0000
//
int __fastcall ObjectControlGameObject::customObjectSetup(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v6; // rax
int v7; // edx
const char *v8; // rcx
EffectGameObject::customObjectSetup(a1, a2, a3);
v6 = *(_QWORD *)a3;
if ( *(_QWORD *)(*(_QWORD *)a3 + 408LL) )
{
v8 = (const char *)(*(_QWORD *)a2 + 1632LL);
if ( *(_QWORD *)(*(_QWORD *)a2 + 1656LL) > 0xFu )
v8 = *(const char **)v8;
LODWORD(v6) = atoi(v8);
if ( (int)v6 < 0 )
LODWORD(v6) = 0;
v7 = v6;
if ( (int)v6 > 9999 )
{
*(_DWORD *)(a1 + 1480) = 9999;
return v6;
}
}
else
{
v7 = 0;
}
*(_DWORD *)(a1 + 1480) = v7;
return v6;
}