// // GJEffectManager::toggleTimerPersistent from 0xa13000 to 0xa13254 (596 bytes) // // 2 xrefs: // > GJBaseGameLayer::activatePersistentItemTrigger @ 0x9ecea8 // > @ 0xf2320 // // This function is hookable on this platform (idp: arm, 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:59:32 +0000 // __int64 __fastcall GJEffectManager::toggleTimerPersistent(GJEffectManager *this, int a2, char a3) { unsigned __int64 v4; // x26 unsigned __int64 v5; // x20 unsigned __int64 v6; // x24 __int64 v7; // x23 unsigned __int64 v8; // x4 __int64 v9; // x25 __int64 *v10; // x0 unsigned __int64 v11; // x2 unsigned __int64 v12; // x2 float v13; // s2 float v14; // s0 bool v15; // cc __int64 v16; // x26 unsigned __int64 v18; // x26 unsigned __int64 v19; // x1 _QWORD *v20; // x0 __int64 v21; // x1 unsigned __int64 v22; // x1 unsigned __int64 v23; // x24 _BOOL8 v24; // x2 int v25; // [xsp+5Ch] [xbp+5Ch] BYREF void *v26[3]; // [xsp+60h] [xbp+60h] BYREF v25 = a2; if ( !a3 ) { std::__hash_table,std::equal_to,std::allocator>::__erase_unique( (__int64 *)this + 99, &v25); return _stack_chk_guard; } v4 = *((_QWORD *)this + 100); v5 = a2; if ( v4 ) { v6 = v4 - 1; v7 = (v4 - 1) & v4; v8 = (v4 - 1) & a2; if ( v7 ) v8 = a2 % v4; v9 = 8 * v8; v10 = *(__int64 **)(*((_QWORD *)this + 99) + 8 * v8); if ( v10 ) { while ( 1 ) { v10 = (__int64 *)*v10; if ( !v10 ) break; v11 = v10[1]; v12 = v7 ? v11 % v4 : v6 & v11; if ( v8 != v12 ) break; if ( a2 == *((_DWORD *)v10 + 4) ) return _stack_chk_guard; } } std::__hash_table,std::equal_to,std::allocator>::__construct_node_hash( (__int64)this + 792, a2, &v25, (__int64)v26); v13 = *((float *)this + 206); v14 = (float)(unsigned __int64)(*((_QWORD *)this + 102) + 1LL); if ( v14 <= (float)((float)v4 * v13) ) goto LABEL_22; v15 = v4 > 2; v16 = 2 * v4; v24 = !v15 || v7 != 0; } else { v16 = 0; std::__hash_table,std::equal_to,std::allocator>::__construct_node_hash( (__int64)this + 792, a2, &v25, (__int64)v26); v24 = 1; v13 = *((float *)this + 206); v14 = (float)(unsigned __int64)(*((_QWORD *)this + 102) + 1LL); } v18 = v24 + v16; v19 = vcvtps_u32_f32(v14 / v13); if ( v19 < v18 ) v19 = v18; std::__hash_table,std::equal_to,std::allocator>::rehash( (unsigned __int64)this + 792, v19); v4 = *((_QWORD *)this + 100); v6 = v4 - 1; if ( ((v4 - 1) & v4) == 0 ) { v9 = 8 * (v6 & v5); v20 = *(_QWORD **)(*((_QWORD *)this + 99) + v9); if ( v20 ) goto LABEL_23; LABEL_27: *(_QWORD *)v26[0] = *((_QWORD *)this + 101); v21 = *((_QWORD *)this + 99); *((void **)this + 101) = v26[0]; *(_QWORD *)(v21 + v9) = (char *)this + 808; if ( *(_QWORD *)v26[0] ) { v22 = *(_QWORD *)(*(_QWORD *)v26[0] + 8LL); if ( (v6 & v4) != 0 ) v23 = v22 % v4; else v23 = v6 & v22; *(void **)(*((_QWORD *)this + 99) + 8 * v23) = v26[0]; } goto LABEL_24; } v9 = 8 * (v5 % v4); LABEL_22: v20 = *(_QWORD **)(*((_QWORD *)this + 99) + v9); if ( !v20 ) goto LABEL_27; LABEL_23: *(_QWORD *)v26[0] = *v20; *v20 = v26[0]; LABEL_24: ++*((_QWORD *)this + 102); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source