{"type": "func", "start": 6442679856, "end": 6442680178, "name": "cocos2d::CCActionManager::deleteHashElement", "pseudocode": "// \n// cocos2d::CCActionManager::deleteHashElement from 0x180037e30 to 0x180037f72 (322 bytes)\n// \n// 6 xrefs:\n// > cocos2d::CCActionManager::removeActionAtIndex @ 0x180038519\n// > cocos2d::CCActionManager::removeAllActions @ 0x180038811\n// > cocos2d::CCActionManager::removeAllActionsFromTarget @ 0x18003899e\n// > cocos2d::CCActionManager::update @ 0x180038c95\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b0b70\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::deleteHashElement(\n        cocos2d::CCActionManager *this,\n        struct cocos2d::_hashElement *a2)\n{\n  __int64 v4; // r9\n  __int64 v5; // r10\n  __int64 v6; // r9\n  cocos2d::_hashElement *v7; // rdx\n  __int64 v8; // r9\n  __int64 v9; // rcx\n  __int64 v10; // r9\n  _QWORD *v11; // rcx\n  __int64 v12; // rcx\n  __int64 v13; // rcx\n\n  sub_18009DA50(a2);\n  if ( *((_OWORD *)a2 + 3) == 0 )\n  {\n    free(**((void ***)this->m_pTargets + 5));\n    free(*((void **)this->m_pTargets + 5));\n    this->m_pTargets = nullptr;\n  }\n  else\n  {\n    v4 = *((_QWORD *)this->m_pTargets + 5);\n    v5 = *(_QWORD *)(v4 + 32);\n    if ( a2 == (struct cocos2d::_hashElement *)(*(_QWORD *)(v4 + 24) - v5) )\n      *(_QWORD *)(v4 + 24) = v5 + *((_QWORD *)a2 + 6);\n    v6 = *((_QWORD *)a2 + 6);\n    v7 = *((cocos2d::_hashElement **)a2 + 7);\n    if ( v6 )\n      *(_QWORD *)(*(_QWORD *)(*((_QWORD *)this->m_pTargets + 5) + 32LL) + v6 + 16) = v7;\n    else\n      this->m_pTargets = v7;\n    v8 = *((_QWORD *)a2 + 7);\n    if ( v8 )\n      *(_QWORD *)(*(_QWORD *)(*((_QWORD *)this->m_pTargets + 5) + 32LL) + v8 + 8) = *((_QWORD *)a2 + 6);\n    v9 = *((_QWORD *)this->m_pTargets + 5);\n    v10 = *((_DWORD *)a2 + 23) & (unsigned int)(*(_DWORD *)(v9 + 8) - 1);\n    --*(_DWORD *)(*(_QWORD *)v9 + 16 * v10 + 8);\n    v11 = *((_QWORD **)this->m_pTargets + 5);\n    if ( *(struct cocos2d::_hashElement **)(*v11 + 16 * v10) == (struct cocos2d::_hashElement *)((char *)a2 + 40) )\n      *(_QWORD *)(*v11 + 16 * v10) = *((_QWORD *)a2 + 9);\n    v12 = *((_QWORD *)a2 + 8);\n    if ( v12 )\n      *(_QWORD *)(v12 + 32) = *((_QWORD *)a2 + 9);\n    v13 = *((_QWORD *)a2 + 9);\n    if ( v13 )\n      *(_QWORD *)(v13 + 24) = *((_QWORD *)a2 + 8);\n    --*(_DWORD *)(*((_QWORD *)this->m_pTargets + 5) + 16LL);\n  }\n  cocos2d::CCObject::release(*((cocos2d::CCObject **)a2 + 1));\n  free(a2);\n}", "assembly": "; \n; cocos2d::CCActionManager::deleteHashElement from 0x180037e30 to 0x180037f72 (322 bytes)\n; \n; 6 xrefs:\n; > cocos2d::CCActionManager::removeActionAtIndex @ 0x180038519\n; > cocos2d::CCActionManager::removeAllActions @ 0x180038811\n; > cocos2d::CCActionManager::removeAllActionsFromTarget @ 0x18003899e\n; > cocos2d::CCActionManager::update @ 0x180038c95\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b0b70\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, 0x180037e30\npush    rdi                                                            ; +0x5, 0x180037e35\nsub     rsp, 20h                                                       ; +0x6, 0x180037e36\nmov     rbx, rcx                                                       ; +0xa, 0x180037e3a\nmov     rdi, rdx                                                       ; +0xd, 0x180037e3d\nmov     rcx, rdx                                                       ; +0x10, 0x180037e40\ncall    sub_18009DA50                                                  ; +0x13, 0x180037e43\nmov     rdx, [rdi+30h]                                                 ; +0x18, 0x180037e48\ntest    rdx, rdx                                                       ; +0x1c, 0x180037e4c\njnz     short loc_180037E83                                            ; +0x1f, 0x180037e4f\ncmp     [rdi+38h], rdx                                                 ; +0x21, 0x180037e51\njnz     short loc_180037E83                                            ; +0x25, 0x180037e55\nmov     rax, [rbx+38h]                                                 ; +0x27, 0x180037e57\nmov     rcx, [rax+28h]                                                 ; +0x2b, 0x180037e5b\nmov     rcx, [rcx]; Block                                              ; +0x2f, 0x180037e5f\ncall    cs:__imp_free                                                  ; +0x32, 0x180037e62\nmov     rcx, [rbx+38h]                                                 ; +0x38, 0x180037e68\nmov     rcx, [rcx+28h]; Block                                          ; +0x3c, 0x180037e6c\ncall    cs:__imp_free                                                  ; +0x40, 0x180037e70\nmov     qword ptr [rbx+38h], 0                                         ; +0x46, 0x180037e76\njmp     loc_180037F55                                                  ; +0x4e, 0x180037e7e\nmov     rax, [rbx+38h]                                                 ; +0x53, 0x180037e83\nlea     r8, [rdi+28h]                                                  ; +0x57, 0x180037e87\nmov     r9, [rax+28h]                                                  ; +0x5b, 0x180037e8b\nmov     r10, [r9+20h]                                                  ; +0x5f, 0x180037e8f\nmov     rax, [r9+18h]                                                  ; +0x63, 0x180037e93\nsub     rax, r10                                                       ; +0x67, 0x180037e97\ncmp     rdi, rax                                                       ; +0x6a, 0x180037e9a\njnz     short loc_180037EA7                                            ; +0x6d, 0x180037e9d\nlea     rax, [r10+rdx]                                                 ; +0x6f, 0x180037e9f\nmov     [r9+18h], rax                                                  ; +0x73, 0x180037ea3\nmov     r9, [rdi+30h]                                                  ; +0x77, 0x180037ea7\nmov     rdx, [rdi+38h]                                                 ; +0x7b, 0x180037eab\ntest    r9, r9                                                         ; +0x7f, 0x180037eaf\njz      short loc_180037EC7                                            ; +0x82, 0x180037eb2\nmov     rax, [rbx+38h]                                                 ; +0x84, 0x180037eb4\nmov     rcx, [rax+28h]                                                 ; +0x88, 0x180037eb8\nmov     rax, [rcx+20h]                                                 ; +0x8c, 0x180037ebc\nmov     [rax+r9+10h], rdx                                              ; +0x90, 0x180037ec0\njmp     short loc_180037ECB                                            ; +0x95, 0x180037ec5\nmov     [rbx+38h], rdx                                                 ; +0x97, 0x180037ec7\nmov     r9, [r8+10h]                                                   ; +0x9b, 0x180037ecb\ntest    r9, r9                                                         ; +0x9f, 0x180037ecf\njz      short loc_180037EE9                                            ; +0xa2, 0x180037ed2\nmov     rax, [rbx+38h]                                                 ; +0xa4, 0x180037ed4\nmov     rcx, [rax+28h]                                                 ; +0xa8, 0x180037ed8\nmov     rax, [r8+8]                                                    ; +0xac, 0x180037edc\nmov     rdx, [rcx+20h]                                                 ; +0xb0, 0x180037ee0\nmov     [rdx+r9+8], rax                                                ; +0xb4, 0x180037ee4\nmov     rax, [rbx+38h]                                                 ; +0xb9, 0x180037ee9\nmov     rcx, [rax+28h]                                                 ; +0xbd, 0x180037eed\nmov     eax, [r8+34h]                                                  ; +0xc1, 0x180037ef1\nmov     r9d, [rcx+8]                                                   ; +0xc5, 0x180037ef5\ndec     r9d                                                            ; +0xc9, 0x180037ef9\nand     r9, rax                                                        ; +0xcc, 0x180037efc\nmov     rax, [rcx]                                                     ; +0xcf, 0x180037eff\nmov     rdx, r9                                                        ; +0xd2, 0x180037f02\nadd     rdx, rdx                                                       ; +0xd5, 0x180037f05\ndec     dword ptr [rax+rdx*8+8]                                        ; +0xd8, 0x180037f08\nmov     rax, [rbx+38h]                                                 ; +0xdc, 0x180037f0c\nmov     rcx, [rax+28h]                                                 ; +0xe0, 0x180037f10\nmov     r10, [rcx]                                                     ; +0xe4, 0x180037f14\ncmp     [r10+rdx*8], r8                                                ; +0xe7, 0x180037f17\njnz     short loc_180037F28                                            ; +0xeb, 0x180037f1b\nmov     rax, [r8+20h]                                                  ; +0xed, 0x180037f1d\nadd     r9, r9                                                         ; +0xf1, 0x180037f21\nmov     [r10+r9*8], rax                                                ; +0xf4, 0x180037f24\nmov     rcx, [r8+18h]                                                  ; +0xf8, 0x180037f28\ntest    rcx, rcx                                                       ; +0xfc, 0x180037f2c\njz      short loc_180037F39                                            ; +0xff, 0x180037f2f\nmov     rax, [r8+20h]                                                  ; +0x101, 0x180037f31\nmov     [rcx+20h], rax                                                 ; +0x105, 0x180037f35\nmov     rcx, [r8+20h]                                                  ; +0x109, 0x180037f39\ntest    rcx, rcx                                                       ; +0x10d, 0x180037f3d\njz      short loc_180037F4A                                            ; +0x110, 0x180037f40\nmov     rax, [r8+18h]                                                  ; +0x112, 0x180037f42\nmov     [rcx+18h], rax                                                 ; +0x116, 0x180037f46\nmov     rax, [rbx+38h]                                                 ; +0x11a, 0x180037f4a\nmov     rcx, [rax+28h]                                                 ; +0x11e, 0x180037f4e\ndec     dword ptr [rcx+10h]                                            ; +0x122, 0x180037f52\nmov     rcx, [rdi+8]; this                                             ; +0x125, 0x180037f55\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x129, 0x180037f59\nmov     rcx, rdi                                                       ; +0x12e, 0x180037f5e\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x131, 0x180037f61\nadd     rsp, 20h                                                       ; +0x136, 0x180037f66\npop     rdi                                                            ; +0x13a, 0x180037f6a\njmp     cs:__imp_free                                                  ; +0x13b, 0x180037f6b", "xrefs": ["cocos2d::CCActionManager::removeActionAtIndex @ 0x180038519", "cocos2d::CCActionManager::removeAllActions @ 0x180038811", "cocos2d::CCActionManager::removeAllActionsFromTarget @ 0x18003899e", "cocos2d::CCActionManager::update @ 0x180038c95", "<???> @ 0x1801438a8", "<???> @ 0x1801b0b70"], "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"}