{"type": "func", "start": 6443143888, "end": 6443143997, "name": "cocos2d::CCTextureCache::dumpCachedTextureInfo", "pseudocode": "// \n// cocos2d::CCTextureCache::dumpCachedTextureInfo from 0x1800a92d0 to 0x1800a933d (109 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x180140068\n// > <???> @ 0x180140078\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b7e6c\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::CCTextureCache::dumpCachedTextureInfo(cocos2d::CCTextureCache *this)\n{\n  cocos2d::CCDictionary *m_pTextures; // rdi\n  cocos2d::CCDictElement *m_pElements; // rdi\n  cocos2d::CCDictElement *i; // rbx\n  cocos2d::CCTexture2D *m_pObject; // rdi\n\n  m_pTextures = this->m_pTextures;\n  if ( m_pTextures )\n  {\n    m_pElements = m_pTextures->m_pElements;\n    if ( m_pElements )\n    {\n      for ( i = (cocos2d::CCDictElement *)m_pElements->hh.next; ; i = (cocos2d::CCDictElement *)i->hh.next )\n      {\n        m_pObject = (cocos2d::CCTexture2D *)m_pElements->m_pObject;\n        cocos2d::CCTexture2D::bitsPerPixelForFormat(m_pObject);\n        ((void (__fastcall *)(cocos2d::CCTexture2D *))m_pObject->getPixelsHigh)(m_pObject);\n        ((void (__fastcall *)(cocos2d::CCTexture2D *))m_pObject->getPixelsWide)(m_pObject);\n        m_pElements = i;\n        if ( !i )\n          break;\n      }\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCTextureCache::dumpCachedTextureInfo from 0x1800a92d0 to 0x1800a933d (109 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x180140068\n; > <???> @ 0x180140078\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b7e6c\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\npush    rdi                                                            ; +0x0, 0x1800a92d0\nsub     rsp, 20h                                                       ; +0x2, 0x1800a92d2\nmov     rdi, [rcx+38h]                                                 ; +0x6, 0x1800a92d6\ntest    rdi, rdi                                                       ; +0xa, 0x1800a92da\njz      short loc_1800A9337                                            ; +0xd, 0x1800a92dd\nmov     rdi, [rdi+38h]                                                 ; +0xf, 0x1800a92df\ntest    rdi, rdi                                                       ; +0x13, 0x1800a92e3\njz      short loc_1800A9337                                            ; +0x16, 0x1800a92e6\nmov     [rsp+28h+arg_0], rbx                                           ; +0x18, 0x1800a92e8\nmov     rbx, [rdi+120h]                                                ; +0x1d, 0x1800a92ed\nnop     dword ptr [rax+00h]                                            ; +0x24, 0x1800a92f4\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x28, 0x1800a92f8\nmov     rdi, [rdi+108h]                                                ; +0x30, 0x1800a9300\nmov     rcx, rdi; this                                                 ; +0x37, 0x1800a9307\ncall    ?bitsPerPixelForFormat@CCTexture2D@cocos2d@@QEAAIXZ; cocos2d::CCTexture2D::bitsPerPixelForFormat(void) ; +0x3a, 0x1800a930a\nmov     rax, [rdi]                                                     ; +0x3f, 0x1800a930f\nmov     rcx, rdi                                                       ; +0x42, 0x1800a9312\ncall    qword ptr [rax+58h]                                            ; +0x45, 0x1800a9315\nmov     rax, [rdi]                                                     ; +0x48, 0x1800a9318\nmov     rcx, rdi                                                       ; +0x4b, 0x1800a931b\ncall    qword ptr [rax+50h]                                            ; +0x4e, 0x1800a931e\nmov     rdi, rbx                                                       ; +0x51, 0x1800a9321\ntest    rbx, rbx                                                       ; +0x54, 0x1800a9324\njz      short loc_1800A9332                                            ; +0x57, 0x1800a9327\nmov     rbx, [rbx+120h]                                                ; +0x59, 0x1800a9329\njmp     short loc_1800A9300                                            ; +0x60, 0x1800a9330\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x62, 0x1800a9332\nadd     rsp, 20h                                                       ; +0x67, 0x1800a9337\npop     rdi                                                            ; +0x6b, 0x1800a933b\nretn                                                                   ; +0x6c, 0x1800a933c", "xrefs": ["<???> @ 0x180140068", "<???> @ 0x180140078", "<???> @ 0x1801438a8", "<???> @ 0x1801b7e6c"], "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"}