// // GJEffectManager::objectsCollided from 0x5cf140 to 0x5cf1fa (186 bytes) // // 1 xrefs: // > GJBaseGameLayer::objectsCollided @ 0x58b43a // // 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 // unsigned int __fastcall GJEffectManager::objectsCollided(GJEffectManager *this, int a2, int a3) { unsigned int result; // r0 unsigned int CollisionKey; // r0 unsigned int v6; // r5 unsigned int v7; // r10 unsigned int v8; // r6 int v9; // r11 int **v10; // r3 int *i; // r4 int v12; // r1 int v13; // [sp+0h] [bp-14h] BYREF int v14; // [sp+4h] [bp-10h] BYREF unsigned int v15; // [sp+8h] [bp-Ch] BYREF result = 10001; if ( a2 <= 10001 && a3 <= 10001 ) { if ( a2 < a3 ) v13 = a3; else v13 = a2; if ( a2 > a3 ) v14 = a3; else v14 = a2; CollisionKey = getCollisionKey(&v13, &v14); v6 = *((_DWORD *)this + 102); v7 = CollisionKey; v15 = CollisionKey; if ( v6 ) { v8 = v6 - 1; v9 = ((v6 - 1) & v6) != 0 ? CollisionKey % v6 : CollisionKey & v8; v10 = *(int ***)(*((_DWORD *)this + 101) + 4 * v9); if ( v10 ) { for ( i = *v10; i; i = (int *)*i ) { result = i[1]; if ( ((v6 - 1) & v6) != 0 ) { v12 = result % v6; result /= v6; } else { v12 = v8 & result; } if ( v12 != v9 ) break; if ( i[2] == v7 ) { *((_BYTE *)i + 12) = 1; return result; } } } } GJEffectManager::handleObjectCollision((char **)this, 1, v13, v14); result = (unsigned int)std::unordered_map::operator[]((int)this + 404, &v15); *(_BYTE *)result = 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source