//
// ControlMenuTouch::began from 0x6eb5fc to 0x6eb642 (70 bytes)
//
// 3 xrefs:
// > GJRotationControl::ccTouchBegan @ 0x6eb83e
// > GJScaleControl::ccTouchBegan @ 0x6ebcc4
// > GJTransformControl::ccTouchBegan @ 0x6ece80
//
// 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:57:31 +0000
//
int __fastcall ControlMenuTouch::began(_DWORD *a1, int a2, int a3)
{
unsigned int v6; // r4
int result; // r0
v6 = 0;
a1[3] = 0;
while ( v6 < (a1[1] - *a1) >> 2 )
{
result = (*(int (__fastcall **)(_DWORD, int, int))(**(_DWORD **)(*a1 + 4 * v6) + 448))(
*(_DWORD *)(*a1 + 4 * v6),
a2,
a3);
if ( result )
{
a1[3] = *(_DWORD *)(*a1 + 4 * v6);
return result;
}
++v6;
}
return 0;
}