{"type": "func", "start": 5371212048, "end": 5371212194, "name": "GJEffectManager::timerExists", "pseudocode": "// \n// GJEffectManager::timerExists from 0x140263110 to 0x1402631a2 (146 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::activatePersistentItemTrigger @ 0x140234b3d\n// > GJBaseGameLayer::activatePersistentItemTrigger @ 0x140234beb\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nbool GJEffectManager::timerExists(GJEffectManager *a1, int a2)\n{\n  __int64 *v3; // rcx\n  __int64 v4; // rax\n  __int64 v5; // rcx\n\n  v3 = (__int64 *)((char *)a1->m_timerItemMap._Vec._Mypair._Myval2._Myfirst\n                 + 16\n                 * ((0x100000001B3LL\n                   * (HIBYTE(a2)\n                    ^ (0x100000001B3LL\n                     * (BYTE2(a2)\n                      ^ (0x100000001B3LL\n                       * (BYTE1(a2) ^ (0x100000001B3LL * ((unsigned __int8)a2 ^ 0xCBF29CE484222325uLL))))))))\n                  & a1->m_timerItemMap._Mask));\n  v4 = v3[1];\n  if ( (std::_List_val<std::_List_simple_types<std::pair<const int, TimerItem>>>::_Nodeptr)v4 == a1->m_timerItemMap._List._Mypair._Myval2._Myhead )\n  {\nLABEL_6:\n    v4 = 0;\n    return v4 != 0;\n  }\n  v5 = *v3;\n  if ( a2 != *(_DWORD *)(v4 + 16) )\n  {\n    while ( v4 != v5 )\n    {\n      v4 = *(_QWORD *)(v4 + 8);\n      if ( a2 == *(_DWORD *)(v4 + 16) )\n        return v4 != 0;\n    }\n    goto LABEL_6;\n  }\n  return v4 != 0;\n}", "assembly": "; \n; GJEffectManager::timerExists from 0x140263110 to 0x1402631a2 (146 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::activatePersistentItemTrigger @ 0x140234b3d\n; > GJBaseGameLayer::activatePersistentItemTrigger @ 0x140234beb\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     r9, rcx                                                        ; +0x0, 0x140263110\nmov     [rsp+arg_8], edx                                               ; +0x3, 0x140263113\nmov     rcx, 100000001B3h                                              ; +0x7, 0x140263117\nmovzx   r8d, dl                                                        ; +0x11, 0x140263121\nmov     rax, 0CBF29CE484222325h                                        ; +0x15, 0x140263125\nxor     r8, rax                                                        ; +0x1f, 0x14026312f\nmovzx   eax, byte ptr [rsp+arg_8+1]                                    ; +0x22, 0x140263132\nimul    r8, rcx                                                        ; +0x27, 0x140263137\nxor     r8, rax                                                        ; +0x2b, 0x14026313b\nmovzx   eax, byte ptr [rsp+arg_8+2]                                    ; +0x2e, 0x14026313e\nimul    r8, rcx                                                        ; +0x33, 0x140263143\nxor     r8, rax                                                        ; +0x37, 0x140263147\nmovzx   eax, byte ptr [rsp+arg_8+3]                                    ; +0x3a, 0x14026314a\nimul    r8, rcx                                                        ; +0x3f, 0x14026314f\nxor     r8, rax                                                        ; +0x43, 0x140263153\nimul    r8, rcx                                                        ; +0x46, 0x140263156\nmov     rcx, [r9+4A0h]                                                 ; +0x4a, 0x14026315a\nand     rcx, r8                                                        ; +0x51, 0x140263161\nshl     rcx, 4                                                         ; +0x54, 0x140263164\nadd     rcx, [r9+488h]                                                 ; +0x58, 0x140263168\nmov     rax, [rcx+8]                                                   ; +0x5f, 0x14026316f\ncmp     rax, [r9+478h]                                                 ; +0x63, 0x140263173\njz      short loc_140263199                                            ; +0x6a, 0x14026317a\nmov     rcx, [rcx]                                                     ; +0x6c, 0x14026317c\ncmp     edx, [rax+10h]                                                 ; +0x6f, 0x14026317f\njz      short loc_14026319B                                            ; +0x72, 0x140263182\ncmp     rax, rcx                                                       ; +0x74, 0x140263184\njz      short loc_140263199                                            ; +0x77, 0x140263187\nmov     rax, [rax+8]                                                   ; +0x79, 0x140263189\ncmp     edx, [rax+10h]                                                 ; +0x7d, 0x14026318d\njnz     short loc_140263184                                            ; +0x80, 0x140263190\ntest    rax, rax                                                       ; +0x82, 0x140263192\nsetnz   al                                                             ; +0x85, 0x140263195\nretn                                                                   ; +0x88, 0x140263198\nxor     eax, eax                                                       ; +0x89, 0x140263199\ntest    rax, rax                                                       ; +0x8b, 0x14026319b\nsetnz   al                                                             ; +0x8e, 0x14026319e\nretn                                                                   ; +0x91, 0x1402631a1", "xrefs": ["GJBaseGameLayer::activatePersistentItemTrigger @ 0x140234b3d", "GJBaseGameLayer::activatePersistentItemTrigger @ 0x140234beb"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}