//
// cocos2d::CCSpriteFrame::setTexture from 0xd8aae8 to 0xd8ab30 (72 bytes)
//
// 2 xrefs:
// > cocos2d::CCSpriteFrame::copyWithZone @ 0xd8ac08
// > ??> @ 0x8c8a8
//
// 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
//
__int64 __fastcall cocos2d::CCSpriteFrame::setTexture(__int64 result, cocos2d::CCObject *this)
{
cocos2d::CCObject *v2; // x2
__int64 v4; // x20
v2 = *(cocos2d::CCObject **)(result + 128);
if ( v2 != this )
{
v4 = result;
if ( v2 )
result = (__int64)cocos2d::CCObject::release(*(_DWORD **)(result + 128));
if ( this )
result = cocos2d::CCObject::retain((__int64)this);
*(_QWORD *)(v4 + 128) = this;
}
return result;
}