//
// cocos2d::CCDictionary::copyWithZone from 0x1004a6798 to 0x1004a6890 (248 bytes)
//
// 1 xrefs:
// > ??> @ 0x10097e8f0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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:06:05 +0000
//
_QWORD *__fastcall cocos2d::CCDictionary::copyWithZone(__int64 a1)
{
_QWORD *v2; // x19
int v3; // w8
__int64 v4; // x21
__int64 v5; // x22
_DWORD *v6; // x20
__int64 v7; // x22
__int64 v8; // x21
_DWORD *v9; // x20
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v12; // [xsp+1Fh] [xbp-21h]
v2 = operator new(0x48u);
cocos2d::CCObject::CCObject((__int64)v2);
*v2 = off_10097E8F0;
v2[7] = 0;
*((_DWORD *)v2 + 16) = 0;
v3 = *(_DWORD *)(a1 + 64);
if ( v3 == 1 )
{
v7 = *(_QWORD *)(a1 + 56);
while ( v7 )
{
v8 = v7;
v7 = *(_QWORD *)(v7 + 288);
v9 = (_DWORD *)sub_10008EA20(*(__int64 (__fastcall ****)(_QWORD, _QWORD))(v8 + 264));
sub_100009900(__p, (char *)v8);
cocos2d::CCDictionary::setObject((__int64)v2, (__int64)v9, (__int64)__p);
if ( v12 < 0 )
operator delete(__p[0]);
cocos2d::CCObject::release(v9);
}
}
else if ( v3 == 2 )
{
v4 = *(_QWORD *)(a1 + 56);
if ( v4 )
{
do
{
v5 = *(_QWORD *)(v4 + 288);
v6 = (_DWORD *)sub_10008EA20(*(__int64 (__fastcall ****)(_QWORD, _QWORD))(v4 + 264));
cocos2d::CCDictionary::setObject_1((__int64)v2, (__int64)v6, *(_QWORD *)(v4 + 256));
cocos2d::CCObject::release(v6);
v4 = v5;
}
while ( v5 );
}
}
return v2;
}