//
// KeybindingsManager::dataLoaded from 0x1004e5780 to 0x1004e5825 (165 bytes)
//
// 1 xrefs:
// > GameManager::dataLoaded @ 0x100389965
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall KeybindingsManager::dataLoaded(KeybindingsManager *a1, DS_Dictionary *a2)
{
cocos2d::CCDictionary *DictForKey; // rax
cocos2d::CCDictionary *m_keyToCommandDict; // rdi
cocos2d::CCDictionary *v5; // r15
cocos2d::CCDictionary *v6; // rax
cocos2d::CCDictionary *m_commandToKeyDict; // rdi
cocos2d::CCDictionary *v8; // r14
DictForKey = DS_Dictionary::getDictForKey(a2, "KBM_001", 0);
m_keyToCommandDict = a1->m_keyToCommandDict;
if ( m_keyToCommandDict != DictForKey )
{
v5 = DictForKey;
if ( DictForKey )
{
cocos2d::CCObject::retain(DictForKey);
m_keyToCommandDict = a1->m_keyToCommandDict;
}
if ( m_keyToCommandDict )
cocos2d::CCObject::release(m_keyToCommandDict);
a1->m_keyToCommandDict = v5;
}
v6 = DS_Dictionary::getDictForKey(a2, "KBM_002", 0);
m_commandToKeyDict = a1->m_commandToKeyDict;
if ( m_commandToKeyDict != v6 )
{
v8 = v6;
if ( v6 )
{
cocos2d::CCObject::retain(v6);
m_commandToKeyDict = a1->m_commandToKeyDict;
}
if ( m_commandToKeyDict )
cocos2d::CCObject::release(m_commandToKeyDict);
a1->m_commandToKeyDict = v8;
}
}