//
// cocos2d::CCSpriteFrame::setOffset from 0x180090100 to 0x18009016e (110 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b6288
//
// 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 __fastcall cocos2d::CCSpriteFrame::setOffset(cocos2d::CCSpriteFrame *this, struct cocos2d::CCPoint *a2)
{
cocos2d::CCDirector *v3; // rax
float v4; // xmm6_4
cocos2d::CCDirector *v5; // rax
float ContentScaleFactor; // xmm0_4
float *v7; // rax
float v8; // [rsp+40h] [rbp+8h] BYREF
cocos2d::CCSize::operator=(&this->m_obOffset, a2);
v3 = cocos2d::CCDirector::sharedDirector();
v4 = cocos2d::CCDirector::getContentScaleFactor(v3) * this->m_obOffset.y;
v5 = cocos2d::CCDirector::sharedDirector();
ContentScaleFactor = cocos2d::CCDirector::getContentScaleFactor(v5);
v7 = kmVec2Fill(&v8, ContentScaleFactor * this->m_obOffset.x, v4);
cocos2d::CCSize::operator=(&this->m_obOffsetInPixels, v7);
}