{"type": "func", "start": 6443247328, "end": 6443247556, "name": "cocos2d::CCScheduler::unscheduleAllWithMinPriority", "pseudocode": "// \n// cocos2d::CCScheduler::unscheduleAllWithMinPriority from 0x1800c26e0 to 0x1800c27c4 (228 bytes)\n// \n// 7 xrefs:\n// > cocos2d::CCScheduler::~CCScheduler @ 0x1800c0398\n// > sub_1800C03C0 @ 0x1800c042c\n// > cocos2d::CCScheduler::unscheduleAll @ 0x1800c2555\n// > <???> @ 0x18014220c\n// > <???> @ 0x18014221c\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b95a0\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::unscheduleAllWithMinPriority(cocos2d::CCScheduler *this, int a2)\n{\n  cocos2d::_hashSelectorEntry *m_pHashForTimers; // rdx\n  cocos2d::_hashSelectorEntry *v5; // rbx\n  cocos2d::_listEntry *m_pUpdatesNegList; // rdx\n  cocos2d::_listEntry *v7; // rbx\n  cocos2d::_listEntry *m_pUpdates0List; // rdx\n  cocos2d::_listEntry *v9; // rbx\n  cocos2d::_listEntry *m_pUpdatesPosList; // rdx\n  cocos2d::_listEntry *v11; // rbx\n  cocos2d::CCArray *m_pScriptHandlerEntries; // rcx\n\n  m_pHashForTimers = this->m_pHashForTimers;\n  if ( m_pHashForTimers )\n  {\n    do\n    {\n      v5 = *((cocos2d::_hashSelectorEntry **)m_pHashForTimers + 7);\n      cocos2d::CCScheduler::unscheduleAllForTarget(this, *((struct cocos2d::CCObject **)m_pHashForTimers + 1));\n      m_pHashForTimers = v5;\n    }\n    while ( v5 );\n  }\n  if ( a2 >= 0 )\n  {\n    if ( a2 > 0 )\n      goto LABEL_12;\n  }\n  else\n  {\n    m_pUpdatesNegList = this->m_pUpdatesNegList;\n    if ( m_pUpdatesNegList )\n    {\n      do\n      {\n        v7 = *((cocos2d::_listEntry **)m_pUpdatesNegList + 1);\n        if ( *((_DWORD *)m_pUpdatesNegList + 6) >= a2 )\n          cocos2d::CCScheduler::unscheduleUpdateForTarget(\n            this,\n            *((const struct cocos2d::CCObject **)m_pUpdatesNegList + 2));\n        m_pUpdatesNegList = v7;\n      }\n      while ( v7 );\n    }\n  }\n  m_pUpdates0List = this->m_pUpdates0List;\n  if ( m_pUpdates0List )\n  {\n    do\n    {\n      v9 = *((cocos2d::_listEntry **)m_pUpdates0List + 1);\n      cocos2d::CCScheduler::unscheduleUpdateForTarget(this, *((const struct cocos2d::CCObject **)m_pUpdates0List + 2));\n      m_pUpdates0List = v9;\n    }\n    while ( v9 );\n  }\nLABEL_12:\n  m_pUpdatesPosList = this->m_pUpdatesPosList;\n  if ( m_pUpdatesPosList )\n  {\n    do\n    {\n      v11 = *((cocos2d::_listEntry **)m_pUpdatesPosList + 1);\n      if ( *((_DWORD *)m_pUpdatesPosList + 6) >= a2 )\n        cocos2d::CCScheduler::unscheduleUpdateForTarget(\n          this,\n          *((const struct cocos2d::CCObject **)m_pUpdatesPosList + 2));\n      m_pUpdatesPosList = v11;\n    }\n    while ( v11 );\n  }\n  m_pScriptHandlerEntries = this->m_pScriptHandlerEntries;\n  if ( m_pScriptHandlerEntries )\n    cocos2d::CCArray::removeAllObjects(m_pScriptHandlerEntries);\n}", "assembly": "; \n; cocos2d::CCScheduler::unscheduleAllWithMinPriority from 0x1800c26e0 to 0x1800c27c4 (228 bytes)\n; \n; 7 xrefs:\n; > cocos2d::CCScheduler::~CCScheduler @ 0x1800c0398\n; > sub_1800C03C0 @ 0x1800c042c\n; > cocos2d::CCScheduler::unscheduleAll @ 0x1800c2555\n; > <???> @ 0x18014220c\n; > <???> @ 0x18014221c\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b95a0\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\nsub     rsp, 28h                                                       ; +0x0, 0x1800c26e0\nmov     [rsp+28h+arg_0], rbx                                           ; +0x4, 0x1800c26e4\nmov     [rsp+28h+arg_8], rsi                                           ; +0x9, 0x1800c26e9\nmov     esi, edx                                                       ; +0xe, 0x1800c26ee\nmov     rdx, [rcx+60h]                                                 ; +0x10, 0x1800c26f0\nmov     [rsp+28h+var_8], rdi                                           ; +0x14, 0x1800c26f4\nmov     rdi, rcx                                                       ; +0x19, 0x1800c26f9\ntest    rdx, rdx                                                       ; +0x1c, 0x1800c26fc\njz      short loc_1800C2728                                            ; +0x1f, 0x1800c26ff\nnop     dword ptr [rax+00h]                                            ; +0x21, 0x1800c2701\nnop     word ptr [rax+rax+00000000h]                                   ; +0x25, 0x1800c2705\nmov     rbx, [rdx+38h]                                                 ; +0x30, 0x1800c2710\nmov     rcx, rdi; this                                                 ; +0x34, 0x1800c2714\nmov     rdx, [rdx+8]; struct cocos2d::CCObject *                       ; +0x37, 0x1800c2717\ncall    ?unscheduleAllForTarget@CCScheduler@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCScheduler::unscheduleAllForTarget(cocos2d::CCObject *) ; +0x3b, 0x1800c271b\nmov     rdx, rbx                                                       ; +0x40, 0x1800c2720\ntest    rbx, rbx                                                       ; +0x43, 0x1800c2723\njnz     short loc_1800C2710                                            ; +0x46, 0x1800c2726\ntest    esi, esi                                                       ; +0x48, 0x1800c2728\njns     short loc_1800C2754                                            ; +0x4a, 0x1800c272a\nmov     rdx, [rdi+40h]                                                 ; +0x4c, 0x1800c272c\ntest    rdx, rdx                                                       ; +0x50, 0x1800c2730\njz      short loc_1800C2756                                            ; +0x53, 0x1800c2733\nmov     rbx, [rdx+8]                                                   ; +0x55, 0x1800c2735\ncmp     [rdx+18h], esi                                                 ; +0x59, 0x1800c2739\njl      short loc_1800C274A                                            ; +0x5c, 0x1800c273c\nmov     rdx, [rdx+10h]; struct cocos2d::CCObject *                     ; +0x5e, 0x1800c273e\nmov     rcx, rdi; this                                                 ; +0x62, 0x1800c2742\ncall    ?unscheduleUpdateForTarget@CCScheduler@cocos2d@@QEAAXPEBVCCObject@2@@Z; cocos2d::CCScheduler::unscheduleUpdateForTarget(cocos2d::CCObject const *) ; +0x65, 0x1800c2745\nmov     rdx, rbx                                                       ; +0x6a, 0x1800c274a\ntest    rbx, rbx                                                       ; +0x6d, 0x1800c274d\njnz     short loc_1800C2735                                            ; +0x70, 0x1800c2750\njmp     short loc_1800C2756                                            ; +0x72, 0x1800c2752\njg      short loc_1800C2778                                            ; +0x74, 0x1800c2754\nmov     rdx, [rdi+48h]                                                 ; +0x76, 0x1800c2756\ntest    rdx, rdx                                                       ; +0x7a, 0x1800c275a\njz      short loc_1800C2778                                            ; +0x7d, 0x1800c275d\nnop                                                                    ; +0x7f, 0x1800c275f\nmov     rbx, [rdx+8]                                                   ; +0x80, 0x1800c2760\nmov     rcx, rdi; this                                                 ; +0x84, 0x1800c2764\nmov     rdx, [rdx+10h]; struct cocos2d::CCObject *                     ; +0x87, 0x1800c2767\ncall    ?unscheduleUpdateForTarget@CCScheduler@cocos2d@@QEAAXPEBVCCObject@2@@Z; cocos2d::CCScheduler::unscheduleUpdateForTarget(cocos2d::CCObject const *) ; +0x8b, 0x1800c276b\nmov     rdx, rbx                                                       ; +0x90, 0x1800c2770\ntest    rbx, rbx                                                       ; +0x93, 0x1800c2773\njnz     short loc_1800C2760                                            ; +0x96, 0x1800c2776\nmov     rdx, [rdi+50h]                                                 ; +0x98, 0x1800c2778\ntest    rdx, rdx                                                       ; +0x9c, 0x1800c277c\njz      short loc_1800C279E                                            ; +0x9f, 0x1800c277f\nmov     rbx, [rdx+8]                                                   ; +0xa1, 0x1800c2781\ncmp     [rdx+18h], esi                                                 ; +0xa5, 0x1800c2785\njl      short loc_1800C2796                                            ; +0xa8, 0x1800c2788\nmov     rdx, [rdx+10h]; struct cocos2d::CCObject *                     ; +0xaa, 0x1800c278a\nmov     rcx, rdi; this                                                 ; +0xae, 0x1800c278e\ncall    ?unscheduleUpdateForTarget@CCScheduler@cocos2d@@QEAAXPEBVCCObject@2@@Z; cocos2d::CCScheduler::unscheduleUpdateForTarget(cocos2d::CCObject const *) ; +0xb1, 0x1800c2791\nmov     rdx, rbx                                                       ; +0xb6, 0x1800c2796\ntest    rbx, rbx                                                       ; +0xb9, 0x1800c2799\njnz     short loc_1800C2781                                            ; +0xbc, 0x1800c279c\nmov     rcx, [rdi+78h]; this                                           ; +0xbe, 0x1800c279e\nmov     rdi, [rsp+28h+var_8]                                           ; +0xc2, 0x1800c27a2\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xc7, 0x1800c27a7\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xcc, 0x1800c27ac\ntest    rcx, rcx                                                       ; +0xd1, 0x1800c27b1\njz      short loc_1800C27BF                                            ; +0xd4, 0x1800c27b4\nadd     rsp, 28h                                                       ; +0xd6, 0x1800c27b6\njmp     ?removeAllObjects@CCArray@cocos2d@@QEAAXXZ; cocos2d::CCArray::removeAllObjects(void) ; +0xda, 0x1800c27ba\nadd     rsp, 28h                                                       ; +0xdf, 0x1800c27bf\nretn                                                                   ; +0xe3, 0x1800c27c3", "xrefs": ["cocos2d::CCScheduler::~CCScheduler @ 0x1800c0398", "sub_1800C03C0 @ 0x1800c042c", "cocos2d::CCScheduler::unscheduleAll @ 0x1800c2555", "<???> @ 0x18014220c", "<???> @ 0x18014221c", "<???> @ 0x1801438a8", "<???> @ 0x1801b95a0"], "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"}