//
// CCTextInputMenu::ccTouchBegan from 0x14004db60 to 0x14004dbcd (109 bytes)
//
// 2 xrefs:
// > ??> @ 0x14070c300
// > ??> @ 0x14091019c
//
// 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:25:33 +0000
//
char __fastcall CCTextInputMenu::ccTouchBegan(__int64 a1, __int64 a2)
{
const struct cocos2d::CCPoint *Location; // rax
__int64 v4; // rdx
__int64 v6; // rax
cocos2d::CCObject *v7; // rbx
char v8; // [rsp+30h] [rbp+8h] BYREF
Location = (const struct cocos2d::CCPoint *)cocos2d::CCTouch::getLocation(a2, &v8);
if ( cocos2d::CCRect::containsPoint((cocos2d::CCRect *)(a1 + 96), Location) )
return 1;
v6 = *(_QWORD *)(a1 + 88);
v7 = *(cocos2d::CCObject **)(v6 + 696);
if ( v7 )
{
*(_QWORD *)(v6 + 696) = 0;
LOBYTE(v4) = 1;
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v7 + 520LL))(v7, v4);
cocos2d::CCObject::release(v7);
}
return 0;
}