//
// GJKeybindManager::dataLoaded from 0xc0e8c8 to 0xc0e9d4 (268 bytes)
//
// 2 xrefs:
// > GameManager::dataLoaded @ 0x727a24
// > ??> @ 0x5cdb8
//
// 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:56 +0000
//
__int64 __fastcall GJKeybindManager::dataLoaded(GJKeybindManager *this, DS_Dictionary *a2)
{
int IntegerForKey; // w22
__int64 v5; // x1
int v7; // [xsp+4Ch] [xbp+4Ch] BYREF
__int64 v8[3]; // [xsp+50h] [xbp+50h] BYREF
if ( a2 )
{
IntegerForKey = DS_Dictionary::getIntegerForKey(a2, "GJKB_Version");
if ( IntegerForKey > 0 )
{
DS_Dictionary::getStringForKey(v8, a2, "GJKB_Binds");
v5 = LOBYTE(v8[0]) >> 1;
if ( (v8[0] & 1) != 0 )
v5 = v8[1];
if ( v5 && (v7 = 0, GJKeybindManager::parseBindsBlob(this, (__int64)v8, 1u, &v7, nullptr), v7) )
GJKeybindManager::applyNewDefaults(this, IntegerForKey);
else
GJKeybindManager::loadDefaults(this);
if ( (v8[0] & 1) != 0 )
operator delete((void *)v8[2]);
}
}
return _stack_chk_guard;
}