//
// MusicDownloadManager::showTOS from 0x14033f8c0 to 0x14033fa1e (350 bytes)
//
// 4 xrefs:
// > CustomSFXWidget::onDownload @ 0x1400c1ab5
// > SongSelectNode::onOpenCustomSong @ 0x1400c7b8e
// > CustomSongWidget::onDownload @ 0x1400cac57
// > ??> @ 0x1406d5714
//
// 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
//
// Hidden C++ exception states: #wind=2
void MusicDownloadManager::showTOS(MusicDownloadManager *a1, FLAlertLayerProtocol *a2)
{
FLAlertLayer *v3; // rbx
__int64 v4; // rax
__int128 v5; // [rsp+50h] [rbp-48h] BYREF
__int64 v6; // [rsp+60h] [rbp-38h]
__int64 v7; // [rsp+68h] [rbp-30h]
_BYTE v8[40]; // [rsp+70h] [rbp-28h] BYREF
FLAlertLayer *v9; // [rsp+B0h] [rbp+18h]
v5 = 0;
*(_QWORD *)&v5 = sub_14003AA10(0x6A0u);
v6 = 1686;
v7 = 1695;
strcpy(
(char *)v5,
"Important notification - Terms of use. RobTop Games provides a library of music and sound effects for creative use w"
"ithin Geometry Dash. You are free to use these assets for creating and sharing levels within the game. However, redi"
"stributing, selling, manipulating, or using these assets outside the game is prohibited. If you share game-related c"
"ontent on social media or upload videos featuring custom music, please give credit to the respective artist. Regardi"
"ng music from Newgrounds.com: Some custom songs are available via a third party website, Newgrounds.com. These songs"
", created by artists using Newgrounds.com, are under Creative Commons licensing terms accessible on Newgrounds.com. "
"By downloading a song from Newgrounds, you accept these terms and any others designated by Newgrounds. RobTop Games "
"is not the provider of songs from Newgrounds.com, nor a party to the licensing agreements, and does not store any au"
"dio files downloaded from Newgrounds.com. You are responsible for the content you create using all music and sound e"
"ffects provided. Ensure your creations adhere to the game's community guidelines and do not infringe on any rights. "
"The availability of music and sound effects in Geometry Dash is subject to change. RobTop Games may add or remove co"
"ntent from both the custom library and the Newgrounds.com selection without prior notice. We do not guarantee the co"
"ntinuous availability or suitability of any music or sound effects in the game. We may update these terms at any tim"
"e, with your continued use of Geometry Dash signifying acceptance of any changes. By clicking the 'I Accept' button,"
" you acknowledge and approve of the above-stated terms of use.");
v9 = (FLAlertLayer *)operator new(0x278u);
v3 = FLAlertLayer::FLAlertLayer(v9);
if ( v3 )
{
v4 = sub_14003BDB0((__int64)v8, (__int64)&v5);
if ( FLAlertLayer::init(
(__int64)v3,
(__int64)a2,
"Terms of Use",
v4,
"Cancel",
"I Accept",
400.0,
1,
1133248512,
1.0) )
{
cocos2d::CCObject::autorelease(v3);
}
else
{
((void (__fastcall *)(FLAlertLayer *, __int64))v3->~FLAlertLayer)(v3, 1);
v3 = nullptr;
}
}
sub_14003A830((__int64)&v5);
v3->setTag(v3, 1);
v3->show(v3);
}