{"type": "func", "start": 6442494064, "end": 6442494408, "name": "cocos2d::CCDictionary::objectForKey", "pseudocode": "// \n// cocos2d::CCDictionary::objectForKey from 0x18000a870 to 0x18000a9c8 (344 bytes)\n// \n// 13 xrefs:\n// > cocos2d::CCDictionary::randomObject @ 0x18000aa0e\n// > cocos2d::CCDictionary::valueForKey @ 0x18000c565\n// > cocos2d::CCEGLViewProtocol::getSetOfTouchesEndOrCancel @ 0x18006d939\n// > cocos2d::CCEGLViewProtocol::handleTouchesBegin @ 0x18006dc28\n// > cocos2d::CCEGLViewProtocol::handleTouchesMove @ 0x18006dfc5\n// > cocos2d::CCTMXTiledMap::propertiesForGID @ 0x1800b1d5a\n// > cocos2d::CCTMXMapInfo::startElement @ 0x1800b550c\n// > cocos2d::CCTouchDispatcher::ownerLevelOf @ 0x1800b6b6a\n// > cocos2d::CCTouchDispatcher::ownerLevelOf @ 0x1800b6b82\n// > cocos2d::CCTouchDispatcher::ownerLevelOf @ 0x1800b6b96\n// > cocos2d::CCTouchDispatcher::registerForcePrio @ 0x1800b6ca1\n// > cocos2d::CCTouchDispatcher::unregisterForcePrio @ 0x1800b74cf\n// > <???> @ 0x18014cf68\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:19 +0000\n// \n\nstruct cocos2d::CCObject *__fastcall cocos2d::CCDictionary::objectForKey(cocos2d::CCDictionary *this, __int64 a2)\n{\n  __int64 v4; // r11\n  __int64 v5; // r10\n  int v6; // r8d\n  int v7; // edx\n  unsigned int v8; // r8d\n  unsigned int v9; // ecx\n  int v10; // edx\n  unsigned int v11; // r8d\n  unsigned int v12; // ecx\n  int v13; // edx\n  unsigned __int64 v14; // rax\n  __int64 v15; // r8\n  __int64 v16; // rax\n  __int64 v17; // rdx\n  __int64 v18; // rax\n  __int64 v19; // rcx\n\n  if ( !*((_DWORD *)this + 16) )\n    return nullptr;\n  v4 = *((_QWORD *)this + 7);\n  v5 = 0;\n  if ( v4 )\n  {\n    v6 = ((BYTE5(a2) + ((BYTE6(a2) + (HIBYTE(a2) << 8)) << 8)) << 8) + BYTE4(a2) - 1640531527;\n    v7 = (((BYTE1(a2) + ((BYTE2(a2) + (BYTE3(a2) << 8)) << 8)) << 8) - v6 + (unsigned __int8)a2 - 1622558014) ^ 0x7F76D;\n    v8 = (v7 << 8) ^ (v6 - v7 + 17973513);\n    v9 = (v8 >> 13) ^ (-17973513 - v8 - v7);\n    v10 = (v9 >> 12) ^ (v7 - v9 - v8);\n    v11 = (v10 << 16) ^ (v8 - v9 - v10);\n    v12 = (v11 >> 5) ^ (v9 - v11 - v10);\n    v13 = (v12 >> 3) ^ (v10 - v12 - v11);\n    v14 = (v11 - v13 - v12) ^ (v13 << 10);\n    v15 = *(_QWORD *)(v4 + 272);\n    v16 = *(_QWORD *)(*(_QWORD *)v15\n                    + 16 * ((unsigned int)(*(_DWORD *)(v15 + 8) - 1) & ((v14 >> 15) ^ (v12 - (unsigned int)v14 - v13))));\n    if ( v16 )\n    {\n      v17 = *(_QWORD *)(v15 + 32);\n      v18 = v16 - v17;\n      if ( v18 )\n      {\n        while ( *(_DWORD *)(v18 + 320) != 8 || **(_QWORD **)(v18 + 312) != a2 )\n        {\n          v19 = *(_QWORD *)(v18 + 304);\n          if ( !v19 )\n            return (struct cocos2d::CCObject *)v5;\n          v18 = v19 - v17;\n          if ( v19 == v17 )\n            return nullptr;\n        }\n        return *(struct cocos2d::CCObject **)(v18 + 264);\n      }\n    }\n  }\n  return (struct cocos2d::CCObject *)v5;\n}", "assembly": "; \n; cocos2d::CCDictionary::objectForKey from 0x18000a870 to 0x18000a9c8 (344 bytes)\n; \n; 13 xrefs:\n; > cocos2d::CCDictionary::randomObject @ 0x18000aa0e\n; > cocos2d::CCDictionary::valueForKey @ 0x18000c565\n; > cocos2d::CCEGLViewProtocol::getSetOfTouchesEndOrCancel @ 0x18006d939\n; > cocos2d::CCEGLViewProtocol::handleTouchesBegin @ 0x18006dc28\n; > cocos2d::CCEGLViewProtocol::handleTouchesMove @ 0x18006dfc5\n; > cocos2d::CCTMXTiledMap::propertiesForGID @ 0x1800b1d5a\n; > cocos2d::CCTMXMapInfo::startElement @ 0x1800b550c\n; > cocos2d::CCTouchDispatcher::ownerLevelOf @ 0x1800b6b6a\n; > cocos2d::CCTouchDispatcher::ownerLevelOf @ 0x1800b6b82\n; > cocos2d::CCTouchDispatcher::ownerLevelOf @ 0x1800b6b96\n; > cocos2d::CCTouchDispatcher::registerForcePrio @ 0x1800b6ca1\n; > cocos2d::CCTouchDispatcher::unregisterForcePrio @ 0x1800b74cf\n; > <???> @ 0x18014cf68\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:19 +0000\n; \ncmp     dword ptr [rcx+40h], 0                                         ; +0x0, 0x18000a870\nmov     r9, rdx                                                        ; +0x4, 0x18000a874\nmov     [rsp+arg_8], rdx                                               ; +0x7, 0x18000a877\njnz     short loc_18000A881                                            ; +0xc, 0x18000a87c\nxor     eax, eax                                                       ; +0xe, 0x18000a87e\nretn                                                                   ; +0x10, 0x18000a880\nmov     r11, [rcx+38h]                                                 ; +0x11, 0x18000a881\nxor     r10d, r10d                                                     ; +0x15, 0x18000a885\ntest    r11, r11                                                       ; +0x18, 0x18000a888\njz      loc_18000A9C4                                                  ; +0x1b, 0x18000a88b\nmovzx   eax, byte ptr [rsp+arg_8+6]                                    ; +0x21, 0x18000a891\nmovzx   ecx, byte ptr [rsp+arg_8+7]                                    ; +0x26, 0x18000a896\nmovzx   r8d, byte ptr [rsp+arg_8+4]                                    ; +0x2b, 0x18000a89b\nshl     ecx, 8                                                         ; +0x31, 0x18000a8a1\nadd     r8d, 9E3779B9h                                                 ; +0x34, 0x18000a8a4\nadd     ecx, eax                                                       ; +0x3b, 0x18000a8ab\nmovzx   edx, r9b                                                       ; +0x3d, 0x18000a8ad\nmovzx   eax, byte ptr [rsp+arg_8+5]                                    ; +0x41, 0x18000a8b1\nadd     edx, 9F49BAC2h                                                 ; +0x46, 0x18000a8b6\nshl     ecx, 8                                                         ; +0x4c, 0x18000a8bc\nadd     ecx, eax                                                       ; +0x4f, 0x18000a8bf\nmovzx   eax, byte ptr [rsp+arg_8+2]                                    ; +0x51, 0x18000a8c1\nshl     ecx, 8                                                         ; +0x56, 0x18000a8c6\nadd     r8d, ecx                                                       ; +0x59, 0x18000a8c9\nmovzx   ecx, byte ptr [rsp+arg_8+3]                                    ; +0x5c, 0x18000a8cc\nshl     ecx, 8                                                         ; +0x61, 0x18000a8d1\nadd     ecx, eax                                                       ; +0x64, 0x18000a8d4\nmovzx   eax, byte ptr [rsp+arg_8+1]                                    ; +0x66, 0x18000a8d6\nshl     ecx, 8                                                         ; +0x6b, 0x18000a8db\nadd     ecx, eax                                                       ; +0x6e, 0x18000a8de\nshl     ecx, 8                                                         ; +0x70, 0x18000a8e0\nsub     ecx, r8d                                                       ; +0x73, 0x18000a8e3\nadd     edx, ecx                                                       ; +0x76, 0x18000a8e6\nmov     ecx, 0FEEDBEF7h                                                ; +0x78, 0x18000a8e8\nxor     edx, 7F76Dh                                                    ; +0x7d, 0x18000a8ed\nsub     r8d, edx                                                       ; +0x83, 0x18000a8f3\nmov     eax, edx                                                       ; +0x86, 0x18000a8f6\nshl     eax, 8                                                         ; +0x88, 0x18000a8f8\nadd     r8d, 1124109h                                                  ; +0x8b, 0x18000a8fb\nxor     r8d, eax                                                       ; +0x92, 0x18000a902\nsub     ecx, r8d                                                       ; +0x95, 0x18000a905\nmov     eax, r8d                                                       ; +0x98, 0x18000a908\nsub     ecx, edx                                                       ; +0x9b, 0x18000a90b\nshr     eax, 0Dh                                                       ; +0x9d, 0x18000a90d\nxor     ecx, eax                                                       ; +0xa0, 0x18000a910\nsub     edx, ecx                                                       ; +0xa2, 0x18000a912\nmov     eax, ecx                                                       ; +0xa4, 0x18000a914\nsub     edx, r8d                                                       ; +0xa6, 0x18000a916\nshr     eax, 0Ch                                                       ; +0xa9, 0x18000a919\nxor     edx, eax                                                       ; +0xac, 0x18000a91c\nsub     r8d, ecx                                                       ; +0xae, 0x18000a91e\nsub     r8d, edx                                                       ; +0xb1, 0x18000a921\nmov     eax, edx                                                       ; +0xb4, 0x18000a924\nshl     eax, 10h                                                       ; +0xb6, 0x18000a926\nxor     r8d, eax                                                       ; +0xb9, 0x18000a929\nsub     ecx, r8d                                                       ; +0xbc, 0x18000a92c\nmov     eax, r8d                                                       ; +0xbf, 0x18000a92f\nsub     ecx, edx                                                       ; +0xc2, 0x18000a932\nshr     eax, 5                                                         ; +0xc4, 0x18000a934\nxor     ecx, eax                                                       ; +0xc7, 0x18000a937\nsub     edx, ecx                                                       ; +0xc9, 0x18000a939\nmov     eax, ecx                                                       ; +0xcb, 0x18000a93b\nsub     edx, r8d                                                       ; +0xcd, 0x18000a93d\nshr     eax, 3                                                         ; +0xd0, 0x18000a940\nxor     edx, eax                                                       ; +0xd3, 0x18000a943\nsub     r8d, edx                                                       ; +0xd5, 0x18000a945\nmov     eax, edx                                                       ; +0xd8, 0x18000a948\nsub     r8d, ecx                                                       ; +0xda, 0x18000a94a\nshl     eax, 0Ah                                                       ; +0xdd, 0x18000a94d\nxor     eax, r8d                                                       ; +0xe0, 0x18000a950\nmov     r8, [r11+110h]                                                 ; +0xe3, 0x18000a953\nsub     ecx, eax                                                       ; +0xea, 0x18000a95a\nshr     rax, 0Fh                                                       ; +0xec, 0x18000a95c\nsub     ecx, edx                                                       ; +0xf0, 0x18000a960\nmov     edx, ecx                                                       ; +0xf2, 0x18000a962\nmov     ecx, [r8+8]                                                    ; +0xf4, 0x18000a964\nxor     rdx, rax                                                       ; +0xf8, 0x18000a968\nmov     rax, [r8]                                                      ; +0xfb, 0x18000a96b\ndec     ecx                                                            ; +0xfe, 0x18000a96e\nand     rdx, rcx                                                       ; +0x100, 0x18000a970\nadd     rdx, rdx                                                       ; +0x103, 0x18000a973\nmov     rax, [rax+rdx*8]                                               ; +0x106, 0x18000a976\ntest    rax, rax                                                       ; +0x10a, 0x18000a97a\njz      short loc_18000A9C4                                            ; +0x10d, 0x18000a97d\nmov     rdx, [r8+20h]                                                  ; +0x10f, 0x18000a97f\nsub     rax, rdx                                                       ; +0x113, 0x18000a983\njz      short loc_18000A9C4                                            ; +0x116, 0x18000a986\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x118, 0x18000a988\ncmp     dword ptr [rax+140h], 8                                        ; +0x120, 0x18000a990\njnz     short loc_18000A9A5                                            ; +0x127, 0x18000a997\nmov     rcx, [rax+138h]                                                ; +0x129, 0x18000a999\ncmp     [rcx], r9                                                      ; +0x130, 0x18000a9a0\njz      short loc_18000A9BD                                            ; +0x133, 0x18000a9a3\nmov     rcx, [rax+130h]                                                ; +0x135, 0x18000a9a5\nmov     rax, rcx                                                       ; +0x13c, 0x18000a9ac\ntest    rcx, rcx                                                       ; +0x13f, 0x18000a9af\njz      short loc_18000A9C4                                            ; +0x142, 0x18000a9b2\nsub     rax, rdx                                                       ; +0x144, 0x18000a9b4\njnz     short loc_18000A990                                            ; +0x147, 0x18000a9b7\nmov     rax, r10                                                       ; +0x149, 0x18000a9b9\nretn                                                                   ; +0x14c, 0x18000a9bc\nmov     r10, [rax+108h]                                                ; +0x14d, 0x18000a9bd\nmov     rax, r10                                                       ; +0x154, 0x18000a9c4\nretn                                                                   ; +0x157, 0x18000a9c7", "xrefs": ["cocos2d::CCDictionary::randomObject @ 0x18000aa0e", "cocos2d::CCDictionary::valueForKey @ 0x18000c565", "cocos2d::CCEGLViewProtocol::getSetOfTouchesEndOrCancel @ 0x18006d939", "cocos2d::CCEGLViewProtocol::handleTouchesBegin @ 0x18006dc28", "cocos2d::CCEGLViewProtocol::handleTouchesMove @ 0x18006dfc5", "cocos2d::CCTMXTiledMap::propertiesForGID @ 0x1800b1d5a", "cocos2d::CCTMXMapInfo::startElement @ 0x1800b550c", "cocos2d::CCTouchDispatcher::ownerLevelOf @ 0x1800b6b6a", "cocos2d::CCTouchDispatcher::ownerLevelOf @ 0x1800b6b82", "cocos2d::CCTouchDispatcher::ownerLevelOf @ 0x1800b6b96", "cocos2d::CCTouchDispatcher::registerForcePrio @ 0x1800b6ca1", "cocos2d::CCTouchDispatcher::unregisterForcePrio @ 0x1800b74cf", "<???> @ 0x18014cf68"], "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"}