// // GJEffectManager::startTimer from 0x1002ec670 to 0x1002ec954 (740 bytes) // // 2 xrefs: // > GJBaseGameLayer::activateTimerTrigger @ 0x10014d780 // > GJEffectManager::updateTimer @ 0x1002ed0b8 // // 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 // // local variable allocation has failed, the output may be wrong! void __fastcall GJEffectManager::startTimer( GJEffectManager *a1, int a2, double a3, double a4, bool a5, bool a6, bool a7, float a8, bool a9, int a10, std::vector *const a11, int a12, int a13) { unsigned __int64 value; // r13 std::unordered_map *p_m_timerItemMap; // rdi unsigned __int64 v16; // r15 unsigned __int64 v17; // r11 std::__hash_node_base, void *> *> *v18; // rax std::__hash_node_base, void *> *>::__next_pointer next; // r14 unsigned __int64 v20; // r13 std::__hash_node_base, void *> *>::__next_pointer v21; // rax unsigned __int64 v22; // rax __int64 v26; // rax float v27; // xmm0_4 float v28; // xmm1_4 _QWORD v29[2]; // [rsp+10h] [rbp-90h] BYREF bool v30; // [rsp+20h] [rbp-80h] float v31; // [rsp+24h] [rbp-7Ch] bool v32; // [rsp+28h] [rbp-78h] double v33; // [rsp+30h] [rbp-70h] bool v34; // [rsp+38h] [rbp-68h] int v35; // [rsp+3Ch] [rbp-64h] int v36; // [rsp+40h] [rbp-60h] int v37; // [rsp+44h] [rbp-5Ch] void *__p[4]; // [rsp+48h] [rbp-58h] BYREF float v39; // [rsp+6Ch] [rbp-34h] int v40; // [rsp+70h] [rbp-30h] BYREF char v41[41]; // [rsp+77h] [rbp-29h] BYREF v40 = a2; value = a1->m_timerItemMap.__table_.__bucket_list_.__ptr_.__value_.__data_.__value_; p_m_timerItemMap = &a1->m_timerItemMap; if ( !value ) goto LABEL_30; v16 = (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 ( v16 <= 1 ) { v17 = a2 & (value - 1); v18 = p_m_timerItemMap->__table_.__bucket_list_.__ptr_.__value_[v17]; if ( !v18 ) goto LABEL_30; goto LABEL_9; } v17 = a2; if ( value <= a2 ) { if ( !((value | a2) >> 32) ) { v17 = a2 % (unsigned int)value; v18 = p_m_timerItemMap->__table_.__bucket_list_.__ptr_.__value_[v17]; if ( !v18 ) goto LABEL_30; goto LABEL_9; } v17 = a2 % value; } v18 = p_m_timerItemMap->__table_.__bucket_list_.__ptr_.__value_[v17]; if ( !v18 ) { LABEL_30: v27 = a3; v28 = a4; memset(__p, 0, 25); LODWORD(v29[0]) = a2; *(double *)&v29[1] = v27; v31 = a8; v30 = a6; v32 = a9; v33 = v28; v34 = a5; v35 = a10; v36 = a12; v37 = a13; if ( __p != (void **)a11 ) sub_1000C51C0((char **)__p, (char *)a11->__begin_, (__int64)a11->__end_, a11->__end_ - a11->__begin_); LOBYTE(__p[3]) = 0; sub_1002F8420(p_m_timerItemMap, &v40, &v40, v29, a7); if ( __p[0] ) { __p[1] = __p[0]; operator delete(__p[0]); } return; } LABEL_9: next = v18->__next_; if ( !v18->__next_ ) goto LABEL_30; if ( (unsigned int)v16 < 2 ) { v20 = value - 1; while ( 1 ) { v21 = next[1].__next_; if ( v21 == (std::__hash_node_base, void *> *>::__next_pointer)a2 ) { if ( LODWORD(next[2].__next_) == a2 ) goto LABEL_27; } else if ( (v20 & (unsigned __int64)v21) != v17 ) { goto LABEL_30; } next = next->__next_; if ( !next ) goto LABEL_30; } } while ( 1 ) { v22 = (unsigned __int64)next[1].__next_; if ( v22 == a2 ) break; if ( v22 < value ) goto LABEL_23; if ( (value | v22) >> 32 ) { v22 %= value; LABEL_23: if ( v22 != v17 ) goto LABEL_30; goto LABEL_18; } if ( (unsigned int)v22 % (unsigned int)value != v17 ) goto LABEL_30; LABEL_18: next = next->__next_; if ( !next ) goto LABEL_30; } if ( LODWORD(next[2].__next_) != a2 ) goto LABEL_18; LABEL_27: v29[0] = &v40; v39 = a8; v26 = sub_1002F7F30(p_m_timerItemMap, &v40, &unk_100819506, v29, v41); *(_BYTE *)(v26 + 40) = a6; *(float *)(v26 + 44) = v39; *(_BYTE *)(v26 + 48) = a9; *(double *)(v26 + 56) = a4; *(_BYTE *)(v26 + 64) = a5; *(_DWORD *)(v26 + 68) = a10; *(_DWORD *)(v26 + 72) = a12; *(_DWORD *)(v26 + 76) = a13; *(_BYTE *)(v26 + 104) = 0; if ( !a7 ) *(double *)(v26 + 32) = a3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source