//
// cocos2d::extension::CCScale9Sprite::setSpriteFrame from 0xaa2044 to 0xaa2110 (204 bytes)
//
// 2 xrefs:
// > ??> @ 0x7c8a8
// > ??> @ 0x11f8298
//
// 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 cocos2d::extension::CCScale9Sprite::setSpriteFrame(
cocos2d::extension::CCScale9Sprite *a1,
cocos2d::CCSpriteFrame *a2)
{
cocos2d::CCSpriteFrame *v3; // x22
cocos2d::CCTexture2D *Texture; // x0
cocos2d::CCSpriteBatchNode *v5; // x23
bool (__fastcall *updateWithBatchNode)(cocos2d::extension::CCScale9Sprite *__hidden, cocos2d::CCSpriteBatchNode *, cocos2d::CCRect, bool, cocos2d::CCRect); // x21
cocos2d::CCRect v7; // [xsp+58h] [xbp+58h] BYREF
cocos2d::CCRect v8; // [xsp+68h] [xbp+68h] BYREF
v3 = a2;
Texture = cocos2d::CCSpriteFrame::getTexture(a2);
v5 = cocos2d::CCSpriteBatchNode::createWithTexture(Texture, (unsigned int)byte_9);
updateWithBatchNode = a1->updateWithBatchNode;
cocos2d::CCRect::CCRect(&v7, &v3->m_obRect);
LODWORD(v3) = v3->m_bRotated;
cocos2d::CCRect::CCRect(&v8, &stru_1244888);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, cocos2d::CCSpriteBatchNode *, cocos2d::CCRect *, _QWORD, cocos2d::CCRect *))updateWithBatchNode)(
a1,
v5,
&v7,
(unsigned int)v3,
&v8);
a1->m_insetLeft = 0.0;
a1->m_insetTop = 0.0;
a1->m_insetRight = 0.0;
a1->m_insetBottom = 0.0;
}