//
// sub_1001F3F70 from 0x1001f3f70 to 0x1001f4048 (216 bytes)
//
// 1 xrefs:
// > SFXBrowser::init @ 0x1001f2ba8
//
// 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
//
__int64 __fastcall sub_1001F3F70(__int64 a1)
{
__int64 result; // x0
__int64 v3; // x9
__int64 v4; // x19
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v6; // [xsp+1Fh] [xbp-11h]
result = GameManager::sharedState(a1);
if ( *(_QWORD *)(result + 552) )
{
result = GameManager::sharedState(result);
if ( *(_QWORD *)(*(_QWORD *)(result + 552) + 3272LL) )
{
result = GameManager::sharedState(result);
v3 = *(_QWORD *)(*(_QWORD *)(result + 552) + 3272LL);
if ( (*(char *)(v3 + 631) & 0x8000000000000000LL) != 0 )
{
if ( !*(_QWORD *)(v3 + 616) )
return result;
}
else if ( !*(_BYTE *)(v3 + 631) )
{
return result;
}
sub_100009900(
__p,
"This deletes your custom SFX folders and replaces them with this level's shared setup. Continue?");
v4 = FLAlertLayer::create_1(a1 + 696, "Replace SFX Folders", __p, "Cancel", "Replace", 300.0);
if ( v6 < 0 )
operator delete(__p[0]);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 72LL))(v4, 11);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 1312LL))(v4);
}
}
return result;
}