//
// cocos2d::CCSpriteFrame::copyWithZone from 0x180092a20 to 0x180092ad6 (182 bytes)
//
// 3 xrefs:
// > ??> @ 0x18010a6f0
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c04b0
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:22:08 +0000
//
// Hidden C++ exception states: #wind=1
struct cocos2d::CCObject *__fastcall cocos2d::CCSpriteFrame::copyWithZone(
cocos2d::CCSpriteFrame *this,
struct cocos2d::CCZone *a2)
{
cocos2d::CCSpriteFrame *v3; // rax
cocos2d::CCSpriteFrame *v4; // rbx
cocos2d::CCSpriteFrame *v5; // rbx
const char *v6; // rdx
cocos2d::CCObject *v7; // rdi
cocos2d::CCObject *v8; // rcx
v3 = (cocos2d::CCSpriteFrame *)sub_1800E4AC0(0xC8u);
v4 = v3;
if ( v3 )
{
memset(v3, 0, 0xC8u);
v5 = cocos2d::CCSpriteFrame::CCSpriteFrame(v4);
}
else
{
v5 = nullptr;
}
v6 = (char *)this + 136;
if ( *((_QWORD *)this + 20) > 0xFu )
v6 = *(const char **)v6;
cocos2d::CCSpriteFrame::initWithTextureFilename(
v5,
v6,
(cocos2d::CCSpriteFrame *)((char *)this + 72),
*((_BYTE *)this + 88),
(cocos2d::CCSpriteFrame *)((char *)this + 108),
(cocos2d::CCSpriteFrame *)((char *)this + 116));
v7 = *((cocos2d::CCObject **)this + 16);
v8 = *((cocos2d::CCObject **)v5 + 16);
if ( v8 != v7 )
{
if ( v8 )
cocos2d::CCObject::release(v8);
if ( v7 )
cocos2d::CCObject::retain(v7);
*((_QWORD *)v5 + 16) = v7;
}
return v5;
}