//
// CreateGuidelinesLayer::ccTouchBegan from 0x140134ce0 to 0x140134d58 (120 bytes)
//
// 3 xrefs:
// > ??> @ 0x140736630
// > ??> @ 0x140736b58
// > ??> @ 0x140917084
//
// 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:27:04 +0000
//
char __fastcall CreateGuidelinesLayer::ccTouchBegan(__int64 a1)
{
_BYTE *v2; // rcx
void (__fastcall ***v3)(_QWORD, __int16 *); // rcx
__int16 v5; // [rsp+30h] [rbp+8h] BYREF
char v6; // [rsp+32h] [rbp+Ah]
v2 = (_BYTE *)(a1 - 320);
if ( v2[724] && *(int *)(a1 + 408) <= 1000 )
{
(*(void (__fastcall **)(_BYTE *))(*(_QWORD *)v2 + 1096LL))(v2);
v3 = (void (__fastcall ***)(_QWORD, __int16 *))(*(_QWORD *)(a1 + 392) + 320LL);
v5 = -1;
v6 = 0;
(**v3)(v3, &v5);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 392) + 160LL))(*(_QWORD *)(a1 + 392));
++*(_DWORD *)(a1 + 408);
}
return 1;
}