//
// CreateGuidelinesLayer::ccTouchBegan from 0x14009b6f0 to 0x14009b768 (120 bytes)
//
// 3 xrefs:
// > ??> @ 0x1405424e0
// > ??> @ 0x1405429c8
// > ??> @ 0x1406c74c4
//
// 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
//
bool CreateGuidelinesLayer::ccTouchBegan(CreateGuidelinesLayer *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3)
{
void (__fastcall ***v4)(_QWORD, __int16 *); // rcx
__int16 v6; // [rsp+30h] [rbp+8h] BYREF
char v7; // [rsp+32h] [rbp+Ah]
if ( BYTE4(a1->m_pScriptTouchHandlerEntry) && SLODWORD(a1->m_pScriptKeypadHandlerEntry) <= 1000 )
{
(*(void (__fastcall **)(GLubyte *, cocos2d::CCTouch *, cocos2d::CCEvent *))(*(_QWORD *)&a1[-1]._displayedOpacity
+ 1064LL))(
&a1[-1]._displayedOpacity,
a2,
a3);
v4 = (void (__fastcall ***)(_QWORD, __int16 *))(*(_QWORD *)&a1->m_bTouchEnabled + 320LL);
v6 = -1;
v7 = 0;
(**v4)(v4, &v6);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&a1->m_bTouchEnabled + 160LL))(*(_QWORD *)&a1->m_bTouchEnabled);
++LODWORD(a1->m_pScriptKeypadHandlerEntry);
}
return 1;
}