{"type": "func", "start": 6442681664, "end": 6442681991, "name": "cocos2d::CCActionManager::deleteHashElement", "pseudocode": "// \n// cocos2d::CCActionManager::deleteHashElement from 0x180038540 to 0x180038687 (327 bytes)\n// \n// 6 xrefs:\n// > cocos2d::CCActionManager::removeActionAtIndex @ 0x180038c39\n// > cocos2d::CCActionManager::removeAllActions @ 0x180038f34\n// > cocos2d::CCActionManager::removeAllActionsFromTarget @ 0x1800390d1\n// > cocos2d::CCActionManager::update @ 0x1800393d5\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bac9c\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:21:36 +0000\n// \n\nvoid __fastcall cocos2d::CCActionManager::deleteHashElement(\n        cocos2d::CCActionManager *this,\n        struct cocos2d::_hashElement *a2)\n{\n  __int64 v4; // rdx\n  __int64 v5; // r10\n  __int64 v6; // r10\n  __int64 v7; // r9\n  __int64 v8; // rcx\n  __int64 v9; // r9\n  _QWORD *v10; // rcx\n  __int64 v11; // rcx\n  __int64 v12; // rcx\n\n  sub_1800A16E0(a2);\n  if ( *((_OWORD *)a2 + 3) == 0 )\n  {\n    free(**(void ***)(*((_QWORD *)this + 7) + 40LL));\n    free(*(void **)(*((_QWORD *)this + 7) + 40LL));\n    *((_QWORD *)this + 7) = 0;\n  }\n  else\n  {\n    v4 = *(_QWORD *)(*((_QWORD *)this + 7) + 40LL);\n    v5 = *(_QWORD *)(v4 + 32);\n    if ( a2 == (struct cocos2d::_hashElement *)(*(_QWORD *)(v4 + 24) - v5) )\n      *(_QWORD *)(v4 + 24) = *((_QWORD *)a2 + 6) + v5;\n    v6 = *((_QWORD *)a2 + 6);\n    if ( v6 )\n      *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(*((_QWORD *)this + 7) + 40LL) + 32LL) + v6 + 16) = *((_QWORD *)a2 + 7);\n    else\n      *((_QWORD *)this + 7) = *((_QWORD *)a2 + 7);\n    v7 = *((_QWORD *)a2 + 7);\n    if ( v7 )\n      *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(*((_QWORD *)this + 7) + 40LL) + 32LL) + v7 + 8) = *((_QWORD *)a2 + 6);\n    v8 = *(_QWORD *)(*((_QWORD *)this + 7) + 40LL);\n    v9 = *((_DWORD *)a2 + 23) & (unsigned int)(*(_DWORD *)(v8 + 8) - 1);\n    --*(_DWORD *)(16 * v9 + *(_QWORD *)v8 + 8);\n    v10 = *(_QWORD **)(*((_QWORD *)this + 7) + 40LL);\n    if ( *(struct cocos2d::_hashElement **)(16 * v9 + *v10) == (struct cocos2d::_hashElement *)((char *)a2 + 40) )\n      *(_QWORD *)(*v10 + 16 * v9) = *((_QWORD *)a2 + 9);\n    v11 = *((_QWORD *)a2 + 8);\n    if ( v11 )\n      *(_QWORD *)(v11 + 32) = *((_QWORD *)a2 + 9);\n    v12 = *((_QWORD *)a2 + 9);\n    if ( v12 )\n      *(_QWORD *)(v12 + 24) = *((_QWORD *)a2 + 8);\n    --*(_DWORD *)(*(_QWORD *)(*((_QWORD *)this + 7) + 40LL) + 16LL);\n  }\n  cocos2d::CCObject::release(*((cocos2d::CCObject **)a2 + 1));\n  free(a2);\n}", "assembly": "; \n; cocos2d::CCActionManager::deleteHashElement from 0x180038540 to 0x180038687 (327 bytes)\n; \n; 6 xrefs:\n; > cocos2d::CCActionManager::removeActionAtIndex @ 0x180038c39\n; > cocos2d::CCActionManager::removeAllActions @ 0x180038f34\n; > cocos2d::CCActionManager::removeAllActionsFromTarget @ 0x1800390d1\n; > cocos2d::CCActionManager::update @ 0x1800393d5\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bac9c\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:21:36 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180038540\npush    rdi                                                            ; +0x5, 0x180038545\nsub     rsp, 20h                                                       ; +0x6, 0x180038546\nmov     rbx, rcx                                                       ; +0xa, 0x18003854a\nmov     rdi, rdx                                                       ; +0xd, 0x18003854d\nmov     rcx, rdx                                                       ; +0x10, 0x180038550\ncall    sub_1800A16E0                                                  ; +0x13, 0x180038553\nmov     rcx, [rdi+30h]                                                 ; +0x18, 0x180038558\ntest    rcx, rcx                                                       ; +0x1c, 0x18003855c\njnz     short loc_180038593                                            ; +0x1f, 0x18003855f\ncmp     [rdi+38h], rcx                                                 ; +0x21, 0x180038561\njnz     short loc_180038593                                            ; +0x25, 0x180038565\nmov     rax, [rbx+38h]                                                 ; +0x27, 0x180038567\nmov     rcx, [rax+28h]                                                 ; +0x2b, 0x18003856b\nmov     rcx, [rcx]; Block                                              ; +0x2f, 0x18003856f\ncall    cs:__imp_free                                                  ; +0x32, 0x180038572\nmov     rcx, [rbx+38h]                                                 ; +0x38, 0x180038578\nmov     rcx, [rcx+28h]; Block                                          ; +0x3c, 0x18003857c\ncall    cs:__imp_free                                                  ; +0x40, 0x180038580\nmov     qword ptr [rbx+38h], 0                                         ; +0x46, 0x180038586\njmp     loc_18003866A                                                  ; +0x4e, 0x18003858e\nmov     rax, [rbx+38h]                                                 ; +0x53, 0x180038593\nlea     r8, [rdi+28h]                                                  ; +0x57, 0x180038597\nmov     rdx, [rax+28h]                                                 ; +0x5b, 0x18003859b\nmov     r10, [rdx+20h]                                                 ; +0x5f, 0x18003859f\nmov     rax, [rdx+18h]                                                 ; +0x63, 0x1800385a3\nsub     rax, r10                                                       ; +0x67, 0x1800385a7\ncmp     rdi, rax                                                       ; +0x6a, 0x1800385aa\njnz     short loc_1800385B7                                            ; +0x6d, 0x1800385ad\nlea     rax, [rcx+r10]                                                 ; +0x6f, 0x1800385af\nmov     [rdx+18h], rax                                                 ; +0x73, 0x1800385b3\nmov     r10, [rdi+30h]                                                 ; +0x77, 0x1800385b7\ntest    r10, r10                                                       ; +0x7b, 0x1800385bb\njz      short loc_1800385D7                                            ; +0x7e, 0x1800385be\nmov     rax, [rbx+38h]                                                 ; +0x80, 0x1800385c0\nmov     rcx, [rax+28h]                                                 ; +0x84, 0x1800385c4\nmov     rax, [rdi+38h]                                                 ; +0x88, 0x1800385c8\nmov     rdx, [rcx+20h]                                                 ; +0x8c, 0x1800385cc\nmov     [rdx+r10+10h], rax                                             ; +0x90, 0x1800385d0\njmp     short loc_1800385DF                                            ; +0x95, 0x1800385d5\nmov     rax, [rdi+38h]                                                 ; +0x97, 0x1800385d7\nmov     [rbx+38h], rax                                                 ; +0x9b, 0x1800385db\nmov     r9, [r8+10h]                                                   ; +0x9f, 0x1800385df\ntest    r9, r9                                                         ; +0xa3, 0x1800385e3\njz      short loc_1800385FD                                            ; +0xa6, 0x1800385e6\nmov     rax, [rbx+38h]                                                 ; +0xa8, 0x1800385e8\nmov     rcx, [rax+28h]                                                 ; +0xac, 0x1800385ec\nmov     rax, [r8+8]                                                    ; +0xb0, 0x1800385f0\nmov     rdx, [rcx+20h]                                                 ; +0xb4, 0x1800385f4\nmov     [rdx+r9+8], rax                                                ; +0xb8, 0x1800385f8\nmov     rax, [rbx+38h]                                                 ; +0xbd, 0x1800385fd\nmov     rcx, [rax+28h]                                                 ; +0xc1, 0x180038601\nmov     eax, [r8+34h]                                                  ; +0xc5, 0x180038605\nmov     r9d, [rcx+8]                                                   ; +0xc9, 0x180038609\ndec     r9d                                                            ; +0xcd, 0x18003860d\nand     r9, rax                                                        ; +0xd0, 0x180038610\nmov     rax, [rcx]                                                     ; +0xd3, 0x180038613\nmov     rdx, r9                                                        ; +0xd6, 0x180038616\nshl     rdx, 4                                                         ; +0xd9, 0x180038619\ndec     dword ptr [rdx+rax+8]                                          ; +0xdd, 0x18003861d\nmov     rax, [rbx+38h]                                                 ; +0xe1, 0x180038621\nmov     rcx, [rax+28h]                                                 ; +0xe5, 0x180038625\nmov     r10, [rcx]                                                     ; +0xe9, 0x180038629\ncmp     [rdx+r10], r8                                                  ; +0xec, 0x18003862c\njnz     short loc_18003863D                                            ; +0xf0, 0x180038630\nmov     rax, [r8+20h]                                                  ; +0xf2, 0x180038632\nadd     r9, r9                                                         ; +0xf6, 0x180038636\nmov     [r10+r9*8], rax                                                ; +0xf9, 0x180038639\nmov     rcx, [r8+18h]                                                  ; +0xfd, 0x18003863d\ntest    rcx, rcx                                                       ; +0x101, 0x180038641\njz      short loc_18003864E                                            ; +0x104, 0x180038644\nmov     rax, [r8+20h]                                                  ; +0x106, 0x180038646\nmov     [rcx+20h], rax                                                 ; +0x10a, 0x18003864a\nmov     rcx, [r8+20h]                                                  ; +0x10e, 0x18003864e\ntest    rcx, rcx                                                       ; +0x112, 0x180038652\njz      short loc_18003865F                                            ; +0x115, 0x180038655\nmov     rax, [r8+18h]                                                  ; +0x117, 0x180038657\nmov     [rcx+18h], rax                                                 ; +0x11b, 0x18003865b\nmov     rax, [rbx+38h]                                                 ; +0x11f, 0x18003865f\nmov     rcx, [rax+28h]                                                 ; +0x123, 0x180038663\ndec     dword ptr [rcx+10h]                                            ; +0x127, 0x180038667\nmov     rcx, [rdi+8]; this                                             ; +0x12a, 0x18003866a\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x12e, 0x18003866e\nmov     rcx, rdi                                                       ; +0x133, 0x180038673\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x136, 0x180038676\nadd     rsp, 20h                                                       ; +0x13b, 0x18003867b\npop     rdi                                                            ; +0x13f, 0x18003867f\njmp     cs:__imp_free                                                  ; +0x140, 0x180038680", "xrefs": ["cocos2d::CCActionManager::removeActionAtIndex @ 0x180038c39", "cocos2d::CCActionManager::removeAllActions @ 0x180038f34", "cocos2d::CCActionManager::removeAllActionsFromTarget @ 0x1800390d1", "cocos2d::CCActionManager::update @ 0x1800393d5", "<???> @ 0x18014cf68", "<???> @ 0x1801bac9c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}