//
// GameObject::updateStartValues from 0x1002560ec to 0x1002561cc (224 bytes)
//
// 47 xrefs:
// > RotateGameplayGameObject::updateStartValues @ 0x1003993f0
// > ??> @ 0x1007c4108
// > ??> @ 0x1007cfdd8
// > ??> @ 0x1007d05c0
// > ??> @ 0x1007d0dd0
// > ??> @ 0x1007f5640
// > ??> @ 0x1007f5e78
// > ??> @ 0x1007f6670
// > ??> @ 0x1007f6e68
// > ??> @ 0x1007f7660
// > ??> @ 0x1007f7e58
// > ??> @ 0x1007f8650
// > ??> @ 0x1007f8e48
// > ??> @ 0x1007f9630
// > ??> @ 0x1007f9e40
// > ??> @ 0x1007fa6a8
// > ??> @ 0x1007faeb8
// > ??> @ 0x1007fb6c8
// > ??> @ 0x1007fbed8
// > ??> @ 0x1007fc6e8
// > ??> @ 0x1007fcef8
// > ??> @ 0x1007fd708
// > ??> @ 0x1007fdf18
// > ??> @ 0x1007fe728
// > ??> @ 0x1007fef38
// > ??> @ 0x1007ff760
// > ??> @ 0x1007fffb8
// > ??> @ 0x1008007e0
// > ??> @ 0x100801008
// > ??> @ 0x100801830
// > ??> @ 0x100802058
// > ??> @ 0x100802868
// > ??> @ 0x100803078
// > ??> @ 0x100803888
// > ??> @ 0x100804098
// > ??> @ 0x1008048a8
// > ??> @ 0x1008050b8
// > ??> @ 0x1008058c8
// > ??> @ 0x1008060d8
// > ??> @ 0x1008068e8
// > ??> @ 0x1008070f8
// > ??> @ 0x100807908
// > ??> @ 0x100808118
// > ??> @ 0x100808928
// > ??> @ 0x100809138
// > ??> @ 0x10080a158
// > ??> @ 0x100816478
//
// 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 GameObject::updateStartValues(GameObject *a1)
{
float32x2_t *p_m_scaleXOffset; // x20
float v3; // s8
float v4; // s0
float m_rotationXOffset; // s1
float m_rotationYOffset; // s2
p_m_scaleXOffset = (float32x2_t *)&a1->m_scaleXOffset;
GameObject::updateStartPos(a1);
a1->m_startFlipX = ((__int64 (__fastcall *)(GameObject *))a1->isFlipX)(a1);
a1->m_startFlipY = ((__int64 (__fastcall *)(GameObject *))a1->isFlipY)(a1);
v3 = ((float (__fastcall *)(GameObject *))a1->getRotationX)(a1);
v4 = ((float (__fastcall *)(GameObject *))a1->getRotationY)(a1);
m_rotationXOffset = a1->m_rotationXOffset;
if ( v3 == v4 )
{
v4 = roundf(v3 - m_rotationXOffset);
if ( m_rotationXOffset == 0.0 )
v4 = v3;
a1->m_startRotationX = v4;
}
else
{
m_rotationYOffset = a1->m_rotationYOffset;
if ( m_rotationXOffset == 0.0 && m_rotationYOffset == 0.0 )
{
a1->m_startRotationX = v3;
}
else
{
a1->m_startRotationX = roundf(v3 - m_rotationXOffset);
v4 = roundf(v4 - m_rotationYOffset);
}
}
a1->m_startRotationY = v4;
p_m_scaleXOffset[36] = vsub_f32(*(float32x2_t *)&a1->m_scaleX, *p_m_scaleXOffset);
}