//
// cocos2d::CCDictionary::allKeysForObject from 0x10030de10 to 0x10030df34 (292 bytes)
//
// 1 xrefs:
// > cocos2d::CCTextureCache::removeTexture @ 0x1005eee45
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
cocos2d::CCArray *__fastcall cocos2d::CCDictionary::allKeysForObject(cocos2d::CCDictionary *a1, cocos2d::CCObject *a2)
{
cocos2d::CCDictElement *m_pElements; // rax
cocos2d::CCArray *v3; // rbx
cocos2d::CCDictionary::CCDictType m_eDictType; // eax
cocos2d::CCDictElement *v5; // r12
cocos2d::CCDictElement *v6; // r13
cocos2d::CCObject *v7; // r15
cocos2d::CCDictElement *v9; // r13
cocos2d::CCDictElement *next; // r12
cocos2d::CCObject *v11; // r15
std::intptr_t m_iKey; // r13
m_pElements = a1->m_pElements;
if ( !m_pElements || (int)m_pElements->hh.tbl->num_items <= 0 )
return nullptr;
v3 = (cocos2d::CCArray *)sub_10071F9E0(a1, a2);
m_eDictType = a1->m_eDictType;
if ( m_eDictType == kCCDictInt )
{
v9 = a1->m_pElements;
if ( v9 )
{
do
{
next = (cocos2d::CCDictElement *)v9->hh.next;
if ( v9->m_pObject == a2 )
{
v11 = (cocos2d::CCObject *)operator new(0x40u);
m_iKey = v9->m_iKey;
cocos2d::CCObject::CCObject(v11);
v11->__vftable = (cocos2d::CCObject_vtbl *)off_1008B8348;
LODWORD(v11[1].__vftable) = m_iKey;
sub_10071FCD0(v3, v11);
cocos2d::CCObject::release(v11);
}
v9 = next;
}
while ( next );
}
}
else if ( m_eDictType == kCCDictStr )
{
v5 = a1->m_pElements;
if ( v5 )
{
do
{
v6 = (cocos2d::CCDictElement *)v5->hh.next;
if ( v5->m_pObject == a2 )
{
v7 = (cocos2d::CCObject *)operator new(0x50u);
sub_1007AAB20(v7, v5);
sub_10071FCD0(v3, v7);
cocos2d::CCObject::release(v7);
}
v5 = v6;
}
while ( v6 );
}
}
return v3;
}