{"type": "func", "start": 6443064384, "end": 6443064551, "name": "cocos2d::CCSpriteFrameCache::removeUnusedSpriteFrames", "pseudocode": "// \n// cocos2d::CCSpriteFrameCache::removeUnusedSpriteFrames from 0x180095c40 to 0x180095ce7 (167 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x180146fd8\n// > <???> @ 0x180146fe8\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c0648\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:22:09 +0000\n// \n\nvoid __fastcall cocos2d::CCSpriteFrameCache::removeUnusedSpriteFrames(cocos2d::CCSpriteFrameCache *this)\n{\n  __int64 v1; // rdi\n  char v2; // si\n  __int64 v4; // rdi\n  __int64 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 = *(_QWORD *)(v1 + 56);\n    if ( v4 )\n    {\n      for ( i = *(_QWORD *)(v4 + 288); ; i = *(_QWORD *)(i + 288) )\n      {\n        if ( (unsigned int)cocos2d::CCObject::retainCount(*(cocos2d::CCObject **)(v4 + 264)) == 1 )\n        {\n          cocos2d::CCDictionary::removeObjectForElememt(\n            *((cocos2d::CCDictionary **)this + 7),\n            (struct cocos2d::CCDictElement *)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_180093690((__int64)v6, (__int64)v6, *(_QWORD *)(*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 0x180095c40 to 0x180095ce7 (167 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x180146fd8\n; > <???> @ 0x180146fe8\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c0648\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:22:09 +0000\n; \nmov     [rsp+arg_8], rbp                                               ; +0x0, 0x180095c40\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x180095c45\npush    rdi                                                            ; +0xa, 0x180095c4a\nsub     rsp, 20h                                                       ; +0xb, 0x180095c4b\nmov     rdi, [rcx+38h]                                                 ; +0xf, 0x180095c4f\nxor     sil, sil                                                       ; +0x13, 0x180095c53\nmov     rbp, rcx                                                       ; +0x16, 0x180095c56\ntest    rdi, rdi                                                       ; +0x19, 0x180095c59\njz      short loc_180095CD7                                            ; +0x1c, 0x180095c5c\nmov     rdi, [rdi+38h]                                                 ; +0x1e, 0x180095c5e\ntest    rdi, rdi                                                       ; +0x22, 0x180095c62\njz      short loc_180095CD7                                            ; +0x25, 0x180095c65\nmov     [rsp+28h+arg_0], rbx                                           ; +0x27, 0x180095c67\nmov     rbx, [rdi+120h]                                                ; +0x2c, 0x180095c6c\nmov     rcx, [rdi+108h]; this                                          ; +0x33, 0x180095c73\ncall    ?retainCount@CCObject@cocos2d@@QEBAIXZ; cocos2d::CCObject::retainCount(void) ; +0x3a, 0x180095c7a\ncmp     eax, 1                                                         ; +0x3f, 0x180095c7f\njnz     short loc_180095C93                                            ; +0x42, 0x180095c82\nmov     rcx, [rbp+38h]; this                                           ; +0x44, 0x180095c84\nmov     rdx, rdi; struct cocos2d::CCDictElement *                      ; +0x48, 0x180095c88\ncall    ?removeObjectForElememt@CCDictionary@cocos2d@@QEAAXPEAVCCDictElement@2@@Z; cocos2d::CCDictionary::removeObjectForElememt(cocos2d::CCDictElement *) ; +0x4b, 0x180095c8b\nmov     sil, 1                                                         ; +0x50, 0x180095c90\nmov     rdi, rbx                                                       ; +0x53, 0x180095c93\ntest    rbx, rbx                                                       ; +0x56, 0x180095c96\njz      short loc_180095CA4                                            ; +0x59, 0x180095c99\nmov     rbx, [rbx+120h]                                                ; +0x5b, 0x180095c9b\njmp     short loc_180095C73                                            ; +0x62, 0x180095ca2\ntest    sil, sil                                                       ; +0x64, 0x180095ca4\njz      short loc_180095CD2                                            ; +0x67, 0x180095ca7\nmov     rdi, [rbp+48h]                                                 ; +0x69, 0x180095ca9\nmov     rdx, rdi                                                       ; +0x6d, 0x180095cad\nmov     rcx, rdi                                                       ; +0x70, 0x180095cb0\nmov     rbx, [rdi]                                                     ; +0x73, 0x180095cb3\nmov     r8, [rbx+8]                                                    ; +0x76, 0x180095cb6\ncall    sub_180093690                                                  ; +0x7a, 0x180095cba\nmov     [rbx+8], rbx                                                   ; +0x7f, 0x180095cbf\nmov     [rbx], rbx                                                     ; +0x83, 0x180095cc3\nmov     [rbx+10h], rbx                                                 ; +0x86, 0x180095cc6\nmov     qword ptr [rdi+8], 0                                           ; +0x8a, 0x180095cca\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x92, 0x180095cd2\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x97, 0x180095cd7\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x9c, 0x180095cdc\nadd     rsp, 20h                                                       ; +0xa1, 0x180095ce1\npop     rdi                                                            ; +0xa5, 0x180095ce5\nretn                                                                   ; +0xa6, 0x180095ce6", "xrefs": ["<???> @ 0x180146fd8", "<???> @ 0x180146fe8", "<???> @ 0x18014cf68", "<???> @ 0x1801c0648"], "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"}