//
// CreateGuidelinesLayer::ccTouchBegan from 0x3f791c to 0x3f798a (110 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'CreateGuidelinesLayer::ccTouchBegan @ 0x3f7998
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:47:18 +0000
//
int __fastcall CreateGuidelinesLayer::ccTouchBegan(int a1, int a2, int a3)
{
int v4; // r0
void (__fastcall *v5)(int, _DWORD *); // r2
_DWORD v7[3]; // [sp+0h] [bp-Ch] BYREF
v7[0] = a1;
v7[1] = a2;
v7[2] = a3;
if ( *(_BYTE *)(a1 + 552) && *(int *)(a1 + 556) <= 1000 )
{
(*(void (__fastcall **)(int))(*(_DWORD *)a1 + 688))(a1);
v4 = *(_DWORD *)(a1 + 544);
v5 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v4 + 480);
LOWORD(v7[0]) = -1;
BYTE2(v7[0]) = 0;
v5(v4, v7);
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 544) + 80))(*(_DWORD *)(a1 + 544), 1063675494);
++*(_DWORD *)(a1 + 556);
}
return 1;
}