//
// cocos2d::CCLayer::ccTouchBegan from 0x180051250 to 0x18005129e (78 bytes)
//
// 7 xrefs:
// > ??> @ 0x1800f3458
// > ??> @ 0x1800f3938
// > ??> @ 0x1800f3ea8
// > ??> @ 0x1800f44a0
// > ??> @ 0x1800f4a10
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bc028
//
// 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:21:45 +0000
//
bool __fastcall cocos2d::CCLayer::ccTouchBegan(
cocos2d::CCLayer *this,
struct cocos2d::CCTouch *a2,
struct cocos2d::CCEvent *a3)
{
char *v3; // rbx
struct cocos2d::CCScriptEngineManager *v5; // rax
v3 = (char *)this - 320;
if ( !*((_DWORD *)this - 5) )
return 1;
v5 = cocos2d::CCScriptEngineManager::sharedManager();
return (*(unsigned int (__fastcall **)(_QWORD, char *, _QWORD, struct cocos2d::CCTouch *))(**(_QWORD **)v5 + 112LL))(
*(_QWORD *)v5,
v3,
0,
a2) != 0;
}