//
// EditorWindowPopup::ccTouchBegan from 0x78d144 to 0x78d1b6 (114 bytes)
//
// 2 xrefs:
// > EmotePickerPopup::ccTouchBegan @ 0x778800
// > `non-virtual thunk to'EditorWindowPopup::ccTouchBegan @ 0x78d1c0
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:59:37 +0000
//
int __fastcall EditorWindowPopup::ccTouchBegan(EditorWindowPopup *a1, cocos2d::CCTouch *a2, int a3)
{
int result; // r0
_BYTE v7[8]; // [sp+4h] [bp-20h] BYREF
_BYTE v8[16]; // [sp+Ch] [bp-18h] BYREF
if ( !(*(int (__fastcall **)(EditorWindowPopup *))(*(_DWORD *)a1 + 176))(a1) )
return 0;
EditorWindowPopup::syncWindowCenter(a1);
if ( *((_DWORD *)a1 + 188) == -1 )
{
result = EditorWindowPopup::beginTouch((int)a1, a2, a3);
if ( !result )
return 0;
*((_DWORD *)a1 + 188) = *((_DWORD *)a2 + 13);
}
else
{
EditorWindowPopup::touchRect((EditorWindowPopup *)v8, (float *)a1);
cocos2d::CCTouch::getLocation((cocos2d::CCTouch *)v7);
return cocos2d::CCRect::containsPoint((cocos2d::CCRect *)v8, (const cocos2d::CCPoint *)v7);
}
return result;
}