// // GJEffectManager::checkCollision from 0x1002cab80 to 0x1002cacf0 (368 bytes) // // 1 xrefs: // > GJBaseGameLayer::checkCollision @ 0x10010956d // // This function is hookable on this platform (idp: pc, 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:28:10 +0000 // char __fastcall GJEffectManager::checkCollision(__int64 a1, int *a2, int *a3) { int v3; // ecx int v4; // eax int v5; // edx unsigned __int64 v6; // r9 int v7; // ecx unsigned __int64 v8; // r10 unsigned __int64 v9; // r8 char result; // al __int64 **v11; // rax __int64 *v12; // rdi unsigned __int64 v13; // r9 __int64 v14; // rax unsigned __int64 v15; // rax v3 = *a2; if ( *a2 > 10001 ) return 0; v5 = *a3; v4 = v5; if ( v3 > v5 ) v5 = *a2; if ( v3 < v4 ) v4 = *a2; v6 = *(_QWORD *)(a1 + 608); if ( !v6 ) return 0; v7 = v4 + 10000 * v5 + 10000000; v8 = (0x101010101010101LL * ((((v6 - ((v6 >> 1) & 0x5555555555555555LL)) & 0x3333333333333333LL) + (((v6 - ((v6 >> 1) & 0x5555555555555555LL)) >> 2) & 0x3333333333333333LL) + ((((v6 - ((v6 >> 1) & 0x5555555555555555LL)) & 0x3333333333333333LL) + (((v6 - ((v6 >> 1) & 0x5555555555555555LL)) >> 2) & 0x3333333333333333LL)) >> 4)) & 0xF0F0F0F0F0F0F0FLL)) >> 56; if ( v8 > 1 ) { v9 = v7; if ( v6 <= v7 ) { if ( (v6 | v7) >> 32 ) v9 = v7 % v6; else v9 = v7 % (unsigned int)v6; } } else { v9 = v7 & (v6 - 1); } v11 = *(__int64 ***)(*(_QWORD *)(a1 + 600) + 8 * v9); if ( v11 ) { v12 = *v11; if ( *v11 ) { if ( (unsigned int)v8 < 2 ) { v13 = v6 - 1; while ( 1 ) { v14 = v12[1]; if ( v14 == v7 ) { if ( *((_DWORD *)v12 + 4) == v7 ) return 1; } else if ( (v13 & v14) != v9 ) { return 0; } v12 = (__int64 *)*v12; result = 0; if ( !v12 ) return result; } } while ( 1 ) { v15 = v12[1]; if ( v15 == v7 ) { if ( *((_DWORD *)v12 + 4) == v7 ) return 1; } else { if ( v15 >= v6 ) { if ( (v6 | v15) >> 32 ) v15 %= v6; else v15 = (unsigned int)v15 % (unsigned int)v6; } if ( v15 != v9 ) return 0; } v12 = (__int64 *)*v12; result = 0; if ( !v12 ) return result; } } } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source