//
// sub_1001F418C from 0x1001f418c to 0x1001f42dc (336 bytes)
//
// 1 xrefs:
// > SFXBrowser::init @ 0x1001f2ce4
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:00:39 +0000
//
void __fastcall sub_1001F418C(__int64 a1)
{
__int64 v2; // x0
int v3; // w20
__int64 v4; // x0
__int64 v5; // x0
void **v6; // x8
__int64 v7; // x0
void *__p[2]; // [xsp+8h] [xbp-88h] BYREF
char v9; // [xsp+1Fh] [xbp-71h]
_QWORD v10[2]; // [xsp+20h] [xbp-70h] BYREF
char v11; // [xsp+37h] [xbp-59h]
void *v12[2]; // [xsp+38h] [xbp-58h] BYREF
char v13; // [xsp+4Fh] [xbp-41h]
_QWORD v14[2]; // [xsp+50h] [xbp-40h] BYREF
char v15; // [xsp+67h] [xbp-29h]
_QWORD **v16; // [xsp+68h] [xbp-28h] BYREF
_QWORD *v17[2]; // [xsp+70h] [xbp-20h] BYREF
v2 = MusicDownloadManager::sharedState();
v17[0] = nullptr;
v17[1] = nullptr;
v16 = v17;
v3 = sub_1001D650C(v2, (__int64)&v16);
sub_1000187C4((__int64)&v16, v17[0]);
if ( v3 <= 0 )
{
sub_100009900(v14, "No custom folders to export");
sub_100009900(v12, "");
v7 = TextAlertPopup::create(v14, 150, v12, 0.9, 0.5);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v7, 100);
if ( v13 < 0 )
operator delete(v12[0]);
if ( v15 < 0 )
{
v6 = (void **)v14;
goto LABEL_11;
}
}
else
{
v4 = MusicDownloadManager::sharedState();
if ( (unsigned int)sub_1001D8EB0(v4) )
{
sub_100009900(v10, "SFX folders exported");
sub_100009900(__p, "");
v5 = TextAlertPopup::create(v10, 150, __p, 0.9, 0.5);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v5, 100);
if ( v9 < 0 )
operator delete(__p[0]);
if ( v11 < 0 )
{
v6 = (void **)v10;
LABEL_11:
operator delete(*v6);
}
}
}
}