//
// cocos2d::extension::CCScrollView::getScriptHandler from 0x180014380 to 0x1800143c2 (66 bytes)
//
// 1 xrefs:
// > ??> @ 0x18002fdf8
//
// 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
//
__int64 __fastcall cocos2d::extension::CCScrollView::getScriptHandler(cocos2d::extension::CCScrollView *this, int a2)
{
__int64 *v2; // r8
__int64 *v3; // rcx
__int64 *v4; // rax
v2 = *((__int64 **)this + 69);
v3 = v2;
v4 = (__int64 *)v2[1];
while ( !*((_BYTE *)v4 + 25) )
{
if ( *((_DWORD *)v4 + 7) >= a2 )
{
v3 = v4;
v4 = (__int64 *)*v4;
}
else
{
v4 = (__int64 *)v4[2];
}
}
if ( *((_BYTE *)v3 + 25) || a2 < *((_DWORD *)v3 + 7) || v2 == v3 )
return 0;
else
return *((unsigned int *)v3 + 8);
}