//
// GJUINode::touchTest from 0x3fcc84 to 0x3fccf2 (110 bytes)
//
// 2 xrefs:
// > UILayer::processUINodeTouch @ 0x3fcf68
// > UIOptionsLayer::ccTouchBegan @ 0x5ddc6c
//
// 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 GJUINode::touchTest(_BYTE *a1, const cocos2d::CCPoint *a2)
{
int result; // r0
float v5; // r2
float v6; // r3
_BYTE v7[8]; // [sp+4h] [bp-10h] BYREF
result = cocos2d::CCRect::containsPoint((cocos2d::CCRect *)(a1 + 272), a2);
if ( result )
{
if ( a1[322] )
{
return 1;
}
else if ( a1[317] && (a1[318] || !a1[319]) )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, a2);
GJUINode::updateRangePos((int)a1, (int)v7);
return 5;
}
else
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, a2);
return GJUINode::activeTouchTest((int)a1, (const cocos2d::CCPoint *)v7, v5, v6);
}
}
return result;
}