//
// KeybindingsManager::dataLoaded from 0x46b59c to 0x46b5f8 (92 bytes)
//
// 1 xrefs:
// > GameManager::dataLoaded @ 0x328996
//
// 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 KeybindingsManager::dataLoaded(KeybindingsManager *a1, DS_Dictionary *a2)
{
cocos2d::CCDictionary *DictForKey; // r0
cocos2d::CCDictionary *v5; // r5
cocos2d::CCDictionary *m_keyToCommandDict; // r0
cocos2d::CCDictionary *v7; // r0
cocos2d::CCDictionary *v8; // r5
cocos2d::CCDictionary *m_commandToKeyDict; // r0
DictForKey = DS_Dictionary::getDictForKey(a2, "KBM_001", 0);
v5 = DictForKey;
if ( a1->m_keyToCommandDict != DictForKey )
{
if ( DictForKey )
cocos2d::CCObject::retain(DictForKey);
m_keyToCommandDict = a1->m_keyToCommandDict;
if ( m_keyToCommandDict )
cocos2d::CCObject::release(m_keyToCommandDict);
a1->m_keyToCommandDict = v5;
}
v7 = DS_Dictionary::getDictForKey(a2, "KBM_002", 0);
v8 = v7;
if ( a1->m_commandToKeyDict != v7 )
{
if ( v7 )
cocos2d::CCObject::retain(v7);
m_commandToKeyDict = a1->m_commandToKeyDict;
if ( m_commandToKeyDict )
cocos2d::CCObject::release(m_commandToKeyDict);
a1->m_commandToKeyDict = v8;
}
}