//
// GJUINode::activeTouchTest from 0x1004ca470 to 0x1004ca4d7 (103 bytes)
//
// 0 xrefs:
//
// 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)
{
double *v2; // rsi
cocos2d::CCPoint v3; // xmm0_8
int result; // eax
__int64 v5; // [rsp-20h] [rbp-20h] BYREF
if ( a1->m_modeB )
{
*(double *)&v3 = sub_10028CC60(&v5, v2);
return GJUINode::activeRangeTouchTest(a1, v3);
}
else
{
result = 5;
if ( a1->m_deadzone <= fabs(*(float *)v2) )
return ((*(unsigned int *)v2 | 0x300000000LL) - (unsigned __int64)COERCE_UNSIGNED_INT(0.0)) >> 32;
}
return result;
}