//
// GJUINode::touchTest from 0x140674170 to 0x140674274 (260 bytes)
//
// 2 xrefs:
// > UILayer::processUINodeTouch @ 0x14067368d
// > ??> @ 0x140932444
//
// This function is hookable on this platform (idp: pc, 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 11:35:55 +0000
//
__int64 __fastcall GJUINode::touchTest(__int64 a1, const struct cocos2d::CCPoint *a2)
{
__int64 v5; // rax
__int64 v6; // rbx
__int64 v7; // rax
__int64 v8; // rdx
__int64 v9; // rax
char v10; // [rsp+30h] [rbp+8h] BYREF
char v11; // [rsp+40h] [rbp+18h] BYREF
char v12; // [rsp+48h] [rbp+20h] BYREF
if ( !cocos2d::CCRect::containsPoint((cocos2d::CCRect *)(a1 + 336), a2) )
return 0;
if ( *(_BYTE *)(a1 + 386) )
return 1;
if ( *(_BYTE *)(a1 + 381) && (*(_BYTE *)(a1 + 382) || !*(_BYTE *)(a1 + 383)) )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v11, a2);
v6 = v5;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v12, 0.0, 40.0);
cocos2d::CCPoint::operator+(v6, &v10, v7);
(*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 320) + 184LL))(*(_QWORD *)(a1 + 320), &v10);
LOBYTE(v8) = 1;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 320) + 336LL))(*(_QWORD *)(a1 + 320), v8);
*(_BYTE *)(a1 + 383) = 1;
return 5;
}
else
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v10, a2);
return GJUINode::activeTouchTest(a1, v9);
}
}