//
// EditorWindowPopup::setLockAspectRatio from 0xcd8548 to 0xcd8570 (40 bytes)
//
// 1 xrefs:
// > ??> @ 0x84f40
//
// 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:06:31 +0000
//
float __fastcall EditorWindowPopup::setLockAspectRatio(EditorWindowPopup *this, char a2)
{
float v2; // s1
float result; // s0
*((_BYTE *)this + 1120) = a2;
if ( a2 )
{
v2 = *((float *)this + 265);
if ( v2 > 0.0 )
{
result = *((float *)this + 264) / v2;
*((float *)this + 281) = result;
}
}
return result;
}