//
// EditorUI::scrollWheel from 0x100164038 to 0x100164110 (216 bytes)
//
// 2 xrefs:
// > sub_1001641DC @ 0x1001641e0
// > ??> @ 0x10096d398
//
// 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 10:59:47 +0000
//
bool __fastcall EditorUI::scrollWheel(__int64 a1, __n128 a2, __n128 a3)
{
int v3; // w20
__int64 v5; // x0
__int64 v6; // x0
__n128 v7; // q0
__int64 v8; // x0
__int64 v9; // x1
v3 = *(_DWORD *)(*(_QWORD *)(a1 + 1440) + 1972LL);
if ( v3 != 1 )
{
v5 = cocos2d::CCDirector::sharedDirector(a1);
v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 192LL))(v5);
if ( *(_BYTE *)(v6 + 129) == 1 )
{
v7 = a2;
if ( a2.n128_f32[0] > 0.0 || (v7 = a3, a3.n128_f32[0] > 0.0) )
{
v8 = a1;
v9 = 0;
}
else
{
v8 = a1;
v9 = 1;
}
EditorUI::zoomGameLayer(v8, v9, v7);
}
else
{
*(float32x2_t *)(a1 + 1636) = vadd_f32(
*(float32x2_t *)(a1 + 1636),
vmul_n_f32(
(float32x2_t)__PAIR64__(a2.n128_u32[0], a3.n128_u32[0]),
*(float *)(GameManager::sharedState(v6) + 1108)));
if ( (*(_BYTE *)(a1 + 1644) & 1) == 0 )
{
cocos2d::CCNode::schedule_1(a1, EditorUI::updatePanDecay, 0);
*(_BYTE *)(a1 + 1644) = 1;
}
}
}
return v3 != 1;
}