//
// GJKeybindManager::firstSetup from 0x100617fd0 to 0x1006180b1 (225 bytes)
//
// 2 xrefs:
// > GJKeybindManager::loadDefaults @ 0x100614109
// > GJKeybindManager::applyNewDefaults @ 0x100618d74
//
// This function is hookable on this platform (idp: pc, 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 12:34:37 +0000
//
void __fastcall GJKeybindManager::firstSetup(_QWORD *a1)
{
_QWORD **v1; // r14
_QWORD *v2; // r15
__int64 v3; // rsi
_QWORD **v4; // r14
_QWORD *v5; // r15
__int64 v6; // rsi
GJKeybindManager::clearMovementOverride((__int64)a1);
if ( a1[10] )
{
v1 = (_QWORD **)a1[9];
if ( v1 )
{
do
{
v2 = *v1;
sub_10001ADF0((__int64)(v1 + 3), v1[4]);
operator delete(v1);
v1 = (_QWORD **)v2;
}
while ( v2 );
}
a1[9] = 0;
v3 = a1[8];
if ( v3 )
__bzero(a1[7], 8 * v3);
a1[10] = 0;
}
if ( a1[15] )
{
v4 = (_QWORD **)a1[14];
if ( v4 )
{
do
{
v5 = *v4;
sub_10001ADF0((__int64)(v4 + 3), v4[4]);
operator delete(v4);
v4 = (_QWORD **)v5;
}
while ( v5 );
}
a1[14] = 0;
v6 = a1[13];
if ( v6 )
__bzero(a1[12], 8 * v6);
a1[15] = 0;
}
}