//
// EditorUI::scrollWheel from 0xbd6d3c to 0xbd6e14 (216 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'EditorUI::scrollWheel @ 0xbd6e18
// > ??> @ 0xc81a0
// > ??> @ 0x1437298
//
// 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 13:03:40 +0000
//
__int64 __fastcall EditorUI::scrollWheel(EditorUI *this, float a2, float a3)
{
unsigned int v3; // w1
__int64 v7; // x0
GameManager *v8; // x0
__int64 v10; // x0
float v11; // s1
float v12; // s8
v3 = 0;
if ( *(_DWORD *)(*((_QWORD *)this + 180) + 1972LL) != 1 )
{
v7 = cocos2d::CCDirector::sharedDirector(this);
v8 = (GameManager *)*(unsigned __int8 *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 192LL))(v7) + 129);
if ( (_DWORD)v8 )
{
if ( a2 <= 0.0 && a3 <= 0.0 )
{
EditorUI::zoomGameLayer(this, 1u);
return 1;
}
else
{
EditorUI::zoomGameLayer(this, 0);
return 1;
}
}
else
{
v10 = GameManager::sharedState(v8);
v3 = *((unsigned __int8 *)this + 1644);
v11 = *(float *)(v10 + 1108);
v12 = *((float *)this + 410) + (float)(a2 * v11);
*((float *)this + 409) = *((float *)this + 409) + (float)(a3 * v11);
*((float *)this + 410) = v12;
if ( !v3 )
{
cocos2d::CCNode::schedule(this, EditorUI::updatePanDecay, 0);
v3 = 1;
*((_BYTE *)this + 1644) = 1;
}
}
}
return v3;
}