//
// GJKeybindManager::dataLoaded from 0x10018da48 to 0x10018db1c (212 bytes)
//
// 1 xrefs:
// > GameManager::dataLoaded @ 0x1003b8f44
//
// 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 10:59:53 +0000
//
void __fastcall GJKeybindManager::dataLoaded(__int64 a1, __int64 a2)
{
int v4; // w0
int v5; // w20
std::string::size_type size; // x8
int v7; // [xsp+4h] [xbp-3Ch] BYREF
std::string __p; // [xsp+8h] [xbp-38h] BYREF
if ( a2 )
{
DS_Dictionary::getIntegerForKey(a2, "GJKB_Version");
if ( v4 >= 1 )
{
v5 = v4;
DS_Dictionary::getStringForKey(&__p, a2, "GJKB_Binds");
size = HIBYTE(__p.__r_.__value_.__r.__words[2]);
if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL )
size = __p.__r_.__value_.__l.__size_;
if ( size )
{
v7 = 0;
GJKeybindManager::parseBindsBlob(a1, &__p, 1, &v7, nullptr);
if ( v7 )
GJKeybindManager::applyNewDefaults(a1, v5);
else
GJKeybindManager::loadDefaults(a1);
}
else
{
GJKeybindManager::loadDefaults(a1);
}
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
}
}
}