{"type": "func", "start": 6442497936, "end": 6442498348, "name": "cocos2d::CCDictionary::setObject", "pseudocode": "// \n// cocos2d::CCDictionary::setObject from 0x18000b790 to 0x18000b92c (412 bytes)\n// \n// 5 xrefs:\n// > cocos2d::CCEGLViewProtocol::handleTouchesBegin @ 0x18006bb12\n// > cocos2d::CCTMXMapInfo::startElement @ 0x1800b0b6e\n// > cocos2d::CCTouchDispatcher::registerForcePrio @ 0x1800b30a1\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801addec\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::setObject(cocos2d::CCDictionary *this, struct cocos2d::CCObject *a2, __int64 a3)\n{\n  cocos2d::CCDictElement *m_pElements; // r11\n  UT_hash_table *tbl; // r11\n  int v8; // edx\n  int v9; // r8d\n  unsigned int v10; // ecx\n  int v11; // edx\n  unsigned int v12; // r8d\n  unsigned int v13; // ecx\n  int v14; // edx\n  UT_hash_handle *hh_head; // rbx\n  std::ptrdiff_t hho; // rcx\n  __int64 v17; // rbx\n  __int64 v18; // rbx\n  cocos2d::CCObject *v19; // rcx\n\n  if ( this->m_eDictType == kCCDictUnknown )\n    this->m_eDictType = kCCDictInt;\n  m_pElements = this->m_pElements;\n  if ( !m_pElements )\n    goto LABEL_10;\n  tbl = m_pElements->hh.tbl;\n  v8 = (((BYTE1(a3) + ((BYTE2(a3) + (BYTE3(a3) << 8)) << 8)) << 8)\n      + (unsigned __int8)a3\n      - (((BYTE5(a3) + ((BYTE6(a3) + (HIBYTE(a3) << 8)) << 8)) << 8)\n       + BYTE4(a3))\n      + 17973513)\n     ^ 0x7F76D;\n  v9 = (v8 << 8)\n     ^ (((BYTE5(a3) + ((BYTE6(a3) + (HIBYTE(a3) << 8)) << 8)) << 8) + BYTE4(a3) - 1640531527 - v8 + 17973513);\n  v10 = (((((((BYTE1(a3) + ((BYTE2(a3) + (BYTE3(a3) << 8)) << 8)) << 8)\n           + (unsigned __int8)a3\n           - (((BYTE5(a3) + ((BYTE6(a3) + (HIBYTE(a3) << 8)) << 8)) << 8)\n            + BYTE4(a3))\n           + 17973513)\n          ^ 0x7F76D) << 8)\n        ^ (((BYTE5(a3) + ((BYTE6(a3) + (HIBYTE(a3) << 8)) << 8)) << 8)\n         + (unsigned int)BYTE4(a3)\n         - 1640531527\n         - v8\n         + 17973513)) >> 13)\n      ^ (-17973513 - v9 - v8);\n  v11 = (v10 >> 12) ^ (v8 - v9 - v10);\n  v12 = (v11 << 16) ^ (v9 - v11 - v10);\n  v13 = (v12 >> 5) ^ (v10 - v12 - v11);\n  v14 = (v13 >> 3) ^ (v11 - v12 - v13);\n  hh_head = tbl->buckets[(tbl->num_buckets - 1)\n                       & (((unsigned __int64)((v14 << 10) ^ (v12 - v14 - v13)) >> 15)\n                        ^ (v13 - ((v14 << 10) ^ (v12 - v14 - v13)) - v14))].hh_head;\n  if ( !hh_head )\n    goto LABEL_10;\n  hho = tbl->hho;\n  v17 = (__int64)hh_head - hho;\n  if ( v17 )\n  {\n    while ( *(_DWORD *)(v17 + 320) != 8 || **(_QWORD **)(v17 + 312) != a3 )\n    {\n      v18 = *(_QWORD *)(v17 + 304);\n      if ( v18 )\n      {\n        v17 = v18 - hho;\n        if ( v17 )\n          continue;\n      }\n      goto LABEL_10;\n    }\n    v19 = *(cocos2d::CCObject **)(v17 + 264);\n    if ( v19 != a2 )\n    {\n      cocos2d::CCObject::release(v19);\n      *(_QWORD *)(v17 + 264) = a2;\n      cocos2d::CCObject::retain(a2);\n    }\n  }\n  else\n  {\nLABEL_10:\n    cocos2d::CCDictionary::setObjectUnSafe(this, a2, a3);\n  }\n}", "assembly": "; \n; cocos2d::CCDictionary::setObject from 0x18000b790 to 0x18000b92c (412 bytes)\n; \n; 5 xrefs:\n; > cocos2d::CCEGLViewProtocol::handleTouchesBegin @ 0x18006bb12\n; > cocos2d::CCTMXMapInfo::startElement @ 0x1800b0b6e\n; > cocos2d::CCTouchDispatcher::registerForcePrio @ 0x1800b30a1\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801addec\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_10], r8                                               ; +0x0, 0x18000b790\npush    rdi                                                            ; +0x5, 0x18000b795\nsub     rsp, 20h                                                       ; +0x6, 0x18000b796\ncmp     dword ptr [rcx+40h], 0                                         ; +0xa, 0x18000b79a\nmov     r9, r8                                                         ; +0xe, 0x18000b79e\nmov     rdi, rdx                                                       ; +0x11, 0x18000b7a1\nmov     r10, rcx                                                       ; +0x14, 0x18000b7a4\njnz     short loc_18000B7B0                                            ; +0x17, 0x18000b7a7\nmov     dword ptr [rcx+40h], 2                                         ; +0x19, 0x18000b7a9\nmov     r11, [rcx+38h]                                                 ; +0x20, 0x18000b7b0\nmov     [rsp+28h+arg_0], rbx                                           ; +0x24, 0x18000b7b4\ntest    r11, r11                                                       ; +0x29, 0x18000b7b9\njz      loc_18000B8E9                                                  ; +0x2c, 0x18000b7bc\nmovzx   eax, byte ptr [rsp+28h+arg_10+6]                               ; +0x32, 0x18000b7c2\nmovzx   edx, byte ptr [rsp+28h+arg_10+7]                               ; +0x37, 0x18000b7c7\nmovzx   ecx, byte ptr [rsp+28h+arg_10+3]                               ; +0x3c, 0x18000b7cc\nmovzx   r8d, byte ptr [rsp+28h+arg_10+4]                               ; +0x41, 0x18000b7d1\nmov     r11, [r11+110h]                                                ; +0x47, 0x18000b7d7\nadd     r8d, 9E3779B9h                                                 ; +0x4e, 0x18000b7de\nshl     edx, 8                                                         ; +0x55, 0x18000b7e5\nadd     edx, eax                                                       ; +0x58, 0x18000b7e8\nshl     ecx, 8                                                         ; +0x5a, 0x18000b7ea\nmovzx   eax, byte ptr [rsp+28h+arg_10+5]                               ; +0x5d, 0x18000b7ed\nmov     rbx, [r11]                                                     ; +0x62, 0x18000b7f2\nshl     edx, 8                                                         ; +0x65, 0x18000b7f5\nadd     edx, eax                                                       ; +0x68, 0x18000b7f8\nmovzx   eax, byte ptr [rsp+28h+arg_10+2]                               ; +0x6a, 0x18000b7fa\nadd     ecx, eax                                                       ; +0x6f, 0x18000b7ff\nshl     edx, 8                                                         ; +0x71, 0x18000b801\nmovzx   eax, byte ptr [rsp+28h+arg_10+1]                               ; +0x74, 0x18000b804\nadd     r8d, edx                                                       ; +0x79, 0x18000b809\nshl     ecx, 8                                                         ; +0x7c, 0x18000b80c\nadd     ecx, eax                                                       ; +0x7f, 0x18000b80f\nmovzx   edx, r9b                                                       ; +0x81, 0x18000b811\nadd     edx, 9E3779B9h                                                 ; +0x85, 0x18000b815\nshl     ecx, 8                                                         ; +0x8b, 0x18000b81b\nadd     edx, ecx                                                       ; +0x8e, 0x18000b81e\nmov     ecx, 0FEEDBEF7h                                                ; +0x90, 0x18000b820\nsub     edx, r8d                                                       ; +0x95, 0x18000b825\nadd     edx, 1124109h                                                  ; +0x98, 0x18000b828\nxor     edx, 7F76Dh                                                    ; +0x9e, 0x18000b82e\nsub     r8d, edx                                                       ; +0xa4, 0x18000b834\nmov     eax, edx                                                       ; +0xa7, 0x18000b837\nshl     eax, 8                                                         ; +0xa9, 0x18000b839\nadd     r8d, 1124109h                                                  ; +0xac, 0x18000b83c\nxor     r8d, eax                                                       ; +0xb3, 0x18000b843\nsub     ecx, r8d                                                       ; +0xb6, 0x18000b846\nmov     eax, r8d                                                       ; +0xb9, 0x18000b849\nsub     ecx, edx                                                       ; +0xbc, 0x18000b84c\nshr     eax, 0Dh                                                       ; +0xbe, 0x18000b84e\nxor     ecx, eax                                                       ; +0xc1, 0x18000b851\nsub     edx, r8d                                                       ; +0xc3, 0x18000b853\nsub     edx, ecx                                                       ; +0xc6, 0x18000b856\nmov     eax, ecx                                                       ; +0xc8, 0x18000b858\nshr     eax, 0Ch                                                       ; +0xca, 0x18000b85a\nxor     edx, eax                                                       ; +0xcd, 0x18000b85d\nsub     r8d, edx                                                       ; +0xcf, 0x18000b85f\nmov     eax, edx                                                       ; +0xd2, 0x18000b862\nsub     r8d, ecx                                                       ; +0xd4, 0x18000b864\nshl     eax, 10h                                                       ; +0xd7, 0x18000b867\nxor     r8d, eax                                                       ; +0xda, 0x18000b86a\nsub     ecx, r8d                                                       ; +0xdd, 0x18000b86d\nmov     eax, r8d                                                       ; +0xe0, 0x18000b870\nsub     ecx, edx                                                       ; +0xe3, 0x18000b873\nshr     eax, 5                                                         ; +0xe5, 0x18000b875\nxor     ecx, eax                                                       ; +0xe8, 0x18000b878\nsub     edx, r8d                                                       ; +0xea, 0x18000b87a\nsub     edx, ecx                                                       ; +0xed, 0x18000b87d\nmov     eax, ecx                                                       ; +0xef, 0x18000b87f\nshr     eax, 3                                                         ; +0xf1, 0x18000b881\nxor     edx, eax                                                       ; +0xf4, 0x18000b884\nsub     r8d, edx                                                       ; +0xf6, 0x18000b886\nmov     eax, edx                                                       ; +0xf9, 0x18000b889\nsub     r8d, ecx                                                       ; +0xfb, 0x18000b88b\nshl     eax, 0Ah                                                       ; +0xfe, 0x18000b88e\nxor     r8d, eax                                                       ; +0x101, 0x18000b891\nsub     ecx, r8d                                                       ; +0x104, 0x18000b894\nmov     eax, r8d                                                       ; +0x107, 0x18000b897\nsub     ecx, edx                                                       ; +0x10a, 0x18000b89a\nshr     rax, 0Fh                                                       ; +0x10c, 0x18000b89c\nmov     edx, ecx                                                       ; +0x110, 0x18000b8a0\nmov     ecx, [r11+8]                                                   ; +0x112, 0x18000b8a2\nxor     rdx, rax                                                       ; +0x116, 0x18000b8a6\ndec     ecx                                                            ; +0x119, 0x18000b8a9\nand     rdx, rcx                                                       ; +0x11b, 0x18000b8ab\nadd     rdx, rdx                                                       ; +0x11e, 0x18000b8ae\nmov     rbx, [rbx+rdx*8]                                               ; +0x121, 0x18000b8b1\ntest    rbx, rbx                                                       ; +0x125, 0x18000b8b5\njz      short loc_18000B8E9                                            ; +0x128, 0x18000b8b8\nmov     rcx, [r11+20h]                                                 ; +0x12a, 0x18000b8ba\nsub     rbx, rcx                                                       ; +0x12e, 0x18000b8be\njz      short loc_18000B8E9                                            ; +0x131, 0x18000b8c1\ncmp     dword ptr [rbx+140h], 8                                        ; +0x133, 0x18000b8c3\njnz     short loc_18000B8D8                                            ; +0x13a, 0x18000b8ca\nmov     rax, [rbx+138h]                                                ; +0x13c, 0x18000b8cc\ncmp     [rax], r9                                                      ; +0x143, 0x18000b8d3\njz      short loc_18000B902                                            ; +0x146, 0x18000b8d6\nmov     rbx, [rbx+130h]                                                ; +0x148, 0x18000b8d8\ntest    rbx, rbx                                                       ; +0x14f, 0x18000b8df\njz      short loc_18000B8E9                                            ; +0x152, 0x18000b8e2\nsub     rbx, rcx                                                       ; +0x154, 0x18000b8e4\njnz     short loc_18000B8C3                                            ; +0x157, 0x18000b8e7\nmov     r8, r9; __int64                                                ; +0x159, 0x18000b8e9\nmov     rdx, rdi; struct cocos2d::CCObject *                           ; +0x15c, 0x18000b8ec\nmov     rcx, r10; this                                                 ; +0x15f, 0x18000b8ef\ncall    ?setObjectUnSafe@CCDictionary@cocos2d@@AEAAXPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::setObjectUnSafe(cocos2d::CCObject *,__int64) ; +0x162, 0x18000b8f2\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x167, 0x18000b8f7\nadd     rsp, 20h                                                       ; +0x16c, 0x18000b8fc\npop     rdi                                                            ; +0x170, 0x18000b900\nretn                                                                   ; +0x171, 0x18000b901\nmov     rcx, [rbx+108h]; this                                          ; +0x172, 0x18000b902\ncmp     rcx, rdi                                                       ; +0x179, 0x18000b909\njz      short loc_18000B8F7                                            ; +0x17c, 0x18000b90c\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x17e, 0x18000b90e\nmov     rcx, rdi; this                                                 ; +0x183, 0x18000b913\nmov     [rbx+108h], rdi                                                ; +0x186, 0x18000b916\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x18d, 0x18000b91d\nadd     rsp, 20h                                                       ; +0x192, 0x18000b922\npop     rdi                                                            ; +0x196, 0x18000b926\njmp     ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x197, 0x18000b927", "xrefs": ["cocos2d::CCEGLViewProtocol::handleTouchesBegin @ 0x18006bb12", "cocos2d::CCTMXMapInfo::startElement @ 0x1800b0b6e", "cocos2d::CCTouchDispatcher::registerForcePrio @ 0x1800b30a1", "<???> @ 0x1801438a8", "<???> @ 0x1801addec"], "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"}