{"type": "func", "start": 6443047280, "end": 6443047448, "name": "cocos2d::CCSpriteFrameCache::init", "pseudocode": "// \n// cocos2d::CCSpriteFrameCache::init from 0x180091970 to 0x180091a18 (168 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache @ 0x180092807\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b6354\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=3\nchar __fastcall cocos2d::CCSpriteFrameCache::init(cocos2d::CCSpriteFrameCache *this)\n{\n  cocos2d::CCDictionary *v2; // rax\n  cocos2d::CCDictionary *v3; // rax\n  _QWORD *v4; // rax\n  _QWORD *v5; // rbx\n  _QWORD *v6; // rax\n\n  v2 = (cocos2d::CCDictionary *)operator new(0x48u);\n  if ( v2 )\n    v2 = cocos2d::CCDictionary::CCDictionary(v2);\n  *((_QWORD *)this + 7) = v2;\n  v3 = (cocos2d::CCDictionary *)operator new(0x48u);\n  if ( v3 )\n    v3 = cocos2d::CCDictionary::CCDictionary(v3);\n  *((_QWORD *)this + 8) = v3;\n  v4 = operator new(0x10u);\n  v5 = v4;\n  if ( v4 )\n  {\n    *v4 = 0;\n    v4[1] = 0;\n    v6 = operator new(0x40u);\n    *v6 = v6;\n    v6[1] = v6;\n    v6[2] = v6;\n    *((_WORD *)v6 + 12) = 257;\n    *v5 = v6;\n  }\n  else\n  {\n    v5 = nullptr;\n  }\n  *((_QWORD *)this + 9) = v5;\n  return 1;\n}", "assembly": "; \n; cocos2d::CCSpriteFrameCache::init from 0x180091970 to 0x180091a18 (168 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache @ 0x180092807\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b6354\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, 0x180091970\npush    rdi                                                            ; +0x5, 0x180091975\nsub     rsp, 20h                                                       ; +0x6, 0x180091976\nmov     rdi, rcx                                                       ; +0xa, 0x18009197a\nmov     ecx, 48h ; 'H'; Size                                           ; +0xd, 0x18009197d\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x12, 0x180091982\nmov     [rsp+28h+arg_0], rax                                           ; +0x17, 0x180091987\ntest    rax, rax                                                       ; +0x1c, 0x18009198c\njz      short loc_18009199A                                            ; +0x1f, 0x18009198f\nmov     rcx, rax; this                                                 ; +0x21, 0x180091991\ncall    ??0CCDictionary@cocos2d@@QEAA@XZ; cocos2d::CCDictionary::CCDictionary(void) ; +0x24, 0x180091994\nnop                                                                    ; +0x29, 0x180091999\nmov     [rdi+38h], rax                                                 ; +0x2a, 0x18009199a\nmov     ecx, 48h ; 'H'; Size                                           ; +0x2e, 0x18009199e\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x33, 0x1800919a3\nmov     [rsp+28h+arg_0], rax                                           ; +0x38, 0x1800919a8\ntest    rax, rax                                                       ; +0x3d, 0x1800919ad\njz      short loc_1800919BB                                            ; +0x40, 0x1800919b0\nmov     rcx, rax; this                                                 ; +0x42, 0x1800919b2\ncall    ??0CCDictionary@cocos2d@@QEAA@XZ; cocos2d::CCDictionary::CCDictionary(void) ; +0x45, 0x1800919b5\nnop                                                                    ; +0x4a, 0x1800919ba\nmov     [rdi+40h], rax                                                 ; +0x4b, 0x1800919bb\nmov     ecx, 10h; Size                                                 ; +0x4f, 0x1800919bf\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x54, 0x1800919c4\nmov     rbx, rax                                                       ; +0x59, 0x1800919c9\nmov     [rsp+28h+arg_0], rax                                           ; +0x5c, 0x1800919cc\ntest    rax, rax                                                       ; +0x61, 0x1800919d1\njz      short loc_180091A05                                            ; +0x64, 0x1800919d4\nmov     qword ptr [rax], 0                                             ; +0x66, 0x1800919d6\nmov     qword ptr [rax+8], 0                                           ; +0x6d, 0x1800919dd\nmov     ecx, 40h ; '@'; Size                                           ; +0x75, 0x1800919e5\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x7a, 0x1800919ea\nmov     [rax], rax                                                     ; +0x7f, 0x1800919ef\nmov     [rax+8], rax                                                   ; +0x82, 0x1800919f2\nmov     [rax+10h], rax                                                 ; +0x86, 0x1800919f6\nmov     word ptr [rax+18h], 101h                                       ; +0x8a, 0x1800919fa\nmov     [rbx], rax                                                     ; +0x90, 0x180091a00\njmp     short loc_180091A07                                            ; +0x93, 0x180091a03\nxor     ebx, ebx                                                       ; +0x95, 0x180091a05\nmov     [rdi+48h], rbx                                                 ; +0x97, 0x180091a07\nmov     al, 1                                                          ; +0x9b, 0x180091a0b\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x9d, 0x180091a0d\nadd     rsp, 20h                                                       ; +0xa2, 0x180091a12\npop     rdi                                                            ; +0xa6, 0x180091a16\nretn                                                                   ; +0xa7, 0x180091a17", "xrefs": ["cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache @ 0x180092807", "<???> @ 0x1801438a8", "<???> @ 0x1801b6354"], "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"}