//
// GJUINode::touchTest from 0x6ef160 to 0x6ef228 (200 bytes)
//
// 3 xrefs:
// > UILayer::processUINodeTouch @ 0x6ef6dc
// > UIOptionsLayer::ccTouchBegan @ 0xa2ef50
// > ??> @ 0x540d0
//
// 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 12:51:47 +0000
//
char *__fastcall GJUINode::touchTest(_BYTE *a1, const cocos2d::CCPoint *a2)
{
int v4; // w1
char *result; // x0
_BYTE v6[8]; // [xsp+30h] [xbp+30h] BYREF
v4 = (unsigned __int8)cocos2d::CCRect::containsPoint((cocos2d::CCRect *)(a1 + 336), a2);
result = nullptr;
if ( v4 )
{
result = (_BYTE *)(&dword_0 + 1);
if ( !a1[386] )
{
if ( a1[381] && (a1[382] || !a1[383]) )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v6, a2);
GJUINode::updateRangePos((__int64)a1, (__int64)v6);
return &byte_5;
}
else
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v6, a2);
return GJUINode::activeTouchTest((__int64)a1, (const cocos2d::CCPoint *)v6);
}
}
}
return result;
}