//
// sub_100053018 from 0x100053018 to 0x1000530bc (164 bytes)
//
// 2 xrefs:
// > UILayer::processUINodeTouch @ 0x100052d58
// > UILayer::processUINodeTouch @ 0x100052e50
//
// 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 10:57:44 +0000
//
__int64 __fastcall sub_100053018(__int64 a1)
{
__int64 result; // x0
__int16 v3; // [xsp+8h] [xbp-18h] BYREF
char v4; // [xsp+Ah] [xbp-16h]
__int16 v5; // [xsp+Ch] [xbp-14h] BYREF
char v6; // [xsp+Eh] [xbp-12h]
*(_DWORD *)(a1 + 352) = -1;
result = *(_QWORD *)(a1 + 320);
if ( result )
{
v4 = -1;
v3 = -1;
result = (*(__int64 (__fastcall **)(__int64, __int16 *))(*(_QWORD *)result + 960LL))(result, &v3);
}
if ( *(_BYTE *)(a1 + 381) == 1 )
{
if ( *(_BYTE *)(a1 + 382) == 1 )
result = (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 320) + 344LL))(*(_QWORD *)(a1 + 320), 0);
}
else
{
result = *(_QWORD *)(a1 + 328);
if ( result )
{
v6 = -1;
v5 = -1;
result = (*(__int64 (__fastcall **)(__int64, __int16 *))(*(_QWORD *)result + 960LL))(result, &v5);
}
}
*(_DWORD *)(a1 + 388) = 0;
return result;
}