//
// GJTransformControl::updateMinMaxPositions from 0x100054280 to 0x10005437e (254 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 GJTransformControl::updateMinMaxPositions(GJTransformControl *a1)
{
int m_transformButtonType; // eax
char v2; // r14
char v3; // r15
__int64 v4; // rax
double v5; // xmm0_8
__int64 v6; // rax
float v7; // xmm0_4
float v8; // xmm0_4
float v9[2]; // [rsp+8h] [rbp-28h] BYREF
float v10[8]; // [rsp+10h] [rbp-20h] BYREF
m_transformButtonType = (unsigned __int16)a1->m_transformButtonType;
if ( m_transformButtonType == 10 )
{
v2 = 0;
v3 = 1;
}
else
{
if ( m_transformButtonType != 11 )
return;
v2 = 1;
v3 = 0;
}
v4 = sub_1007200C0(a1->m_warpSprites, 6);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 192LL))(v4);
v5 = sub_10028CC60(v9);
v6 = sub_1007200C0(a1->m_warpSprites, 7);
(*(void (__fastcall **)(__int64, double))(*(_QWORD *)v6 + 192LL))(v6, v5);
sub_10028CC60(v10);
if ( v3 )
{
v7 = a1->m_topRightPosition.x / a1->m_topRight.x;
a1->m_topRight.x = v9[0] / v7;
a1->m_bottomLeft.x = v10[0] / v7;
}
if ( v2 )
{
v8 = a1->m_topRightPosition.y / a1->m_topRight.y;
a1->m_topRight.y = v9[1] / v8;
a1->m_bottomLeft.y = v10[1] / v8;
}
}