//
// GJUINode::touchTest from 0x10004a6c8 to 0x10004a760 (152 bytes)
//
// 2 xrefs:
// > UILayer::processUINodeTouch @ 0x10004a4dc
// > UIOptionsLayer::ccTouchBegan @ 0x1002e4544
//
// 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::touchTest(GJUINode *a1, cocos2d::CCPoint a2)
{
float *v2; // x1
__int64 *v3; // x20
int result; // w0
__int64 v6; // [xsp+8h] [xbp-18h] BYREF
cocos2d::CCPoint v7; // 0:s0.4,4:s1.4
cocos2d::CCPoint v8; // 0:s0.4,4:s1.4
v3 = (__int64 *)v2;
result = sub_100022C60((float *)&a1->m_rect.origin, v2);
if ( result )
{
if ( a1->m_oneButton )
{
return 1;
}
else if ( a1->m_modeB && (a1->m_snap || !a1->m_swiping) )
{
v8.x = sub_1000229B8(&v6, v3);
GJUINode::updateRangePos(a1, v8);
return 5;
}
else
{
v7.x = sub_1000229B8(&v6, v3);
return GJUINode::activeTouchTest(a1, v7);
}
}
return result;
}