// // GJLevelList::dataLoaded from 0x7305d8 to 0x730a64 (1164 bytes) // // 2 xrefs: // > GJLevelList::createWithCoder @ 0x730a80 // > @ 0x8e6e0 // // 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) { void *v4; // x0 void *v5; // x0 void *v6; // x0 cocos2d::CCDictionary *DictForKey; // x0 cocos2d::CCDictionary *v8; // x24 cocos2d::CCDictionary *m_levelsDict; // x1 void *v10; // x20 unsigned int *v11; // x1 int v12; // w2 unsigned int *v13; // x1 int v14; // w2 unsigned int *v15; // x1 int v16; // w2 unsigned int *v17; // x19 int v18; // w0 __int64 v19; // [xsp+50h] [xbp+50h] BYREF a1->m_listID = DS_Dictionary::getIntegerForKey(a2, "k1"); a1->m_folder = DS_Dictionary::getIntegerForKey(a2, "k84"); DS_Dictionary::getStringForKey(&v19, a2, "k2"); sub_D163D4(&a1->m_listName, &v19); v4 = (void *)(v19 - 24); if ( (__int64 *)(v19 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v11 = (unsigned int *)(v19 - 8); do v12 = __ldaxr(v11); while ( __stlxr(v12 - 1, v11) ); } else { v12 = *(_DWORD *)(v19 - 8); *(_DWORD *)(v19 - 8) = v12 - 1; } if ( v12 <= 0 ) operator delete(v4); } DS_Dictionary::getStringForKey(&v19, a2, "k3"); sub_D163D4(&a1->m_listDesc, &v19); v5 = (void *)(v19 - 24); if ( (__int64 *)(v19 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v13 = (unsigned int *)(v19 - 8); do v14 = __ldaxr(v13); while ( __stlxr(v14 - 1, v13) ); } else { v14 = *(_DWORD *)(v19 - 8); *(_DWORD *)(v19 - 8) = v14 - 1; } if ( v14 <= 0 ) operator delete(v5); } DS_Dictionary::getStringForKey(&v19, a2, "k5"); sub_D163D4(&a1->m_creatorName, &v19); v6 = (void *)(v19 - 24); if ( (__int64 *)(v19 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v15 = (unsigned int *)(v19 - 8); do v16 = __ldaxr(v15); while ( __stlxr(v16 - 1, v15) ); } else { v16 = *(_DWORD *)(v19 - 8); *(_DWORD *)(v19 - 8) = v16 - 1; } if ( v16 <= 0 ) operator delete(v6); } 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); v8 = DictForKey; m_levelsDict = a1->m_levelsDict; if ( DictForKey != m_levelsDict ) { if ( DictForKey ) { cocos2d::CCObject::retain(DictForKey); m_levelsDict = a1->m_levelsDict; } if ( m_levelsDict ) cocos2d::CCObject::release(m_levelsDict); a1->m_levelsDict = v8; } DS_Dictionary::getStringForKey(&v19, a2, "k96"); GJLevelList::parseListLevels((__int64)a1, &v19); v10 = (void *)(v19 - 24); if ( (__int64 *)(v19 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v17 = (unsigned int *)(v19 - 8); do v18 = __ldaxr(v17); while ( __stlxr(v18 - 1, v17) ); } else { v18 = *(_DWORD *)(v19 - 8); *(_DWORD *)(v19 - 8) = v18 - 1; } if ( v18 <= 0 ) operator delete(v10); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source