//
// EffectGameObject::customSetup from 0x877694 to 0x877908 (628 bytes)
//
// 40 xrefs:
// > EnterEffectObject::customSetup @ 0x87791c
// > ShaderGameObject::customSetup @ 0x87795c
// > ItemTriggerGameObject::customSetup @ 0x8779e0
// > ??> @ 0xf90e8
// > ??> @ 0x14438d0
// > ??> @ 0x14448f0
// > ??> @ 0x1445910
// > ??> @ 0x1446120
// > ??> @ 0x1446930
// > ??> @ 0x1448940
// > ??> @ 0x1449150
// > ??> @ 0x144a1b0
// > ??> @ 0x144a9c0
// > ??> @ 0x144b1d0
// > ??> @ 0x144b9e0
// > ??> @ 0x144c1f0
// > ??> @ 0x144ca10
// > ??> @ 0x144d220
// > ??> @ 0x144da30
// > ??> @ 0x144e240
// > ??> @ 0x144ea50
// > ??> @ 0x144f260
// > ??> @ 0x144fa70
// > ??> @ 0x1450280
// > ??> @ 0x1450a90
// > ??> @ 0x14512a0
// > ??> @ 0x1451ab0
// > ??> @ 0x14522c0
// > ??> @ 0x1452ad0
// > ??> @ 0x14532e0
// > ??> @ 0x1453af0
// > ??> @ 0x1454b10
// > ??> @ 0x1455320
// > ??> @ 0x1455b30
// > ??> @ 0x1456340
// > ??> @ 0x1456b50
// > ??> @ 0x1457360
// > ??> @ 0x1457b70
// > ??> @ 0x1458380
// > ??> @ 0x1458b90
//
// 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:55:50 +0000
//
__int64 __fastcall EffectGameObject::customSetup(EffectGameObject *this)
{
int v2; // w0
GameManager *v4; // x0
__int64 v5; // x0
int v6; // w1
GameManager *v7; // x0
__int64 v8; // x1
void (__fastcall *v9)(EffectGameObject *, _BYTE *); // x2
_BYTE v10[8]; // [xsp+30h] [xbp+30h] BYREF
EnhancedGameObject::customSetup(this);
v2 = *((_DWORD *)this + 257);
if ( v2 == 900 )
{
*((_BYTE *)this + 1487) = 0;
*((_DWORD *)this + 256) = 1009;
*((float *)this + 364) = 1.0;
goto LABEL_11;
}
if ( v2 <= 900 )
{
if ( v2 == 142 )
{
*((_DWORD *)this + 230) = 22;
*((_DWORD *)this + 262) = 9;
GameObject::setDefaultMainColorMode(this, 0);
*((_BYTE *)this + 1386) = 1;
goto LABEL_11;
}
if ( v2 > 142 )
{
if ( v2 < 200 )
goto LABEL_11;
if ( v2 <= 203 )
goto LABEL_10;
if ( v2 == 744 )
*((_DWORD *)this + 256) = 1003;
}
else
{
switch ( v2 )
{
case 30:
*((_BYTE *)this + 1487) = 0;
*((_DWORD *)this + 256) = 1001;
*((float *)this + 364) = 1.0;
break;
case 105:
*((_BYTE *)this + 1487) = 0;
*((_DWORD *)this + 256) = 1004;
*((float *)this + 364) = 1.0;
break;
case 29:
*((_BYTE *)this + 1487) = 0;
*((_DWORD *)this + 256) = 1000;
*((float *)this + 364) = 1.0;
break;
}
}
}
else
{
if ( v2 == 1912 )
{
*((_DWORD *)this + 363) = 1112014848;
goto LABEL_11;
}
if ( v2 <= 1912 )
{
switch ( v2 )
{
case 1329:
v4 = (GameManager *)*((unsigned __int8 *)this + 649);
*((_DWORD *)this + 230) = 31;
*((_DWORD *)this + 262) = 9;
if ( !(_DWORD)v4 )
{
v5 = *(_QWORD *)(*(_QWORD *)(GameManager::sharedState(v4) + 544) + 1936LL);
v6 = *(_DWORD *)(v5 + 968);
v7 = (GameManager *)*(unsigned int *)(v5 + 972);
if ( v6 == (_DWORD)v7
&& *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(GameManager::sharedState(v7) + 544) + 1936LL) + 1140LL) != 2 )
{
v8 = *(_QWORD *)this;
v10[0] = -1;
v10[1] = -81;
v9 = *(void (__fastcall **)(EffectGameObject *, _BYTE *))(v8 + 1496);
v10[2] = 75;
v9(this, v10);
}
}
*((_BYTE *)this + 641) = 1;
GameObject::setDefaultMainColorMode(this, 0);
*((_BYTE *)this + 1386) = 1;
break;
case 1334:
goto LABEL_10;
case 915:
*((_DWORD *)this + 256) = 1002;
*((_BYTE *)this + 1487) = 1;
break;
}
}
else
{
if ( v2 == 3607 )
{
*((_BYTE *)this + 1664) = 1;
goto LABEL_11;
}
if ( v2 <= 3607 )
{
if ( v2 == 2066 )
*((float *)this + 434) = 1.0;
}
else
{
if ( v2 == 3640 )
{
*((_WORD *)this + 736) = 1;
*((_BYTE *)this + 1664) = 1;
goto LABEL_11;
}
if ( v2 == 3643 )
{
*((_BYTE *)this + 1473) = 0;
LABEL_10:
*((_BYTE *)this + 1472) = 1;
}
}
}
}
LABEL_11:
*((_BYTE *)this + 1835) = EffectGameObject::canSpawnTriggers(this);
return _stack_chk_guard;
}