{"type": "func", "start": 6443051552, "end": 6443051734, "name": "cocos2d::CCSpriteFrame::copyWithZone", "pseudocode": "// \n// cocos2d::CCSpriteFrame::copyWithZone from 0x180092a20 to 0x180092ad6 (182 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x18010a6f0\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c04b0\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:08 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nstruct cocos2d::CCObject *__fastcall cocos2d::CCSpriteFrame::copyWithZone(\n        cocos2d::CCSpriteFrame *this,\n        struct cocos2d::CCZone *a2)\n{\n  cocos2d::CCSpriteFrame *v3; // rax\n  cocos2d::CCSpriteFrame *v4; // rbx\n  cocos2d::CCSpriteFrame *v5; // rbx\n  const char *v6; // rdx\n  cocos2d::CCObject *v7; // rdi\n  cocos2d::CCObject *v8; // rcx\n\n  v3 = (cocos2d::CCSpriteFrame *)sub_1800E4AC0(0xC8u);\n  v4 = v3;\n  if ( v3 )\n  {\n    memset(v3, 0, 0xC8u);\n    v5 = cocos2d::CCSpriteFrame::CCSpriteFrame(v4);\n  }\n  else\n  {\n    v5 = nullptr;\n  }\n  v6 = (char *)this + 136;\n  if ( *((_QWORD *)this + 20) > 0xFu )\n    v6 = *(const char **)v6;\n  cocos2d::CCSpriteFrame::initWithTextureFilename(\n    v5,\n    v6,\n    (cocos2d::CCSpriteFrame *)((char *)this + 72),\n    *((_BYTE *)this + 88),\n    (cocos2d::CCSpriteFrame *)((char *)this + 108),\n    (cocos2d::CCSpriteFrame *)((char *)this + 116));\n  v7 = *((cocos2d::CCObject **)this + 16);\n  v8 = *((cocos2d::CCObject **)v5 + 16);\n  if ( v8 != v7 )\n  {\n    if ( v8 )\n      cocos2d::CCObject::release(v8);\n    if ( v7 )\n      cocos2d::CCObject::retain(v7);\n    *((_QWORD *)v5 + 16) = v7;\n  }\n  return v5;\n}", "assembly": "; \n; cocos2d::CCSpriteFrame::copyWithZone from 0x180092a20 to 0x180092ad6 (182 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x18010a6f0\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c04b0\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:08 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x180092a20\npush    rdi                                                            ; +0x5, 0x180092a25\nsub     rsp, 30h                                                       ; +0x6, 0x180092a26\nmov     rdi, rcx                                                       ; +0xa, 0x180092a2a\nmov     ecx, 0C8h; Size                                                ; +0xd, 0x180092a2d\ncall    sub_1800E4AC0                                                  ; +0x12, 0x180092a32\nmov     rbx, rax                                                       ; +0x17, 0x180092a37\nmov     [rsp+38h+arg_0], rax                                           ; +0x1a, 0x180092a3a\ntest    rax, rax                                                       ; +0x1f, 0x180092a3f\njz      short loc_180092A61                                            ; +0x22, 0x180092a42\nxor     edx, edx; Val                                                  ; +0x24, 0x180092a44\nmov     r8d, 0C8h; Size                                                ; +0x26, 0x180092a46\nmov     rcx, rax; void *                                               ; +0x2c, 0x180092a4c\ncall    memset                                                         ; +0x2f, 0x180092a4f\nmov     rcx, rbx; this                                                 ; +0x34, 0x180092a54\ncall    ??0CCSpriteFrame@cocos2d@@QEAA@XZ; cocos2d::CCSpriteFrame::CCSpriteFrame(void) ; +0x37, 0x180092a57\nmov     rbx, rax                                                       ; +0x3c, 0x180092a5c\njmp     short loc_180092A63                                            ; +0x3f, 0x180092a5f\nxor     ebx, ebx                                                       ; +0x41, 0x180092a61\nlea     rdx, [rdi+88h]                                                 ; +0x43, 0x180092a63\ncmp     qword ptr [rdx+18h], 0Fh                                       ; +0x4a, 0x180092a6a\njbe     short loc_180092A74                                            ; +0x4f, 0x180092a6f\nmov     rdx, [rdx]; char *                                             ; +0x51, 0x180092a71\nlea     rax, [rdi+74h]                                                 ; +0x54, 0x180092a74\nlea     rcx, [rdi+6Ch]                                                 ; +0x58, 0x180092a78\nlea     r8, [rdi+48h]; struct cocos2d::CCRect *                        ; +0x5c, 0x180092a7c\nmov     [rsp+38h+var_10], rax; struct cocos2d::CCSize *                ; +0x60, 0x180092a80\nmov     [rsp+38h+var_18], rcx; struct cocos2d::CCPoint *               ; +0x65, 0x180092a85\nmovzx   r9d, byte ptr [rdi+58h]; bool                                  ; +0x6a, 0x180092a8a\nmov     rcx, rbx; this                                                 ; +0x6f, 0x180092a8f\ncall    ?initWithTextureFilename@CCSpriteFrame@cocos2d@@QEAA_NPEBDAEBVCCRect@2@_NAEBVCCPoint@2@AEBVCCSize@2@@Z; cocos2d::CCSpriteFrame::initWithTextureFilename(char const *,cocos2d::CCRect const &,bool,cocos2d::CCPoint const &,cocos2d::CCSize const &) ; +0x72, 0x180092a92\nmov     rdi, [rdi+80h]                                                 ; +0x77, 0x180092a97\nmov     rcx, [rbx+80h]; this                                           ; +0x7e, 0x180092a9e\ncmp     rcx, rdi                                                       ; +0x85, 0x180092aa5\njz      short loc_180092AC8                                            ; +0x88, 0x180092aa8\ntest    rcx, rcx                                                       ; +0x8a, 0x180092aaa\njz      short loc_180092AB4                                            ; +0x8d, 0x180092aad\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x8f, 0x180092aaf\ntest    rdi, rdi                                                       ; +0x94, 0x180092ab4\njz      short loc_180092AC1                                            ; +0x97, 0x180092ab7\nmov     rcx, rdi; this                                                 ; +0x99, 0x180092ab9\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x9c, 0x180092abc\nmov     [rbx+80h], rdi                                                 ; +0xa1, 0x180092ac1\nmov     rax, rbx                                                       ; +0xa8, 0x180092ac8\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xab, 0x180092acb\nadd     rsp, 30h                                                       ; +0xb0, 0x180092ad0\npop     rdi                                                            ; +0xb4, 0x180092ad4\nretn                                                                   ; +0xb5, 0x180092ad5", "xrefs": ["<???> @ 0x18010a6f0", "<???> @ 0x18014cf68", "<???> @ 0x1801c04b0"], "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"}