//
// UIOptionsLayer::ccTouchEnded from 0xa2175c to 0xa217d8 (124 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'UIOptionsLayer::ccTouchEnded @ 0xa217dc
// > ??> @ 0x8cad0
// > ??> @ 0x14842b0
//
// 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 12:59:40 +0000
//
__int64 __fastcall UIOptionsLayer::ccTouchEnded(UIOptionsLayer *this, __int64 a2)
{
int v3; // w19
int v4; // w22
int v5; // w20
int v6; // w1
__int64 result; // x0
v3 = 0;
v4 = *(_DWORD *)(a2 + 56);
if ( *((_BYTE *)this + 1012) )
v5 = 4;
else
v5 = 1;
do
{
while ( 1 )
{
v6 = v3++;
result = UIOptionsLayer::getNode(this, v6);
if ( v4 == *(_DWORD *)(result + 352) )
break;
if ( v3 == v5 )
return result;
}
*(_DWORD *)(result + 352) = -1;
}
while ( v3 != v5 );
return result;
}