//
// cocos2d::CCSpriteFrame::setOffsetInPixels from 0x1800933f0 to 0x18009346d (125 bytes)
//
// 3 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c0540
// > ??> @ 0x1801c054c
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:22:08 +0000
//
void __fastcall cocos2d::CCSpriteFrame::setOffsetInPixels(
cocos2d::CCSpriteFrame *this,
const struct cocos2d::CCPoint *a2)
{
cocos2d::CCDirector *v3; // rax
float ContentScaleFactor; // xmm0_4
float v5; // xmm6_4
float v6; // xmm7_4
cocos2d::CCDirector *v7; // rax
float v8; // xmm0_4
float *v9; // rax
float v10; // [rsp+50h] [rbp+8h] BYREF
cocos2d::CCSize::operator=((_DWORD *)this + 27, a2);
v3 = cocos2d::CCDirector::sharedDirector();
ContentScaleFactor = cocos2d::CCDirector::getContentScaleFactor(v3);
v5 = *((float *)this + 27);
v6 = *((float *)this + 28) / ContentScaleFactor;
v7 = cocos2d::CCDirector::sharedDirector();
v8 = cocos2d::CCDirector::getContentScaleFactor(v7);
v9 = kmVec2Fill(&v10, v5 / v8, v6);
cocos2d::CCSize::operator=((_DWORD *)this + 14, v9);
}