//
// GJTransformControl::saveToState from 0x39d150 to 0x39d1b2 (98 bytes)
//
// 1 xrefs:
// > EditorUI::getTransformState @ 0x39d1be
//
// 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 GJTransformControl::saveToState(GJTransformControl *a1, GJTransformState *a2)
{
float v4; // r0
int v5; // r2
bool v6; // r3
cocos2d::CCSprite *v7; // r0
float v8; // r0
int v9; // r2
bool v10; // r3
cocos2d::CCSprite *v11; // r0
float v12; // r1
int v13; // r2
bool v14; // [sp+0h] [bp-4h]
a2->m_transformRotationX = a1->m_rotationX;
a2->m_transformRotationY = a1->m_rotationY;
a2->m_transformScaleX = a1->m_scaleX;
a2->m_transformScaleY = a1->m_scaleY;
v4 = ((float (__fastcall *)(GJTransformControl *))a1->getPosition)(a1);
cocos2d::CCPoint::operator=((PlayerObject *)&a2->m_transformPosition, v4, v5, v6);
v7 = GJTransformControl::spriteByTag(a1, 10);
v8 = ((float (__fastcall *)(cocos2d::CCSprite *))v7->getPosition)(v7);
cocos2d::CCPoint::operator=((PlayerObject *)&a2->m_transformSkewX, v8, v9, v10);
v11 = GJTransformControl::spriteByTag(a1, 11);
v12 = COERCE_FLOAT((int)v11->getPosition(v11));
cocos2d::CCPoint::operator=((PlayerObject *)&a2->m_transformSkewY, v12, v13, v14);
}