//
// cocos2d::CCDictionary::copyWithZone from 0x7c7d48 to 0x7c7e22 (218 bytes)
//
// 0 xrefs:
//
// 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 12:00:26 +0000
//
cocos2d::CCDictionary *__fastcall cocos2d::CCDictionary::copyWithZone(
cocos2d::CCDictionary *this,
cocos2d::CCZone *a2,
int a3,
int a4)
{
cocos2d::CCDictionary *v5; // r7
int v6; // r3
int v7; // r4
int v8; // r5
cocos2d::CCObject *v9; // r8
int v10; // r3
int v12; // r4
int v13; // r5
cocos2d::CCObject *v14; // r0
cocos2d::CCObject *v15; // r10
size_t v16; // r0
int v17; // r3
cocos2d::CCDictionary *v18; // [sp+0h] [bp-10h] BYREF
cocos2d::CCZone *v19; // [sp+4h] [bp-Ch]
int v20; // [sp+8h] [bp-8h]
int v21; // [sp+Ch] [bp-4h]
v18 = this;
v19 = a2;
v20 = a3;
v21 = a4;
v5 = (cocos2d::CCDictionary *)operator new(0x3Cu);
cocos2d::CCDictionary::CCDictionary(v5);
v6 = *((_DWORD *)this + 14);
if ( v6 == 2 )
{
v7 = *((_DWORD *)this + 13);
if ( v7 )
v8 = *(_DWORD *)(v7 + 272);
else
v8 = 0;
while ( v7 )
{
v9 = (cocos2d::CCObject *)cocos2d::CCObject::copy(*(cocos2d::CCObject **)(v7 + 260));
cocos2d::CCDictionary::setObject(v5, v9, *(_DWORD *)(v7 + 256));
cocos2d::CCObject::release(v9);
if ( v8 )
v10 = *(_DWORD *)(v8 + 272);
else
v10 = 0;
v7 = v8;
v8 = v10;
}
}
else if ( v6 == 1 )
{
v12 = *((_DWORD *)this + 13);
if ( v12 )
v13 = *(_DWORD *)(v12 + 272);
else
v13 = 0;
while ( v12 )
{
v14 = (cocos2d::CCObject *)cocos2d::CCObject::copy(*(cocos2d::CCObject **)(v12 + 260));
v18 = nullptr;
v19 = nullptr;
v20 = 0;
v15 = v14;
v16 = strlen((const char *)v12);
std::string::__init((int *)&v18, (const void *)v12, v16);
cocos2d::CCDictionary::setObject((int)v5, v15, (int)&v18);
std::string::~string((int)&v18);
cocos2d::CCObject::release(v15);
if ( v13 )
v17 = *(_DWORD *)(v13 + 272);
else
v17 = 0;
v12 = v13;
v13 = v17;
}
}
return v5;
}