{"type": "func", "start": 6443248160, "end": 6443248471, "name": "cocos2d::CCScheduler::unscheduleUpdateForTarget", "pseudocode": "// \n// cocos2d::CCScheduler::unscheduleUpdateForTarget from 0x1800c2a20 to 0x1800c2b57 (311 bytes)\n// \n// 8 xrefs:\n// > cocos2d::CCNode::scheduleUpdateWithPriorityLua @ 0x1800049b1\n// > cocos2d::CCNode::unscheduleUpdate @ 0x180005493\n// > cocos2d::CCScheduler::unscheduleAllForTarget @ 0x1800c26cb\n// > cocos2d::CCScheduler::unscheduleAllWithMinPriority @ 0x1800c2745\n// > cocos2d::CCScheduler::unscheduleAllWithMinPriority @ 0x1800c276b\n// > cocos2d::CCScheduler::unscheduleAllWithMinPriority @ 0x1800c2791\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b9624\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\nvoid __fastcall cocos2d::CCScheduler::unscheduleUpdateForTarget(\n        cocos2d::CCScheduler *this,\n        const struct cocos2d::CCObject *a2)\n{\n  cocos2d::_hashUpdateEntry *m_pHashForUpdates; // r11\n  int v3; // r9d\n  __int64 v5; // r11\n  int v6; // edx\n  unsigned int v7; // r8d\n  unsigned int v8; // ecx\n  int v9; // edx\n  unsigned int v10; // r8d\n  unsigned int v11; // ecx\n  int v12; // edx\n  __int64 v13; // rax\n  __int64 v14; // rdx\n  __int64 v15; // rax\n  __int64 v16; // rax\n  struct cocos2d::_listEntry *v17; // rdx\n  int v18; // [rsp+38h] [rbp+10h]\n\n  if ( a2 )\n  {\n    v18 = (int)a2;\n    m_pHashForUpdates = this->m_pHashForUpdates;\n    v3 = (int)a2;\n    if ( m_pHashForUpdates )\n    {\n      v5 = *((_QWORD *)m_pHashForUpdates + 3);\n      v6 = (((BYTE1(a2) + ((BYTE2(a2) + (BYTE3(a2) << 8)) << 8)) << 8) + (unsigned __int8)a2 + 17973517) ^ 0x7F76D;\n      v7 = (((((BYTE1(v18) + ((BYTE2(v18) + (HIBYTE(v18) << 8)) << 8)) << 8) + (unsigned __int8)v3 + 17973517) ^ 0x7F76D) << 8)\n         ^ (-1622558010 - v6);\n      v8 = (v7 >> 13) ^ (-17973517 - v7 - v6);\n      v9 = (v8 >> 12) ^ (v6 - v7 - v8);\n      v10 = (v9 << 16) ^ (v7 - v9 - v8);\n      v11 = (v10 >> 5) ^ (v8 - v10 - v9);\n      v12 = (v11 >> 3) ^ (v9 - v10 - v11);\n      v13 = *(_QWORD *)(*(_QWORD *)v5\n                      + 16\n                      * ((unsigned int)(*(_DWORD *)(v5 + 8) - 1)\n                       & (((unsigned __int64)((v12 << 10) ^ (v10 - v12 - v11)) >> 15)\n                        ^ (v11 - ((v12 << 10) ^ (v10 - v12 - v11)) - v12))));\n      if ( v13 )\n      {\n        v14 = *(_QWORD *)(v5 + 32);\n        v15 = v13 - v14;\n        if ( v15 )\n        {\n          while ( *(_DWORD *)(v15 + 72) != 4 || **(_DWORD **)(v15 + 64) != v3 )\n          {\n            v16 = *(_QWORD *)(v15 + 56);\n            if ( v16 )\n            {\n              v15 = v16 - v14;\n              if ( v15 )\n                continue;\n            }\n            return;\n          }\n          v17 = *(struct cocos2d::_listEntry **)(v15 + 8);\n          if ( this->m_bUpdateHashLocked )\n            *((_BYTE *)v17 + 29) = 1;\n          else\n            cocos2d::CCScheduler::removeUpdateFromHash(this, v17);\n        }\n      }\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCScheduler::unscheduleUpdateForTarget from 0x1800c2a20 to 0x1800c2b57 (311 bytes)\n; \n; 8 xrefs:\n; > cocos2d::CCNode::scheduleUpdateWithPriorityLua @ 0x1800049b1\n; > cocos2d::CCNode::unscheduleUpdate @ 0x180005493\n; > cocos2d::CCScheduler::unscheduleAllForTarget @ 0x1800c26cb\n; > cocos2d::CCScheduler::unscheduleAllWithMinPriority @ 0x1800c2745\n; > cocos2d::CCScheduler::unscheduleAllWithMinPriority @ 0x1800c276b\n; > cocos2d::CCScheduler::unscheduleAllWithMinPriority @ 0x1800c2791\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b9624\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\ntest    rdx, rdx                                                       ; +0x0, 0x1800c2a20\njz      locret_1800C2B56                                               ; +0x3, 0x1800c2a23\nmov     [rsp+arg_8], rdx                                               ; +0x9, 0x1800c2a29\nsub     rsp, 28h                                                       ; +0xe, 0x1800c2a2e\nmov     r11, [rcx+58h]                                                 ; +0x12, 0x1800c2a32\nmov     r9, rdx                                                        ; +0x16, 0x1800c2a36\nmov     r10, rcx                                                       ; +0x19, 0x1800c2a39\ntest    r11, r11                                                       ; +0x1c, 0x1800c2a3c\njz      loc_1800C2B52                                                  ; +0x1f, 0x1800c2a3f\nmovzx   eax, byte ptr [rsp+28h+arg_8+2]                                ; +0x25, 0x1800c2a45\nmov     ecx, 0FEEDBEF3h                                                ; +0x2a, 0x1800c2a4a\nmovzx   r8d, byte ptr [rsp+28h+arg_8+3]                                ; +0x2f, 0x1800c2a4f\nmov     r11, [r11+18h]                                                 ; +0x35, 0x1800c2a55\nshl     r8d, 8                                                         ; +0x39, 0x1800c2a59\nadd     r8d, eax                                                       ; +0x3d, 0x1800c2a5d\nmovzx   edx, r9b                                                       ; +0x40, 0x1800c2a60\nmovzx   eax, byte ptr [rsp+28h+arg_8+1]                                ; +0x44, 0x1800c2a64\nadd     edx, 112410Dh                                                  ; +0x49, 0x1800c2a69\nshl     r8d, 8                                                         ; +0x4f, 0x1800c2a6f\nadd     r8d, eax                                                       ; +0x53, 0x1800c2a73\nshl     r8d, 8                                                         ; +0x56, 0x1800c2a76\nadd     edx, r8d                                                       ; +0x5a, 0x1800c2a7a\nmov     r8d, 9F49BAC6h                                                 ; +0x5d, 0x1800c2a7d\nxor     edx, 7F76Dh                                                    ; +0x63, 0x1800c2a83\nsub     r8d, edx                                                       ; +0x69, 0x1800c2a89\nmov     eax, edx                                                       ; +0x6c, 0x1800c2a8c\nshl     eax, 8                                                         ; +0x6e, 0x1800c2a8e\nxor     r8d, eax                                                       ; +0x71, 0x1800c2a91\nsub     ecx, r8d                                                       ; +0x74, 0x1800c2a94\nmov     eax, r8d                                                       ; +0x77, 0x1800c2a97\nsub     ecx, edx                                                       ; +0x7a, 0x1800c2a9a\nshr     eax, 0Dh                                                       ; +0x7c, 0x1800c2a9c\nxor     ecx, eax                                                       ; +0x7f, 0x1800c2a9f\nsub     edx, r8d                                                       ; +0x81, 0x1800c2aa1\nsub     edx, ecx                                                       ; +0x84, 0x1800c2aa4\nmov     eax, ecx                                                       ; +0x86, 0x1800c2aa6\nshr     eax, 0Ch                                                       ; +0x88, 0x1800c2aa8\nxor     edx, eax                                                       ; +0x8b, 0x1800c2aab\nsub     r8d, edx                                                       ; +0x8d, 0x1800c2aad\nmov     eax, edx                                                       ; +0x90, 0x1800c2ab0\nsub     r8d, ecx                                                       ; +0x92, 0x1800c2ab2\nshl     eax, 10h                                                       ; +0x95, 0x1800c2ab5\nxor     r8d, eax                                                       ; +0x98, 0x1800c2ab8\nsub     ecx, r8d                                                       ; +0x9b, 0x1800c2abb\nmov     eax, r8d                                                       ; +0x9e, 0x1800c2abe\nsub     ecx, edx                                                       ; +0xa1, 0x1800c2ac1\nshr     eax, 5                                                         ; +0xa3, 0x1800c2ac3\nxor     ecx, eax                                                       ; +0xa6, 0x1800c2ac6\nsub     edx, r8d                                                       ; +0xa8, 0x1800c2ac8\nsub     edx, ecx                                                       ; +0xab, 0x1800c2acb\nmov     eax, ecx                                                       ; +0xad, 0x1800c2acd\nshr     eax, 3                                                         ; +0xaf, 0x1800c2acf\nxor     edx, eax                                                       ; +0xb2, 0x1800c2ad2\nsub     r8d, edx                                                       ; +0xb4, 0x1800c2ad4\nmov     eax, edx                                                       ; +0xb7, 0x1800c2ad7\nsub     r8d, ecx                                                       ; +0xb9, 0x1800c2ad9\nshl     eax, 0Ah                                                       ; +0xbc, 0x1800c2adc\nxor     r8d, eax                                                       ; +0xbf, 0x1800c2adf\nsub     ecx, r8d                                                       ; +0xc2, 0x1800c2ae2\nmov     eax, r8d                                                       ; +0xc5, 0x1800c2ae5\nsub     ecx, edx                                                       ; +0xc8, 0x1800c2ae8\nshr     rax, 0Fh                                                       ; +0xca, 0x1800c2aea\nmov     edx, ecx                                                       ; +0xce, 0x1800c2aee\nmov     ecx, [r11+8]                                                   ; +0xd0, 0x1800c2af0\nxor     rdx, rax                                                       ; +0xd4, 0x1800c2af4\nmov     rax, [r11]                                                     ; +0xd7, 0x1800c2af7\ndec     ecx                                                            ; +0xda, 0x1800c2afa\nand     rdx, rcx                                                       ; +0xdc, 0x1800c2afc\nadd     rdx, rdx                                                       ; +0xdf, 0x1800c2aff\nmov     rax, [rax+rdx*8]                                               ; +0xe2, 0x1800c2b02\ntest    rax, rax                                                       ; +0xe6, 0x1800c2b06\njz      short loc_1800C2B52                                            ; +0xe9, 0x1800c2b09\nmov     rdx, [r11+20h]                                                 ; +0xeb, 0x1800c2b0b\nsub     rax, rdx                                                       ; +0xef, 0x1800c2b0f\njz      short loc_1800C2B52                                            ; +0xf2, 0x1800c2b12\ncmp     dword ptr [rax+48h], 4                                         ; +0xf4, 0x1800c2b14\njnz     short loc_1800C2B23                                            ; +0xf8, 0x1800c2b18\nmov     rcx, [rax+40h]                                                 ; +0xfa, 0x1800c2b1a\ncmp     [rcx], r9d                                                     ; +0xfe, 0x1800c2b1e\njz      short loc_1800C2B36                                            ; +0x101, 0x1800c2b21\nmov     rax, [rax+38h]                                                 ; +0x103, 0x1800c2b23\ntest    rax, rax                                                       ; +0x107, 0x1800c2b27\njz      short loc_1800C2B52                                            ; +0x10a, 0x1800c2b2a\nsub     rax, rdx                                                       ; +0x10c, 0x1800c2b2c\njnz     short loc_1800C2B14                                            ; +0x10f, 0x1800c2b2f\nadd     rsp, 28h                                                       ; +0x111, 0x1800c2b31\nretn                                                                   ; +0x115, 0x1800c2b35\ncmp     byte ptr [r10+71h], 0                                          ; +0x116, 0x1800c2b36\nmov     rdx, [rax+8]; struct cocos2d::_listEntry *                     ; +0x11b, 0x1800c2b3b\njz      short loc_1800C2B4A                                            ; +0x11f, 0x1800c2b3f\nmov     byte ptr [rdx+1Dh], 1                                          ; +0x121, 0x1800c2b41\nadd     rsp, 28h                                                       ; +0x125, 0x1800c2b45\nretn                                                                   ; +0x129, 0x1800c2b49\nmov     rcx, r10; this                                                 ; +0x12a, 0x1800c2b4a\ncall    ?removeUpdateFromHash@CCScheduler@cocos2d@@AEAAXPEAU_listEntry@2@@Z; cocos2d::CCScheduler::removeUpdateFromHash(cocos2d::_listEntry *) ; +0x12d, 0x1800c2b4d\nadd     rsp, 28h                                                       ; +0x132, 0x1800c2b52\nretn                                                                   ; +0x136, 0x1800c2b56", "xrefs": ["cocos2d::CCNode::scheduleUpdateWithPriorityLua @ 0x1800049b1", "cocos2d::CCNode::unscheduleUpdate @ 0x180005493", "cocos2d::CCScheduler::unscheduleAllForTarget @ 0x1800c26cb", "cocos2d::CCScheduler::unscheduleAllWithMinPriority @ 0x1800c2745", "cocos2d::CCScheduler::unscheduleAllWithMinPriority @ 0x1800c276b", "cocos2d::CCScheduler::unscheduleAllWithMinPriority @ 0x1800c2791", "<???> @ 0x1801438a8", "<???> @ 0x1801b9624"], "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"}