//
// EditorUI::scrollWheel from 0x1401267f0 to 0x140126996 (422 bytes)
//
// 4 xrefs:
// > ??> @ 0x140552700
// > ??> @ 0x1406707d8
// > ??> @ 0x1406707e8
// > ??> @ 0x1406c99f0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void EditorUI::scrollWheel(EditorUI *a1, float a2, float a3)
{
__int64 v4; // rcx
__int64 v5; // rax
float v6; // xmm0_4
float v7; // xmm0_4
__int64 v8; // rdi
__int64 v9; // rax
char v10; // [rsp+50h] [rbp+8h] BYREF
cocos2d::CCPoint v11; // [rsp+68h] [rbp+20h] BYREF
if ( LODWORD(a1->m_playtestBtn[4].m_fScaleX) != 1 )
{
*(double *)&a1->m_copyBtn = sub_14003CF30();
v5 = cocos2d::CCDirector::sharedDirector(v4);
if ( *(_BYTE *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 176LL))(v5) + 89) )
{
if ( a2 > 0.0 || a3 > 0.0 )
{
v7 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)&a1->m_playtestBtn[7].m_nScriptTapHandler + 168LL))(*(_QWORD *)&a1->m_playtestBtn[7].m_nScriptTapHandler);
EditorUI::updateZoom((EditorUI *)((char *)a1 - 352), fmaxf(0.1, fminf(4.0, v7 + -0.1)));
}
else
{
v6 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)&a1->m_playtestBtn[7].m_nScriptTapHandler + 168LL))(*(_QWORD *)&a1->m_playtestBtn[7].m_nScriptTapHandler);
EditorUI::updateZoom((EditorUI *)((char *)a1 - 352), fmaxf(0.1, fminf(4.0, v6 + 0.1)));
}
}
else
{
cocos2d::CCPoint::CCPoint(&v11, a3, a2);
v8 = *(_QWORD *)&a1->m_playtestBtn[7].m_nScriptTapHandler;
v9 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 200LL))(v8);
cocos2d::CCPoint::operator+(v9, &v10);
(*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v8 + 184LL))(v8, &v10);
EditorUI::constrainGameLayerPosition((EditorUI *)((char *)a1 - 352), -100.0, -100.0);
EditorUI::updateSlider((EditorUI *)((char *)a1 - 352));
}
}
}