//
// cocos2d::CCSpriteFrame::setOffset from 0xb19414 to 0xb194ac (152 bytes)
//
// 1 xrefs:
// > ??> @ 0x57468
//
// 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::setOffset(cocos2d::CCSpriteFrame *a1, const cocos2d::CCPoint *a2)
{
float v2; // s0
float v3; // s1
float x; // s9
cocos2d::CCDirector *v6; // x0
float ContentScaleFactor; // s0
float y; // s8
float v9; // s9
cocos2d::CCDirector *v10; // x0
float v11; // s0
float v12; // s0
float v13; // s1
cocos2d::CCPoint v14; // [xsp+50h] [xbp+50h] BYREF
cocos2d::CCPoint::operator=(&a1->m_obOffset, v2, v3, (float *)a2);
x = a1->m_obOffset.x;
v6 = cocos2d::CCDirector::sharedDirector();
ContentScaleFactor = cocos2d::CCDirector::getContentScaleFactor(v6);
y = a1->m_obOffset.y;
v9 = x * ContentScaleFactor;
v10 = cocos2d::CCDirector::sharedDirector();
v11 = cocos2d::CCDirector::getContentScaleFactor(v10);
cocos2d::CCPoint::CCPoint(&v14, v9, y * v11);
cocos2d::CCPoint::operator=(&a1->m_obOffsetInPixels, v12, v13, (float *)&v14);
}