//
// LevelControlConfig::bindGlobalBinds from 0x1004f15f4 to 0x1004f16b8 (196 bytes)
//
// 4 xrefs:
// > LevelBindingsLayer::init @ 0x1004eeffc
// > sub_1004EF28C @ 0x1004ef2c8
// > sub_1004F1728 @ 0x1004f18d0
// > sub_1004F1728 @ 0x1004f18dc
//
// 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 11:06:45 +0000
//
void __fastcall LevelControlConfig::bindGlobalBinds(__int64 a1, int a2)
{
__int64 i; // x24
__int64 v5; // x21
__int64 v6; // x0
_DWORD *v7; // x22
_DWORD *v8; // x26
__int64 v9; // x23
_DWORD *v10; // [xsp+8h] [xbp-58h] BYREF
_DWORD *v11; // [xsp+10h] [xbp-50h]
for ( i = 0; i != 24; i += 4 )
{
v5 = *(unsigned int *)((char *)&unk_10077007C + i);
v6 = GJKeybindManager::sharedState();
GJKeybindManager::globalChordsForAction(v6, v5, &v10);
v7 = v10;
v8 = v11;
if ( v10 != v11 )
{
do
{
v9 = (unsigned int)*v7;
if ( GJKeybindManager::isControllerChord(*v7) == a2 )
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 32LL))(a1, v9, v5);
++v7;
}
while ( v7 != v8 );
v7 = v10;
}
if ( v7 )
{
v11 = v7;
operator delete(v7);
}
}
}