// // GJEffectManager::pauseTimer from 0x1002ecac0 to 0x1002ecc5a (410 bytes) // // 1 xrefs: // > GJBaseGameLayer::activateTimerTrigger @ 0x10014d80f // // 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 // void __fastcall GJEffectManager::pauseTimer(GJEffectManager *a1, int a2) { unsigned __int64 value; // r9 std::unordered_map *p_m_timerItemMap; // rdi unsigned __int64 v4; // r11 unsigned __int64 v5; // r8 std::__hash_node_base, void *> *> *v6; // rax std::__hash_node_base, void *> *>::__next_pointer next; // r10 unsigned __int64 v8; // r9 std::__hash_node_base, void *> *>::__next_pointer v9; // rax unsigned __int64 v10; // rax int *v11; // [rsp+0h] [rbp-10h] BYREF int v12; // [rsp+8h] [rbp-8h] BYREF char v13; // [rsp+Fh] [rbp-1h] BYREF v12 = a2; value = a1->m_timerItemMap.__table_.__bucket_list_.__ptr_.__value_.__data_.__value_; if ( !value ) return; p_m_timerItemMap = &a1->m_timerItemMap; v4 = (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 ( v4 > 1 ) { v5 = a2; if ( value <= a2 ) { if ( !((value | a2) >> 32) ) { v5 = a2 % (unsigned int)value; v6 = p_m_timerItemMap->__table_.__bucket_list_.__ptr_.__value_[v5]; if ( !v6 ) return; goto LABEL_9; } v5 = a2 % value; } v6 = p_m_timerItemMap->__table_.__bucket_list_.__ptr_.__value_[v5]; if ( !v6 ) return; goto LABEL_9; } v5 = a2 & (value - 1); v6 = p_m_timerItemMap->__table_.__bucket_list_.__ptr_.__value_[v5]; if ( !v6 ) return; LABEL_9: next = v6->__next_; if ( v6->__next_ ) { if ( (unsigned int)v4 < 2 ) { v8 = value - 1; while ( 1 ) { v9 = next[1].__next_; if ( v9 == (std::__hash_node_base, void *> *>::__next_pointer)a2 ) { if ( LODWORD(next[2].__next_) == a2 ) goto LABEL_27; } else if ( (v8 & (unsigned __int64)v9) != v5 ) { return; } next = next->__next_; if ( !next ) return; } } do { v10 = (unsigned __int64)next[1].__next_; if ( v10 == a2 ) { if ( LODWORD(next[2].__next_) == a2 ) { LABEL_27: v11 = &v12; *(_BYTE *)(sub_1002F7F30(p_m_timerItemMap, &v12, &unk_100819506, &v11, &v13) + 40) = 0; return; } } else { if ( v10 < value ) goto LABEL_23; if ( (value | v10) >> 32 ) { v10 %= value; LABEL_23: if ( v10 != v5 ) return; goto LABEL_18; } if ( (unsigned int)v10 % (unsigned int)value != v5 ) return; } LABEL_18: next = next->__next_; } while ( next ); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source