//
// GJTransformControl::updateMinMaxPositions from 0x39d738 to 0x39d7e8 (176 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 GJTransformControl::updateMinMaxPositions(GJTransformControl *a1)
{
int m_transformButtonType; // r2
int v3; // r6
int v4; // r7
cocos2d::CCSprite *v5; // r0
const cocos2d::CCPoint *v6; // r0
cocos2d::CCSprite *v7; // r0
const cocos2d::CCPoint *v8; // r0
float v9; // s15
float v10; // s15
cocos2d::CCPoint v11; // [sp+4h] [bp-18h] BYREF
cocos2d::CCPoint v12; // [sp+Ch] [bp-10h] BYREF
m_transformButtonType = a1->m_transformButtonType;
if ( m_transformButtonType == 10 )
{
v3 = 0;
v4 = 1;
}
else
{
if ( m_transformButtonType != 11 )
return;
v3 = 1;
v4 = 0;
}
v5 = GJTransformControl::spriteByTag(a1, 7);
v6 = v5->getPosition(v5);
cocos2d::CCPoint::CCPoint(&v11, v6);
v7 = GJTransformControl::spriteByTag(a1, 8);
v8 = v7->getPosition(v7);
cocos2d::CCPoint::CCPoint(&v12, v8);
if ( v4 )
{
v9 = a1->m_topRightPosition.x / a1->m_topRight.x;
a1->m_topRight.x = v11.x / v9;
a1->m_bottomLeft.x = v12.x / v9;
}
if ( v3 )
{
v10 = a1->m_topRightPosition.y / a1->m_topRight.y;
a1->m_topRight.y = v11.y / v10;
a1->m_bottomLeft.y = v12.y / v10;
}
}