//
// cocos2d::CCTextureCache::snapshotTextures from 0x5f4c1c to 0x5f4c9a (126 bytes)
//
// 0 xrefs:
//
// 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::CCDictionary *cocos2d::CCTextureCache::snapshotTextures(cocos2d::CCTextureCache *a1)
{
cocos2d::CCDictionary *v2; // r6
cocos2d::CCDictionary *m_pTextures; // r3
cocos2d::CCDictElement *m_pElements; // r1
cocos2d::CCDictElement *next; // r4
cocos2d::CCObject *m_pObject; // r9
cocos2d::CCDictElement *v8; // r3
const char *v9; // [sp+8h] [bp-Ch] BYREF
v2 = (cocos2d::CCDictionary *)operator new(0x3Cu);
cocos2d::CCDictionary::CCDictionary(v2);
m_pTextures = a1->m_pTextures;
if ( m_pTextures )
{
m_pElements = m_pTextures->m_pElements;
if ( m_pElements )
next = (cocos2d::CCDictElement *)m_pElements->hh.next;
else
next = nullptr;
while ( m_pElements )
{
m_pObject = m_pElements->m_pObject;
sub_776584((int)&v9, (char *)m_pElements);
cocos2d::CCDictionary::setObject((int)v2, m_pObject, &v9);
sub_774008(&v9);
if ( next )
v8 = (cocos2d::CCDictElement *)next->hh.next;
else
v8 = nullptr;
m_pElements = next;
next = v8;
}
}
cocos2d::CCObject::autorelease(v2);
return v2;
}