//
// GJKeybindManager::applyNewDefaults from 0x716af4 to 0x716c1a (294 bytes)
//
// 2 xrefs:
// > GJKeybindManager::dataLoaded @ 0x716c8a
// > GJKeybindManager::applyImportBlob @ 0x716cda
//
// 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:48 +0000
//
int __fastcall GJKeybindManager::applyNewDefaults(int this, int a2)
{
GJKeybindManager *v2; // r7
unsigned int *v3; // r4
_DWORD *i; // r4
_DWORD *j; // r6
float k; // r4
unsigned int v7; // r5
unsigned int v8; // r11
int v9; // r12
_DWORD *v10; // r1
_DWORD *m; // r8
unsigned int v12; // r0
int v13; // r1
_DWORD *n; // r6
int v15; // [sp+14h] [bp-30h] BYREF
unsigned int v16; // [sp+18h] [bp-2Ch]
_DWORD *v17; // [sp+1Ch] [bp-28h]
float v18[5]; // [sp+28h] [bp-1Ch] BYREF
v2 = (GJKeybindManager *)this;
if ( a2 <= 1 )
{
v3 = (unsigned int *)(this + 72);
std::unordered_map>::unordered_map((float *)&v15, (unsigned int *)(this + 72));
GJKeybindManager::loadDefaults(v2);
std::unordered_map>::unordered_map(v18, v3);
GJKeybindManager::firstSetup(v2);
for ( i = v17; i; i = (_DWORD *)*i )
{
for ( j = (_DWORD *)i[3]; j != i + 4; j = std::__tree_next *>(j) )
GJKeybindManager::bindChord(v2, j[4], i[2]);
}
for ( k = v18[2]; k != 0.0; k = *(float *)LODWORD(k) )
{
v7 = *(_DWORD *)(LODWORD(k) + 8);
if ( v16 )
{
v8 = v16 - 1;
v9 = ((v16 - 1) & v16) != 0 ? v7 % v16 : v7 & v8;
v10 = *(_DWORD **)(v15 + 4 * v9);
if ( v10 )
{
for ( m = (_DWORD *)*v10; m; m = (_DWORD *)*m )
{
v12 = m[1];
v13 = ((v16 - 1) & v16) != 0 ? v12 % v16 : v8 & v12;
if ( v13 != v9 )
break;
if ( m[2] == v7 )
goto LABEL_27;
}
}
}
for ( n = *(_DWORD **)(LODWORD(k) + 12);
n != (_DWORD *)(LODWORD(k) + 16);
n = std::__tree_next *>(n) )
{
GJKeybindManager::bindChord(v2, n[4], *(_DWORD *)(LODWORD(k) + 8));
}
LABEL_27:
;
}
std::__hash_table>,std::__unordered_map_hasher>,std::hash,true>,std::__unordered_map_equal>,std::equal_to,true>,std::allocator>>>::~__hash_table((int)v18);
return std::__hash_table>,std::__unordered_map_hasher>,std::hash,true>,std::__unordered_map_equal>,std::equal_to,true>,std::allocator>>>::~__hash_table((int)&v15);
}
return this;
}