{"type": "func", "start": 6443246944, "end": 6443247323, "name": "cocos2d::CCScheduler::unscheduleAllForTarget", "pseudocode": "// \n// cocos2d::CCScheduler::unscheduleAllForTarget from 0x1800c2560 to 0x1800c26db (379 bytes)\n// \n// 8 xrefs:\n// > cocos2d::CCNode::cleanup @ 0x180002da2\n// > cocos2d::CCNode::setScheduler @ 0x180004f6f\n// > cocos2d::CCNode::unscheduleAllSelectors @ 0x18000547a\n// > cocos2d::CCScheduler::unscheduleAllWithMinPriority @ 0x1800c271b\n// > <???> @ 0x1801421e0\n// > <???> @ 0x1801421f0\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b957c\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::unscheduleAllForTarget(cocos2d::CCScheduler *this, struct cocos2d::CCObject *a2)\n{\n  cocos2d::_hashSelectorEntry *m_pHashForTimers; // r9\n  __int64 v5; // r10\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; // rbx\n  __int64 v14; // rcx\n  __int64 v15; // rbx\n  __int64 v16; // rbx\n\n  if ( a2 )\n  {\n    m_pHashForTimers = this->m_pHashForTimers;\n    if ( m_pHashForTimers )\n    {\n      v5 = *((_QWORD *)m_pHashForTimers + 5);\n      v6 = (((BYTE1(a2) + ((BYTE2(a2) + (BYTE3(a2) << 8)) << 8)) << 8) + (unsigned __int8)a2 + 17973517) ^ 0x7F76D;\n      v7 = (v6 << 8) ^ (-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 + 88) != 4 || **(_DWORD **)(v15 + 80) != (_DWORD)a2 )\n          {\n            v16 = *(_QWORD *)(v15 + 72);\n            if ( v16 )\n            {\n              v15 = v16 - v14;\n              if ( v15 )\n                continue;\n            }\n            goto LABEL_16;\n          }\n          if ( sub_18009D7E0(*(_QWORD *)v15, *(_QWORD *)(v15 + 24)) && !*(_BYTE *)(v15 + 32) )\n          {\n            cocos2d::CCObject::retain(*(cocos2d::CCObject **)(v15 + 24));\n            *(_BYTE *)(v15 + 32) = 1;\n          }\n          sub_18009DD50(*(unsigned int **)v15);\n          if ( this->m_pCurrentTarget == (cocos2d::_hashSelectorEntry *)v15 )\n            this->m_bCurrentTargetSalvaged = 1;\n          else\n            cocos2d::CCScheduler::removeHashElement(this, (struct cocos2d::_hashSelectorEntry *)v15);\n        }\n      }\n    }\nLABEL_16:\n    cocos2d::CCScheduler::unscheduleUpdateForTarget(this, a2);\n  }\n}", "assembly": "; \n; cocos2d::CCScheduler::unscheduleAllForTarget from 0x1800c2560 to 0x1800c26db (379 bytes)\n; \n; 8 xrefs:\n; > cocos2d::CCNode::cleanup @ 0x180002da2\n; > cocos2d::CCNode::setScheduler @ 0x180004f6f\n; > cocos2d::CCNode::unscheduleAllSelectors @ 0x18000547a\n; > cocos2d::CCScheduler::unscheduleAllWithMinPriority @ 0x1800c271b\n; > <???> @ 0x1801421e0\n; > <???> @ 0x1801421f0\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b957c\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, 0x1800c2560\njz      locret_1800C26DA                                               ; +0x3, 0x1800c2563\nmov     [rsp+arg_10], rsi                                              ; +0x9, 0x1800c2569\nmov     [rsp+arg_8], rdx                                               ; +0xe, 0x1800c256e\npush    rdi                                                            ; +0x13, 0x1800c2573\nsub     rsp, 20h                                                       ; +0x14, 0x1800c2574\nmov     r9, [rcx+60h]                                                  ; +0x18, 0x1800c2578\nmov     rdi, rdx                                                       ; +0x1c, 0x1800c257c\nmov     rsi, rcx                                                       ; +0x1f, 0x1800c257f\ntest    r9, r9                                                         ; +0x22, 0x1800c2582\njz      loc_1800C26C5                                                  ; +0x25, 0x1800c2585\nmovzx   eax, byte ptr [rsp+28h+arg_8+2]                                ; +0x2b, 0x1800c258b\nmov     ecx, 0FEEDBEF3h                                                ; +0x30, 0x1800c2590\nmovzx   r8d, byte ptr [rsp+28h+arg_8+3]                                ; +0x35, 0x1800c2595\nmov     r10, [r9+28h]                                                  ; +0x3b, 0x1800c259b\nshl     r8d, 8                                                         ; +0x3f, 0x1800c259f\nadd     r8d, eax                                                       ; +0x43, 0x1800c25a3\nmovzx   edx, dil                                                       ; +0x46, 0x1800c25a6\nmovzx   eax, byte ptr [rsp+28h+arg_8+1]                                ; +0x4a, 0x1800c25aa\nadd     edx, 112410Dh                                                  ; +0x4f, 0x1800c25af\nshl     r8d, 8                                                         ; +0x55, 0x1800c25b5\nadd     r8d, eax                                                       ; +0x59, 0x1800c25b9\nmov     [rsp+28h+arg_0], rbx                                           ; +0x5c, 0x1800c25bc\nmov     rbx, [r10]                                                     ; +0x61, 0x1800c25c1\nshl     r8d, 8                                                         ; +0x64, 0x1800c25c4\nadd     edx, r8d                                                       ; +0x68, 0x1800c25c8\nmov     r8d, 9F49BAC6h                                                 ; +0x6b, 0x1800c25cb\nxor     edx, 7F76Dh                                                    ; +0x71, 0x1800c25d1\nsub     r8d, edx                                                       ; +0x77, 0x1800c25d7\nmov     eax, edx                                                       ; +0x7a, 0x1800c25da\nshl     eax, 8                                                         ; +0x7c, 0x1800c25dc\nxor     r8d, eax                                                       ; +0x7f, 0x1800c25df\nsub     ecx, r8d                                                       ; +0x82, 0x1800c25e2\nmov     eax, r8d                                                       ; +0x85, 0x1800c25e5\nsub     ecx, edx                                                       ; +0x88, 0x1800c25e8\nshr     eax, 0Dh                                                       ; +0x8a, 0x1800c25ea\nxor     ecx, eax                                                       ; +0x8d, 0x1800c25ed\nsub     edx, r8d                                                       ; +0x8f, 0x1800c25ef\nsub     edx, ecx                                                       ; +0x92, 0x1800c25f2\nmov     eax, ecx                                                       ; +0x94, 0x1800c25f4\nshr     eax, 0Ch                                                       ; +0x96, 0x1800c25f6\nxor     edx, eax                                                       ; +0x99, 0x1800c25f9\nsub     r8d, edx                                                       ; +0x9b, 0x1800c25fb\nmov     eax, edx                                                       ; +0x9e, 0x1800c25fe\nsub     r8d, ecx                                                       ; +0xa0, 0x1800c2600\nshl     eax, 10h                                                       ; +0xa3, 0x1800c2603\nxor     r8d, eax                                                       ; +0xa6, 0x1800c2606\nsub     ecx, r8d                                                       ; +0xa9, 0x1800c2609\nmov     eax, r8d                                                       ; +0xac, 0x1800c260c\nsub     ecx, edx                                                       ; +0xaf, 0x1800c260f\nshr     eax, 5                                                         ; +0xb1, 0x1800c2611\nxor     ecx, eax                                                       ; +0xb4, 0x1800c2614\nsub     edx, r8d                                                       ; +0xb6, 0x1800c2616\nsub     edx, ecx                                                       ; +0xb9, 0x1800c2619\nmov     eax, ecx                                                       ; +0xbb, 0x1800c261b\nshr     eax, 3                                                         ; +0xbd, 0x1800c261d\nxor     edx, eax                                                       ; +0xc0, 0x1800c2620\nsub     r8d, edx                                                       ; +0xc2, 0x1800c2622\nmov     eax, edx                                                       ; +0xc5, 0x1800c2625\nsub     r8d, ecx                                                       ; +0xc7, 0x1800c2627\nshl     eax, 0Ah                                                       ; +0xca, 0x1800c262a\nxor     r8d, eax                                                       ; +0xcd, 0x1800c262d\nsub     ecx, r8d                                                       ; +0xd0, 0x1800c2630\nmov     eax, r8d                                                       ; +0xd3, 0x1800c2633\nsub     ecx, edx                                                       ; +0xd6, 0x1800c2636\nshr     rax, 0Fh                                                       ; +0xd8, 0x1800c2638\nmov     edx, ecx                                                       ; +0xdc, 0x1800c263c\nmov     ecx, [r10+8]                                                   ; +0xde, 0x1800c263e\nxor     rdx, rax                                                       ; +0xe2, 0x1800c2642\ndec     ecx                                                            ; +0xe5, 0x1800c2645\nand     rdx, rcx                                                       ; +0xe7, 0x1800c2647\nadd     rdx, rdx                                                       ; +0xea, 0x1800c264a\nmov     rbx, [rbx+rdx*8]                                               ; +0xed, 0x1800c264d\ntest    rbx, rbx                                                       ; +0xf1, 0x1800c2651\njz      short loc_1800C26C0                                            ; +0xf4, 0x1800c2654\nmov     rcx, [r10+20h]                                                 ; +0xf6, 0x1800c2656\nsub     rbx, rcx                                                       ; +0xfa, 0x1800c265a\njz      short loc_1800C26C0                                            ; +0xfd, 0x1800c265d\nnop                                                                    ; +0xff, 0x1800c265f\ncmp     dword ptr [rbx+58h], 4                                         ; +0x100, 0x1800c2660\njnz     short loc_1800C266E                                            ; +0x104, 0x1800c2664\nmov     rax, [rbx+50h]                                                 ; +0x106, 0x1800c2666\ncmp     [rax], edi                                                     ; +0x10a, 0x1800c266a\njz      short loc_1800C267E                                            ; +0x10c, 0x1800c266c\nmov     rbx, [rbx+48h]                                                 ; +0x10e, 0x1800c266e\ntest    rbx, rbx                                                       ; +0x112, 0x1800c2672\njz      short loc_1800C26C0                                            ; +0x115, 0x1800c2675\nsub     rbx, rcx                                                       ; +0x117, 0x1800c2677\njnz     short loc_1800C2660                                            ; +0x11a, 0x1800c267a\njmp     short loc_1800C26C0                                            ; +0x11c, 0x1800c267c\nmov     rdx, [rbx+18h]                                                 ; +0x11e, 0x1800c267e\nmov     rcx, [rbx]                                                     ; +0x122, 0x1800c2682\ncall    sub_18009D7E0                                                  ; +0x125, 0x1800c2685\ntest    al, al                                                         ; +0x12a, 0x1800c268a\njz      short loc_1800C26A1                                            ; +0x12c, 0x1800c268c\ncmp     byte ptr [rbx+20h], 0                                          ; +0x12e, 0x1800c268e\njnz     short loc_1800C26A1                                            ; +0x132, 0x1800c2692\nmov     rcx, [rbx+18h]; this                                           ; +0x134, 0x1800c2694\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x138, 0x1800c2698\nmov     byte ptr [rbx+20h], 1                                          ; +0x13d, 0x1800c269d\nmov     rcx, [rbx]                                                     ; +0x141, 0x1800c26a1\ncall    sub_18009DD50                                                  ; +0x144, 0x1800c26a4\ncmp     [rsi+68h], rbx                                                 ; +0x149, 0x1800c26a9\njnz     short loc_1800C26B5                                            ; +0x14d, 0x1800c26ad\nmov     byte ptr [rsi+70h], 1                                          ; +0x14f, 0x1800c26af\njmp     short loc_1800C26C0                                            ; +0x153, 0x1800c26b3\nmov     rdx, rbx; struct cocos2d::_hashSelectorEntry *                 ; +0x155, 0x1800c26b5\nmov     rcx, rsi; this                                                 ; +0x158, 0x1800c26b8\ncall    ?removeHashElement@CCScheduler@cocos2d@@AEAAXPEAU_hashSelectorEntry@2@@Z; cocos2d::CCScheduler::removeHashElement(cocos2d::_hashSelectorEntry *) ; +0x15b, 0x1800c26bb\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x160, 0x1800c26c0\nmov     rdx, rdi; struct cocos2d::CCObject *                           ; +0x165, 0x1800c26c5\nmov     rcx, rsi; this                                                 ; +0x168, 0x1800c26c8\ncall    ?unscheduleUpdateForTarget@CCScheduler@cocos2d@@QEAAXPEBVCCObject@2@@Z; cocos2d::CCScheduler::unscheduleUpdateForTarget(cocos2d::CCObject const *) ; +0x16b, 0x1800c26cb\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x170, 0x1800c26d0\nadd     rsp, 20h                                                       ; +0x175, 0x1800c26d5\npop     rdi                                                            ; +0x179, 0x1800c26d9\nretn                                                                   ; +0x17a, 0x1800c26da", "xrefs": ["cocos2d::CCNode::cleanup @ 0x180002da2", "cocos2d::CCNode::setScheduler @ 0x180004f6f", "cocos2d::CCNode::unscheduleAllSelectors @ 0x18000547a", "cocos2d::CCScheduler::unscheduleAllWithMinPriority @ 0x1800c271b", "<???> @ 0x1801421e0", "<???> @ 0x1801421f0", "<???> @ 0x1801438a8", "<???> @ 0x1801b957c"], "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"}