//
// cocos2d::CCSpriteFrame::setRectInPixels from 0x5e8da4 to 0x5e8e46 (162 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::setRectInPixels(cocos2d::CCSpriteFrame *a1, const cocos2d::CCRect *a2)
{
float x; // s18
cocos2d::CCDirector *v5; // r0
float v6; // r0
float y; // s17
float v8; // s18
cocos2d::CCDirector *v9; // r0
float v10; // r0
float width; // s16
float v12; // s17
cocos2d::CCDirector *v13; // r0
float v14; // r0
float height; // s19
float v16; // s16
cocos2d::CCDirector *v17; // r0
float v18; // r0
cocos2d::CCRect v19; // [sp+Ch] [bp-14h] BYREF
cocos2d::CCRect::operator=(&a1->m_obRectInPixels, &a2->origin.x);
x = a2->origin.x;
v5 = cocos2d::CCDirector::sharedDirector();
v6 = COERCE_FLOAT(cocos2d::CCDirector::getContentScaleFactor(v5));
y = a2->origin.y;
v8 = x / v6;
v9 = cocos2d::CCDirector::sharedDirector();
v10 = COERCE_FLOAT(cocos2d::CCDirector::getContentScaleFactor(v9));
width = a2->size.width;
v12 = y / v10;
v13 = cocos2d::CCDirector::sharedDirector();
v14 = COERCE_FLOAT(cocos2d::CCDirector::getContentScaleFactor(v13));
height = a2->size.height;
v16 = width / v14;
v17 = cocos2d::CCDirector::sharedDirector();
v18 = COERCE_FLOAT(cocos2d::CCDirector::getContentScaleFactor(v17));
cocos2d::CCRect::CCRect(&v19, v8, v12, v16, height / v18);
cocos2d::CCRect::operator=(&a1->m_obRect, &v19.origin.x);
}