//
// GJEffectManager::handleObjectCollision from 0x5cef5c to 0x5cf014 (184 bytes)
//
// 2 xrefs:
// > GJEffectManager::postCollisionCheck @ 0x5cf05a
// > GJEffectManager::objectsCollided @ 0x5cf1d6
//
// 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:54:03 +0000
//
char **__fastcall GJEffectManager::handleObjectCollision(char **this, int a2, int a3, int a4)
{
char **v6; // r4
unsigned int i; // r5
char *v9; // r2
char *v10; // r3
char *v11; // [sp+Ch] [bp-18h]
char *v12[3]; // [sp+10h] [bp-14h] BYREF
v6 = this;
for ( i = 0; ; ++i )
{
v9 = v6[90];
if ( i >= -1171354717 * ((v6[91] - v9) >> 2) )
break;
v10 = &v9[44 * i];
if ( !*v10 && *((_DWORD *)v10 + 4) != a2 && *((_DWORD *)v10 + 1) == a3 && *((_DWORD *)v10 + 2) == a4 )
{
if ( v6[66] )
{
v11 = &v9[44 * i];
std::vector::vector((int)v12, (const void **)v10 + 8);
(**(void (__fastcall ***)(char *, _DWORD, _DWORD, char **, _DWORD, _DWORD))v6[66])(
v6[66],
*((_DWORD *)v11 + 3),
(unsigned __int8)v11[20],
v12,
*((_DWORD *)v11 + 6),
*((_DWORD *)v11 + 7));
this = std::__vector_base::~__vector_base(v12);
}
else
{
GJEffectManager::toggleGroup((GJEffectManager *)v6, *((_DWORD *)v10 + 3), (unsigned __int8)v10[20]);
}
}
}
return this;
}