//
// cocos2d::CCSpriteFrame::setOffset from 0x1003584d0 to 0x100358551 (129 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 __fastcall cocos2d::CCSpriteFrame::setOffset(cocos2d::CCSpriteFrame *a1, const cocos2d::CCPoint *a2)
{
cocos2d::CCDirector *v2; // rax
cocos2d::CCDirector *v3; // rax
float v4; // xmm0_4
double v5; // [rsp+0h] [rbp-20h] BYREF
float y; // [rsp+8h] [rbp-18h]
float x; // [rsp+Ch] [rbp-14h]
sub_10028CC90(&a1->m_obOffset, (double *)a2);
x = a1->m_obOffset.x;
v2 = cocos2d::CCDirector::sharedDirector();
x = sub_1004849C0(v2) * x;
y = a1->m_obOffset.y;
v3 = cocos2d::CCDirector::sharedDirector();
v4 = sub_1004849C0(v3);
sub_10028CBE0((float *)&v5, x, y * v4);
sub_10028CC90(&a1->m_obOffsetInPixels, &v5);
}