// // GJEffectManager::checkCollision from 0x5c3388 to 0x5c342c (164 bytes) // // 1 xrefs: // > GJBaseGameLayer::checkCollision @ 0x58fb32 // // 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:53:51 +0000 // int __fastcall GJEffectManager::checkCollision(GJEffectManager *this, int *a2, int *a3, int a4) { int v5; // r3 int v6; // r2 unsigned int CollisionKey; // r0 unsigned int v8; // r5 unsigned int v9; // r7 unsigned int v10; // r9 int v11; // r10 _DWORD *v12; // r4 unsigned int v13; // r0 int v14; // r1 int result; // r0 int v16; // [sp+4h] [bp-Ch] BYREF int v17[2]; // [sp+8h] [bp-8h] BYREF v16 = (int)a2; v17[0] = (int)a3; v17[1] = a4; v5 = *a2; if ( *a2 > 10001 ) return 0; v6 = *a3; if ( v5 < v6 ) v16 = v6; else v16 = *a2; if ( v5 > v6 ) v17[0] = v6; else v17[0] = v5; CollisionKey = getCollisionKey(&v16, v17); v8 = *((_DWORD *)this + 102); v9 = CollisionKey; if ( v8 ) { v10 = v8 - 1; if ( ((v8 - 1) & v8) != 0 ) v11 = CollisionKey % v8; else v11 = CollisionKey & v10; v12 = *(_DWORD **)(*((_DWORD *)this + 101) + 4 * v11); if ( v12 ) { do { v12 = (_DWORD *)*v12; if ( !v12 ) break; v13 = v12[1]; if ( ((v8 - 1) & v8) != 0 ) v14 = v13 % v8; else v14 = v10 & v13; if ( v14 != v11 ) { v12 = nullptr; break; } } while ( v12[2] != v9 ); } } else { v12 = nullptr; } result = (int)v12; if ( v12 ) return 1; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source