{"type": "func", "start": 6443257072, "end": 6443257411, "name": "cocos2d::CCScheduler::removeHashElement", "pseudocode": "// \n// cocos2d::CCScheduler::removeHashElement from 0x1800c4cf0 to 0x1800c4e43 (339 bytes)\n// \n// 5 xrefs:\n// > cocos2d::CCScheduler::unscheduleAllForTarget @ 0x1800c5fbe\n// > cocos2d::CCScheduler::unscheduleSelector @ 0x1800c62fe\n// > cocos2d::CCScheduler::update @ 0x1800c65c1\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c3780\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:22:26 +0000\n// \n\nvoid __fastcall cocos2d::CCScheduler::removeHashElement(\n        cocos2d::CCScheduler *this,\n        struct cocos2d::_hashSelectorEntry *a2)\n{\n  cocos2d::CCObject *v2; // rsi\n  __int64 v5; // rdx\n  __int64 v6; // r10\n  __int64 v7; // r10\n  __int64 v8; // r9\n  __int64 v9; // rcx\n  __int64 v10; // r9\n  _QWORD *v11; // rcx\n  __int64 v12; // rcx\n  __int64 v13; // rdx\n\n  v2 = *((cocos2d::CCObject **)a2 + 1);\n  sub_1800A16E0((void **)a2);\n  if ( *((_OWORD *)a2 + 3) == 0 )\n  {\n    free(**(void ***)(*((_QWORD *)this + 12) + 40LL));\n    free(*(void **)(*((_QWORD *)this + 12) + 40LL));\n    *((_QWORD *)this + 12) = 0;\n  }\n  else\n  {\n    v5 = *(_QWORD *)(*((_QWORD *)this + 12) + 40LL);\n    v6 = *(_QWORD *)(v5 + 32);\n    if ( a2 == (struct cocos2d::_hashSelectorEntry *)(*(_QWORD *)(v5 + 24) - v6) )\n      *(_QWORD *)(v5 + 24) = *((_QWORD *)a2 + 6) + v6;\n    v7 = *((_QWORD *)a2 + 6);\n    if ( v7 )\n      *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(*((_QWORD *)this + 12) + 40LL) + 32LL) + v7 + 16) = *((_QWORD *)a2 + 7);\n    else\n      *((_QWORD *)this + 12) = *((_QWORD *)a2 + 7);\n    v8 = *((_QWORD *)a2 + 7);\n    if ( v8 )\n      *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(*((_QWORD *)this + 12) + 40LL) + 32LL) + v8 + 8) = *((_QWORD *)a2 + 6);\n    v9 = *(_QWORD *)(*((_QWORD *)this + 12) + 40LL);\n    v10 = *((_DWORD *)a2 + 23) & (unsigned int)(*(_DWORD *)(v9 + 8) - 1);\n    --*(_DWORD *)(*(_QWORD *)v9 + 16 * v10 + 8);\n    v11 = *(_QWORD **)(*((_QWORD *)this + 12) + 40LL);\n    if ( *(struct cocos2d::_hashSelectorEntry **)(16 * v10 + *v11) == (struct cocos2d::_hashSelectorEntry *)((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 *)(*((_QWORD *)this + 12) + 40LL) + 16LL);\n  }\n  free(a2);\n  cocos2d::CCObject::release(v2);\n}", "assembly": "; \n; cocos2d::CCScheduler::removeHashElement from 0x1800c4cf0 to 0x1800c4e43 (339 bytes)\n; \n; 5 xrefs:\n; > cocos2d::CCScheduler::unscheduleAllForTarget @ 0x1800c5fbe\n; > cocos2d::CCScheduler::unscheduleSelector @ 0x1800c62fe\n; > cocos2d::CCScheduler::update @ 0x1800c65c1\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c3780\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:22:26 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800c4cf0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1800c4cf5\npush    rdi                                                            ; +0xa, 0x1800c4cfa\nsub     rsp, 20h                                                       ; +0xb, 0x1800c4cfb\nmov     rsi, [rdx+8]                                                   ; +0xf, 0x1800c4cff\nmov     rbx, rcx                                                       ; +0x13, 0x1800c4d03\nmov     rcx, rdx                                                       ; +0x16, 0x1800c4d06\nmov     rdi, rdx                                                       ; +0x19, 0x1800c4d09\ncall    sub_1800A16E0                                                  ; +0x1c, 0x1800c4d0c\nmov     rcx, [rdi+30h]                                                 ; +0x21, 0x1800c4d11\ntest    rcx, rcx                                                       ; +0x25, 0x1800c4d15\njnz     short loc_1800C4D4C                                            ; +0x28, 0x1800c4d18\ncmp     [rdi+38h], rcx                                                 ; +0x2a, 0x1800c4d1a\njnz     short loc_1800C4D4C                                            ; +0x2e, 0x1800c4d1e\nmov     rax, [rbx+60h]                                                 ; +0x30, 0x1800c4d20\nmov     rcx, [rax+28h]                                                 ; +0x34, 0x1800c4d24\nmov     rcx, [rcx]; Block                                              ; +0x38, 0x1800c4d28\ncall    cs:__imp_free                                                  ; +0x3b, 0x1800c4d2b\nmov     rcx, [rbx+60h]                                                 ; +0x41, 0x1800c4d31\nmov     rcx, [rcx+28h]; Block                                          ; +0x45, 0x1800c4d35\ncall    cs:__imp_free                                                  ; +0x49, 0x1800c4d39\nmov     qword ptr [rbx+60h], 0                                         ; +0x4f, 0x1800c4d3f\njmp     loc_1800C4E23                                                  ; +0x57, 0x1800c4d47\nmov     rax, [rbx+60h]                                                 ; +0x5c, 0x1800c4d4c\nlea     r8, [rdi+28h]                                                  ; +0x60, 0x1800c4d50\nmov     rdx, [rax+28h]                                                 ; +0x64, 0x1800c4d54\nmov     r10, [rdx+20h]                                                 ; +0x68, 0x1800c4d58\nmov     rax, [rdx+18h]                                                 ; +0x6c, 0x1800c4d5c\nsub     rax, r10                                                       ; +0x70, 0x1800c4d60\ncmp     rdi, rax                                                       ; +0x73, 0x1800c4d63\njnz     short loc_1800C4D70                                            ; +0x76, 0x1800c4d66\nlea     rax, [rcx+r10]                                                 ; +0x78, 0x1800c4d68\nmov     [rdx+18h], rax                                                 ; +0x7c, 0x1800c4d6c\nmov     r10, [rdi+30h]                                                 ; +0x80, 0x1800c4d70\ntest    r10, r10                                                       ; +0x84, 0x1800c4d74\njz      short loc_1800C4D90                                            ; +0x87, 0x1800c4d77\nmov     rax, [rbx+60h]                                                 ; +0x89, 0x1800c4d79\nmov     rcx, [rax+28h]                                                 ; +0x8d, 0x1800c4d7d\nmov     rax, [rdi+38h]                                                 ; +0x91, 0x1800c4d81\nmov     rdx, [rcx+20h]                                                 ; +0x95, 0x1800c4d85\nmov     [rdx+r10+10h], rax                                             ; +0x99, 0x1800c4d89\njmp     short loc_1800C4D98                                            ; +0x9e, 0x1800c4d8e\nmov     rax, [rdi+38h]                                                 ; +0xa0, 0x1800c4d90\nmov     [rbx+60h], rax                                                 ; +0xa4, 0x1800c4d94\nmov     r9, [r8+10h]                                                   ; +0xa8, 0x1800c4d98\ntest    r9, r9                                                         ; +0xac, 0x1800c4d9c\njz      short loc_1800C4DB6                                            ; +0xaf, 0x1800c4d9f\nmov     rax, [rbx+60h]                                                 ; +0xb1, 0x1800c4da1\nmov     rcx, [rax+28h]                                                 ; +0xb5, 0x1800c4da5\nmov     rax, [r8+8]                                                    ; +0xb9, 0x1800c4da9\nmov     rdx, [rcx+20h]                                                 ; +0xbd, 0x1800c4dad\nmov     [rdx+r9+8], rax                                                ; +0xc1, 0x1800c4db1\nmov     rax, [rbx+60h]                                                 ; +0xc6, 0x1800c4db6\nmov     rcx, [rax+28h]                                                 ; +0xca, 0x1800c4dba\nmov     eax, [r8+34h]                                                  ; +0xce, 0x1800c4dbe\nmov     r9d, [rcx+8]                                                   ; +0xd2, 0x1800c4dc2\ndec     r9d                                                            ; +0xd6, 0x1800c4dc6\nand     r9, rax                                                        ; +0xd9, 0x1800c4dc9\nmov     rax, [rcx]                                                     ; +0xdc, 0x1800c4dcc\nmov     rdx, r9                                                        ; +0xdf, 0x1800c4dcf\nshl     rdx, 4                                                         ; +0xe2, 0x1800c4dd2\ndec     dword ptr [rax+rdx+8]                                          ; +0xe6, 0x1800c4dd6\nmov     rax, [rbx+60h]                                                 ; +0xea, 0x1800c4dda\nmov     rcx, [rax+28h]                                                 ; +0xee, 0x1800c4dde\nmov     r10, [rcx]                                                     ; +0xf2, 0x1800c4de2\ncmp     [rdx+r10], r8                                                  ; +0xf5, 0x1800c4de5\njnz     short loc_1800C4DF6                                            ; +0xf9, 0x1800c4de9\nmov     rax, [r8+20h]                                                  ; +0xfb, 0x1800c4deb\nadd     r9, r9                                                         ; +0xff, 0x1800c4def\nmov     [r10+r9*8], rax                                                ; +0x102, 0x1800c4df2\nmov     rcx, [r8+18h]                                                  ; +0x106, 0x1800c4df6\ntest    rcx, rcx                                                       ; +0x10a, 0x1800c4dfa\njz      short loc_1800C4E07                                            ; +0x10d, 0x1800c4dfd\nmov     rax, [r8+20h]                                                  ; +0x10f, 0x1800c4dff\nmov     [rcx+20h], rax                                                 ; +0x113, 0x1800c4e03\nmov     rdx, [r8+20h]                                                  ; +0x117, 0x1800c4e07\ntest    rdx, rdx                                                       ; +0x11b, 0x1800c4e0b\njz      short loc_1800C4E18                                            ; +0x11e, 0x1800c4e0e\nmov     rax, [r8+18h]                                                  ; +0x120, 0x1800c4e10\nmov     [rdx+18h], rax                                                 ; +0x124, 0x1800c4e14\nmov     rax, [rbx+60h]                                                 ; +0x128, 0x1800c4e18\nmov     rdx, [rax+28h]                                                 ; +0x12c, 0x1800c4e1c\ndec     dword ptr [rdx+10h]                                            ; +0x130, 0x1800c4e20\nmov     rcx, rdi; Block                                                ; +0x133, 0x1800c4e23\ncall    cs:__imp_free                                                  ; +0x136, 0x1800c4e26\nmov     rcx, rsi; this                                                 ; +0x13c, 0x1800c4e2c\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x13f, 0x1800c4e2f\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x144, 0x1800c4e34\nadd     rsp, 20h                                                       ; +0x149, 0x1800c4e39\npop     rdi                                                            ; +0x14d, 0x1800c4e3d\njmp     ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x14e, 0x1800c4e3e", "xrefs": ["cocos2d::CCScheduler::unscheduleAllForTarget @ 0x1800c5fbe", "cocos2d::CCScheduler::unscheduleSelector @ 0x1800c62fe", "cocos2d::CCScheduler::update @ 0x1800c65c1", "<???> @ 0x18014cf68", "<???> @ 0x1801c3780"], "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"}