//
// GameLevelManager::getTopArtists from 0x3d137c to 0x3d1490 (276 bytes)
//
// 2 xrefs:
// > TopArtistsLayer::init @ 0x501202
// > TopArtistsLayer::loadPage @ 0x501528
//
// 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 GameLevelManager::getTopArtists(GameLevelManager *a1, int a2, int a3)
{
char *TopArtistsKey; // r0
cocos2d::CCString *v7; // r0
const char *CString; // r0
cocos2d::CCString *v9; // r0
char *v10; // r0
char *v11; // [sp+18h] [bp-18h] BYREF
char *v12; // [sp+1Ch] [bp-14h] BYREF
char *v13; // [sp+20h] [bp-10h] BYREF
const char *v14; // [sp+24h] [bp-Ch] BYREF
char *v15; // [sp+28h] [bp-8h] BYREF
TopArtistsKey = (char *)GameLevelManager::getTopArtistsKey(a1, a2);
sub_776584((int)&v11, TopArtistsKey);
if ( !GameLevelManager::isDLActive(a1, v11) )
{
GameLevelManager::addDLToActive(a1, v11);
GameLevelManager::getBasePostString((GameLevelManager *)&v12);
v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%c%s%s%c%c%s",
(const char *)&dword_54 + 3,
"mfd",
"2893",
103,
98,
&aO1i2r3e45s7t89[10]);
CString = cocos2d::CCString::getCString(v7);
v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"&page=%i&secret=%s&total=%i",
(const char *)a2,
CString,
a3);
v10 = (char *)cocos2d::CCString::getCString(v9);
sub_774544((int)&v12, v10);
sub_776584((int)&v13, "https://www.boomlings.com/database/getGJTopArtists.php");
sub_776584((int)&v14, v12);
sub_775C20(&v15);
GameLevelManager::ProcessHttpRequest(a1, &v13, &v14, &v15, 53);
sub_774008(&v15);
sub_774008(&v14);
sub_774008(&v13);
sub_774008(&v12);
}
sub_774008(&v11);
}