//
// cocos2d::CCSpriteFrame::copyWithZone from 0xd8ab30 to 0xd8ac1c (236 bytes)
//
// 2 xrefs:
// > ??> @ 0x104f20
// > ??> @ 0x152ed40
//
// This function is hookable on this platform (idp: arm, 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 13:08:15 +0000
//
_QWORD *__fastcall cocos2d::CCSpriteFrame::copyWithZone(cocos2d::CCSpriteFrame *this, cocos2d::CCZone *a2)
{
_QWORD *v3; // x0
_QWORD *v4; // x19
const char *v5; // x1
v3 = (_QWORD *)operator new(0xB8u);
v3[22] = 0;
*v3 = 0;
v3[1] = 0;
v3[2] = 0;
v3[3] = 0;
v3[4] = 0;
v3[5] = 0;
v3[6] = 0;
v3[7] = 0;
v3[8] = 0;
v3[9] = 0;
v3[10] = 0;
v3[11] = 0;
v3[12] = 0;
v3[13] = 0;
v3[14] = 0;
v3[15] = 0;
v3[16] = 0;
v3[17] = 0;
v3[18] = 0;
v3[19] = 0;
v3[20] = 0;
v3[21] = 0;
v4 = v3;
cocos2d::CCObject::CCObject((__int64)v3);
*v4 = &off_152ED40;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v4 + 7));
cocos2d::CCSize::CCSize((cocos2d::CCSize *)(v4 + 8));
cocos2d::CCRect::CCRect((cocos2d::CCRect *)(v4 + 9));
cocos2d::CCRect::CCRect((cocos2d::CCRect *)((char *)v4 + 92));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)((char *)v4 + 108));
cocos2d::CCSize::CCSize((cocos2d::CCSize *)((char *)v4 + 116));
v4[17] = 0;
v4[18] = 0;
v5 = (char *)this + 137;
v4[19] = 0;
v4[20] = 0;
v4[21] = 0;
v4[22] = 0;
if ( (*((_BYTE *)this + 136) & 1) != 0 )
v5 = *((const char **)this + 19);
cocos2d::CCSpriteFrame::initWithTextureFilename(
(cocos2d::CCSpriteFrame *)v4,
v5,
(cocos2d::CCSpriteFrame *)((char *)this + 72),
*((_BYTE *)this + 88),
(cocos2d::CCSpriteFrame *)((char *)this + 108),
(cocos2d::CCSpriteFrame *)((char *)this + 116));
cocos2d::CCSpriteFrame::setTexture((__int64)v4, *((cocos2d::CCObject **)this + 16));
return v4;
}