//
// GJLevelList::dataLoaded from 0x1005634c0 to 0x1005637de (798 bytes)
//
// 1 xrefs:
// > GJLevelList::createWithCoder @ 0x1005634a8
//
// 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 __fastcall GJLevelList::dataLoaded(GJLevelList *a1, DS_Dictionary *a2)
{
double v2; // xmm0_8
double v4; // xmm0_8
double v5; // xmm0_8
double v6; // xmm0_8
cocos2d::CCDictionary *DictForKey; // rax
cocos2d::CCDictionary *m_levelsDict; // rdi
cocos2d::CCDictionary *v9; // r15
std::string v10; // [rsp+8h] [rbp-48h] BYREF
__int128 v11; // [rsp+20h] [rbp-30h] BYREF
char *v12; // [rsp+30h] [rbp-20h]
a1->m_listID = DS_Dictionary::getIntegerForKey(a2, "k1");
a1->m_folder = DS_Dictionary::getIntegerForKey(a2, "k84");
DS_Dictionary::getStringForKey(&v11, (__int64)a2, "k2", v2);
if ( (a1->m_listName.m_data.m_short.sizex2 & 1) != 0 )
operator delete(a1->m_listName.m_data.m_long.longStorage);
a1->m_listName.m_data.m_long.longStorage = v12;
v4 = *(double *)&v11;
*(_OWORD *)&a1->m_listName.m_data.m_short.sizex2 = v11;
DS_Dictionary::getStringForKey(&v11, (__int64)a2, "k3", v4);
if ( (a1->m_listDesc.m_data.m_short.sizex2 & 1) != 0 )
operator delete(a1->m_listDesc.m_data.m_long.longStorage);
a1->m_listDesc.m_data.m_long.longStorage = v12;
v5 = *(double *)&v11;
*(_OWORD *)&a1->m_listDesc.m_data.m_short.sizex2 = v11;
DS_Dictionary::getStringForKey(&v11, (__int64)a2, "k5", v5);
if ( (a1->m_creatorName.m_data.m_short.sizex2 & 1) != 0 )
operator delete(a1->m_creatorName.m_data.m_long.longStorage);
a1->m_creatorName.m_data.m_long.longStorage = v12;
v6 = *(double *)&v11;
*(_OWORD *)&a1->m_creatorName.m_data.m_short.sizex2 = v11;
a1->m_accountID = DS_Dictionary::getIntegerForKey(a2, "k60");
a1->m_difficulty = DS_Dictionary::getIntegerForKey(a2, "k7");
a1->m_downloads = DS_Dictionary::getIntegerForKey(a2, "k11");
a1->m_uploaded = DS_Dictionary::getBoolForKey(a2, "k15");
a1->m_likes = DS_Dictionary::getIntegerForKey(a2, "k22");
a1->m_listType = DS_Dictionary::getIntegerForKey(a2, "k21");
a1->m_listVersion = DS_Dictionary::getIntegerForKey(a2, "k16");
a1->m_unlisted = DS_Dictionary::getBoolForKey(a2, "k79");
a1->m_friendsOnly = DS_Dictionary::getBoolForKey(a2, "k94");
a1->m_listRevision = DS_Dictionary::getIntegerForKey(a2, "k46");
a1->m_modified = DS_Dictionary::getBoolForKey(a2, "k47");
a1->m_listOrder = DS_Dictionary::getIntegerForKey(a2, "k83");
a1->m_favorite = DS_Dictionary::getBoolForKey(a2, "k82");
a1->m_featured = DS_Dictionary::getBoolForKey(a2, "k27");
a1->m_uploadDate = DS_Dictionary::getIntegerForKey(a2, "k98");
a1->m_updateDate = DS_Dictionary::getIntegerForKey(a2, "k99");
a1->m_original = DS_Dictionary::getIntegerForKey(a2, "k42");
a1->m_onlineLevelsLoaded = DS_Dictionary::getBoolForKey(a2, "k100");
a1->m_diamonds = DS_Dictionary::getIntegerForKey(a2, "k113");
a1->m_levelsToClaim = DS_Dictionary::getIntegerForKey(a2, "k114");
DictForKey = DS_Dictionary::getDictForKey(a2, "k97", 0);
m_levelsDict = a1->m_levelsDict;
if ( m_levelsDict != DictForKey )
{
v9 = DictForKey;
if ( DictForKey )
{
cocos2d::CCObject::retain(DictForKey);
m_levelsDict = a1->m_levelsDict;
}
if ( m_levelsDict )
cocos2d::CCObject::release(m_levelsDict);
a1->m_levelsDict = v9;
}
DS_Dictionary::getStringForKey(&v10, (__int64)a2, "k96", v6);
GJLevelList::parseListLevels((__int64)a1, &v10, v6);
if ( (*(_BYTE *)&v10.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v10.__r_.__value_.__l.__data_);
}