//
// EditorWindowPopup::touchIsOnField from 0x1004d9f5c to 0x1004d9fe8 (140 bytes)
//
// 1 xrefs:
// > sub_1004DA128 @ 0x1004da17c
//
// 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::touchIsOnField(__int64 a1, double *a2)
{
__int64 v2; // x8
__int64 v3; // x21
__int64 v5; // x20
__n128 v6; // q0
__int64 v8; // [xsp+8h] [xbp-28h] BYREF
v2 = *(_QWORD *)(a1 + 760);
if ( !v2 )
return 0;
v3 = *(_QWORD *)(v2 + 56);
if ( !v3 )
return 0;
while ( 1 )
{
v5 = *(_QWORD *)(v3 + 264);
v3 = *(_QWORD *)(v3 + 288);
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v5 + 352LL))(v5) )
{
v6.n128_f64[0] = sub_1000262F4(&v8, a2);
if ( CCTextInputNode::containsTouchPoint(v5, (__int64)&v8, v6) )
break;
}
if ( !v3 )
return 0;
}
return 1;
}