//
// GJTransformControl::updateMinMaxPositions from 0xbd18a4 to 0xbd19d4 (304 bytes)
//
// 1 xrefs:
// > ??> @ 0xcac60
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:03:37 +0000
//
__int64 __fastcall GJTransformControl::updateMinMaxPositions(cocos2d::CCArray **this)
{
int v2; // w1
__int64 v4; // x0
const cocos2d::CCPoint *v5; // x0
__int64 v6; // x0
const cocos2d::CCPoint *v7; // x0
float v8; // s0
float v9; // s1
__int64 v10; // x0
const cocos2d::CCPoint *v11; // x0
__int64 v12; // x0
const cocos2d::CCPoint *v13; // x0
float v14; // s0
float v15; // s1
float v16[2]; // [xsp+28h] [xbp+28h] BYREF
float v17[2]; // [xsp+30h] [xbp+30h] BYREF
v2 = *((__int16 *)this + 218);
if ( v2 == 10 )
{
v10 = GJTransformControl::spriteByTag(this, 7);
v11 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 192LL))(v10);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, v11);
v12 = GJTransformControl::spriteByTag(this, 8);
v13 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v12 + 192LL))(v12);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, v13);
v14 = *((float *)this + 118) / *((float *)this + 114);
v15 = v17[0] / v14;
*((float *)this + 114) = v16[0] / v14;
*((float *)this + 116) = v15;
}
else if ( v2 == 11 )
{
v4 = GJTransformControl::spriteByTag(this, 7);
v5 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 192LL))(v4);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, v5);
v6 = GJTransformControl::spriteByTag(this, 8);
v7 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 192LL))(v6);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, v7);
v8 = *((float *)this + 119) / *((float *)this + 115);
v9 = v17[1] / v8;
*((float *)this + 115) = v16[1] / v8;
*((float *)this + 117) = v9;
}
return _stack_chk_guard;
}