//
// GJUINode::activeTouchTest from 0x6ef008 to 0x6ef0a4 (156 bytes)
//
// 3 xrefs:
// > GJUINode::touchTest @ 0x6ef21c
// > UILayer::processUINodeTouch @ 0x6ef744
// > ??> @ 0xa6d68
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:51:47 +0000
//
char *__fastcall GJUINode::activeTouchTest(__int64 a1, const cocos2d::CCPoint *a2)
{
char *result; // x0
float v4; // [xsp+30h] [xbp+30h] BYREF
if ( *(_BYTE *)(a1 + 381) )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v4, a2);
return (char *)GJUINode::activeRangeTouchTest(a1, &v4);
}
else
{
result = &byte_5;
if ( *(float *)(a1 + 376) <= fabsf(*(float *)a2) )
{
if ( *(float *)a2 < 0.0 )
return (char *)&dword_0 + 2;
else
return (_BYTE *)(&dword_0 + 3);
}
}
return result;
}