//
// GJUINode::activeTouchTest from 0x30d12c to 0x30d18c (96 bytes)
//
// 2 xrefs:
// > GJUINode::touchTest @ 0x30d252
// > UILayer::processUINodeTouch @ 0x30d8dc
//
// 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
//
int GJUINode::activeTouchTest(GJUINode *a1, cocos2d::CCPoint a2)
{
cocos2d::CCPoint v4; // r1
cocos2d::CCPoint v5; // [sp+4h] [bp-Ch] BYREF
v5 = a2;
if ( a1->m_modeB )
{
cocos2d::CCPoint::CCPoint(&v5, (const cocos2d::CCPoint *)LODWORD(a2.x));
LODWORD(v4.x) = &v5;
return GJUINode::activeRangeTouchTest(a1, v4);
}
else if ( fabsf(*(float *)LODWORD(a2.x)) < a1->m_deadzone )
{
return 5;
}
else if ( *(float *)LODWORD(a2.x) < 0.0 )
{
return 2;
}
else
{
return 3;
}
}