//
// cocos2d::extension::CCScrollView::unregisterScriptHandler from 0x180013eb0 to 0x180013f17 (103 bytes)
//
// 2 xrefs:
// > ??> @ 0x180032408
// > ??> @ 0x18004c530
//
// This function is hookable on this platform (idp: pc, 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 12:15:41 +0000
//
void __fastcall cocos2d::extension::CCScrollView::unregisterScriptHandler(
cocos2d::extension::CCScrollView *this,
int a2)
{
_QWORD *v2; // r9
__int64 **v4; // rcx
__int64 **v5; // rdx
__int64 *i; // rax
__int64 **v7; // rax
v2 = (_QWORD *)((char *)this + 552);
v4 = *((__int64 ***)this + 69);
v5 = v4;
for ( i = v4[1]; !*((_BYTE *)i + 25); i = (__int64 *)*i )
{
if ( *((_DWORD *)i + 7) >= a2 )
v5 = (__int64 **)i;
else
i += 2;
}
if ( !*((_BYTE *)v5 + 25) && a2 >= *((_DWORD *)v5 + 7) && v4 != v5 )
{
v7 = sub_180004A50(v2, v5);
j_j_free(v7);
}
}