//
// cocos2d::CCDictionary::allKeys from 0x180009910 to 0x180009a55 (325 bytes)
//
// 4 xrefs:
// > cocos2d::CCDictionary::randomObject @ 0x18000a9f2
// > DS_Dictionary::setDictForKey @ 0x18001ee51
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b7c84
//
// This function is hookable on this platform (idp: pc, 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:21:19 +0000
//
// Hidden C++ exception states: #wind=2
struct cocos2d::CCArray *__fastcall cocos2d::CCDictionary::allKeys(cocos2d::CCDictionary *this)
{
__int64 v2; // rax
size_t v3; // rcx
cocos2d::CCArray *v4; // rbp
int v5; // eax
__int64 v6; // rbx
__int64 i; // rdi
cocos2d::CCString *v8; // rax
struct cocos2d::CCObject *v9; // rbx
__int64 v10; // rbx
__int64 j; // rsi
cocos2d::CCObject *v12; // rax
struct cocos2d::CCObject *v13; // rdi
int v14; // ebx
v2 = *((_QWORD *)this + 7);
if ( !v2 )
return cocos2d::CCArray::create();
v3 = *(unsigned int *)(*(_QWORD *)(v2 + 272) + 16LL);
if ( (int)v3 <= 0 )
return cocos2d::CCArray::create();
v4 = cocos2d::CCArray::createWithCapacity(v3);
v5 = *((_DWORD *)this + 16);
if ( v5 == 1 )
{
v6 = *((_QWORD *)this + 7);
if ( v6 )
{
for ( i = *(_QWORD *)(v6 + 288); ; i = *(_QWORD *)(i + 288) )
{
v8 = (cocos2d::CCString *)sub_1800E4AC0(0x58u);
v9 = v8 ? (struct cocos2d::CCObject *)cocos2d::CCString::CCString(v8, (const char *)v6) : nullptr;
cocos2d::CCArray::addObject(v4, v9);
if ( v9 )
cocos2d::CCObject::release(v9);
v6 = i;
if ( !i )
break;
}
}
}
else if ( v5 == 2 )
{
v10 = *((_QWORD *)this + 7);
if ( v10 )
{
for ( j = *(_QWORD *)(v10 + 288); ; j = *(_QWORD *)(j + 288) )
{
v12 = (cocos2d::CCObject *)sub_1800E4AC0(0x40u);
v13 = v12;
if ( v12 )
{
v14 = *(_DWORD *)(v10 + 256);
cocos2d::CCObject::CCObject(v12);
*(_QWORD *)v13 = &cocos2d::CCInteger::`vftable';
*((_DWORD *)v13 + 14) = v14;
}
else
{
v13 = nullptr;
}
cocos2d::CCArray::addObject(v4, v13);
if ( v13 )
cocos2d::CCObject::release(v13);
v10 = j;
if ( !j )
break;
}
}
}
return v4;
}