//
// GJUINode::activeTouchTest from 0x10004a760 to 0x10004a7d0 (112 bytes)
//
// 2 xrefs:
// > UILayer::processUINodeTouch @ 0x10004a464
// > GJUINode::touchTest @ 0x10004a72c
//
// 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 __fastcall GJUINode::activeTouchTest(GJUINode *a1, cocos2d::CCPoint a2)
{
__int64 *v2; // x1
__int64 v5; // [xsp+8h] [xbp-18h] BYREF
cocos2d::CCPoint v6; // 0:s0.4,4:s1.4
if ( a1->m_modeB )
{
v6.x = sub_1000229B8(&v5, v2);
return GJUINode::activeRangeTouchTest(a1, v6);
}
else if ( fabsf(*(float *)v2) >= a1->m_deadzone )
{
if ( *(float *)v2 >= 0.0 )
return 3;
else
return 2;
}
else
{
return 5;
}
}