//
// GameToolbox::mergeDictsSkipConflict from 0x3cf398 to 0x3cf47a (226 bytes)
//
// 11 xrefs:
// > GameLevelManager::dataLoaded @ 0x4dd684
// > GameLevelManager::dataLoaded @ 0x4dd6b6
// > GameStatsManager::dataLoaded @ 0x529a04
// > GameStatsManager::dataLoaded @ 0x529a38
// > GameStatsManager::dataLoaded @ 0x529a6c
// > GameStatsManager::dataLoaded @ 0x529ad4
// > GameStatsManager::dataLoaded @ 0x529bea
// > GameStatsManager::dataLoaded @ 0x529c1c
// > GameStatsManager::dataLoaded @ 0x529c4e
// > GameStatsManager::dataLoaded @ 0x529c80
// > GameStatsManager::dataLoaded @ 0x529cb2
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:46:39 +0000
//
int __fastcall GameToolbox::mergeDictsSkipConflict(int this, cocos2d::CCDictionary *a2, cocos2d::CCDictionary *a3)
{
int v3; // r9
int v4; // r5
int v6; // r7
size_t v7; // r0
cocos2d::CCObject *v8; // r11
size_t v9; // r0
size_t v10; // r0
int v11; // r3
int v12; // [sp+4h] [bp-18h]
int v13; // [sp+8h] [bp-14h] BYREF
int v14; // [sp+Ch] [bp-10h]
int v15; // [sp+10h] [bp-Ch]
v3 = this;
v4 = *((_DWORD *)a2 + 13);
if ( v4 )
v6 = *(_DWORD *)(v4 + 272);
else
v6 = 0;
while ( v4 )
{
v13 = 0;
v14 = 0;
v15 = 0;
v7 = strlen((const char *)v4);
std::string::__init(&v13, (const void *)v4, v7);
v8 = (cocos2d::CCObject *)cocos2d::CCDictionary::objectForKey(a2, &v13);
this = std::string::~string((int)&v13);
if ( v8 )
{
v13 = 0;
v14 = 0;
v15 = 0;
v9 = strlen((const char *)v4);
std::string::__init(&v13, (const void *)v4, v9);
v12 = cocos2d::CCDictionary::objectForKey(v3, &v13);
this = std::string::~string((int)&v13);
if ( !v12 )
{
v13 = 0;
v14 = 0;
v15 = 0;
v10 = strlen((const char *)v4);
std::string::__init(&v13, (const void *)v4, v10);
cocos2d::CCDictionary::setObject(v3, v8);
this = std::string::~string((int)&v13);
}
}
if ( v6 )
v11 = *(_DWORD *)(v6 + 272);
else
v11 = 0;
v4 = v6;
v6 = v11;
}
return this;
}