//
// GJKeybindManager::globalChordsForAction from 0x714930 to 0x7149c0 (144 bytes)
//
// 1 xrefs:
// > LevelControlConfig::bindGlobalBinds @ 0x7989d4
//
// 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:46 +0000
//
GJKeybindManager *__fastcall GJKeybindManager::globalChordsForAction(GJKeybindManager *this, int a2, unsigned int a3)
{
int v4; // r3
_DWORD *v6; // r0
_DWORD *v7; // r7
_DWORD *v8; // r6
int v9; // r4
_DWORD *v10; // r0
unsigned int v11; // r4
int v12; // r0
_DWORD *v13; // r3
_DWORD *v14; // r0
unsigned int v16[2]; // [sp+4h] [bp-8h] BYREF
v16[0] = a2;
v16[1] = a3;
v4 = *(unsigned __int8 *)(a2 + 116);
v16[0] = a3;
if ( !v4
|| (v6 = std::__tree>,std::__map_value_compare>,std::less,true>,std::allocator>>>::find(
a2 + 92,
v16),
v4 = a2 + 96,
v6 == (_DWORD *)(a2 + 96)) )
{
GJKeybindManager::chordsForAction(this, a2, v16[0], v4);
}
else
{
v7 = (_DWORD *)v6[5];
v8 = v6 + 6;
v9 = 0;
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
v10 = v7;
*((_DWORD *)this + 2) = 0;
while ( v10 != v8 )
{
++v9;
v10 = std::__tree_next *>(v10);
}
if ( v9 )
{
if ( v9 >= 0x40000000 )
sub_38A450();
v11 = 4 * v9;
v12 = operator new(v11);
*((_DWORD *)this + 1) = v12;
*(_DWORD *)this = v12;
*((_DWORD *)this + 2) = v11 + v12;
while ( v7 != v8 )
{
v13 = *((_DWORD **)this + 1);
if ( v13 )
*v13 = v7[4];
v14 = std::__tree_next *>(v7);
*((_DWORD *)this + 1) += 4;
v7 = v14;
}
}
}
return this;
}