//
// ObjectControlGameObject::customObjectSetup from 0x10043ea84 to 0x10043eaf4 (112 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009605b0
//
// 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:11 +0000
//
__int64 __fastcall ObjectControlGameObject::customObjectSetup(__int64 a1, __int64 a2, __int64 a3)
{
const char *v6; // x0
__int64 result; // x0
int v8; // w8
EffectGameObject::customObjectSetup(a1, a2, a3);
if ( *(_QWORD *)(*(_QWORD *)a3 + 408LL) )
{
v6 = (const char *)(*(_QWORD *)a2 + 1224LL);
if ( *(char *)(*(_QWORD *)a2 + 1247LL) < 0 )
v6 = *(const char **)v6;
result = atoi(v6);
}
else
{
result = 0;
}
v8 = result & ~((int)result >> 31);
if ( v8 >= 9999 )
v8 = 9999;
*(_DWORD *)(a1 + 1464) = v8;
return result;
}