//
// SequenceTriggerGameObject::customObjectSetup from 0x89bc7c to 0x89c004 (904 bytes)
//
// 2 xrefs:
// > ??> @ 0x91018
// > ??> @ 0x144daa8
//
// 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:12 +0000
//
__int64 __fastcall SequenceTriggerGameObject::customObjectSetup(__int64 a1, __int64 *a2, __int64 a3)
{
float v6; // s8
int v7; // s0
const char *v8; // x0
const char *v9; // x0
const char *v10; // x0
float v11; // s8
int v12; // s0
const char *v13; // x0
bool v14; // w0
__int64 v15; // x0
__int64 v16; // x2
__int64 v17; // x0
__int64 v18; // x1
cocos2d::CCArray *v19; // x20
unsigned int v20; // w19
cocos2d::CCString *v21; // x0
cocos2d::CCString *v22; // x0
int v23; // w0
_DWORD *v24; // x1
unsigned __int64 v25; // x2
int v26; // w2
int v28; // [xsp+58h] [xbp+58h] BYREF
int v29; // [xsp+5Ch] [xbp+5Ch] BYREF
__int64 v30; // [xsp+60h] [xbp+60h] BYREF
__int64 v31; // [xsp+68h] [xbp+68h]
void *v32; // [xsp+70h] [xbp+70h]
EffectGameObject::customObjectSetup(a1, a2, a3);
if ( !*(_QWORD *)(*(_QWORD *)a3 + 3496LL) )
goto LABEL_33;
if ( (*(_BYTE *)(*a2 + 10488) & 1) != 0 )
{
v6 = atof(*(const char **)(*a2 + 10504));
if ( !__isnanf(v6) )
goto LABEL_4;
LABEL_33:
*(_DWORD *)(a1 + 1944) = 0;
if ( *(_QWORD *)(*(_QWORD *)a3 + 3488LL) )
goto LABEL_8;
LABEL_34:
*(_DWORD *)(a1 + 1948) = 0;
if ( *(_QWORD *)(*(_QWORD *)a3 + 3512LL) )
goto LABEL_11;
goto LABEL_35;
}
v6 = atof((const char *)(*a2 + 10489));
if ( __isnanf(v6) )
goto LABEL_33;
LABEL_4:
v7 = 1315859240;
if ( v6 > 1000000000.0 || (v7 = -831624408, v6 < -1000000000.0) )
v6 = *(float *)&v7;
*(float *)(a1 + 1944) = v6;
if ( !*(_QWORD *)(*(_QWORD *)a3 + 3488LL) )
goto LABEL_34;
LABEL_8:
v8 = (const char *)(*a2 + 10465);
if ( (*(_BYTE *)(*a2 + 10464) & 1) != 0 )
v8 = *(const char **)(*a2 + 10480);
*(_DWORD *)(a1 + 1948) = atoi(v8);
if ( *(_QWORD *)(*(_QWORD *)a3 + 3512LL) )
{
LABEL_11:
v9 = (const char *)(*a2 + 10537);
if ( (*(_BYTE *)(*a2 + 10536) & 1) != 0 )
v9 = *(const char **)(*a2 + 10552);
*(_DWORD *)(a1 + 1952) = atoi(v9);
if ( !*(_QWORD *)(*(_QWORD *)a3 + 3504LL) )
goto LABEL_36;
goto LABEL_14;
}
LABEL_35:
*(_DWORD *)(a1 + 1952) = 0;
if ( !*(_QWORD *)(*(_QWORD *)a3 + 3504LL) )
goto LABEL_36;
LABEL_14:
v10 = (const char *)(*a2 + 10513);
if ( (*(_BYTE *)(*a2 + 10512) & 1) != 0 )
v10 = *(const char **)(*a2 + 10528);
v11 = atof(v10);
if ( !__isnanf(v11) )
{
v12 = 1315859240;
if ( v11 > 1000000000.0 || (v12 = -831624408, v11 < -1000000000.0) )
v11 = *(float *)&v12;
*(float *)(a1 + 1956) = v11;
if ( *(_QWORD *)(*(_QWORD *)a3 + 4040LL) )
goto LABEL_20;
LABEL_37:
v14 = 0;
goto LABEL_23;
}
LABEL_36:
*(_DWORD *)(a1 + 1956) = 0;
if ( !*(_QWORD *)(*(_QWORD *)a3 + 4040LL) )
goto LABEL_37;
LABEL_20:
v13 = (const char *)(*a2 + 12121);
if ( (*(_BYTE *)(*a2 + 12120) & 1) != 0 )
v13 = *(const char **)(*a2 + 12136);
v14 = atoi(v13) != 0;
LABEL_23:
*(_BYTE *)(a1 + 1964) = v14;
if ( *(_QWORD *)(*(_QWORD *)a3 + 3480LL) )
{
v15 = *a2;
v30 = 0;
v31 = 0;
v16 = v15 + 10440;
v32 = nullptr;
if ( (*(_BYTE *)(v15 + 10440) & 1) != 0 )
{
std::string::__init(&v30, *(void **)(v15 + 10456), *(_QWORD *)(v15 + 10448));
}
else
{
v17 = *(_QWORD *)v16;
v18 = *(_QWORD *)(v16 + 8);
v32 = *(void **)(v16 + 16);
v30 = v17;
v31 = v18;
}
}
else
{
v30 = 0;
v31 = 0;
v32 = nullptr;
std::string::__init(&v30, &byte_11B8890, 0);
}
v19 = sub_897954((unsigned __int8 *)&v30);
v20 = 0;
while ( v20 < (unsigned int)cocos2d::CCArray::count(v19) )
{
v21 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v19, v20);
v28 = cocos2d::CCString::intValue(v21);
v22 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v19, v20 + 1);
v23 = cocos2d::CCString::intValue(v22);
v24 = *(_DWORD **)(a1 + 1848);
v25 = *(_QWORD *)(a1 + 1856);
v29 = v23;
if ( (unsigned __int64)v24 >= v25 )
{
std::vector::__emplace_back_slow_path((__int16 **)(a1 + 1840), &v28, &v29);
v20 += 2;
}
else
{
v26 = v28;
if ( v24 )
{
*v24 = v28;
v24[1] = v26;
v24[2] = v23;
v24[3] = 0;
v24 = *(_DWORD **)(a1 + 1848);
}
v20 += 2;
*(_QWORD *)(a1 + 1848) = v24 + 4;
}
}
SequenceTriggerGameObject::updateSequenceTotalCount(a1);
if ( (v30 & 1) != 0 )
operator delete(v32);
return _stack_chk_guard;
}