//
// ObjectControlGameObject::customObjectSetup from 0x1001d0210 to 0x1001d0285 (117 bytes)
//
// 1 xrefs:
// > ??> @ 0x100ada948
//
// 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 12:26:21 +0000
//
__int64 __fastcall ObjectControlGameObject::customObjectSetup(__int64 a1, __int64 *a2, __int64 *a3, __m128 a4)
{
__int64 v6; // rax
int v7; // r15d
bool v8; // zf
int v9; // eax
__int64 v10; // rdi
const char *v11; // rdi
__int64 result; // rax
EffectGameObject::customObjectSetup(a1, a2, a3, a4);
v6 = *a3;
v7 = 0;
v8 = *(_QWORD *)(v6 + 408) == 0;
v9 = 0;
if ( !v8 )
{
v10 = *a2;
if ( (*(_BYTE *)(*a2 + 1224) & 1) != 0 )
v11 = *(const char **)(v10 + 1240);
else
v11 = (const char *)(v10 + 1225);
v9 = atoi(v11);
}
if ( v9 > 0 )
v7 = v9;
result = 9999;
if ( v7 < 9999 )
result = (unsigned int)v7;
*(_DWORD *)(a1 + 1464) = result;
return result;
}