//
// GJUINode::activeTouchTest from 0x3fcbb4 to 0x3fcc14 (96 bytes)
//
// 2 xrefs:
// > GJUINode::touchTest @ 0x3fccda
// > UILayer::processUINodeTouch @ 0x3fd012
//
// 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::activeTouchTest(int a1, const cocos2d::CCPoint *a2, float a3, float a4)
{
float v6[3]; // [sp+4h] [bp-Ch] BYREF
LODWORD(v6[0]) = a2;
v6[1] = a3;
v6[2] = a4;
if ( *(_BYTE *)(a1 + 317) )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v6, a2);
return GJUINode::activeRangeTouchTest(a1, v6);
}
else if ( fabsf(*(float *)a2) < *(float *)(a1 + 312) )
{
return 5;
}
else if ( *(float *)a2 < 0.0 )
{
return 2;
}
else
{
return 3;
}
}