//
// cocos2d::CCTouchDispatcher::touchesBegan from 0x1800b7370 to 0x1800b7446 (214 bytes)
//
// 3 xrefs:
// > ??> @ 0x18010cc00
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c2a18
//
// 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:22:22 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall cocos2d::CCTouchDispatcher::touchesBegan(
cocos2d::CCTouchDispatcher *this,
struct cocos2d::CCSet *a2,
struct cocos2d::CCEvent *a3)
{
struct cocos2d::CCObject *v6; // rsi
int v7; // [rsp+40h] [rbp+8h] BYREF
++*((_DWORD *)this + 17);
if ( a2 )
{
v6 = cocos2d::CCSet::anyObject(a2);
if ( v6 )
{
if ( dword_1801B3B60 > *(_DWORD *)(*((_QWORD *)NtCurrentTeb()->ThreadLocalStoragePointer + (unsigned int)TlsIndex)
+ 4LL) )
{
sub_1800E4D30(&dword_1801B3B60);
if ( dword_1801B3B60 == -1 )
{
cocos2d::cc_timeval::operator=(dword_1801B3B58, dword_1801B3B50);
sub_1800E4CC4(&dword_1801B3B60);
}
}
cocos2d::CCTouch::getLocation((__int64)v6, (__int64)&v7);
cocos2d::CCSize::operator=(dword_1801B3B58, &v7);
}
}
if ( *((_BYTE *)this + 49) )
cocos2d::CCTouchDispatcher::touches((cocos2d::CCTouchDispatcher *)((char *)this - 56), a2, a3, 0);
}