//
// EditorWindowPopup::ccTouchBegan from 0x1004da088 to 0x1004da128 (160 bytes)
//
// 7 xrefs:
// > sub_1004DA3F0 @ 0x1004da3f4
// > EmotePickerPopup::ccTouchBegan @ 0x1004dbbd4
// > ??> @ 0x100986098
// > ??> @ 0x10098b990
// > ??> @ 0x100990cb0
// > ??> @ 0x1009920e0
// > ??> @ 0x1009a7638
//
// 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 11:06:33 +0000
//
__int64 __fastcall EditorWindowPopup::ccTouchBegan(float *a1, float32x2_t *a2, __int64 a3)
{
__int64 result; // x0
double v7; // d0
float v8; // [xsp+8h] [xbp-38h] BYREF
float v9[4]; // [xsp+10h] [xbp-30h] BYREF
result = (*(__int64 (__fastcall **)(float *))(*(_QWORD *)a1 + 352LL))(a1);
if ( (_DWORD)result )
{
v7 = EditorWindowPopup::syncWindowCenter((__int64)a1);
if ( *((_DWORD *)a1 + 269) == -1 )
{
result = sub_1004DA128(a1, a2, a3, v7);
if ( (_DWORD)result )
{
a1[269] = a2[7].f32[0];
return 1;
}
}
else
{
EditorWindowPopup::touchRect(a1, v9);
cocos2d::CCTouch::getLocation(a2, &v8);
return sub_1000265E4(v9, &v8);
}
}
return result;
}