//
// cocos2d::CCSpriteFrame::setRect from 0x5e8d00 to 0x5e8da0 (160 bytes)
//
// 0 xrefs:
//
// 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; // s18
cocos2d::CCDirector *v4; // r0
float v5; // r0
float y; // s17
float v7; // s18
cocos2d::CCDirector *v8; // r0
float v9; // r0
float width; // s16
float v11; // s17
cocos2d::CCDirector *v12; // r0
float v13; // r0
float height; // s19
float v15; // s16
cocos2d::CCDirector *v16; // r0
float v17; // r0
cocos2d::CCRect v18; // [sp+Ch] [bp-14h] BYREF
cocos2d::CCRect::operator=(&a1->m_obRect, &a2->origin.x);
x = a1->m_obRect.origin.x;
v4 = cocos2d::CCDirector::sharedDirector();
v5 = COERCE_FLOAT(cocos2d::CCDirector::getContentScaleFactor(v4));
y = a1->m_obRect.origin.y;
v7 = x * v5;
v8 = cocos2d::CCDirector::sharedDirector();
v9 = COERCE_FLOAT(cocos2d::CCDirector::getContentScaleFactor(v8));
width = a1->m_obRect.size.width;
v11 = y * v9;
v12 = cocos2d::CCDirector::sharedDirector();
v13 = COERCE_FLOAT(cocos2d::CCDirector::getContentScaleFactor(v12));
height = a1->m_obRect.size.height;
v15 = width * v13;
v16 = cocos2d::CCDirector::sharedDirector();
v17 = COERCE_FLOAT(cocos2d::CCDirector::getContentScaleFactor(v16));
cocos2d::CCRect::CCRect(&v18, v7, v11, v15, height * v17);
cocos2d::CCRect::operator=(&a1->m_obRectInPixels, &v18.origin.x);
}