//
// CustomSongLayer::showNewgroundsMessage from 0x83cecc to 0x83cfe4 (280 bytes)
//
// 2 xrefs:
// > CustomSongLayer::onSearch @ 0x83d0cc
// > ??> @ 0x6fc00
//
// 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 CustomSongLayer::showNewgroundsMessage(CustomSongLayer *a1)
{
FLAlertLayer *v1; // x20
void *v2; // x0
unsigned int *v3; // x2
int v4; // w1
__int64 v5; // [xsp+30h] [xbp+30h] BYREF
sub_D153B8(
(int)&v5,
"There are thousands of great custom songs for you to choose from Newgrounds. Please do not upload music you did not "
"create. You are only allowed to use songs from artists that have been scouted on Newgrounds. For more information, p"
"lease check the Audio Guidelines.");
v1 = FLAlertLayer::create(0, (__int64)"Newgrounds Info", (__int64)&v5);
v2 = (void *)(v5 - 24);
if ( (__int64 *)(v5 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v3 = (unsigned int *)(v5 - 8);
do
v4 = __ldaxr(v3);
while ( __stlxr(v4 - 1, v3) );
}
else
{
v4 = *(_DWORD *)(v5 - 8);
*(_DWORD *)(v5 - 8) = v4 - 1;
}
if ( v4 <= 0 )
operator delete(v2);
}
v1->show(v1);
}