//
// EditorUI::zoomIn from 0x1000089b0 to 0x100008a85 (213 bytes)
//
// 2 xrefs:
// > EditorUI::handleEditorAction @ 0x10060c6bb
// > EditorUI::init @ 0x100006332
//
// 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:48 +0000
//
__int64 __fastcall EditorUI::zoomIn(__int64 a1, __m128 a2)
{
__int64 v3; // rax
__int64 v4; // rdi
__m128 v5; // xmm1
__int64 v6; // rax
_BYTE v8[8]; // [rsp+Ch] [rbp-24h] BYREF
float v9[2]; // [rsp+14h] [rbp-1Ch] BYREF
float v10; // [rsp+1Ch] [rbp-14h]
v3 = EditorSFXManager::sharedState(a1);
EditorSFXManager::playAction_1(v3, 160);
v4 = *(_QWORD *)(*(_QWORD *)(a1 + 1440) + 3920LL);
*(double *)a2.i64 = (*(double (__fastcall **)(__int64))(*(_QWORD *)v4 + 168LL))(v4);
a2.f32[0] = (float)((float)(a2.f32[0] + 0.1) / 0.1) + 0.001;
v5 = _mm_or_ps(_mm_and_ps((__m128)xmmword_100A035F0, a2), (__m128)xmmword_100A03600);
v5.f32[0] = v5.f32[0] + a2.f32[0];
v10 = fmaxf(0.1, fminf(10.0, _mm_round_ss((__m128)0LL, v5, 11).f32[0] * 0.1));
v6 = cocos2d::CCDirector::sharedDirector(v4, 160);
cocos2d::CCDirector::getWinSize(v9, v6);
sub_100278250(v8, v9[0] * 0.5, 0.5 * v9[1]);
return EditorUI::updateZoom(a1, v8, v10);
}