// // GJEffectManager::checkCollision from 0x1002e00e0 to 0x1002e0250 (368 bytes) // // 1 xrefs: // > GJBaseGameLayer::checkCollision @ 0x10012b90d // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // bool __fastcall GJEffectManager::checkCollision(GJEffectManager *a1, const int *a2, const int *a3) { int v3; // ecx int v4; // eax int v5; // edx unsigned __int64 value; // r9 int v7; // ecx unsigned __int64 v8; // r10 unsigned __int64 v9; // r8 bool result; // al std::__hash_node_base, void *> *> *v11; // rax std::__hash_node_base, void *> *>::__next_pointer next; // rdi unsigned __int64 v13; // r9 std::__hash_node_base, void *> *>::__next_pointer 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; value = a1->m_unkMap288.__table_.__bucket_list_.__ptr_.__value_.__data_.__value_; if ( !value ) return 0; v7 = v4 + 10000 * v5 + 10000000; v8 = (0x101010101010101LL * ((((value - ((value >> 1) & 0x5555555555555555LL)) & 0x3333333333333333LL) + (((value - ((value >> 1) & 0x5555555555555555LL)) >> 2) & 0x3333333333333333LL) + ((((value - ((value >> 1) & 0x5555555555555555LL)) & 0x3333333333333333LL) + (((value - ((value >> 1) & 0x5555555555555555LL)) >> 2) & 0x3333333333333333LL)) >> 4)) & 0xF0F0F0F0F0F0F0FLL)) >> 56; if ( v8 > 1 ) { v9 = v7; if ( value <= v7 ) { if ( (value | v7) >> 32 ) v9 = v7 % value; else v9 = v7 % (unsigned int)value; } } else { v9 = v7 & (value - 1); } v11 = a1->m_unkMap288.__table_.__bucket_list_.__ptr_.__value_[v9]; if ( v11 ) { next = v11->__next_; if ( v11->__next_ ) { if ( (unsigned int)v8 < 2 ) { v13 = value - 1; while ( 1 ) { v14 = next[1].__next_; if ( v14 == (std::__hash_node_base, void *> *>::__next_pointer)v7 ) { if ( LODWORD(next[2].__next_) == v7 ) return 1; } else if ( (v13 & (unsigned __int64)v14) != v9 ) { return 0; } next = next->__next_; result = 0; if ( !next ) return result; } } while ( 1 ) { v15 = (unsigned __int64)next[1].__next_; if ( v15 == v7 ) { if ( LODWORD(next[2].__next_) == v7 ) return 1; } else { if ( v15 >= value ) { if ( (value | v15) >> 32 ) v15 %= value; else v15 = (unsigned int)v15 % (unsigned int)value; } if ( v15 != v9 ) return 0; } next = next->__next_; result = 0; if ( !next ) return result; } } } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source