//
// GameToolbox::mergeDictsSkipConflict from 0x10004496c to 0x100044a5c (240 bytes)
//
// 11 xrefs:
// > GameLevelManager::dataLoaded @ 0x10009bb5c
// > GameLevelManager::dataLoaded @ 0x10009bb8c
// > GameStatsManager::dataLoaded @ 0x10033f6e4
// > GameStatsManager::dataLoaded @ 0x10033f714
// > GameStatsManager::dataLoaded @ 0x10033f744
// > GameStatsManager::dataLoaded @ 0x10033f774
// > GameStatsManager::dataLoaded @ 0x10033f958
// > GameStatsManager::dataLoaded @ 0x10033f988
// > GameStatsManager::dataLoaded @ 0x10033f9b8
// > GameStatsManager::dataLoaded @ 0x10033f9e8
// > GameStatsManager::dataLoaded @ 0x10033fa18
//
// 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 GameToolbox::mergeDictsSkipConflict(cocos2d::CCDictionary *a1, cocos2d::CCDictionary *a2)
{
cocos2d::CCDictElement *m_pElements; // x24
char *v5; // x21
__int64 v6; // x0
__int64 v7; // x22
__int64 v8; // x0
__int64 v9; // x23
void *__p[2]; // [xsp+8h] [xbp-48h] BYREF
char v11; // [xsp+1Fh] [xbp-31h]
m_pElements = a2->m_pElements;
if ( m_pElements )
{
while ( 1 )
{
v5 = (char *)m_pElements;
m_pElements = (cocos2d::CCDictElement *)m_pElements->hh.next;
sub_100009900(__p, v5);
v6 = cocos2d::CCDictionary::objectForKey_1(a2, __p);
v7 = v6;
if ( v11 < 0 )
{
operator delete(__p[0]);
if ( !v7 )
goto LABEL_11;
}
else if ( !v6 )
{
goto LABEL_11;
}
sub_100009900(__p, v5);
v8 = cocos2d::CCDictionary::objectForKey_1(a1, __p);
v9 = v8;
if ( v11 < 0 )
{
operator delete(__p[0]);
if ( !v9 )
goto LABEL_10;
LABEL_11:
if ( !m_pElements )
return;
}
else
{
if ( v8 )
goto LABEL_11;
LABEL_10:
sub_100009900(__p, v5);
cocos2d::CCDictionary::setObject_1(a1, v7, __p);
if ( (v11 & 0x80000000) == 0 )
goto LABEL_11;
operator delete(__p[0]);
if ( !m_pElements )
return;
}
}
}
}