//
// DropdownListPopup::ccTouchEnded from 0xcb608c to 0xcb6120 (148 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'DropdownListPopup::ccTouchEnded @ 0xcb6124
// > ??> @ 0x845b0
// > ??> @ 0x14f99d0
//
// 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 13:06:12 +0000
//
__int64 __fastcall DropdownListPopup::ccTouchEnded(__int64 a1, cocos2d::CCTouch *a2)
{
__int64 v3; // x3
int v4; // w21
__int64 result; // x0
__int64 v6; // x3
v3 = *(_QWORD *)(a1 + 720);
if ( v3 )
{
v4 = *(unsigned __int8 *)(v3 + 480);
ScrollableContentLayer::handleTouchEnded(*(_QWORD *)(a1 + 720), a2);
}
else
{
v4 = 0;
}
result = *(unsigned __int8 *)(a1 + 728);
if ( *(_BYTE *)(a1 + 728) )
{
result = *(_QWORD *)(a1 + 712);
if ( result || (result = *(_QWORD *)(a1 + 552)) != 0 )
{
v6 = *(_QWORD *)result;
if ( v4 )
result = (*(__int64 (**)(void))(v6 + 920))();
else
result = (*(__int64 (**)(void))(v6 + 912))();
*(_BYTE *)(a1 + 728) = 0;
}
else
{
*(_BYTE *)(a1 + 728) = 0;
}
}
return result;
}