//
// DropdownListPopup::ccTouchBegan from 0xcb677c to 0xcb6868 (236 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'DropdownListPopup::ccTouchBegan @ 0xcb686c
// > ??> @ 0xf5908
// > ??> @ 0x14f99c0
//
// 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::ccTouchBegan(__int64 a1, cocos2d::CCTouch *this, __int64 a3)
{
unsigned __int8 v5; // w0
unsigned int v6; // w21
__int64 v7; // x2
ScrollableContentLayer *v8; // x0
__int64 v9; // x0
char v10; // w1
__int64 v13; // [xsp+50h] [xbp+50h] BYREF
cocos2d::CCTouch::getLocation(&v13, this);
v5 = cocos2d::CCRect::containsPoint((cocos2d::CCRect *)(a1 + 864), (const cocos2d::CCPoint *)&v13);
v6 = v5;
v7 = a3;
if ( v5 )
{
v8 = *(ScrollableContentLayer **)(a1 + 720);
if ( v8 )
{
ScrollableContentLayer::handleTouchBegan(v8, this);
v7 = a3;
}
v9 = *(_QWORD *)(a1 + 712);
if ( v9 || (v9 = *(_QWORD *)(a1 + 552), v10 = 0, v9) )
v10 = (*(__int64 (__fastcall **)(__int64, cocos2d::CCTouch *, __int64))(*(_QWORD *)v9 + 896LL))(v9, this, v7);
*(_BYTE *)(a1 + 728) = v10;
}
else
{
DropdownListPopup::closeSelf((DropdownListPopup *)a1);
return (unsigned __int8)cocos2d::CCRect::containsPoint(
(cocos2d::CCRect *)(a1 + 880),
(const cocos2d::CCPoint *)&v13);
}
return v6;
}