{"type": "func", "start": 6442496288, "end": 6442496680, "name": "cocos2d::CCDictionary::removeObjectForKey", "pseudocode": "// \n// cocos2d::CCDictionary::removeObjectForKey from 0x18000b120 to 0x18000b2a8 (392 bytes)\n// \n// 7 xrefs:\n// > cocos2d::CCEGLViewProtocol::getSetOfTouchesEndOrCancel @ 0x18006b811\n// > cocos2d::CCTouchDispatcher::unregisterForcePrio @ 0x1800b379f\n// > <???> @ 0x180131ccc\n// > <???> @ 0x180131ce0\n// > <???> @ 0x180131cf0\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801adda4\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::CCDictionary::removeObjectForKey(cocos2d::CCDictionary *this, __int64 a2)\n{\n  __int64 v4; // rdx\n  cocos2d::CCDictElement *m_pElements; // rbx\n  UT_hash_table *tbl; // rbx\n  int v7; // edx\n  unsigned int v8; // r9d\n  unsigned int v9; // ecx\n  int v10; // edx\n  unsigned int v11; // r9d\n  unsigned int v12; // ecx\n  int v13; // edx\n  UT_hash_handle *hh_head; // rdx\n  std::ptrdiff_t hho; // rcx\n  __int64 v16; // rdx\n\n  if ( this->m_eDictType )\n  {\n    v4 = 0;\n    m_pElements = this->m_pElements;\n    if ( m_pElements )\n    {\n      tbl = m_pElements->hh.tbl;\n      v7 = (((BYTE1(a2) + ((BYTE2(a2) + (BYTE3(a2) << 8)) << 8)) << 8)\n          + (unsigned __int8)a2\n          - (((BYTE5(a2) + ((BYTE6(a2) + (HIBYTE(a2) << 8)) << 8)) << 8)\n           + BYTE4(a2))\n          + 17973513)\n         ^ 0x7F76D;\n      v8 = (v7 << 8)\n         ^ (((BYTE5(a2) + ((BYTE6(a2) + (HIBYTE(a2) << 8)) << 8)) << 8) + BYTE4(a2) - 1640531527 - v7 + 17973513);\n      v9 = (v8 >> 13) ^ (-17973513 - v8 - v7);\n      v10 = (v9 >> 12) ^ (v7 - v8 - v9);\n      v11 = (v10 << 16) ^ (v8 - v10 - v9);\n      v12 = (v11 >> 5) ^ (v9 - v11 - v10);\n      v13 = (v12 >> 3) ^ (v10 - v11 - v12);\n      hh_head = tbl->buckets[(tbl->num_buckets - 1)\n                           & (((unsigned __int64)((v13 << 10) ^ (v11 - v13 - v12)) >> 15)\n                            ^ (v12 - ((v13 << 10) ^ (v11 - v13 - v12)) - v13))].hh_head;\n      if ( hh_head )\n      {\n        hho = tbl->hho;\n        v4 = (__int64)hh_head - hho;\n        if ( v4 )\n        {\n          while ( *(_DWORD *)(v4 + 320) != 8 || **(_QWORD **)(v4 + 312) != a2 )\n          {\n            v16 = *(_QWORD *)(v4 + 304);\n            if ( !v16 )\n              goto LABEL_10;\n            v4 = v16 - hho;\n            if ( !v4 )\n            {\n              cocos2d::CCDictionary::removeObjectForElememt(this, nullptr);\n              return;\n            }\n          }\n        }\n      }\n      else\n      {\nLABEL_10:\n        v4 = 0;\n      }\n    }\n    cocos2d::CCDictionary::removeObjectForElememt(this, (struct cocos2d::CCDictElement *)v4);\n  }\n}", "assembly": "; \n; cocos2d::CCDictionary::removeObjectForKey from 0x18000b120 to 0x18000b2a8 (392 bytes)\n; \n; 7 xrefs:\n; > cocos2d::CCEGLViewProtocol::getSetOfTouchesEndOrCancel @ 0x18006b811\n; > cocos2d::CCTouchDispatcher::unregisterForcePrio @ 0x1800b379f\n; > <???> @ 0x180131ccc\n; > <???> @ 0x180131ce0\n; > <???> @ 0x180131cf0\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801adda4\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_8], rdx                                               ; +0x0, 0x18000b120\nsub     rsp, 28h                                                       ; +0x5, 0x18000b125\ncmp     dword ptr [rcx+40h], 0                                         ; +0x9, 0x18000b129\nmov     r10, rdx                                                       ; +0xd, 0x18000b12d\nmov     r11, rcx                                                       ; +0x10, 0x18000b130\njz      loc_18000B2A3                                                  ; +0x13, 0x18000b133\nmov     [rsp+28h+var_8], rbx                                           ; +0x19, 0x18000b139\nxor     edx, edx                                                       ; +0x1e, 0x18000b13e\nmov     rbx, [rcx+38h]                                                 ; +0x20, 0x18000b140\ntest    rbx, rbx                                                       ; +0x24, 0x18000b144\njz      loc_18000B28D                                                  ; +0x27, 0x18000b147\nmovzx   eax, byte ptr [rsp+28h+arg_8+6]                                ; +0x2d, 0x18000b14d\nmovzx   r8d, byte ptr [rsp+28h+arg_8+7]                                ; +0x32, 0x18000b152\nmovzx   ecx, byte ptr [rsp+28h+arg_8+3]                                ; +0x38, 0x18000b158\nmovzx   r9d, byte ptr [rsp+28h+arg_8+4]                                ; +0x3d, 0x18000b15d\nmov     rbx, [rbx+110h]                                                ; +0x43, 0x18000b163\nadd     r9d, 9E3779B9h                                                 ; +0x4a, 0x18000b16a\nshl     ecx, 8                                                         ; +0x51, 0x18000b171\nshl     r8d, 8                                                         ; +0x54, 0x18000b174\nadd     r8d, eax                                                       ; +0x58, 0x18000b178\nmovzx   edx, r10b                                                      ; +0x5b, 0x18000b17b\nmovzx   eax, byte ptr [rsp+28h+arg_8+5]                                ; +0x5f, 0x18000b17f\nadd     edx, 9E3779B9h                                                 ; +0x64, 0x18000b184\nshl     r8d, 8                                                         ; +0x6a, 0x18000b18a\nadd     r8d, eax                                                       ; +0x6e, 0x18000b18e\nmovzx   eax, byte ptr [rsp+28h+arg_8+2]                                ; +0x71, 0x18000b191\nadd     ecx, eax                                                       ; +0x76, 0x18000b196\nshl     r8d, 8                                                         ; +0x78, 0x18000b198\nmovzx   eax, byte ptr [rsp+28h+arg_8+1]                                ; +0x7c, 0x18000b19c\nadd     r9d, r8d                                                       ; +0x81, 0x18000b1a1\nshl     ecx, 8                                                         ; +0x84, 0x18000b1a4\nadd     ecx, eax                                                       ; +0x87, 0x18000b1a7\nshl     ecx, 8                                                         ; +0x89, 0x18000b1a9\nadd     edx, ecx                                                       ; +0x8c, 0x18000b1ac\nmov     ecx, 0FEEDBEF7h                                                ; +0x8e, 0x18000b1ae\nsub     edx, r9d                                                       ; +0x93, 0x18000b1b3\nadd     edx, 1124109h                                                  ; +0x96, 0x18000b1b6\nxor     edx, 7F76Dh                                                    ; +0x9c, 0x18000b1bc\nsub     r9d, edx                                                       ; +0xa2, 0x18000b1c2\nmov     eax, edx                                                       ; +0xa5, 0x18000b1c5\nshl     eax, 8                                                         ; +0xa7, 0x18000b1c7\nadd     r9d, 1124109h                                                  ; +0xaa, 0x18000b1ca\nxor     r9d, eax                                                       ; +0xb1, 0x18000b1d1\nsub     ecx, r9d                                                       ; +0xb4, 0x18000b1d4\nmov     eax, r9d                                                       ; +0xb7, 0x18000b1d7\nsub     ecx, edx                                                       ; +0xba, 0x18000b1da\nshr     eax, 0Dh                                                       ; +0xbc, 0x18000b1dc\nxor     ecx, eax                                                       ; +0xbf, 0x18000b1df\nsub     edx, r9d                                                       ; +0xc1, 0x18000b1e1\nsub     edx, ecx                                                       ; +0xc4, 0x18000b1e4\nmov     eax, ecx                                                       ; +0xc6, 0x18000b1e6\nshr     eax, 0Ch                                                       ; +0xc8, 0x18000b1e8\nxor     edx, eax                                                       ; +0xcb, 0x18000b1eb\nsub     r9d, edx                                                       ; +0xcd, 0x18000b1ed\nmov     eax, edx                                                       ; +0xd0, 0x18000b1f0\nsub     r9d, ecx                                                       ; +0xd2, 0x18000b1f2\nshl     eax, 10h                                                       ; +0xd5, 0x18000b1f5\nxor     r9d, eax                                                       ; +0xd8, 0x18000b1f8\nsub     ecx, r9d                                                       ; +0xdb, 0x18000b1fb\nmov     eax, r9d                                                       ; +0xde, 0x18000b1fe\nsub     ecx, edx                                                       ; +0xe1, 0x18000b201\nshr     eax, 5                                                         ; +0xe3, 0x18000b203\nxor     ecx, eax                                                       ; +0xe6, 0x18000b206\nsub     edx, r9d                                                       ; +0xe8, 0x18000b208\nsub     edx, ecx                                                       ; +0xeb, 0x18000b20b\nmov     eax, ecx                                                       ; +0xed, 0x18000b20d\nshr     eax, 3                                                         ; +0xef, 0x18000b20f\nxor     edx, eax                                                       ; +0xf2, 0x18000b212\nsub     r9d, edx                                                       ; +0xf4, 0x18000b214\nmov     eax, edx                                                       ; +0xf7, 0x18000b217\nsub     r9d, ecx                                                       ; +0xf9, 0x18000b219\nshl     eax, 0Ah                                                       ; +0xfc, 0x18000b21c\nxor     r9d, eax                                                       ; +0xff, 0x18000b21f\nsub     ecx, r9d                                                       ; +0x102, 0x18000b222\nmov     eax, r9d                                                       ; +0x105, 0x18000b225\nsub     ecx, edx                                                       ; +0x108, 0x18000b228\nshr     rax, 0Fh                                                       ; +0x10a, 0x18000b22a\nmov     rdx, [rbx]                                                     ; +0x10e, 0x18000b22e\nmov     r8d, ecx                                                       ; +0x111, 0x18000b231\nmov     ecx, [rbx+8]                                                   ; +0x114, 0x18000b234\nxor     r8, rax                                                        ; +0x117, 0x18000b237\ndec     ecx                                                            ; +0x11a, 0x18000b23a\nand     r8, rcx                                                        ; +0x11c, 0x18000b23c\nadd     r8, r8                                                         ; +0x11f, 0x18000b23f\nmov     rdx, [rdx+r8*8]                                                ; +0x122, 0x18000b242\ntest    rdx, rdx                                                       ; +0x126, 0x18000b246\njz      short loc_18000B28B                                            ; +0x129, 0x18000b249\nmov     rcx, [rbx+20h]                                                 ; +0x12b, 0x18000b24b\nsub     rdx, rcx                                                       ; +0x12f, 0x18000b24f\njz      short loc_18000B28D                                            ; +0x132, 0x18000b252\ncmp     dword ptr [rdx+140h], 8                                        ; +0x134, 0x18000b254\njnz     short loc_18000B269                                            ; +0x13b, 0x18000b25b\nmov     rax, [rdx+138h]                                                ; +0x13d, 0x18000b25d\ncmp     [rax], r10                                                     ; +0x144, 0x18000b264\njz      short loc_18000B28D                                            ; +0x147, 0x18000b267\nmov     rdx, [rdx+130h]                                                ; +0x149, 0x18000b269\ntest    rdx, rdx                                                       ; +0x150, 0x18000b270\njz      short loc_18000B28B                                            ; +0x153, 0x18000b273\nsub     rdx, rcx; struct cocos2d::CCDictElement *                      ; +0x155, 0x18000b275\njnz     short loc_18000B254                                            ; +0x158, 0x18000b278\nmov     rcx, r11; this                                                 ; +0x15a, 0x18000b27a\nmov     rbx, [rsp+28h+var_8]                                           ; +0x15d, 0x18000b27d\nadd     rsp, 28h                                                       ; +0x162, 0x18000b282\njmp     ?removeObjectForElememt@CCDictionary@cocos2d@@QEAAXPEAVCCDictElement@2@@Z; cocos2d::CCDictionary::removeObjectForElememt(cocos2d::CCDictElement *) ; +0x166, 0x18000b286\nxor     edx, edx; struct cocos2d::CCDictElement *                      ; +0x16b, 0x18000b28b\nmov     rcx, r11; this                                                 ; +0x16d, 0x18000b28d\nmov     rbx, [rsp+28h+var_8]                                           ; +0x170, 0x18000b290\nadd     rsp, 28h                                                       ; +0x175, 0x18000b295\njmp     ?removeObjectForElememt@CCDictionary@cocos2d@@QEAAXPEAVCCDictElement@2@@Z; cocos2d::CCDictionary::removeObjectForElememt(cocos2d::CCDictElement *) ; +0x179, 0x18000b299\nmov     rbx, [rsp+28h+var_8]                                           ; +0x17e, 0x18000b29e\nadd     rsp, 28h                                                       ; +0x183, 0x18000b2a3\nretn                                                                   ; +0x187, 0x18000b2a7", "xrefs": ["cocos2d::CCEGLViewProtocol::getSetOfTouchesEndOrCancel @ 0x18006b811", "cocos2d::CCTouchDispatcher::unregisterForcePrio @ 0x1800b379f", "<???> @ 0x180131ccc", "<???> @ 0x180131ce0", "<???> @ 0x180131cf0", "<???> @ 0x1801438a8", "<???> @ 0x1801adda4"], "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"}