//
// SongTriggerGameObject::customObjectSetup from 0x140659850 to 0x140659930 (224 bytes)
//
// 2 xrefs:
// > ??> @ 0x140820860
// > ??> @ 0x140931868
//
// 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
//
int __fastcall SongTriggerGameObject::customObjectSetup(__int64 a1, __int64 a2, __int64 a3)
{
int v6; // eax
const char *v7; // rcx
int v8; // eax
const char *v9; // rcx
__int64 v10; // rax
const char *v11; // rcx
SFXTriggerGameObject::customObjectSetup(a1, a2, a3);
if ( *(_QWORD *)(*(_QWORD *)a3 + 3192LL) )
{
v7 = (const char *)(*(_QWORD *)a2 + 12768LL);
if ( *(_QWORD *)(*(_QWORD *)a2 + 12792LL) > 0xFu )
v7 = *(const char **)v7;
v6 = atoi(v7);
}
else
{
v6 = 0;
}
*(_BYTE *)(a1 + 2057) = v6 != 0;
if ( *(_QWORD *)(*(_QWORD *)a3 + 3200LL) )
{
v9 = (const char *)(*(_QWORD *)a2 + 12800LL);
if ( *(_QWORD *)(*(_QWORD *)a2 + 12824LL) > 0xFu )
v9 = *(const char **)v9;
v8 = atoi(v9);
}
else
{
v8 = 0;
}
*(_BYTE *)(a1 + 2058) = v8 != 0;
v10 = *(_QWORD *)a3;
if ( *(_QWORD *)(*(_QWORD *)a3 + 3456LL) )
{
v11 = (const char *)(*(_QWORD *)a2 + 13824LL);
if ( *(_QWORD *)(*(_QWORD *)a2 + 13848LL) > 0xFu )
v11 = *(const char **)v11;
LODWORD(v10) = atoi(v11);
*(_DWORD *)(a1 + 2060) = v10;
}
else
{
*(_DWORD *)(a1 + 2060) = 0;
}
return v10;
}