//
// cocos2d::CCSpriteFrame::setRect from 0xb19268 to 0xb19338 (208 bytes)
//
// 1 xrefs:
// > ??> @ 0x88698
//
// 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::CCSpriteFrame::setRect(cocos2d::CCSpriteFrame *a1, const cocos2d::CCRect *a2)
{
float x; // s10
cocos2d::CCDirector *v4; // x0
float ContentScaleFactor; // s0
float y; // s8
float v7; // s10
cocos2d::CCDirector *v8; // x0
float v9; // s0
float width; // s9
cocos2d::CCDirector *v11; // x0
float v12; // s0
float height; // s8
cocos2d::CCDirector *v14; // x0
float v15; // s0
float v16; // [xsp+40h] [xbp+40h]
float v17; // [xsp+50h] [xbp+50h]
cocos2d::CCRect v18; // [xsp+78h] [xbp+78h] BYREF
cocos2d::CCRect::operator=(&a1->m_obRect, (float *)&a2->origin);
x = a1->m_obRect.origin.x;
v4 = cocos2d::CCDirector::sharedDirector();
ContentScaleFactor = cocos2d::CCDirector::getContentScaleFactor(v4);
y = a1->m_obRect.origin.y;
v7 = x * ContentScaleFactor;
v8 = cocos2d::CCDirector::sharedDirector();
v9 = cocos2d::CCDirector::getContentScaleFactor(v8);
width = a1->m_obRect.size.width;
v16 = y * v9;
v11 = cocos2d::CCDirector::sharedDirector();
v12 = cocos2d::CCDirector::getContentScaleFactor(v11);
height = a1->m_obRect.size.height;
v17 = width * v12;
v14 = cocos2d::CCDirector::sharedDirector();
v15 = cocos2d::CCDirector::getContentScaleFactor(v14);
cocos2d::CCRect::CCRect(&v18, v7, v16, v17, height * v15);
cocos2d::CCRect::operator=(&a1->m_obRectInPixels, (float *)&v18.origin);
}