//
// GJKeybindManager::actionsForKey from 0xc0a06c to 0xc0a1ec (384 bytes)
//
// 2 xrefs:
// > ??> @ 0x6d2a0
// > ??> @ 0x14e3a30
//
// This function is hookable on this platform (idp: arm, 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 13:03:53 +0000
//
_QWORD *__usercall GJKeybindManager::actionsForKey@(
__int64 a1@,
unsigned __int16 a2@,
unsigned __int8 a3@,
unsigned __int8 a4@,
unsigned __int8 a5@,
_QWORD *a6@)
{
__int64 v11; // x4
__int64 *v13; // x0
__int64 *v14; // x19
__int64 *v15; // x21
int v16; // w22
unsigned int *v17; // x0
__int64 *v18; // x0
__int64 *v20; // x1
__int64 *v21; // x1
int v22; // [xsp+40h] [xbp+40h] BYREF
unsigned int v23; // [xsp+44h] [xbp+44h] BYREF
__int64 v24; // [xsp+48h] [xbp+48h]
v11 = _stack_chk_guard;
a6[1] = 0;
a6[2] = 0;
*a6 = 0;
v24 = v11;
v22 = GJKeybindManager::encodeChord(a2, a3, a4, a5);
v13 = std::__hash_table>,std::__unordered_map_hasher>,std::hash,true>,std::__unordered_map_equal>,std::equal_to,true>,std::allocator>>>::find(
(_QWORD *)(a1 + 56),
&v22);
if ( v13 )
{
v14 = (__int64 *)v13[3];
v15 = v13 + 4;
v16 = 0;
LABEL_3:
if ( v15 == v14 )
return a6;
do
{
v23 = *((_DWORD *)v14 + 7);
if ( (unsigned __int8)GJKeybindManager::isExclusive((GJKeybindManager *)v23) )
{
if ( v16 )
goto LABEL_11;
v16 = 1;
}
v17 = (unsigned int *)a6[1];
if ( v17 == (unsigned int *)a6[2] )
{
std::vector::__push_back_slow_path((__int64)a6, &v23);
}
else
{
if ( v17 )
{
*v17 = v23;
v17 = (unsigned int *)a6[1];
}
a6[1] = v17 + 1;
}
LABEL_11:
v18 = (__int64 *)v14[1];
if ( !v18 )
{
do
{
v20 = v14;
v14 = (__int64 *)v14[2];
if ( v20 == (__int64 *)*v14 )
break;
v21 = v14;
v14 = (__int64 *)v14[2];
}
while ( v21 != (__int64 *)*v14 );
goto LABEL_3;
}
do
{
v14 = v18;
v18 = (__int64 *)*v18;
}
while ( v18 );
}
while ( v15 != v14 );
}
return a6;
}