//
// sub_100241358 from 0x100241358 to 0x1002413bc (100 bytes)
//
// 1 xrefs:
// > cocos2d::CCTouchDispatcher::touchesBegan @ 0x1001ce284
//
// 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 11:01:24 +0000
//
__int64 __fastcall sub_100241358(__int64 a1)
{
_QWORD *v1; // x8
_QWORD *v2; // x8
_QWORD *v3; // x9
_QWORD *v4; // t1
__int64 result; // x0
_QWORD *v6; // x11
_QWORD *v7; // x10
bool v8; // zf
v1 = *(_QWORD **)(a1 + 56);
if ( !v1 )
return 0;
if ( !v1[2] )
return 0;
v4 = (_QWORD *)*v1;
v2 = v1 + 1;
v3 = v4;
if ( v4 == v2 )
return 0;
while ( 1 )
{
result = v3[4];
if ( result )
break;
v6 = (_QWORD *)v3[1];
if ( v6 )
{
do
{
v7 = v6;
v6 = (_QWORD *)*v6;
}
while ( v6 );
}
else
{
do
{
v7 = (_QWORD *)v3[2];
v8 = *v7 == (_QWORD)v3;
v3 = v7;
}
while ( !v8 );
}
v3 = v7;
if ( v7 == v2 )
return 0;
}
return result;
}