//
// sub_1001F6534 from 0x1001f6534 to 0x1001f6604 (208 bytes)
//
// 3 xrefs:
// > sub_1001F5F00 @ 0x1001f5fc4
// > SFXBrowser::sfxFoldersPicked @ 0x1001f72a4
// > SFXBrowser::sfxFoldersPicked @ 0x1001f7320
//
// 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:40 +0000
//
__int64 __fastcall sub_1001F6534(__int64 result)
{
__int64 v1; // x19
__int64 v2; // x0
__int64 v3; // x20
int v4; // w21
__int64 v5; // x0
_BOOL4 v6; // w20
__int64 v7; // x0
__int16 v8; // w8
__int16 v9; // [xsp+Ch] [xbp-24h] BYREF
char v10; // [xsp+Eh] [xbp-22h]
if ( *(_QWORD *)(result + 936) )
{
v1 = result;
result = GameManager::sharedState(result);
if ( *(_QWORD *)(result + 552) )
{
result = GameManager::sharedState(result);
if ( *(_QWORD *)(*(_QWORD *)(result + 552) + 3272LL) )
{
v2 = GameManager::sharedState(result);
v3 = *(_QWORD *)(*(_QWORD *)(v2 + 552) + 3272LL);
v4 = *(_DWORD *)(v3 + 632);
v6 = v4
&& (v5 = GameManager::sharedState(v2), v4 == *(_DWORD *)(v5 + 660) - *(_DWORD *)(v5 + 664))
&& *(_QWORD *)(v3 + 656) != 0;
v7 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v1 + 936) + 1072LL))(*(_QWORD *)(v1 + 936));
if ( v6 )
{
v10 = -106;
v8 = -106;
}
else
{
v8 = -1;
v10 = -1;
}
v9 = v8;
return (*(__int64 (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v7 + 960LL))(v7, &v9);
}
}
}
return result;
}