//
// DropdownListPopup::ccTouchEnded from 0x1004c3a1c to 0x1004c3aa8 (140 bytes)
//
// 2 xrefs:
// > sub_1004C3AA8 @ 0x1004c3aac
// > ??> @ 0x1009850e8
//
// 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:06:21 +0000
//
__int64 __fastcall DropdownListPopup::ccTouchEnded(__int64 a1, __int64 a2)
{
__int64 result; // x0
int v4; // w22
__int64 v5; // x8
result = *(_QWORD *)(a1 + 720);
if ( result )
{
v4 = *(unsigned __int8 *)(result + 480);
result = sub_100525820(result, a2);
v5 = 912;
if ( v4 )
v5 = 920;
}
else
{
v5 = 912;
}
if ( *(_BYTE *)(a1 + 728) == 1 )
{
result = *(_QWORD *)(a1 + 712);
if ( result || (result = *(_QWORD *)(a1 + 552)) != 0 )
result = (*(__int64 (**)(void))(*(_QWORD *)result + v5))();
*(_BYTE *)(a1 + 728) = 0;
}
return result;
}