//
// cocos2d::CCSprite::setScaleX from 0x18008c8e0 to 0x18008c945 (101 bytes)
//
// 7 xrefs:
// > ??> @ 0x1800eb8f8
// > ??> @ 0x1800ebdd0
// > ??> @ 0x1800ec950
// > ??> @ 0x180103808
// > ??> @ 0x180106800
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b5dfc
//
// 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::setScaleX(cocos2d::CCSprite *this, float a2)
{
__int64 v3; // rdx
cocos2d::CCSprite_vtbl *v4; // rax
__int64 v5; // rdx
if ( this->m_fScaleX != a2 )
{
cocos2d::CCNode::setScaleX(this, a2);
if ( this->m_pobBatchNode )
{
if ( !this->m_bRecursiveDirty )
{
v4 = this->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
LOBYTE(v3) = 1;
this->m_bRecursiveDirty = 1;
((void (__fastcall *)(cocos2d::CCSprite *, __int64))v4->setDirty)(this, v3);
if ( this->m_bHasChildren )
{
LOBYTE(v5) = 1;
((void (__fastcall *)(cocos2d::CCSprite *, __int64))this->setDirtyRecursively)(this, v5);
}
}
}
}
}