{"type": "func", "start": 6443050752, "end": 6443050919, "name": "cocos2d::CCSpriteFrameCache::removeUnusedSpriteFrames", "pseudocode": "// \n// cocos2d::CCSpriteFrameCache::removeUnusedSpriteFrames from 0x180092700 to 0x1800927a7 (167 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x18013dd1c\n// > <???> @ 0x18013dd2c\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b63a8\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::CCSpriteFrameCache::removeUnusedSpriteFrames(cocos2d::CCSpriteFrameCache *this)\n{\n  __int64 v1; // rdi\n  char v2; // bp\n  struct cocos2d::CCDictElement *v4; // rdi\n  struct cocos2d::CCDictElement *i; // rbx\n  _QWORD *v6; // rdi\n  _QWORD *v7; // rbx\n\n  v1 = *((_QWORD *)this + 7);\n  v2 = 0;\n  if ( v1 )\n  {\n    v4 = *(struct cocos2d::CCDictElement **)(v1 + 56);\n    if ( v4 )\n    {\n      for ( i = (struct cocos2d::CCDictElement *)v4->hh.next; ; i = (struct cocos2d::CCDictElement *)i->hh.next )\n      {\n        if ( (unsigned int)cocos2d::CCObject::retainCount(v4->m_pObject) == 1 )\n        {\n          cocos2d::CCDictionary::removeObjectForElememt(*((cocos2d::CCDictionary **)this + 7), v4);\n          v2 = 1;\n        }\n        v4 = i;\n        if ( !i )\n          break;\n      }\n      if ( v2 )\n      {\n        v6 = *((_QWORD **)this + 9);\n        v7 = (_QWORD *)*v6;\n        sub_1800903C0((__int64)v6, (__int64)v6, *(__int64 **)(*v6 + 8LL));\n        v7[1] = v7;\n        *v7 = v7;\n        v7[2] = v7;\n        v6[1] = 0;\n      }\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCSpriteFrameCache::removeUnusedSpriteFrames from 0x180092700 to 0x1800927a7 (167 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x18013dd1c\n; > <???> @ 0x18013dd2c\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b63a8\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], rbp                                               ; +0x0, 0x180092700\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x180092705\npush    rdi                                                            ; +0xa, 0x18009270a\nsub     rsp, 20h                                                       ; +0xb, 0x18009270b\nmov     rdi, [rcx+38h]                                                 ; +0xf, 0x18009270f\nxor     bpl, bpl                                                       ; +0x13, 0x180092713\nmov     rsi, rcx                                                       ; +0x16, 0x180092716\ntest    rdi, rdi                                                       ; +0x19, 0x180092719\njz      short loc_180092797                                            ; +0x1c, 0x18009271c\nmov     rdi, [rdi+38h]                                                 ; +0x1e, 0x18009271e\ntest    rdi, rdi                                                       ; +0x22, 0x180092722\njz      short loc_180092797                                            ; +0x25, 0x180092725\nmov     [rsp+28h+arg_0], rbx                                           ; +0x27, 0x180092727\nmov     rbx, [rdi+120h]                                                ; +0x2c, 0x18009272c\nmov     rcx, [rdi+108h]; this                                          ; +0x33, 0x180092733\ncall    ?retainCount@CCObject@cocos2d@@QEBAIXZ; cocos2d::CCObject::retainCount(void) ; +0x3a, 0x18009273a\ncmp     eax, 1                                                         ; +0x3f, 0x18009273f\njnz     short loc_180092753                                            ; +0x42, 0x180092742\nmov     rcx, [rsi+38h]; this                                           ; +0x44, 0x180092744\nmov     rdx, rdi; struct cocos2d::CCDictElement *                      ; +0x48, 0x180092748\ncall    ?removeObjectForElememt@CCDictionary@cocos2d@@QEAAXPEAVCCDictElement@2@@Z; cocos2d::CCDictionary::removeObjectForElememt(cocos2d::CCDictElement *) ; +0x4b, 0x18009274b\nmov     bpl, 1                                                         ; +0x50, 0x180092750\nmov     rdi, rbx                                                       ; +0x53, 0x180092753\ntest    rbx, rbx                                                       ; +0x56, 0x180092756\njz      short loc_180092764                                            ; +0x59, 0x180092759\nmov     rbx, [rbx+120h]                                                ; +0x5b, 0x18009275b\njmp     short loc_180092733                                            ; +0x62, 0x180092762\ntest    bpl, bpl                                                       ; +0x64, 0x180092764\njz      short loc_180092792                                            ; +0x67, 0x180092767\nmov     rdi, [rsi+48h]                                                 ; +0x69, 0x180092769\nmov     rdx, rdi                                                       ; +0x6d, 0x18009276d\nmov     rcx, rdi                                                       ; +0x70, 0x180092770\nmov     rbx, [rdi]                                                     ; +0x73, 0x180092773\nmov     r8, [rbx+8]                                                    ; +0x76, 0x180092776\ncall    sub_1800903C0                                                  ; +0x7a, 0x18009277a\nmov     [rbx+8], rbx                                                   ; +0x7f, 0x18009277f\nmov     [rbx], rbx                                                     ; +0x83, 0x180092783\nmov     [rbx+10h], rbx                                                 ; +0x86, 0x180092786\nmov     qword ptr [rdi+8], 0                                           ; +0x8a, 0x18009278a\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x92, 0x180092792\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x97, 0x180092797\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x9c, 0x18009279c\nadd     rsp, 20h                                                       ; +0xa1, 0x1800927a1\npop     rdi                                                            ; +0xa5, 0x1800927a5\nretn                                                                   ; +0xa6, 0x1800927a6", "xrefs": ["<???> @ 0x18013dd1c", "<???> @ 0x18013dd2c", "<???> @ 0x1801438a8", "<???> @ 0x1801b63a8"], "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"}