{"type": "func", "start": 6442681504, "end": 6442681646, "name": "cocos2d::CCActionManager::removeActionAtIndex", "pseudocode": "// \n// cocos2d::CCActionManager::removeActionAtIndex from 0x1800384a0 to 0x18003852e (142 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCActionManager::removeAction @ 0x180038481\n// > cocos2d::CCActionManager::removeActionByTag @ 0x180038684\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b0bb8\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::CCActionManager::removeActionAtIndex(\n        cocos2d::CCActionManager *this,\n        unsigned int a2,\n        struct cocos2d::_hashElement *a3)\n{\n  cocos2d::CCObject *v4; // rcx\n  struct cocos2d::_hashElement *v5; // rbx\n  unsigned int v7; // eax\n\n  v4 = *((cocos2d::CCObject **)a3 + 3);\n  v5 = a3;\n  if ( *(cocos2d::CCObject **)(*(_QWORD *)(*(_QWORD *)a3 + 16LL) + 8LL * a2) == v4 && !*((_BYTE *)a3 + 32) )\n  {\n    cocos2d::CCObject::retain(v4);\n    *((_BYTE *)v5 + 32) = 1;\n  }\n  LOBYTE(a3) = 1;\n  sub_18009DEE0(*(_QWORD *)v5, a2, a3);\n  v7 = *((_DWORD *)v5 + 4);\n  if ( v7 >= a2 )\n    *((_DWORD *)v5 + 4) = v7 - 1;\n  if ( !**(_DWORD **)v5 )\n  {\n    if ( this->m_pCurrentTarget == v5 )\n      this->m_bCurrentTargetSalvaged = 1;\n    else\n      cocos2d::CCActionManager::deleteHashElement(this, v5);\n  }\n}", "assembly": "; \n; cocos2d::CCActionManager::removeActionAtIndex from 0x1800384a0 to 0x18003852e (142 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCActionManager::removeAction @ 0x180038481\n; > cocos2d::CCActionManager::removeActionByTag @ 0x180038684\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b0bb8\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     [rsp+arg_0], rbx                                               ; +0x0, 0x1800384a0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1800384a5\npush    rdi                                                            ; +0xa, 0x1800384aa\nsub     rsp, 20h                                                       ; +0xb, 0x1800384ab\nmov     rax, [r8]                                                      ; +0xf, 0x1800384af\nmov     rdi, rcx                                                       ; +0x12, 0x1800384b2\nmov     rcx, [r8+18h]; this                                            ; +0x15, 0x1800384b5\nmov     rbx, r8                                                        ; +0x19, 0x1800384b9\nmov     esi, edx                                                       ; +0x1c, 0x1800384bc\nmov     r9, [rax+10h]                                                  ; +0x1e, 0x1800384be\ncmp     [r9+rsi*8], rcx                                                ; +0x22, 0x1800384c2\njnz     short loc_1800384D8                                            ; +0x26, 0x1800384c6\ncmp     byte ptr [r8+20h], 0                                           ; +0x28, 0x1800384c8\njnz     short loc_1800384D8                                            ; +0x2d, 0x1800384cd\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x2f, 0x1800384cf\nmov     byte ptr [rbx+20h], 1                                          ; +0x34, 0x1800384d4\nmov     rcx, [rbx]                                                     ; +0x38, 0x1800384d8\nmov     r8b, 1                                                         ; +0x3b, 0x1800384db\nmov     edx, esi                                                       ; +0x3e, 0x1800384de\ncall    sub_18009DEE0                                                  ; +0x40, 0x1800384e0\nmov     eax, [rbx+10h]                                                 ; +0x45, 0x1800384e5\ncmp     eax, esi                                                       ; +0x48, 0x1800384e8\njb      short loc_1800384F1                                            ; +0x4a, 0x1800384ea\ndec     eax                                                            ; +0x4c, 0x1800384ec\nmov     [rbx+10h], eax                                                 ; +0x4e, 0x1800384ee\nmov     rax, [rbx]                                                     ; +0x51, 0x1800384f1\ncmp     dword ptr [rax], 0                                             ; +0x54, 0x1800384f4\njnz     short loc_18003851E                                            ; +0x57, 0x1800384f7\ncmp     [rdi+40h], rbx                                                 ; +0x59, 0x1800384f9\njnz     short loc_180038513                                            ; +0x5d, 0x1800384fd\nmov     byte ptr [rdi+48h], 1                                          ; +0x5f, 0x1800384ff\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x63, 0x180038503\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x68, 0x180038508\nadd     rsp, 20h                                                       ; +0x6d, 0x18003850d\npop     rdi                                                            ; +0x71, 0x180038511\nretn                                                                   ; +0x72, 0x180038512\nmov     rdx, rbx; struct cocos2d::_hashElement *                       ; +0x73, 0x180038513\nmov     rcx, rdi; this                                                 ; +0x76, 0x180038516\ncall    ?deleteHashElement@CCActionManager@cocos2d@@IEAAXPEAU_hashElement@2@@Z; cocos2d::CCActionManager::deleteHashElement(cocos2d::_hashElement *) ; +0x79, 0x180038519\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x7e, 0x18003851e\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x83, 0x180038523\nadd     rsp, 20h                                                       ; +0x88, 0x180038528\npop     rdi                                                            ; +0x8c, 0x18003852c\nretn                                                                   ; +0x8d, 0x18003852d", "xrefs": ["cocos2d::CCActionManager::removeAction @ 0x180038481", "cocos2d::CCActionManager::removeActionByTag @ 0x180038684", "<???> @ 0x1801438a8", "<???> @ 0x1801b0bb8"], "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"}