//
// UIOptionsLayer::ccTouchEnded from 0x5d5800 to 0x5d5838 (56 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'UIOptionsLayer::ccTouchEnded @ 0x5d583c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:54:08 +0000
//
int __fastcall UIOptionsLayer::ccTouchEnded(UIOptionsLayer *this, int a2)
{
int v3; // r4
int v4; // r7
int v5; // r6
int result; // r0
v3 = 0;
v4 = *(_DWORD *)(a2 + 52);
if ( *((_BYTE *)this + 712) )
v5 = 4;
else
v5 = 1;
do
{
result = UIOptionsLayer::getNode(this, v3++);
if ( *(_DWORD *)(result + 288) == v4 )
*(_DWORD *)(result + 288) = -1;
}
while ( v3 != v5 );
return result;
}