//
// DropdownListPopup::ccTouchBegan from 0x1401222c0 to 0x1401223bd (253 bytes)
//
// 3 xrefs:
// > ??> @ 0x140732710
// > ??> @ 0x14091667c
// > ??> @ 0x140916688
//
// This function is hookable on this platform (idp: pc, 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:26:57 +0000
//
bool __fastcall DropdownListPopup::ccTouchBegan(__int64 a1, __int64 a2, __int64 a3)
{
_QWORD *v6; // rbx
void (__fastcall ***v7)(_QWORD, __int64); // rcx
__int64 v8; // rdx
__int64 v10; // rcx
__int64 v11; // rcx
bool v12; // al
char v13; // [rsp+30h] [rbp+8h] BYREF
cocos2d::CCTouch::getLocation(a2, &v13);
v6 = (_QWORD *)(a1 - 320);
if ( cocos2d::CCRect::containsPoint((cocos2d::CCRect *)(a1 + 568), (const struct cocos2d::CCPoint *)&v13) )
{
v10 = v6[90];
if ( v10 )
ScrollableContentLayer::handleTouchBegan(v10, a2);
v11 = *(_QWORD *)(a1 + 392);
v12 = (v11 || (v11 = *(_QWORD *)(a1 + 232)) != 0)
&& (*(unsigned __int8 (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)(v11 + 320) + 8LL))(
v11 + 320,
a2,
a3);
*(_BYTE *)(a1 + 408) = v12;
return 1;
}
else
{
v7 = (void (__fastcall ***)(_QWORD, __int64))v6[116];
if ( v7 )
{
v6[116] = 0;
(**v7)(v7, a1 - 320);
}
(*(void (__fastcall **)(__int64, _QWORD))(*v6 + 992LL))(a1 - 320, 0);
LOBYTE(v8) = 1;
(*(void (__fastcall **)(__int64, __int64))(*v6 + 520LL))(a1 - 320, v8);
return cocos2d::CCRect::containsPoint((cocos2d::CCRect *)(a1 + 584), (const struct cocos2d::CCPoint *)&v13);
}
}