//
// UILayer::processUINodesTouch from 0x3fd114 to 0x3fd196 (130 bytes)
//
// 4 xrefs:
// > UILayer::ccTouchBegan @ 0x3fd21c
// > UILayer::ccTouchBegan @ 0x3fd22c
// > UILayer::ccTouchMoved @ 0x3fd2d2
// > UILayer::ccTouchEnded @ 0x3fd34e
//
// 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:47:21 +0000
//
int __fastcall UILayer::processUINodesTouch(int a1, int a2, int a3)
{
unsigned int v6; // r5
int v7; // r9
int result; // r0
int v9; // [sp+10h] [bp-14h]
cocos2d::CCPoint *v10; // [sp+14h] [bp-10h]
_BYTE v11[8]; // [sp+1Ch] [bp-8h] BYREF
_BYTE v12[8]; // [sp+24h] [bp+0h] BYREF
v6 = 0;
cocos2d::CCTouch::getLocation((cocos2d::CCTouch *)v11);
v9 = *(_DWORD *)(a3 + 52);
if ( *(_BYTE *)(a1 + 492) )
v7 = 4;
else
v7 = 1;
do
{
v10 = (cocos2d::CCPoint *)cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 488), v6);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, (const cocos2d::CCPoint *)v11);
result = UILayer::processUINodeTouch(a1, a2, v9, (const cocos2d::CCPoint *)v12, v10, *(double *)(a3 + 88));
if ( result )
break;
++v6;
}
while ( v6 != v7 );
return result;
}