//
// cocos2d::extension::CCScrollView::getScriptHandler from 0xd184f0 to 0xd18548 (88 bytes)
//
// 1 xrefs:
// > ??> @ 0xabeb0
//
// 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:07:07 +0000
//
__int64 __fastcall cocos2d::extension::CCScrollView::getScriptHandler(cocos2d::extension::CCScrollView *this, int a2)
{
char *v2; // x4
__int64 result; // x0
__int64 v4; // x3
v2 = (char *)this + 552;
result = *((_QWORD *)this + 69);
if ( !result )
return 0;
v4 = (__int64)v2;
do
{
while ( *(_DWORD *)(result + 28) >= a2 )
{
v4 = result;
result = *(_QWORD *)result;
if ( !result )
goto LABEL_5;
}
result = *(_QWORD *)(result + 8);
}
while ( result );
LABEL_5:
if ( v2 == (char *)v4 )
return 0;
if ( *(_DWORD *)(v4 + 28) <= a2 )
return *(unsigned int *)(v4 + 32);
return result;
}