{"type": "func", "start": 4300647888, "end": 4300648028, "name": "CCAnimateFrameCache::sharedSpriteFrameCache", "pseudocode": "// \n// CCAnimateFrameCache::sharedSpriteFrameCache from 0x10056add0 to 0x10056ae5c (140 bytes)\n// \n// 5 xrefs:\n// > CCPartAnimSprite::initWithAnimDesc @ 0x100373bd8\n// > CCPartAnimSprite::setDisplayFrame @ 0x100374e73\n// > CCPartAnimSprite::tweenToFrame @ 0x10037508e\n// > GameManager::reloadAllStep2 @ 0x10038c518\n// > LoadingLayer::loadAssets @ 0x1003a3594\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\nCCAnimateFrameCache *__fastcall CCAnimateFrameCache::sharedSpriteFrameCache()\n{\n  CCAnimateFrameCache *result; // rax\n  char *v1; // rbx\n  cocos2d::CCDictionary *v2; // rax\n  cocos2d::CCDictionary *v3; // rax\n  cocos2d::CCDictionary *v4; // rax\n\n  result = (CCAnimateFrameCache *)qword_1009A2A08;\n  if ( !qword_1009A2A08 )\n  {\n    v1 = (char *)operator new(0x50u);\n    cocos2d::CCObject::CCObject((__int64)v1);\n    *(_QWORD *)v1 = off_1009640A0;\n    *(_OWORD *)(v1 + 56) = 0;\n    *((_QWORD *)v1 + 9) = 0;\n    qword_1009A2A08 = (__int64)v1;\n    v2 = cocos2d::CCDictionary::create();\n    *((_QWORD *)v1 + 7) = v2;\n    cocos2d::CCObject::retain(v2);\n    v3 = cocos2d::CCDictionary::create();\n    *((_QWORD *)v1 + 8) = v3;\n    cocos2d::CCObject::retain(v3);\n    v4 = cocos2d::CCDictionary::create();\n    *((_QWORD *)v1 + 9) = v4;\n    cocos2d::CCObject::retain(v4);\n    return (CCAnimateFrameCache *)qword_1009A2A08;\n  }\n  return result;\n}", "assembly": "; \n; CCAnimateFrameCache::sharedSpriteFrameCache from 0x10056add0 to 0x10056ae5c (140 bytes)\n; \n; 5 xrefs:\n; > CCPartAnimSprite::initWithAnimDesc @ 0x100373bd8\n; > CCPartAnimSprite::setDisplayFrame @ 0x100374e73\n; > CCPartAnimSprite::tweenToFrame @ 0x10037508e\n; > GameManager::reloadAllStep2 @ 0x10038c518\n; > LoadingLayer::loadAssets @ 0x1003a3594\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    rbp                                                            ; +0x0, 0x10056add0\nmov     rbp, rsp                                                       ; +0x1, 0x10056add1\npush    r14                                                            ; +0x4, 0x10056add4\npush    rbx                                                            ; +0x6, 0x10056add6\nmov     rax, cs:qword_1009A2A08                                        ; +0x7, 0x10056add7\ntest    rax, rax                                                       ; +0xe, 0x10056adde\njz      short loc_10056ADE8                                            ; +0x11, 0x10056ade1\npop     rbx                                                            ; +0x13, 0x10056ade3\npop     r14                                                            ; +0x14, 0x10056ade4\npop     rbp                                                            ; +0x16, 0x10056ade6\nretn                                                                   ; +0x17, 0x10056ade7\nmov     edi, 50h ; 'P'; __sz                                           ; +0x18, 0x10056ade8\ncall    __Znwm; operator new(ulong)                                    ; +0x1d, 0x10056aded\nmov     rbx, rax                                                       ; +0x22, 0x10056adf2\nmov     rdi, rax                                                       ; +0x25, 0x10056adf5\ncall    cocos2d__CCObject__CCObject                                    ; +0x28, 0x10056adf8\nlea     rax, off_1009640A0                                             ; +0x2d, 0x10056adfd\nmov     [rbx], rax                                                     ; +0x34, 0x10056ae04\nxorps   xmm0, xmm0                                                     ; +0x37, 0x10056ae07\nmovups  xmmword ptr [rbx+38h], xmm0                                    ; +0x3a, 0x10056ae0a\nmov     qword ptr [rbx+48h], 0                                         ; +0x3e, 0x10056ae0e\nmov     cs:qword_1009A2A08, rbx                                        ; +0x46, 0x10056ae16\ncall    cocos2d__CCDictionary__create                                  ; +0x4d, 0x10056ae1d\nmov     [rbx+38h], rax                                                 ; +0x52, 0x10056ae22\nmov     rdi, rax                                                       ; +0x56, 0x10056ae26\ncall    cocos2d__CCObject__retain                                      ; +0x59, 0x10056ae29\ncall    cocos2d__CCDictionary__create                                  ; +0x5e, 0x10056ae2e\nmov     [rbx+40h], rax                                                 ; +0x63, 0x10056ae33\nmov     rdi, rax                                                       ; +0x67, 0x10056ae37\ncall    cocos2d__CCObject__retain                                      ; +0x6a, 0x10056ae3a\ncall    cocos2d__CCDictionary__create                                  ; +0x6f, 0x10056ae3f\nmov     [rbx+48h], rax                                                 ; +0x74, 0x10056ae44\nmov     rdi, rax                                                       ; +0x78, 0x10056ae48\ncall    cocos2d__CCObject__retain                                      ; +0x7b, 0x10056ae4b\nmov     rax, cs:qword_1009A2A08                                        ; +0x80, 0x10056ae50\npop     rbx                                                            ; +0x87, 0x10056ae57\npop     r14                                                            ; +0x88, 0x10056ae58\npop     rbp                                                            ; +0x8a, 0x10056ae5a\nretn                                                                   ; +0x8b, 0x10056ae5b", "xrefs": ["CCPartAnimSprite::initWithAnimDesc @ 0x100373bd8", "CCPartAnimSprite::setDisplayFrame @ 0x100374e73", "CCPartAnimSprite::tweenToFrame @ 0x10037508e", "GameManager::reloadAllStep2 @ 0x10038c518", "LoadingLayer::loadAssets @ 0x1003a3594"], "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"}