//
// GameObject::updateStartValues from 0x140190920 to 0x140190ad5 (437 bytes)
//
// 48 xrefs:
// > ??> @ 0x140556868
// > ??> @ 0x140556fd8
// > ??> @ 0x14055e010
// > ??> @ 0x14055e690
// > ??> @ 0x1405c8728
// > ??> @ 0x14060d8b8
// > ??> @ 0x14060e208
// > ??> @ 0x14060e928
// > ??> @ 0x14060f160
// > ??> @ 0x14060f808
// > ??> @ 0x14060fed8
// > ??> @ 0x140610590
// > ??> @ 0x140610cd8
// > ??> @ 0x140611538
// > ??> @ 0x140611c70
// > ??> @ 0x140612458
// > ??> @ 0x140612b00
// > ??> @ 0x1406131a8
// > ??> @ 0x140613918
// > ??> @ 0x140613fc0
// > ??> @ 0x1406147a8
// > ??> @ 0x140614fe0
// > ??> @ 0x140615728
// > ??> @ 0x140615dd0
// > ??> @ 0x140616518
// > ??> @ 0x140616cd8
// > ??> @ 0x140617380
// > ??> @ 0x140617a28
// > ??> @ 0x140618198
// > ??> @ 0x140618840
// > ??> @ 0x140618f88
// > ??> @ 0x140619a28
// > ??> @ 0x14061a0d0
// > ??> @ 0x14061a778
// > ??> @ 0x14061ae98
// > ??> @ 0x14061b540
// > ??> @ 0x14061c420
// > ??> @ 0x14061cac8
// > ??> @ 0x14061d170
// > ??> @ 0x14061d818
// > ??> @ 0x14061dec0
// > ??> @ 0x14061e568
// > ??> @ 0x14061ec10
// > ??> @ 0x14061f420
// > ??> @ 0x14061fbb8
// > ??> @ 0x140678b08
// > ??> @ 0x140678b3c
// > ??> @ 0x1406cb91c
//
// 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)
{
double v2; // xmm0_8
float v3; // xmm6_4
double v4; // xmm0_8
float m_rotationXOffset; // xmm1_4
float v6; // xmm7_4
float v7; // xmm6_4
float v8; // xmm6_4
float v9; // xmm0_4
float v10; // xmm7_4
float v11; // xmm0_4
float v12; // xmm1_4
GameObject::updateStartPos(a1);
a1->m_startFlipX = a1->isFlipX(a1);
a1->m_startFlipY = a1->isFlipY(a1);
v2 = ((double (__fastcall *)(GameObject *))a1->getRotationX)(a1);
v3 = *(float *)&v2;
v4 = ((double (__fastcall *)(GameObject *))a1->getRotationY)(a1);
m_rotationXOffset = a1->m_rotationXOffset;
v6 = *(float *)&v4;
if ( v3 == *(float *)&v4 )
{
if ( m_rotationXOffset != 0.0 )
{
v7 = v3 - m_rotationXOffset;
if ( v7 >= 0.0 )
{
v3 = floorf(v7 + 0.5);
a1->m_startRotationX = v3;
goto LABEL_17;
}
v3 = ceilf(v7 - 0.5);
}
a1->m_startRotationX = v3;
goto LABEL_17;
}
if ( m_rotationXOffset == 0.0 && a1->m_rotationYOffset == 0.0 )
{
a1->m_startRotationX = v3;
v3 = *(float *)&v4;
}
else
{
v8 = v3 - m_rotationXOffset;
if ( v8 < 0.0 )
v9 = ceilf(v8 - 0.5);
else
v9 = floorf(v8 + 0.5);
v10 = v6 - a1->m_rotationYOffset;
a1->m_startRotationX = v9;
if ( v10 < 0.0 )
v11 = ceilf(v10 - 0.5);
else
v11 = floorf(v10 + 0.5);
v3 = v11;
}
LABEL_17:
a1->m_startRotationY = v3;
v12 = a1->m_scaleY - a1->m_scaleYOffset;
a1->m_startScaleX = a1->m_scaleX - a1->m_scaleXOffset;
a1->m_startScaleY = v12;
}