{"type": "func", "start": 6442490256, "end": 6442490609, "name": "cocos2d::CCDictionary::allKeysForObject", "pseudocode": "// \n// cocos2d::CCDictionary::allKeysForObject from 0x180009990 to 0x180009af1 (353 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCTextureCache::removeTexture @ 0x1800a9841\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801adca8\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\n// Hidden C++ exception states: #wind=2\nstruct cocos2d::CCArray *__fastcall cocos2d::CCDictionary::allKeysForObject(\n        cocos2d::CCDictionary *this,\n        struct cocos2d::CCObject *a2)\n{\n  cocos2d::CCDictElement *m_pElements; // rax\n  cocos2d::CCArray *v5; // rbp\n  cocos2d::CCDictionary::CCDictType m_eDictType; // ecx\n  cocos2d::CCDictElement *v7; // rbx\n  cocos2d::CCDictElement *i; // rdi\n  cocos2d::CCString *v9; // rax\n  struct cocos2d::CCObject *v10; // rbx\n  cocos2d::CCDictElement *v11; // rbx\n  cocos2d::CCDictElement *j; // rsi\n  cocos2d::CCObject *v13; // rax\n  cocos2d::CCObject *v14; // rdi\n  int m_iKey; // ebx\n\n  m_pElements = this->m_pElements;\n  if ( !m_pElements || (int)m_pElements->hh.tbl->num_items <= 0 )\n    return nullptr;\n  v5 = cocos2d::CCArray::create();\n  m_eDictType = this->m_eDictType;\n  if ( m_eDictType == kCCDictStr )\n  {\n    v7 = this->m_pElements;\n    if ( v7 )\n    {\n      for ( i = (cocos2d::CCDictElement *)v7->hh.next; ; i = (cocos2d::CCDictElement *)i->hh.next )\n      {\n        if ( a2 == v7->m_pObject )\n        {\n          v9 = (cocos2d::CCString *)operator new(0x58u);\n          if ( v9 )\n            v10 = (struct cocos2d::CCObject *)cocos2d::CCString::CCString(v9, v7->m_szKey);\n          else\n            v10 = nullptr;\n          cocos2d::CCArray::addObject(v5, v10);\n          if ( v10 )\n            cocos2d::CCObject::release(v10);\n        }\n        v7 = i;\n        if ( !i )\n          break;\n      }\n    }\n  }\n  else if ( m_eDictType == kCCDictInt )\n  {\n    v11 = this->m_pElements;\n    if ( v11 )\n    {\n      for ( j = (cocos2d::CCDictElement *)v11->hh.next; ; j = (cocos2d::CCDictElement *)j->hh.next )\n      {\n        if ( a2 == v11->m_pObject )\n        {\n          v13 = (cocos2d::CCObject *)operator new(0x40u);\n          v14 = v13;\n          if ( v13 )\n          {\n            m_iKey = v11->m_iKey;\n            cocos2d::CCObject::CCObject(v13);\n            v14->__vftable = (cocos2d::CCObject_vtbl *)&cocos2d::CCInteger::`vftable';\n            LODWORD(v14[1].__vftable) = m_iKey;\n          }\n          else\n          {\n            v14 = nullptr;\n          }\n          cocos2d::CCArray::addObject(v5, v14);\n          if ( v14 )\n            cocos2d::CCObject::release(v14);\n        }\n        v11 = j;\n        if ( !j )\n          break;\n      }\n    }\n  }\n  return v5;\n}", "assembly": "; \n; cocos2d::CCDictionary::allKeysForObject from 0x180009990 to 0x180009af1 (353 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCTextureCache::removeTexture @ 0x1800a9841\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801adca8\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], rbx                                               ; +0x0, 0x180009990\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x180009995\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x18000999a\npush    rdi                                                            ; +0xf, 0x18000999f\npush    r14                                                            ; +0x10, 0x1800099a0\npush    r15                                                            ; +0x12, 0x1800099a2\nsub     rsp, 20h                                                       ; +0x14, 0x1800099a4\nmov     r14, rdx                                                       ; +0x18, 0x1800099a8\nmov     rbx, rcx                                                       ; +0x1b, 0x1800099ab\nmov     rax, [rcx+38h]                                                 ; +0x1e, 0x1800099ae\ntest    rax, rax                                                       ; +0x22, 0x1800099b2\njz      loc_180009AD6                                                  ; +0x25, 0x1800099b5\nmov     rax, [rax+110h]                                                ; +0x2b, 0x1800099bb\ncmp     dword ptr [rax+10h], 0                                         ; +0x32, 0x1800099c2\njle     loc_180009AD6                                                  ; +0x36, 0x1800099c6\ncall    ?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x3c, 0x1800099cc\nmov     rbp, rax                                                       ; +0x41, 0x1800099d1\nmov     ecx, [rbx+40h]                                                 ; +0x44, 0x1800099d4\ncmp     ecx, 1                                                         ; +0x47, 0x1800099d7\njnz     short loc_180009A4C                                            ; +0x4a, 0x1800099da\nmov     rbx, [rbx+38h]                                                 ; +0x4c, 0x1800099dc\ntest    rbx, rbx                                                       ; +0x50, 0x1800099e0\njz      loc_180009AD1                                                  ; +0x53, 0x1800099e3\nmov     rdi, [rbx+120h]                                                ; +0x59, 0x1800099e9\ncmp     r14, [rbx+108h]                                                ; +0x60, 0x1800099f0\njnz     short loc_180009A37                                            ; +0x67, 0x1800099f7\nmov     ecx, 58h ; 'X'; Size                                           ; +0x69, 0x1800099f9\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x6e, 0x1800099fe\nmov     [rsp+38h+arg_0], rax                                           ; +0x73, 0x180009a03\ntest    rax, rax                                                       ; +0x78, 0x180009a08\njz      short loc_180009A1D                                            ; +0x7b, 0x180009a0b\nmov     rdx, rbx; char *                                               ; +0x7d, 0x180009a0d\nmov     rcx, rax; this                                                 ; +0x80, 0x180009a10\ncall    ??0CCString@cocos2d@@QEAA@PEBD@Z; cocos2d::CCString::CCString(char const *) ; +0x83, 0x180009a13\nmov     rbx, rax                                                       ; +0x88, 0x180009a18\njmp     short loc_180009A1F                                            ; +0x8b, 0x180009a1b\nxor     ebx, ebx                                                       ; +0x8d, 0x180009a1d\nmov     rdx, rbx; struct cocos2d::CCObject *                           ; +0x8f, 0x180009a1f\nmov     rcx, rbp; this                                                 ; +0x92, 0x180009a22\ncall    ?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x95, 0x180009a25\ntest    rbx, rbx                                                       ; +0x9a, 0x180009a2a\njz      short loc_180009A37                                            ; +0x9d, 0x180009a2d\nmov     rcx, rbx; this                                                 ; +0x9f, 0x180009a2f\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0xa2, 0x180009a32\nmov     rbx, rdi                                                       ; +0xa7, 0x180009a37\ntest    rdi, rdi                                                       ; +0xaa, 0x180009a3a\njz      loc_180009AD1                                                  ; +0xad, 0x180009a3d\nmov     rdi, [rdi+120h]                                                ; +0xb3, 0x180009a43\njmp     short loc_1800099F0                                            ; +0xba, 0x180009a4a\ncmp     ecx, 2                                                         ; +0xbc, 0x180009a4c\njnz     loc_180009AD1                                                  ; +0xbf, 0x180009a4f\nmov     rbx, [rbx+38h]                                                 ; +0xc5, 0x180009a55\ntest    rbx, rbx                                                       ; +0xc9, 0x180009a59\njz      short loc_180009AD1                                            ; +0xcc, 0x180009a5c\nmov     rsi, [rbx+120h]                                                ; +0xce, 0x180009a5e\nlea     r15, ??_7CCInteger@cocos2d@@6B@; const cocos2d::CCInteger::`vftable' ; +0xd5, 0x180009a65\nnop     dword ptr [rax+00h]                                            ; +0xdc, 0x180009a6c\ncmp     r14, [rbx+108h]                                                ; +0xe0, 0x180009a70\njnz     short loc_180009AC0                                            ; +0xe7, 0x180009a77\nmov     ecx, 40h ; '@'; Size                                           ; +0xe9, 0x180009a79\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xee, 0x180009a7e\nmov     rdi, rax                                                       ; +0xf3, 0x180009a83\nmov     [rsp+38h+arg_0], rax                                           ; +0xf6, 0x180009a86\ntest    rax, rax                                                       ; +0xfb, 0x180009a8b\njz      short loc_180009AA6                                            ; +0xfe, 0x180009a8e\nmov     ebx, [rbx+100h]                                                ; +0x100, 0x180009a90\nmov     rcx, rax; this                                                 ; +0x106, 0x180009a96\ncall    ??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0x109, 0x180009a99\nmov     [rdi], r15                                                     ; +0x10e, 0x180009a9e\nmov     [rdi+38h], ebx                                                 ; +0x111, 0x180009aa1\njmp     short loc_180009AA8                                            ; +0x114, 0x180009aa4\nxor     edi, edi                                                       ; +0x116, 0x180009aa6\nmov     rdx, rdi; struct cocos2d::CCObject *                           ; +0x118, 0x180009aa8\nmov     rcx, rbp; this                                                 ; +0x11b, 0x180009aab\ncall    ?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x11e, 0x180009aae\ntest    rdi, rdi                                                       ; +0x123, 0x180009ab3\njz      short loc_180009AC0                                            ; +0x126, 0x180009ab6\nmov     rcx, rdi; this                                                 ; +0x128, 0x180009ab8\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x12b, 0x180009abb\nmov     rbx, rsi                                                       ; +0x130, 0x180009ac0\ntest    rsi, rsi                                                       ; +0x133, 0x180009ac3\njz      short loc_180009AD1                                            ; +0x136, 0x180009ac6\nmov     rsi, [rsi+120h]                                                ; +0x138, 0x180009ac8\njmp     short loc_180009A70                                            ; +0x13f, 0x180009acf\nmov     rax, rbp                                                       ; +0x141, 0x180009ad1\njmp     short loc_180009AD8                                            ; +0x144, 0x180009ad4\nxor     eax, eax                                                       ; +0x146, 0x180009ad6\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x148, 0x180009ad8\nmov     rbp, [rsp+38h+arg_10]                                          ; +0x14d, 0x180009add\nmov     rsi, [rsp+38h+arg_18]                                          ; +0x152, 0x180009ae2\nadd     rsp, 20h                                                       ; +0x157, 0x180009ae7\npop     r15                                                            ; +0x15b, 0x180009aeb\npop     r14                                                            ; +0x15d, 0x180009aed\npop     rdi                                                            ; +0x15f, 0x180009aef\nretn                                                                   ; +0x160, 0x180009af0", "xrefs": ["cocos2d::CCTextureCache::removeTexture @ 0x1800a9841", "<???> @ 0x1801438a8", "<???> @ 0x1801adca8"], "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"}