//
// cocos2d::CCSpriteFrame::copyWithZone from 0x10024e3b8 to 0x10024e488 (208 bytes)
//
// 1 xrefs:
// > ??> @ 0x1007ce950
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
cocos2d::CCObject *__fastcall cocos2d::CCSpriteFrame::copyWithZone(cocos2d::CCSpriteFrame *a1, cocos2d::CCZone *a2)
{
_OWORD *v3; // x19
std::string *p_m_strTextureFilename; // x1
v3 = operator new(0xB8u);
*v3 = 0u;
v3[1] = 0u;
v3[2] = 0u;
v3[3] = 0u;
v3[4] = 0u;
v3[5] = 0u;
v3[6] = 0u;
v3[7] = 0u;
v3[8] = 0u;
v3[9] = 0u;
v3[10] = 0u;
*((_QWORD *)v3 + 22) = 0;
cocos2d::CCObject::CCObject((__int64)v3);
*(_QWORD *)v3 = off_1007CE950;
sub_1000229B0((_QWORD *)v3 + 7);
sub_100022AF4((_QWORD *)v3 + 8);
sub_100022B90((_QWORD *)v3 + 9);
sub_100022B90((_OWORD *)((char *)v3 + 92));
sub_1000229B0((_OWORD *)((char *)v3 + 108));
sub_100022AF4((_OWORD *)((char *)v3 + 116));
*(_OWORD *)((char *)v3 + 168) = 0u;
*(_OWORD *)((char *)v3 + 152) = 0u;
*(_OWORD *)((char *)v3 + 136) = 0u;
p_m_strTextureFilename = &a1->m_strTextureFilename;
if ( a1->m_strTextureFilename.m_data.m_short.shortStorage.__elems_[22] < 0 )
p_m_strTextureFilename = (std::string *)p_m_strTextureFilename->m_data.m_long.capacitym1;
cocos2d::CCSpriteFrame::initWithTextureFilename(
(cocos2d::CCSpriteFrame *)v3,
(const char *)p_m_strTextureFilename,
&a1->m_obRectInPixels,
a1->m_bRotated,
&a1->m_obOffsetInPixels,
&a1->m_obOriginalSizeInPixels);
cocos2d::CCSpriteFrame::setTexture((cocos2d::CCSpriteFrame *)v3, a1->m_pobTexture);
return (cocos2d::CCObject *)v3;
}