//
// KeyframeAnimTriggerObject::customObjectSetup from 0x8902d4 to 0x89061c (840 bytes)
//
// 2 xrefs:
// > ??> @ 0x100c78
// > ??> @ 0x144aa38
//
// 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:07 +0000
//
__int64 __fastcall KeyframeAnimTriggerObject::customObjectSetup(float *a1, __int64 *a2, __int64 a3)
{
float v6; // s8
int v7; // s0
const char *v8; // x0
float v9; // s8
int v10; // s0
const char *v11; // x0
float v12; // s8
int v13; // s0
const char *v14; // x0
float v15; // s8
int v16; // s0
const char *v17; // x0
float v18; // s8
int v19; // s0
const char *v20; // x0
float v21; // s8
__int64 result; // x0
int v23; // s0
float v24; // s0
float v25; // s0
float v26; // s0
EffectGameObject::customObjectSetup((__int64)a1, a2, a3);
if ( !*(_QWORD *)(*(_QWORD *)a3 + 4160LL) )
goto LABEL_43;
if ( (*(_BYTE *)(*a2 + 12480) & 1) != 0 )
{
v6 = atof(*(const char **)(*a2 + 12496));
if ( !__isnanf(v6) )
goto LABEL_4;
LABEL_43:
a1[460] = 0.0;
if ( !*(_QWORD *)(*(_QWORD *)a3 + 4168LL) )
goto LABEL_44;
goto LABEL_8;
}
v6 = atof((const char *)(*a2 + 12481));
if ( __isnanf(v6) )
goto LABEL_43;
LABEL_4:
v7 = 1315859240;
if ( v6 > 1000000000.0 || (v7 = -831624408, v6 < -1000000000.0) )
v6 = *(float *)&v7;
a1[460] = v6;
if ( !*(_QWORD *)(*(_QWORD *)a3 + 4168LL) )
{
LABEL_44:
a1[461] = 0.0;
if ( !*(_QWORD *)(*(_QWORD *)a3 + 4360LL) )
goto LABEL_45;
goto LABEL_14;
}
LABEL_8:
v8 = (const char *)(*a2 + 12505);
if ( (*(_BYTE *)(*a2 + 12504) & 1) != 0 )
v8 = *(const char **)(*a2 + 12520);
v9 = atof(v8);
if ( __isnanf(v9) )
goto LABEL_44;
v10 = 1315859240;
if ( v9 > 1000000000.0 || (v10 = -831624408, v9 < -1000000000.0) )
v9 = *(float *)&v10;
a1[461] = v9;
if ( !*(_QWORD *)(*(_QWORD *)a3 + 4360LL) )
{
LABEL_45:
a1[462] = 0.0;
if ( !*(_QWORD *)(*(_QWORD *)a3 + 4176LL) )
goto LABEL_46;
goto LABEL_20;
}
LABEL_14:
v11 = (const char *)(*a2 + 13081);
if ( (*(_BYTE *)(*a2 + 13080) & 1) != 0 )
v11 = *(const char **)(*a2 + 13096);
v12 = atof(v11);
if ( __isnanf(v12) )
goto LABEL_45;
v13 = 1315859240;
if ( v12 > 1000000000.0 || (v13 = -831624408, v12 < -1000000000.0) )
v12 = *(float *)&v13;
a1[462] = v12;
if ( !*(_QWORD *)(*(_QWORD *)a3 + 4176LL) )
{
LABEL_46:
a1[463] = 0.0;
if ( !*(_QWORD *)(*(_QWORD *)a3 + 4184LL) )
goto LABEL_47;
goto LABEL_26;
}
LABEL_20:
v14 = (const char *)(*a2 + 12529);
if ( (*(_BYTE *)(*a2 + 12528) & 1) != 0 )
v14 = *(const char **)(*a2 + 12544);
v15 = atof(v14);
if ( __isnanf(v15) )
goto LABEL_46;
v16 = 1315859240;
if ( v15 > 1000000000.0 || (v16 = -831624408, v15 < -1000000000.0) )
v15 = *(float *)&v16;
a1[463] = v15;
if ( !*(_QWORD *)(*(_QWORD *)a3 + 4184LL) )
{
LABEL_47:
a1[464] = 0.0;
if ( !*(_QWORD *)(*(_QWORD *)a3 + 4368LL) )
goto LABEL_48;
goto LABEL_32;
}
LABEL_26:
v17 = (const char *)(*a2 + 12553);
if ( (*(_BYTE *)(*a2 + 12552) & 1) != 0 )
v17 = *(const char **)(*a2 + 12568);
v18 = atof(v17);
if ( __isnanf(v18) )
goto LABEL_47;
v19 = 1315859240;
if ( v18 > 1000000000.0 || (v19 = -831624408, v18 < -1000000000.0) )
v18 = *(float *)&v19;
a1[464] = v18;
if ( !*(_QWORD *)(*(_QWORD *)a3 + 4368LL) )
{
LABEL_48:
v21 = 0.0;
v25 = a1[462];
a1[465] = 0.0;
if ( v25 != 0.0 )
{
LABEL_40:
result = *((unsigned int *)a1 + 464);
*((_DWORD *)a1 + 465) = result;
return result;
}
goto LABEL_38;
}
LABEL_32:
v20 = (const char *)(*a2 + 13105);
if ( (*(_BYTE *)(*a2 + 13104) & 1) != 0 )
v20 = *(const char **)(*a2 + 13120);
v21 = atof(v20);
result = __isnanf(v21);
if ( (_DWORD)result )
goto LABEL_48;
v23 = 1315859240;
if ( v21 <= 1000000000.0 )
{
v23 = -831624408;
if ( v21 >= -1000000000.0 )
{
v24 = a1[462];
a1[465] = v21;
if ( v24 != 0.0 )
goto LABEL_39;
goto LABEL_38;
}
}
v21 = *(float *)&v23;
v26 = a1[462];
a1[465] = v21;
if ( v26 == 0.0 )
{
LABEL_38:
result = *((unsigned int *)a1 + 461);
*((_DWORD *)a1 + 462) = result;
LABEL_39:
if ( v21 != 0.0 )
return result;
goto LABEL_40;
}
return result;
}