//
// LevelTools::ngURLForArtist from 0x1004ff640 to 0x1004ff907 (711 bytes)
//
// 1 xrefs:
// > SongInfoLayer::create_1 @ 0x1005fff67
//
// 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
//
_QWORD *__fastcall LevelTools::ngURLForArtist(_QWORD *a1, int a2)
{
_OWORD *v2; // rax
__int128 v3; // xmm0
_BYTE *v4; // rax
char *v5; // rax
char *v6; // rax
__int128 v7; // xmm0
char *v8; // rax
char *v9; // rax
char *v10; // rax
char *v11; // rax
char *v12; // rax
char *v13; // rax
switch ( a2 )
{
case 0:
v2 = operator new(0x20u);
a1[2] = v2;
*a1 = 33;
a1[1] = 28;
*(_OWORD *)((char *)v2 + 12) = *(_OWORD *)".newgrounds.com/";
v3 = *(_OWORD *)"https://djvi.newgrounds.com/";
goto LABEL_12;
case 1:
v9 = (char *)operator new(0x28u);
a1[2] = v9;
*a1 = 41;
a1[1] = 34;
qmemcpy(v9, "https://waterflame.newgrounds.com/", 34);
v4 = v9 + 34;
break;
case 2:
v6 = (char *)operator new(0x28u);
a1[2] = v6;
*a1 = 41;
a1[1] = 36;
*((_OWORD *)v6 + 1) = *(_OWORD *)"bula.newgrounds.com/";
v7 = *(_OWORD *)"https://ocularnebula.newgrounds.com/";
goto LABEL_9;
case 3:
v6 = (char *)operator new(0x28u);
a1[2] = v6;
*a1 = 41;
a1[1] = 36;
*((_OWORD *)v6 + 1) = *(_OWORD *)"ound.newgrounds.com/";
v7 = *(_OWORD *)"https://foreverbound.newgrounds.com/";
LABEL_9:
*(_OWORD *)v6 = v7;
*((_DWORD *)v6 + 8) = 795701091;
v4 = v6 + 36;
break;
case 4:
v2 = operator new(0x20u);
a1[2] = v2;
*a1 = 33;
a1[1] = 28;
*(_OWORD *)((char *)v2 + 12) = *(_OWORD *)".newgrounds.com/";
v3 = *(_OWORD *)"https://step.newgrounds.com/";
LABEL_12:
*v2 = v3;
v4 = (char *)v2 + 28;
break;
case 5:
v11 = (char *)operator new(0x20u);
a1[2] = v11;
*a1 = 33;
a1[1] = 31;
qmemcpy(v11, "https://dj-nate.newgrounds.com/", 31);
v4 = v11 + 31;
break;
case 6:
v10 = (char *)operator new(0x20u);
a1[2] = v10;
*a1 = 33;
a1[1] = 29;
qmemcpy(v10, "https://f-777.newgrounds.com/", 29);
v4 = v10 + 29;
break;
case 8:
v13 = (char *)operator new(0x28u);
a1[2] = v13;
*a1 = 41;
a1[1] = 32;
qmemcpy(v13, "https://dexarson.newgrounds.com/", 32);
v4 = v13 + 32;
break;
case 9:
v8 = (char *)operator new(0x28u);
a1[2] = v8;
*a1 = 41;
a1[1] = 33;
qmemcpy(v8, "https://boomkitty.newgrounds.com/", 33);
v4 = v8 + 33;
break;
case 10:
v12 = (char *)operator new(0x30u);
a1[2] = v12;
*a1 = 49;
a1[1] = 41;
qmemcpy(v12, "https://bossfightofficial.newgrounds.com/", 41);
v4 = v12 + 41;
break;
case 11:
v5 = (char *)operator new(0x20u);
a1[2] = v5;
*a1 = 33;
a1[1] = 30;
qmemcpy(v5, "https://hinkik.newgrounds.com/", 30);
v4 = v5 + 30;
break;
default:
*(_BYTE *)a1 = 0;
v4 = (char *)a1 + 1;
break;
}
*v4 = 0;
return a1;
}