//
// SongTriggerGameObject::customObjectSetup from 0x89216c to 0x892288 (284 bytes)
//
// 2 xrefs:
// > ??> @ 0xf1060
// > ??> @ 0x144f2d8
//
// 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 12:56:08 +0000
//
__int64 __fastcall SongTriggerGameObject::customObjectSetup(__int64 a1, __int64 *a2, __int64 a3)
{
const char *v6; // x0
const char *v7; // x0
const char *v8; // x0
__int64 result; // x0
SFXTriggerGameObject::customObjectSetup(a1, a2, a3);
if ( *(_QWORD *)(*(_QWORD *)a3 + 3192LL) )
{
v6 = (const char *)(*a2 + 9577);
if ( (*(_BYTE *)(*a2 + 9576) & 1) != 0 )
v6 = *(const char **)(*a2 + 9592);
*(_BYTE *)(a1 + 2025) = atoi(v6) != 0;
if ( *(_QWORD *)(*(_QWORD *)a3 + 3200LL) )
{
LABEL_5:
v7 = (const char *)(*a2 + 9601);
if ( (*(_BYTE *)(*a2 + 9600) & 1) != 0 )
v7 = *(const char **)(*a2 + 9616);
*(_BYTE *)(a1 + 2026) = atoi(v7) != 0;
if ( *(_QWORD *)(*(_QWORD *)a3 + 3456LL) )
goto LABEL_8;
LABEL_13:
*(_DWORD *)(a1 + 2028) = 0;
return 0;
}
}
else
{
*(_BYTE *)(a1 + 2025) = 0;
if ( *(_QWORD *)(*(_QWORD *)a3 + 3200LL) )
goto LABEL_5;
}
*(_BYTE *)(a1 + 2026) = 0;
if ( !*(_QWORD *)(*(_QWORD *)a3 + 3456LL) )
goto LABEL_13;
LABEL_8:
v8 = (const char *)(*a2 + 10369);
if ( (*(_BYTE *)(*a2 + 10368) & 1) != 0 )
v8 = *(const char **)(*a2 + 10384);
result = atoi(v8);
*(_DWORD *)(a1 + 2028) = result;
return result;
}