//
// EditorUI::zoomGameLayer from 0x100477e00 to 0x100477e80 (128 bytes)
//
// 3 xrefs:
// > EditorUI::scrollWheel @ 0x1001640f4
// > EditorUI::zoomIn @ 0x100471628
// > EditorUI::zoomOut @ 0x100471658
//
// 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 11:05:42 +0000
//
__int64 __fastcall EditorUI::zoomGameLayer(__int64 a1, int a2)
{
float v4; // s0
float v5; // s1
float v6; // s0
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 1440) + 3920LL) + 168LL))(*(_QWORD *)(*(_QWORD *)(a1 + 1440) + 3920LL));
v5 = -0.1;
if ( a2 )
v5 = 0.1;
v6 = roundf((float)((float)(v5 + v4) / 0.1) + 0.001) * 0.1;
if ( v6 > 10.0 )
v6 = 10.0;
if ( v6 < 0.1 )
v6 = 0.1;
return EditorUI::updateZoom_1(a1, v6);
}