// // EffectGameObject::customSetup from 0x4e85e4 to 0x4e878e (426 bytes) // // 3 xrefs: // > EnterEffectObject::customSetup @ 0x4e879c // > ShaderGameObject::customSetup @ 0x4e87bc // > ItemTriggerGameObject::customSetup @ 0x4e8806 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:51:06 +0000 // bool __fastcall EffectGameObject::customSetup(EffectGameObject *this, int a2) { GameManager *v3; // r0 int v4; // r3 int v5; // r3 char *v6; // r3 int v7; // r2 GameManager *v8; // r0 _BOOL4 result; // r0 int v10; // r3 void (__fastcall *v11)(EffectGameObject *, _DWORD *); // r3 _DWORD v12[2]; // [sp+0h] [bp-8h] BYREF v12[0] = this; v12[1] = a2; v3 = (GameManager *)EnhancedGameObject::customSetup(this); v4 = *((_DWORD *)this + 223); if ( v4 == 900 ) { v5 = 1009; goto LABEL_27; } if ( v4 <= 900 ) { if ( v4 == 142 ) { *((_DWORD *)this + 196) = 22; *((_DWORD *)this + 228) = 9; GameObject::setDefaultMainColorMode(this, 0); *((_BYTE *)this + 1206) = 1; goto LABEL_43; } if ( v4 <= 142 ) { switch ( v4 ) { case 30: v5 = 1001; goto LABEL_27; case 105: v5 = 1004; goto LABEL_27; case 29: v5 = 1000; LABEL_27: *((_DWORD *)this + 222) = v5; *((_BYTE *)this + 1307) = 0; v6 = (char *)this + 1276; goto LABEL_28; } goto LABEL_43; } if ( v4 < 200 ) goto LABEL_43; if ( v4 > 203 ) { if ( v4 == 744 ) *((_DWORD *)this + 222) = 1003; goto LABEL_43; } LABEL_33: *((_BYTE *)this + 1292) = 1; goto LABEL_43; } if ( v4 == 1912 ) { v6 = (char *)this + 1272; v7 = 1112014848; goto LABEL_29; } if ( v4 <= 1912 ) { if ( v4 == 1329 ) { *((_DWORD *)this + 196) = 31; *((_DWORD *)this + 228) = 9; if ( !*((_BYTE *)this + 549) ) { v8 = (GameManager *)GameManager::sharedState(v3); if ( *(_DWORD *)(*(_DWORD *)(*((_DWORD *)v8 + 101) + 1408) + 792) == *(_DWORD *)(*(_DWORD *)(*((_DWORD *)v8 + 101) + 1408) + 796) && *(_DWORD *)(*(_DWORD *)(*(_DWORD *)(GameManager::sharedState(v8) + 404) + 1408) + 952) != 2 ) { v10 = *(_DWORD *)this; LOWORD(v12[0]) = -20481; v11 = *(void (__fastcall **)(EffectGameObject *, _DWORD *))(v10 + 748); BYTE2(v12[0]) = 75; v11(this, v12); } } *((_BYTE *)this + 541) = 1; GameObject::setDefaultMainColorMode(this, 0); *((_BYTE *)this + 1206) = 1; goto LABEL_43; } if ( v4 != 1334 ) { if ( v4 == 915 ) { *((_DWORD *)this + 222) = 1002; *((_BYTE *)this + 1307) = 1; } goto LABEL_43; } goto LABEL_33; } if ( v4 == 3607 ) { *((_BYTE *)this + 1484) = 1; goto LABEL_43; } if ( v4 > 3607 ) { if ( v4 == 3640 ) { *((_BYTE *)this + 1292) = 1; *((_BYTE *)this + 1484) = 1; } else { if ( v4 != 3643 ) goto LABEL_43; *((_BYTE *)this + 1292) = 1; } *((_BYTE *)this + 1293) = 0; goto LABEL_43; } if ( v4 == 2066 ) { v6 = (char *)this + 1552; LABEL_28: v7 = 1065353216; LABEL_29: *(_DWORD *)v6 = v7; } LABEL_43: result = EffectGameObject::canSpawnTriggers(this); *((_BYTE *)this + 1643) = result; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source