// // TopArtistsLayer::loadPage from 0x966a18 to 0x966db0 (920 bytes) // // 3 xrefs: // > TopArtistsLayer::onNextPage @ 0x966db8 // > TopArtistsLayer::onPrevPage @ 0x966dc4 // > @ 0x4bc18 // // 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 TopArtistsLayer::loadPage(TopArtistsLayer *a1, int a2) { GameLevelManager *v3; // x0 char *TopArtistsKey; // x0 GameLevelManager *v5; // x0 char *v6; // x0 CCMenuItemSpriteExtra *m_prevButton; // x2 GameLevelManager *v8; // x0 _BOOL8 v9; // x1 GameLevelManager *v10; // x0 cocos2d::CCArray *StoredOnlineLevels; // x23 void (__fastcall *setupPageInfo)(TopArtistsLayer *__hidden, std::string, const unsigned __int8 *); // x24 GameLevelManager *v13; // x0 char *PageInfo; // x0 void *v15; // x0 char *v16; // x1 char *v17; // x0 char *v18; // x0 GameLevelManager *v19; // x0 GameLevelManager *v20; // x0 unsigned int *v21; // x1 int v22; // w2 unsigned int *v23; // x1 int v24; // w2 unsigned int *v25; // x1 int v26; // w2 char *v27; // [xsp+50h] [xbp+50h] BYREF char *v28; // [xsp+58h] [xbp+58h] BYREF __int64 v29; // [xsp+60h] [xbp+60h] BYREF a1->m_page = a2; v3 = GameLevelManager::sharedState(); TopArtistsKey = (char *)GameLevelManager::getTopArtistsKey(v3, a1->m_page); sub_D153B8((int)&v27, TopArtistsKey); v5 = GameLevelManager::sharedState(); v6 = (char *)GameLevelManager::getTopArtistsKey(v5, a1->m_page + 1); sub_D153B8((int)&v28, v6); a1->m_loadingCircle->setVisible(a1->m_loadingCircle, 1); m_prevButton = a1->m_prevButton; if ( a1->m_page <= 0 ) m_prevButton->setVisible(a1->m_prevButton, 0); else m_prevButton->setVisible(a1->m_prevButton, 1); v8 = GameLevelManager::sharedState(); v9 = GameLevelManager::getStoredOnlineLevels(v8, v28) != nullptr; a1->m_nextButton->setVisible(a1->m_nextButton, v9); v10 = GameLevelManager::sharedState(); StoredOnlineLevels = GameLevelManager::getStoredOnlineLevels(v10, v27); if ( !StoredOnlineLevels ) { v19 = GameLevelManager::sharedState(); GameLevelManager::makeTimeStamp(v19, "upd_artists"); a1->m_loadingCircle->setVisible(a1->m_loadingCircle, 1); TopArtistsLayer::setupLeaderboard(a1, nullptr); GameLevelManager::sharedState()->m_onlineListDelegate = &a1->OnlineListDelegate; v20 = GameLevelManager::sharedState(); GameLevelManager::getTopArtists(v20, a1->m_page, a1->m_itemCount); a1->m_pageInfoLabel->setString(a1->m_pageInfoLabel, (const unsigned __int8 *)" "); v16 = v28; v17 = v28 - 24; if ( v28 - 24 == (char *)&qword_124B6B0 ) goto LABEL_6; goto LABEL_10; } setupPageInfo = a1->setupPageInfo; v13 = GameLevelManager::sharedState(); PageInfo = (char *)GameLevelManager::getPageInfo(v13, v27); sub_D153B8((int)&v29, PageInfo); ((void (__fastcall *)(TopArtistsLayer *, __int64 *, char *))setupPageInfo)(a1, &v29, v27); v15 = (void *)(v29 - 24); if ( (__int64 *)(v29 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v25 = (unsigned int *)(v29 - 8); do v26 = __ldaxr(v25); while ( __stlxr(v26 - 1, v25) ); } else { v26 = *(_DWORD *)(v29 - 8); *(_DWORD *)(v29 - 8) = v26 - 1; } if ( v26 <= 0 ) operator delete(v15); } a1->loadListFinished(a1, StoredOnlineLevels, (const unsigned __int8 *)v27); v16 = v28; v17 = v28 - 24; if ( v28 - 24 != (char *)&qword_124B6B0 ) { LABEL_10: if ( &pthread_create ) { v21 = (unsigned int *)(v16 - 8); do v22 = __ldaxr(v21); while ( __stlxr(v22 - 1, v21) ); } else { v22 = *((_DWORD *)v16 - 2); *((_DWORD *)v16 - 2) = v22 - 1; } if ( v22 <= 0 ) operator delete(v17); } LABEL_6: v18 = v27 - 24; if ( v27 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v23 = (unsigned int *)(v27 - 8); do v24 = __ldaxr(v23); while ( __stlxr(v24 - 1, v23) ); } else { v24 = *((_DWORD *)v27 - 2); *((_DWORD *)v27 - 2) = v24 - 1; } if ( v24 <= 0 ) operator delete(v18); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source