//
// GJKeybindManager::firstSetup from 0xc0bd24 to 0xc0bdc8 (164 bytes)
//
// 3 xrefs:
// > GJKeybindManager::loadDefaults @ 0xc0c640
// > GJKeybindManager::applyNewDefaults @ 0xc0e710
// > ??> @ 0x4b328
//
// 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:54 +0000
//
__int64 __fastcall GJKeybindManager::firstSetup(GJKeybindManager *this)
{
__int64 result; // x0
__int64 v3; // x2
__int64 v4; // x0
__int64 v5; // x2
GJKeybindManager::clearMovementOverride(this);
if ( !*((_QWORD *)this + 10) )
{
result = *((_QWORD *)this + 15);
if ( !result )
return result;
goto LABEL_7;
}
sub_C0A648(*((_QWORD **)this + 9));
*((_QWORD *)this + 9) = 0;
v3 = *((_QWORD *)this + 8);
v4 = 0;
if ( v3 )
{
do
*(_QWORD *)(*((_QWORD *)this + 7) + 8 * v4++) = 0;
while ( v4 != v3 );
}
result = *((_QWORD *)this + 15);
*((_QWORD *)this + 10) = 0;
if ( result )
{
LABEL_7:
sub_C0A648(*((_QWORD **)this + 14));
*((_QWORD *)this + 14) = 0;
v5 = *((_QWORD *)this + 13);
result = 0;
if ( v5 )
{
do
*(_QWORD *)(*((_QWORD *)this + 12) + 8 * result++) = 0;
while ( result != v5 );
}
*((_QWORD *)this + 15) = 0;
}
return result;
}