//
// EditorUI::zoomGameLayer from 0x7c7240 to 0x7c72d0 (144 bytes)
//
// 5 xrefs:
// > EditorUI::zoomIn @ 0x7c7304
// > EditorUI::zoomOut @ 0x7c7334
// > EditorUI::scrollWheel @ 0xbd6d9c
// > EditorUI::scrollWheel @ 0xbd6e08
// > ??> @ 0x68a58
//
// 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 12:54:09 +0000
//
__int64 __fastcall EditorUI::zoomGameLayer(EditorUI *this, unsigned __int8 a2)
{
int v3; // w20
float v4; // s0
float v5; // s0
float v6; // s0
v3 = a2;
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(*((_QWORD *)this + 180) + 3920LL) + 168LL))(*(_QWORD *)(*((_QWORD *)this + 180) + 3920LL));
if ( v3 )
v5 = v4 + 0.1;
else
v5 = v4 - 0.1;
v6 = roundf((float)(v5 / 0.1) + 0.001) * 0.1;
if ( v6 <= 10.0 )
{
if ( v6 < 0.1 )
return EditorUI::updateZoom(this, 0.1);
}
else
{
v6 = 10.0;
}
return EditorUI::updateZoom(this, v6);
}