//
// EditorUI::zoomGameLayer from 0x100011ff0 to 0x1000120c0 (208 bytes)
//
// 1 xrefs:
// > EditorUI::scrollWheel @ 0x10060e250
//
// This function is hookable on this platform (idp: pc, 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:18:52 +0000
//
__int64 __fastcall EditorUI::zoomGameLayer(__int64 a1, __int64 a2, float a3)
{
__int64 v4; // rdi
__m128 v5; // xmm1
__m128 v6; // xmm0
__int64 v7; // rax
_BYTE v9[8]; // [rsp+Ch] [rbp-24h] BYREF
float v10[2]; // [rsp+14h] [rbp-1Ch] BYREF
float v11; // [rsp+1Ch] [rbp-14h]
v4 = *(_QWORD *)(*(_QWORD *)(a1 + 1440) + 3920LL);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 168LL))(v4);
v5 = (__m128)0x3DCCCCCDu;
if ( !(_DWORD)a2 )
v5 = (__m128)0xBDCCCCCD;
v5.f32[0] = (float)((float)(v5.f32[0] + a3) / 0.1) + 0.001;
v6 = _mm_or_ps(_mm_and_ps((__m128)xmmword_100A035F0, v5), (__m128)xmmword_100A03600);
v6.f32[0] = v6.f32[0] + v5.f32[0];
v11 = fmaxf(0.1, fminf(10.0, _mm_round_ss(v6, v6, 11).f32[0] * 0.1));
v7 = cocos2d::CCDirector::sharedDirector(v4, a2);
cocos2d::CCDirector::getWinSize(v10, v7);
sub_100278250(v9, v10[0] * 0.5, 0.5 * v10[1]);
return EditorUI::updateZoom(a1, v9, v11);
}