//
// TableView::scrollWheel from 0x140075ac0 to 0x140075b93 (211 bytes)
//
// 5 xrefs:
// > ??> @ 0x140537668
// > ??> @ 0x140667330
// > ??> @ 0x140667344
// > ??> @ 0x140667354
// > ??> @ 0x1406c6450
//
// 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 TableView::scrollWheel(TableView *a1, float a2, float a3)
{
int *p_m_nUpdateScriptHandler; // rdi
__int64 v4; // rax
__int64 v5; // rbx
__int64 v6; // rax
cocos2d::CCPoint v7; // [rsp+20h] [rbp-18h] BYREF
char v8; // [rsp+58h] [rbp+20h] BYREF
float v9; // [rsp+5Ch] [rbp+24h]
if ( a2 != 0.0 )
{
p_m_nUpdateScriptHandler = &a1[-1].m_nUpdateScriptHandler;
cocos2d::CCPoint::CCPoint(&v7, 0.0, a2);
v4 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)p_m_nUpdateScriptHandler + 59) + 200LL))(*((_QWORD *)p_m_nUpdateScriptHandler + 59));
cocos2d::CCPoint::operator+(v4, &v8);
v5 = (*(__int64 (__fastcall **)(int *))(*(_QWORD *)p_m_nUpdateScriptHandler + 304LL))(p_m_nUpdateScriptHandler);
v6 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)p_m_nUpdateScriptHandler + 59) + 304LL))(*((_QWORD *)p_m_nUpdateScriptHandler + 59));
if ( (float)((float)(*(float *)(v5 + 4) - *(float *)(v6 + 4)) - *((float *)p_m_nUpdateScriptHandler + 122)) <= v9 )
{
if ( v9 > *((float *)p_m_nUpdateScriptHandler + 123) )
v9 = *((float *)p_m_nUpdateScriptHandler + 123);
}
else
{
v9 = (float)(*(float *)(v5 + 4) - *(float *)(v6 + 4)) - *((float *)p_m_nUpdateScriptHandler + 122);
}
(*(void (__fastcall **)(_QWORD, char *))(**((_QWORD **)p_m_nUpdateScriptHandler + 59) + 184LL))(
*((_QWORD *)p_m_nUpdateScriptHandler + 59),
&v8);
}
}