{"type": "func", "start": 6443038800, "end": 6443038982, "name": "cocos2d::CCSpriteFrame::copyWithZone", "pseudocode": "// \n// cocos2d::CCSpriteFrame::copyWithZone from 0x18008f850 to 0x18008f906 (182 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x180104020\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b61f8\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=1\ncocos2d::CCSpriteFrame *__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  std::string *p_m_strTextureFilename; // rdx\n  cocos2d::CCTexture2D *m_pobTexture; // rdi\n  cocos2d::CCObject *v8; // rcx\n\n  v3 = (cocos2d::CCSpriteFrame *)operator new(0xC8u);\n  v4 = v3;\n  if ( v3 )\n  {\n    memset(v3, 0, sizeof(cocos2d::CCSpriteFrame));\n    v5 = cocos2d::CCSpriteFrame::CCSpriteFrame(v4);\n  }\n  else\n  {\n    v5 = nullptr;\n  }\n  p_m_strTextureFilename = &this->m_strTextureFilename;\n  if ( this->m_strTextureFilename.m_data.m_capacity > 0xF )\n    p_m_strTextureFilename = (std::string *)p_m_strTextureFilename->m_data.m_bigStorage;\n  cocos2d::CCSpriteFrame::initWithTextureFilename(\n    v5,\n    p_m_strTextureFilename->m_data.m_smallStorage._Elems,\n    &this->m_obRectInPixels,\n    this->m_bRotated,\n    &this->m_obOffsetInPixels,\n    &this->m_obOriginalSizeInPixels);\n  m_pobTexture = this->m_pobTexture;\n  v8 = v5->m_pobTexture;\n  if ( v8 != m_pobTexture )\n  {\n    if ( v8 )\n      cocos2d::CCObject::release(v8);\n    if ( m_pobTexture )\n      cocos2d::CCObject::retain(m_pobTexture);\n    v5->m_pobTexture = m_pobTexture;\n  }\n  return v5;\n}", "assembly": "; \n; cocos2d::CCSpriteFrame::copyWithZone from 0x18008f850 to 0x18008f906 (182 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x180104020\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b61f8\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, 0x18008f850\npush    rdi                                                            ; +0x5, 0x18008f855\nsub     rsp, 30h                                                       ; +0x6, 0x18008f856\nmov     rdi, rcx                                                       ; +0xa, 0x18008f85a\nmov     ecx, 0C8h; Size                                                ; +0xd, 0x18008f85d\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x12, 0x18008f862\nmov     rbx, rax                                                       ; +0x17, 0x18008f867\nmov     [rsp+38h+arg_0], rax                                           ; +0x1a, 0x18008f86a\ntest    rax, rax                                                       ; +0x1f, 0x18008f86f\njz      short loc_18008F891                                            ; +0x22, 0x18008f872\nxor     edx, edx; Val                                                  ; +0x24, 0x18008f874\nmov     r8d, 0C8h; Size                                                ; +0x26, 0x18008f876\nmov     rcx, rax; void *                                               ; +0x2c, 0x18008f87c\ncall    memset                                                         ; +0x2f, 0x18008f87f\nmov     rcx, rbx; this                                                 ; +0x34, 0x18008f884\ncall    ??0CCSpriteFrame@cocos2d@@QEAA@XZ; cocos2d::CCSpriteFrame::CCSpriteFrame(void) ; +0x37, 0x18008f887\nmov     rbx, rax                                                       ; +0x3c, 0x18008f88c\njmp     short loc_18008F893                                            ; +0x3f, 0x18008f88f\nxor     ebx, ebx                                                       ; +0x41, 0x18008f891\nlea     rdx, [rdi+88h]                                                 ; +0x43, 0x18008f893\ncmp     qword ptr [rdx+18h], 0Fh                                       ; +0x4a, 0x18008f89a\njbe     short loc_18008F8A4                                            ; +0x4f, 0x18008f89f\nmov     rdx, [rdx]; char *                                             ; +0x51, 0x18008f8a1\nlea     rax, [rdi+74h]                                                 ; +0x54, 0x18008f8a4\nlea     rcx, [rdi+6Ch]                                                 ; +0x58, 0x18008f8a8\nlea     r8, [rdi+48h]; struct cocos2d::CCRect *                        ; +0x5c, 0x18008f8ac\nmov     [rsp+38h+var_10], rax; struct cocos2d::CCSize *                ; +0x60, 0x18008f8b0\nmov     [rsp+38h+var_18], rcx; struct cocos2d::CCPoint *               ; +0x65, 0x18008f8b5\nmovzx   r9d, byte ptr [rdi+58h]; bool                                  ; +0x6a, 0x18008f8ba\nmov     rcx, rbx; this                                                 ; +0x6f, 0x18008f8bf\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, 0x18008f8c2\nmov     rdi, [rdi+80h]                                                 ; +0x77, 0x18008f8c7\nmov     rcx, [rbx+80h]; this                                           ; +0x7e, 0x18008f8ce\ncmp     rcx, rdi                                                       ; +0x85, 0x18008f8d5\njz      short loc_18008F8F8                                            ; +0x88, 0x18008f8d8\ntest    rcx, rcx                                                       ; +0x8a, 0x18008f8da\njz      short loc_18008F8E4                                            ; +0x8d, 0x18008f8dd\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x8f, 0x18008f8df\ntest    rdi, rdi                                                       ; +0x94, 0x18008f8e4\njz      short loc_18008F8F1                                            ; +0x97, 0x18008f8e7\nmov     rcx, rdi; this                                                 ; +0x99, 0x18008f8e9\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x9c, 0x18008f8ec\nmov     [rbx+80h], rdi                                                 ; +0xa1, 0x18008f8f1\nmov     rax, rbx                                                       ; +0xa8, 0x18008f8f8\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xab, 0x18008f8fb\nadd     rsp, 30h                                                       ; +0xb0, 0x18008f900\npop     rdi                                                            ; +0xb4, 0x18008f904\nretn                                                                   ; +0xb5, 0x18008f905", "xrefs": ["<???> @ 0x180104020", "<???> @ 0x1801438a8", "<???> @ 0x1801b61f8"], "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"}