//
// EditorWindowPopup::touchIsOnField from 0x78cdf0 to 0x78ce68 (120 bytes)
//
// 1 xrefs:
// > EditorWindowPopup::beginTouch @ 0x78cf2a
//
// 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::touchIsOnField(int a1, const cocos2d::CCPoint *a2, int a3, int a4)
{
int v5; // r3
int result; // r0
int v7; // r3
int v8; // r4
int v9; // r6
int v10; // r2
_DWORD v11[3]; // [sp+4h] [bp-Ch] BYREF
v11[0] = a2;
v11[1] = a3;
v11[2] = a4;
v5 = *(_DWORD *)(a1 + 576);
if ( v5 )
{
v7 = *(_DWORD *)(v5 + 52);
if ( v7 )
v8 = *(_DWORD *)(v7 + 272);
else
v8 = 0;
while ( v7 )
{
v9 = *(_DWORD *)(v7 + 260);
if ( (*(int (__fastcall **)(int))(*(_DWORD *)v9 + 176))(v9) )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, a2);
result = CCTextInputNode::containsTouchPoint(v9);
if ( result )
return result;
}
if ( v8 )
v10 = *(_DWORD *)(v8 + 272);
else
v10 = 0;
v7 = v8;
v8 = v10;
}
}
return 0;
}