// // GJEffectManager::timeForItem from 0x14036e1b0 to 0x14036e268 (184 bytes) // // 2 xrefs: // > GJBaseGameLayer::getItemValue @ 0x14033cf12 // > GJBaseGameLayer::updateTimerLabels @ 0x14033dfea // // 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 11:30:58 +0000 // double __fastcall GJEffectManager::timeForItem(_QWORD *a1, int a2) { __int64 v3; // r9 __int64 v4; // rcx __int64 v5; // r11 __int64 v6; // rax __int64 v7; // rcx v3 = 0; if ( a2 < 0 ) a2 = 0; if ( a2 > 9999 ) a2 = 9999; v4 = a1[146]; v5 = a1[144]; v6 = *(_QWORD *)(v4 + 16 * (a1[149] & (0x100000001B3LL * (((unsigned __int64)(unsigned int)a2 >> 24) ^ (0x100000001B3LL * (BYTE2(a2) ^ (0x100000001B3LL * ((0x100000001B3LL * ((unsigned __int8)a2 ^ 0xCBF29CE484222325uLL)) ^ BYTE1(a2)))))))) + 8); if ( v6 != v5 ) { v7 = *(_QWORD *)(v4 + 16 * (a1[149] & (0x100000001B3LL * (((unsigned __int64)(unsigned int)a2 >> 24) ^ (0x100000001B3LL * (BYTE2(a2) ^ (0x100000001B3LL * ((0x100000001B3LL * ((unsigned __int8)a2 ^ 0xCBF29CE484222325uLL)) ^ BYTE1(a2))))))))); if ( a2 == *(_DWORD *)(v6 + 16) ) { LABEL_9: v3 = v6; } else { while ( v6 != v7 ) { v6 = *(_QWORD *)(v6 + 8); if ( a2 == *(_DWORD *)(v6 + 16) ) goto LABEL_9; } } } if ( !v3 ) v3 = a1[144]; if ( v3 == v5 ) return 0.0; else return *(double *)(v3 + 32); }