//
// cocos2d::CCSpriteFrame::setRectInPixels from 0xb19338 to 0xb1940c (212 bytes)
//
// 1 xrefs:
// > ??> @ 0x92100
//
// 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; // s10
cocos2d::CCDirector *v5; // x0
float v6; // s10
float y; // s8
cocos2d::CCDirector *v8; // x0
float v9; // s1
float width; // s9
cocos2d::CCDirector *v11; // x0
float v12; // s2
float height; // s8
cocos2d::CCDirector *v14; // x0
float ContentScaleFactor; // s0
float v16; // [xsp+50h] [xbp+50h]
float v17; // [xsp+60h] [xbp+60h]
cocos2d::CCRect v18; // [xsp+88h] [xbp+88h] BYREF
cocos2d::CCRect::operator=(&a1->m_obRectInPixels, (float *)&a2->origin);
x = a2->origin.x;
v5 = cocos2d::CCDirector::sharedDirector();
v6 = x / cocos2d::CCDirector::getContentScaleFactor(v5);
y = a2->origin.y;
v8 = cocos2d::CCDirector::sharedDirector();
v9 = y / cocos2d::CCDirector::getContentScaleFactor(v8);
width = a2->size.width;
v16 = v9;
v11 = cocos2d::CCDirector::sharedDirector();
v12 = width / cocos2d::CCDirector::getContentScaleFactor(v11);
height = a2->size.height;
v17 = v12;
v14 = cocos2d::CCDirector::sharedDirector();
ContentScaleFactor = cocos2d::CCDirector::getContentScaleFactor(v14);
cocos2d::CCRect::CCRect(&v18, v6, v16, v17, height / ContentScaleFactor);
cocos2d::CCRect::operator=(&a1->m_obRect, (float *)&v18.origin);
}