//
// GJTransformControl::updateMinMaxPositions from 0x6ecb20 to 0x6ecbd0 (176 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:57:32 +0000
//
int __fastcall GJTransformControl::updateMinMaxPositions(int this)
{
int v1; // r4
int v2; // r2
int v3; // r6
int v4; // r7
int v5; // r0
const cocos2d::CCPoint *v6; // r0
int v7; // r0
const cocos2d::CCPoint *v8; // r0
float v9; // s15
float v10; // s15
float v11[2]; // [sp+4h] [bp-18h] BYREF
float v12[2]; // [sp+Ch] [bp-10h] BYREF
v1 = this;
v2 = *(__int16 *)(this + 332);
if ( v2 == 10 )
{
v3 = 0;
v4 = 1;
}
else
{
if ( v2 != 11 )
return this;
v3 = 1;
v4 = 0;
}
v5 = GJTransformControl::spriteByTag((cocos2d::CCArray **)this, 7);
v6 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(int))(*(_DWORD *)v5 + 96))(v5);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, v6);
v7 = GJTransformControl::spriteByTag((cocos2d::CCArray **)v1, 8);
v8 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(int))(*(_DWORD *)v7 + 96))(v7);
this = cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, v8);
if ( v4 )
{
v9 = *(float *)(v1 + 364) / *(float *)(v1 + 348);
*(float *)(v1 + 348) = v11[0] / v9;
*(float *)(v1 + 356) = v12[0] / v9;
}
if ( v3 )
{
v10 = *(float *)(v1 + 368) / *(float *)(v1 + 352);
*(float *)(v1 + 352) = v11[1] / v10;
*(float *)(v1 + 360) = v12[1] / v10;
}
return this;
}