//
// GJUINode::activeTouchTest from 0x5c6840 to 0x5c68dc (156 bytes)
//
// 3 xrefs:
// > GJUINode::touchTest @ 0x5c6a54
// > UILayer::processUINodeTouch @ 0x5c73a8
// > ??> @ 0x7d130
//
// 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)
{
const cocos2d::CCPoint *v2; // x1
__int64 v4; // x0
cocos2d::CCPoint v6; // [xsp+30h] [xbp+30h] BYREF
cocos2d::CCPoint v7; // 0:s0.4,4:s1.4
if ( a1->m_modeB )
{
cocos2d::CCPoint::CCPoint(&v6, v2);
LODWORD(v4) = GJUINode::activeRangeTouchTest(a1, v7);
}
else
{
LODWORD(v4) = 5;
if ( fabsf(v2->x) >= a1->m_deadzone )
{
if ( v2->x < 0.0 )
return (int)&dword_0 + 2;
else
LODWORD(v4) = 3;
}
}
return v4;
}