//
// EditorWindowPopup::ccTouchBegan from 0xcd9ff4 to 0xcda0d8 (228 bytes)
//
// 8 xrefs:
// > EmotePickerPopup::ccTouchBegan @ 0xcb8cec
// > `non-virtual thunk to'EditorWindowPopup::ccTouchBegan @ 0xcda0dc
// > ??> @ 0xa13e0
// > ??> @ 0x14eb360
// > ??> @ 0x14fb1a0
// > ??> @ 0x14fba00
// > ??> @ 0x15016b0
// > ??> @ 0x15022b0
//
// 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:32 +0000
//
__int64 __fastcall EditorWindowPopup::ccTouchBegan(EditorWindowPopup *a1, cocos2d::CCTouch *a2, __int64 a3)
{
__int64 result; // x0
__int64 v7; // [xsp+40h] [xbp+40h] BYREF
_BYTE v8[16]; // [xsp+48h] [xbp+48h] BYREF
if ( !(*(unsigned __int8 (__fastcall **)(EditorWindowPopup *))(*(_QWORD *)a1 + 352LL))(a1) )
return 0;
EditorWindowPopup::syncWindowCenter(a1);
if ( *((_DWORD *)a1 + 269) != -1 )
{
EditorWindowPopup::touchRect(a1, (cocos2d::CCRect *)v8);
cocos2d::CCTouch::getLocation(&v7, a2);
return (unsigned __int8)cocos2d::CCRect::containsPoint((cocos2d::CCRect *)v8, (const cocos2d::CCPoint *)&v7);
}
result = (unsigned __int8)EditorWindowPopup::beginTouch((__int64)a1, a2, a3);
if ( !(_BYTE)result )
return 0;
*((_DWORD *)a1 + 269) = *((_DWORD *)a2 + 14);
return result;
}