//
// GJKeybindManager::globalChordsForAction from 0xc0a484 to 0xc0a600 (380 bytes)
//
// 2 xrefs:
// > LevelControlConfig::bindGlobalBinds @ 0xcf246c
// > ??> @ 0x4d2f0
//
// 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
//
__int64 *__usercall GJKeybindManager::globalChordsForAction@(
GJKeybindManager *this@,
int a2@,
__int64 *a3@)
{
__int64 *v5; // x0
__int64 *v6; // x22
__int64 *v7; // x20
__int64 v8; // x3
bool v9; // zf
__int64 *v10; // x0
__int64 *v11; // x1
__int64 v12; // x19
__int64 v13; // x0
_DWORD *v14; // x19
__int64 *v15; // x0
__int64 *v17; // x2
__int64 *v18; // x2
int v19; // [xsp+3Ch] [xbp+3Ch] BYREF
v19 = a2;
if ( !*((_BYTE *)this + 184)
|| (v5 = std::__tree>,std::__map_value_compare>,std::less,true>,std::allocator>>>::find(
(__int64)this + 136,
&v19),
v5 == (__int64 *)((char *)this + 144)) )
{
GJKeybindManager::chordsForAction(this, v19, a3);
return a3;
}
v6 = (__int64 *)v5[5];
v7 = v5 + 6;
*a3 = 0;
v8 = 0;
a3[1] = 0;
v9 = v6 == v5 + 6;
a3[2] = 0;
v10 = v6;
if ( v9 )
return a3;
do
{
v11 = (__int64 *)v10[1];
++v8;
if ( v11 )
{
do
{
v10 = v11;
v11 = (__int64 *)*v11;
}
while ( v11 );
}
else
{
do
{
v17 = v10;
v10 = (__int64 *)v10[2];
if ( v17 == (__int64 *)*v10 )
break;
v18 = v10;
v10 = (__int64 *)v10[2];
}
while ( v18 != (__int64 *)*v10 );
}
}
while ( v7 != v10 );
if ( v8 > 0x3FFFFFFFFFFFFFFFLL )
sub_62FD9C();
v12 = 4 * v8;
v13 = operator new(4 * v8);
a3[1] = v13;
a3[2] = v13 + v12;
v14 = (_DWORD *)v13;
*a3 = v13;
do
{
if ( v14 )
{
*v14 = *((_DWORD *)v6 + 7);
v14 = (_DWORD *)a3[1];
}
++v14;
v15 = std::__tree_next *>(v6);
a3[1] = (__int64)v14;
v6 = v15;
}
while ( v7 != v15 );
return a3;
}