//
// EditorWindowPopup::touchIsOnField from 0xcd9b50 to 0xcd9c2c (220 bytes)
//
// 2 xrefs:
// > EditorWindowPopup::beginTouch @ 0xcd9d30
// > ??> @ 0x6eb78
//
// 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::touchIsOnField(__int64 a1, const cocos2d::CCPoint *a2)
{
__int64 v3; // x0
__int64 v4; // x0
__int64 v5; // x20
__int64 v6; // x19
__int64 v7; // x0
__int64 result; // x0
_BYTE v9[8]; // [xsp+40h] [xbp+40h] BYREF
v3 = *(_QWORD *)(a1 + 760);
if ( v3 )
{
v4 = *(_QWORD *)(v3 + 56);
if ( v4 )
{
v5 = *(_QWORD *)(v4 + 264);
v6 = *(_QWORD *)(v4 + 288);
if ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v5 + 352LL))(v5) )
goto LABEL_6;
while ( v6 )
{
v7 = v6;
v6 = *(_QWORD *)(v6 + 288);
v5 = *(_QWORD *)(v7 + 264);
if ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v5 + 352LL))(v5) )
{
LABEL_6:
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, a2);
result = (unsigned __int8)CCTextInputNode::containsTouchPoint(v5, (const cocos2d::CCPoint *)v9);
if ( (_BYTE)result )
return result;
}
}
}
}
return 0;
}