//
// GameObject::updateStartValues from 0x642ea4 to 0x642fa0 (252 bytes)
//
// 48 xrefs:
// > RotateGameplayGameObject::updateStartValues @ 0x76f054
// > ??> @ 0x5a138
// > ??> @ 0x1152c30
// > ??> @ 0x1153a00
// > ??> @ 0x11541d0
// > ??> @ 0x11549d0
// > ??> @ 0x1162380
// > ??> @ 0x1162b80
// > ??> @ 0x1163380
// > ??> @ 0x1163b80
// > ??> @ 0x1164380
// > ??> @ 0x1164b80
// > ??> @ 0x1165380
// > ??> @ 0x1165b80
// > ??> @ 0x1166350
// > ??> @ 0x1166b50
// > ??> @ 0x1167350
// > ??> @ 0x1167b50
// > ??> @ 0x1168350
// > ??> @ 0x1168b90
// > ??> @ 0x1169390
// > ??> @ 0x1169b90
// > ??> @ 0x116a390
// > ??> @ 0x116ab90
// > ??> @ 0x116b3a0
// > ??> @ 0x116bba0
// > ??> @ 0x116c3a0
// > ??> @ 0x116cba0
// > ??> @ 0x116d3a0
// > ??> @ 0x116dba0
// > ??> @ 0x116e3a0
// > ??> @ 0x116eba0
// > ??> @ 0x116f3a0
// > ??> @ 0x116fba0
// > ??> @ 0x11703a0
// > ??> @ 0x1170ba0
// > ??> @ 0x11713a0
// > ??> @ 0x1171ba0
// > ??> @ 0x11723a0
// > ??> @ 0x1172ba0
// > ??> @ 0x11733a0
// > ??> @ 0x1173ba0
// > ??> @ 0x11743a0
// > ??> @ 0x1174ba0
// > ??> @ 0x11753a0
// > ??> @ 0x1175ba0
// > ??> @ 0x11763a0
// > ??> @ 0x11773c0
//
// 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 GameObject::updateStartValues(GameObject *a1)
{
float v2; // s8
float v3; // s0
float v4; // s1
float m_rotationYOffset; // s2
float m_rotationXOffset; // s0
float v7; // s0
GameObject::updateStartPos(a1);
a1->m_startFlipX = a1->isFlipX(a1);
a1->m_startFlipY = a1->isFlipY(a1);
v2 = a1->getRotationX(a1);
v3 = a1->getRotationY(a1);
if ( v2 == v3 )
{
m_rotationXOffset = a1->m_rotationXOffset;
if ( m_rotationXOffset != 0.0 )
v2 = roundf(v2 - m_rotationXOffset);
a1->m_startRotationX = v2;
a1->m_startRotationY = v2;
}
else
{
v4 = a1->m_rotationXOffset;
m_rotationYOffset = a1->m_rotationYOffset;
if ( v4 == 0.0 && m_rotationYOffset == 0.0 )
{
a1->m_startRotationX = v2;
a1->m_startRotationY = v3;
}
else
{
a1->m_startRotationX = roundf(v2 - v4);
a1->m_startRotationY = roundf(v3 - m_rotationYOffset);
}
}
v7 = a1->m_scaleY - a1->m_scaleYOffset;
a1->m_startScaleX = a1->m_scaleX - a1->m_scaleXOffset;
a1->m_startScaleY = v7;
}