//
// cocos2d::CCSprite::setDisplayFrame from 0x7f0f00 to 0x7f0f54 (84 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:01:04 +0000
//
int __fastcall cocos2d::CCSprite::setDisplayFrame(int this, cocos2d::CCSpriteFrame *a2)
{
int v2; // r4
float *Offset; // r0
int Texture; // r1
int v6; // r3
v2 = this;
if ( a2 )
{
Offset = (float *)cocos2d::CCSpriteFrame::getOffset(a2);
cocos2d::CCPoint::operator=((float *)(v2 + 364), Offset);
Texture = cocos2d::CCSpriteFrame::getTexture(a2);
if ( Texture != *(_DWORD *)(v2 + 332) )
(*(void (__fastcall **)(int, int))(*(_DWORD *)v2 + 532))(v2, Texture);
v6 = *(_DWORD *)v2;
*(_BYTE *)(v2 + 352) = *((_BYTE *)a2 + 84);
return (*(int (__fastcall **)(int, char *))(v6 + 572))(v2, (char *)a2 + 88);
}
return this;
}