{"type": "func", "start": 5372305840, "end": 5372306024, "name": "GJEffectManager::timeForItem", "pseudocode": "// \n// GJEffectManager::timeForItem from 0x14036e1b0 to 0x14036e268 (184 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::getItemValue @ 0x14033cf12\n// > GJBaseGameLayer::updateTimerLabels @ 0x14033dfea\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:30:58 +0000\n// \n\ndouble __fastcall GJEffectManager::timeForItem(_QWORD *a1, int a2)\n{\n  __int64 v3; // r9\n  __int64 v4; // rcx\n  __int64 v5; // r11\n  __int64 v6; // rax\n  __int64 v7; // rcx\n\n  v3 = 0;\n  if ( a2 < 0 )\n    a2 = 0;\n  if ( a2 > 9999 )\n    a2 = 9999;\n  v4 = a1[146];\n  v5 = a1[144];\n  v6 = *(_QWORD *)(v4\n                 + 16\n                 * (a1[149]\n                  & (0x100000001B3LL\n                   * (((unsigned __int64)(unsigned int)a2 >> 24)\n                    ^ (0x100000001B3LL\n                     * (BYTE2(a2)\n                      ^ (0x100000001B3LL\n                       * ((0x100000001B3LL * ((unsigned __int8)a2 ^ 0xCBF29CE484222325uLL)) ^ BYTE1(a2))))))))\n                 + 8);\n  if ( v6 != v5 )\n  {\n    v7 = *(_QWORD *)(v4\n                   + 16\n                   * (a1[149]\n                    & (0x100000001B3LL\n                     * (((unsigned __int64)(unsigned int)a2 >> 24)\n                      ^ (0x100000001B3LL\n                       * (BYTE2(a2)\n                        ^ (0x100000001B3LL\n                         * ((0x100000001B3LL * ((unsigned __int8)a2 ^ 0xCBF29CE484222325uLL)) ^ BYTE1(a2)))))))));\n    if ( a2 == *(_DWORD *)(v6 + 16) )\n    {\nLABEL_9:\n      v3 = v6;\n    }\n    else\n    {\n      while ( v6 != v7 )\n      {\n        v6 = *(_QWORD *)(v6 + 8);\n        if ( a2 == *(_DWORD *)(v6 + 16) )\n          goto LABEL_9;\n      }\n    }\n  }\n  if ( !v3 )\n    v3 = a1[144];\n  if ( v3 == v5 )\n    return 0.0;\n  else\n    return *(double *)(v3 + 32);\n}", "assembly": "; \n; GJEffectManager::timeForItem from 0x14036e1b0 to 0x14036e268 (184 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::getItemValue @ 0x14033cf12\n; > GJBaseGameLayer::updateTimerLabels @ 0x14033dfea\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:30:58 +0000\n; \nmov     r8, rcx                                                        ; +0x0, 0x14036e1b0\nmov     r11, 100000001B3h                                              ; +0x3, 0x14036e1b3\nxor     r9d, r9d                                                       ; +0xd, 0x14036e1bd\nmov     eax, 270Fh                                                     ; +0x10, 0x14036e1c0\ntest    edx, edx                                                       ; +0x15, 0x14036e1c5\nmov     rcx, 0CBF29CE484222325h                                        ; +0x17, 0x14036e1c7\ncmovs   edx, r9d                                                       ; +0x21, 0x14036e1d1\ncmp     edx, eax                                                       ; +0x25, 0x14036e1d5\ncmovg   edx, eax                                                       ; +0x27, 0x14036e1d7\nmov     eax, edx                                                       ; +0x2a, 0x14036e1da\nshr     eax, 8                                                         ; +0x2c, 0x14036e1dc\nmovzx   r10d, al                                                       ; +0x2f, 0x14036e1df\nmovzx   eax, dl                                                        ; +0x33, 0x14036e1e3\nxor     rax, rcx                                                       ; +0x36, 0x14036e1e6\nimul    rax, r11                                                       ; +0x39, 0x14036e1e9\nxor     r10, rax                                                       ; +0x3d, 0x14036e1ed\nmov     eax, edx                                                       ; +0x40, 0x14036e1f0\nimul    r10, r11                                                       ; +0x42, 0x14036e1f2\nshr     eax, 10h                                                       ; +0x46, 0x14036e1f6\nmovzx   ecx, al                                                        ; +0x49, 0x14036e1f9\nxor     r10, rcx                                                       ; +0x4c, 0x14036e1fc\nmov     eax, edx                                                       ; +0x4f, 0x14036e1ff\nmov     rcx, [r8+490h]                                                 ; +0x51, 0x14036e201\nimul    r10, r11                                                       ; +0x58, 0x14036e208\nshr     rax, 18h                                                       ; +0x5c, 0x14036e20c\nxor     r10, rax                                                       ; +0x60, 0x14036e210\nimul    r10, r11                                                       ; +0x63, 0x14036e213\nmov     r11, [r8+480h]                                                 ; +0x67, 0x14036e217\nand     r10, [r8+4A8h]                                                 ; +0x6e, 0x14036e21e\nadd     r10, r10                                                       ; +0x75, 0x14036e225\nmov     rax, [rcx+r10*8+8]                                             ; +0x78, 0x14036e228\ncmp     rax, r11                                                       ; +0x7d, 0x14036e22d\njz      short loc_14036E251                                            ; +0x80, 0x14036e230\nmov     rcx, [rcx+r10*8]                                               ; +0x82, 0x14036e232\ncmp     edx, [rax+10h]                                                 ; +0x86, 0x14036e236\njz      short loc_14036E24E                                            ; +0x89, 0x14036e239\nnop     dword ptr [rax+rax+00h]                                        ; +0x8b, 0x14036e23b\ncmp     rax, rcx                                                       ; +0x90, 0x14036e240\njz      short loc_14036E251                                            ; +0x93, 0x14036e243\nmov     rax, [rax+8]                                                   ; +0x95, 0x14036e245\ncmp     edx, [rax+10h]                                                 ; +0x99, 0x14036e249\njnz     short loc_14036E240                                            ; +0x9c, 0x14036e24c\nmov     r9, rax                                                        ; +0x9e, 0x14036e24e\ntest    r9, r9                                                         ; +0xa1, 0x14036e251\ncmovz   r9, r11                                                        ; +0xa4, 0x14036e254\ncmp     r9, r11                                                        ; +0xa8, 0x14036e258\njz      short loc_14036E264                                            ; +0xab, 0x14036e25b\nmovsd   xmm0, qword ptr [r9+20h]                                       ; +0xad, 0x14036e25d\nretn                                                                   ; +0xb3, 0x14036e263\nxorps   xmm0, xmm0                                                     ; +0xb4, 0x14036e264\nretn                                                                   ; +0xb7, 0x14036e267", "xrefs": ["GJBaseGameLayer::getItemValue @ 0x14033cf12", "GJBaseGameLayer::updateTimerLabels @ 0x14033dfea"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}