//
// UILayer::processUINodesTouch from 0x140673510 to 0x1406735d4 (196 bytes)
//
// 3 xrefs:
// > UILayer::ccTouchMoved @ 0x140673428
// > UILayer::ccTouchEnded @ 0x1406734fe
// > ??> @ 0x14093239c
//
// This function is hookable on this platform (idp: pc, 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:35:55 +0000
//
char __fastcall UILayer::processUINodesTouch(__int64 a1, int a2, __int64 a3)
{
int v6; // esi
int v7; // r12d
unsigned int v8; // edi
struct cocos2d::CCObject *v9; // rax
__int64 v10; // xmm6_8
__int64 v11; // rbx
int v12; // eax
char result; // al
char v14; // [rsp+70h] [rbp+8h] BYREF
char v15; // [rsp+80h] [rbp+18h] BYREF
cocos2d::CCTouch::getLocation(a3, &v14);
v6 = 1;
v7 = *(_DWORD *)(a3 + 56);
if ( *(_BYTE *)(a1 + 624) )
v6 = 4;
v8 = 0;
while ( 1 )
{
v9 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 616), v8);
v10 = *(_QWORD *)(a3 + 88);
v11 = (__int64)v9;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15, (const struct cocos2d::CCPoint *)&v14);
result = UILayer::processUINodeTouch(a1, a2, v7, v12, v11, v10);
if ( result )
break;
if ( (int)++v8 >= v6 )
return result;
}
return 1;
}