//
// UILayer::processUINodesTouch from 0x1404ce520 to 0x1404ce5e4 (196 bytes)
//
// 3 xrefs:
// > UILayer::ccTouchMoved @ 0x1404ce438
// > UILayer::ccTouchEnded @ 0x1404ce50e
// > ??> @ 0x1406dd4fc
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
bool UILayer::processUINodesTouch(UILayer *a1, GJUITouchEvent a2, cocos2d::CCTouch *a3)
{
int v6; // esi
int m_nId; // r12d
unsigned int v8; // edi
struct cocos2d::CCObject *v9; // rax
double m_timestamp; // xmm6_8
GJUINode *v11; // rbx
cocos2d::CCPoint v12; // rax
bool result; // al
cocos2d::CCPoint v14; // [rsp+80h] [rbp+18h] BYREF
cocos2d::CCTouch::getLocation(a3);
v6 = 1;
m_nId = a3->m_nId;
if ( a1->m_dualMode )
v6 = 4;
v8 = 0;
while ( 1 )
{
v9 = cocos2d::CCArray::objectAtIndex(a1->m_uiNodes, v8);
m_timestamp = a3->m_timestamp;
v11 = (GJUINode *)v9;
cocos2d::CCPoint::CCPoint(&v14);
result = UILayer::processUINodeTouch(a1, a2, m_nId, v12, v11, m_timestamp);
if ( result )
break;
if ( (int)++v8 >= v6 )
return result;
}
return 1;
}