//
// GJKeybindManager::chordsForAction from 0xc0a1ec to 0xc0a338 (332 bytes)
//
// 5 xrefs:
// > GlobalKeybindSource::chordsForAction @ 0x994b68
// > GJKeybindManager::globalChordsForAction @ 0xc0a57c
// > GJKeybindManager::clearMovementOverride @ 0xc0bbc4
// > GJKeybindManager::applyMovementOverride @ 0xc0d5d0
// > ??> @ 0x103bb8
//
// 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::chordsForAction@(GJKeybindManager *this@, int a2@, _QWORD *a3@)
{
__int64 v4; // x2
__int64 *v5; // x0
__int64 *v6; // x19
__int64 *v7; // x21
_DWORD *v8; // x0
_DWORD *v9; // x2
int v10; // w1
__int64 *v11; // x0
__int64 *v13; // x1
__int64 *v14; // x1
int v15; // [xsp+4Ch] [xbp+4Ch] BYREF
int v16; // [xsp+54h] [xbp+54h] BYREF
__int64 v17; // [xsp+58h] [xbp+58h]
v15 = a2;
a3[1] = 0;
a3[2] = 0;
v4 = _stack_chk_guard;
*a3 = 0;
v17 = v4;
v5 = std::__hash_table>,std::__unordered_map_hasher>,std::hash,true>,std::__unordered_map_equal>,std::equal_to,true>,std::allocator>>>::find(
(_QWORD *)this + 12,
&v15);
if ( v5 )
{
v6 = (__int64 *)v5[3];
v7 = v5 + 4;
while ( v7 != v6 )
{
while ( 1 )
{
v8 = (_DWORD *)a3[1];
v9 = (_DWORD *)a3[2];
v10 = *((_DWORD *)v6 + 7);
v16 = v10;
if ( v8 == v9 )
{
std::vector::__push_back_slow_path((__int64)a3, &v16);
}
else
{
if ( v8 )
{
*v8 = v10;
v8 = (_DWORD *)a3[1];
}
a3[1] = v8 + 1;
}
v11 = (__int64 *)v6[1];
if ( !v11 )
break;
do
{
v6 = v11;
v11 = (__int64 *)*v11;
}
while ( v11 );
if ( v7 == v6 )
return a3;
}
do
{
v13 = v6;
v6 = (__int64 *)v6[2];
if ( v13 == (__int64 *)*v6 )
break;
v14 = v6;
v6 = (__int64 *)v6[2];
}
while ( v14 != (__int64 *)*v6 );
}
}
return a3;
}