//
// cocos2d::CCSprite::setDisplayFrame from 0x18008c470 to 0x18008c4e9 (121 bytes)
//
// 7 xrefs:
// > ??> @ 0x1800ebc60
// > ??> @ 0x1800ec138
// > ??> @ 0x1800eccb8
// > ??> @ 0x180103b70
// > ??> @ 0x180106b68
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b5d60
//
// 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
//
void __fastcall cocos2d::CCSprite::setDisplayFrame(cocos2d::CCSprite *this, cocos2d::CCTMXObjectGroup *a2)
{
struct cocos2d::CCPoint *PositionOffset; // rax
cocos2d::CCTexture2D *Texture; // rax
_BOOL8 m_uIndexInArray_low; // r8
cocos2d::CCSprite_vtbl *v7; // rax
if ( a2 )
{
PositionOffset = (struct cocos2d::CCPoint *)cocos2d::CCTMXObjectGroup::getPositionOffset(a2);
cocos2d::CCSize::operator=(&this->m_obUnflippedOffsetPositionFromCenter, PositionOffset);
Texture = cocos2d::CCSpriteFrame::getTexture((cocos2d::CCSpriteFrame *)a2);
if ( Texture != this->m_pobTexture )
((void (__fastcall *)(cocos2d::CCTextureProtocol *, cocos2d::CCTexture2D *))this->setTexture)(
&this->cocos2d::CCTextureProtocol,
Texture);
m_uIndexInArray_low = LOBYTE(a2[1].m_uIndexInArray);
v7 = this->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
this->m_bRectRotated = m_uIndexInArray_low;
((void (__fastcall *)(cocos2d::CCSprite *, int *, _BOOL8, unsigned int *))v7->setTextureRect)(
this,
&a2[1].m_uUnknown,
m_uIndexInArray_low,
&a2[1].m_uID);
}
}