//
// GJLevelList::dataLoaded from 0x140177ce0 to 0x140177ff5 (789 bytes)
//
// 2 xrefs:
// > GJObjectDecoder::getDecodedObject @ 0x1402844a3
// > ??> @ 0x1406cb004
//
// 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
//
void GJLevelList::dataLoaded(GJLevelList *a1, DS_Dictionary *a2)
{
int v4; // eax
int v5; // eax
__int64 StringForKey; // rax
__int64 v7; // rax
__int64 v8; // rax
int v9; // eax
int v10; // eax
int v11; // eax
int v12; // eax
GJLevelType v13; // eax
int v14; // eax
int v15; // eax
int v16; // eax
int v17; // eax
int v18; // eax
int v19; // eax
int v20; // eax
int v21; // eax
struct cocos2d::CCDictionary *DictForKey; // rax
cocos2d::CCDictionary *v23; // rdi
cocos2d::CCDictionary *m_levelsDict; // rcx
void **v25; // rax
_BYTE v26[32]; // [rsp+28h] [rbp-30h] BYREF
DS_Dictionary::getIntegerForKey(a2, "k1");
a1->m_listID = v4;
DS_Dictionary::getIntegerForKey(a2, "k84");
a1->m_folder = v5;
StringForKey = DS_Dictionary::getStringForKey(a2, v26, "k2");
sub_140051590((__int64)&a1->m_listName, StringForKey);
sub_14003A830((__int64)v26);
v7 = DS_Dictionary::getStringForKey(a2, v26, "k3");
sub_140051590((__int64)&a1->m_listDesc, v7);
sub_14003A830((__int64)v26);
v8 = DS_Dictionary::getStringForKey(a2, v26, "k5");
sub_140051590((__int64)&a1->m_creatorName, v8);
sub_14003A830((__int64)v26);
DS_Dictionary::getIntegerForKey(a2, "k60");
a1->m_accountID = v9;
DS_Dictionary::getIntegerForKey(a2, "k7");
a1->m_difficulty = v10;
DS_Dictionary::getIntegerForKey(a2, "k11");
a1->m_downloads = v11;
a1->m_uploaded = DS_Dictionary::getBoolForKey(a2, "k15");
DS_Dictionary::getIntegerForKey(a2, "k22");
a1->m_likes = v12;
DS_Dictionary::getIntegerForKey(a2, "k21");
a1->m_listType = v13;
DS_Dictionary::getIntegerForKey(a2, "k16");
a1->m_listVersion = v14;
a1->m_unlisted = DS_Dictionary::getBoolForKey(a2, "k79");
a1->m_friendsOnly = DS_Dictionary::getBoolForKey(a2, "k94");
DS_Dictionary::getIntegerForKey(a2, "k46");
a1->m_listRevision = v15;
a1->m_modified = DS_Dictionary::getBoolForKey(a2, "k47");
DS_Dictionary::getIntegerForKey(a2, "k83");
a1->m_listOrder = v16;
a1->m_favorite = DS_Dictionary::getBoolForKey(a2, "k82");
a1->m_featured = DS_Dictionary::getBoolForKey(a2, "k27");
DS_Dictionary::getIntegerForKey(a2, "k98");
a1->m_uploadDate = v17;
DS_Dictionary::getIntegerForKey(a2, "k99");
a1->m_updateDate = v18;
DS_Dictionary::getIntegerForKey(a2, "k42");
a1->m_original = v19;
a1->m_onlineLevelsLoaded = DS_Dictionary::getBoolForKey(a2, "k100");
DS_Dictionary::getIntegerForKey(a2, "k113");
a1->m_diamonds = v20;
DS_Dictionary::getIntegerForKey(a2, "k114");
a1->m_levelsToClaim = v21;
DictForKey = DS_Dictionary::getDictForKey(a2, "k97", 0);
v23 = DictForKey;
if ( a1->m_levelsDict != DictForKey )
{
if ( DictForKey )
cocos2d::CCObject::retain(DictForKey);
m_levelsDict = a1->m_levelsDict;
if ( m_levelsDict )
cocos2d::CCObject::release(m_levelsDict);
a1->m_levelsDict = v23;
}
v25 = (void **)DS_Dictionary::getStringForKey(a2, v26, "k96");
GJLevelList::parseListLevels((__int64)a1, v25);
}