//
// cocos2d::CCDictionary::allKeysForObject from 0x1002f8830 to 0x1002f8954 (292 bytes)
//
// 1 xrefs:
// > cocos2d::CCTextureCache::removeTexture @ 0x1006c1ed5
//
// 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 12:28:29 +0000
//
__int64 __fastcall cocos2d::CCDictionary::allKeysForObject(__int64 a1, __int64 a2)
{
__int64 v2; // rax
__int64 v3; // rbx
int v4; // eax
__int64 v5; // r12
__int64 v6; // r13
void *v7; // r15
_QWORD *v9; // r13
_QWORD *v10; // r12
_DWORD *v11; // r15
__int64 v12; // r13
v2 = *(_QWORD *)(a1 + 56);
if ( !v2 || *(int *)(*(_QWORD *)(v2 + 272) + 16LL) <= 0 )
return 0;
v3 = sub_1007FE900(a1);
v4 = *(_DWORD *)(a1 + 64);
if ( v4 == 2 )
{
v9 = *(_QWORD **)(a1 + 56);
if ( v9 )
{
do
{
v10 = (_QWORD *)v9[36];
if ( v9[33] == a2 )
{
v11 = operator new(0x40u);
v12 = v9[32];
cocos2d::CCObject::CCObject(v11);
*(_QWORD *)v11 = off_100ABB920;
v11[14] = v12;
sub_1007FEBF0(v3, v11);
cocos2d::CCObject::release(v11);
}
v9 = v10;
}
while ( v10 );
}
}
else if ( v4 == 1 )
{
v5 = *(_QWORD *)(a1 + 56);
if ( v5 )
{
do
{
v6 = *(_QWORD *)(v5 + 288);
if ( *(_QWORD *)(v5 + 264) == a2 )
{
v7 = operator new(0x50u);
sub_10088DDC0(v7, v5);
sub_1007FEBF0(v3, v7);
cocos2d::CCObject::release(v7);
}
v5 = v6;
}
while ( v6 );
}
}
return v3;
}