//
// sub_1001F35F4 from 0x1001f35f4 to 0x1001f3664 (112 bytes)
//
// 2 xrefs:
// > SFXBrowser::init @ 0x1001f2038
// > SFXBrowser::init @ 0x1001f23b8
//
// 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_1001F35F4(__int64 result, __int64 a2)
{
__int64 v2; // x19
__int64 v3; // x0
__int64 v4; // x1
if ( *(_QWORD *)(result + 712) )
{
v2 = result;
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
if ( (_DWORD)v3 == 4 )
{
v4 = 4 * (unsigned int)(*(_DWORD *)(v2 + 1116) != 4);
}
else
{
v4 = v3;
if ( *(_DWORD *)(*(_QWORD *)(v2 + 712) + 140LL) == (_DWORD)v3 )
v4 = *(unsigned int *)(v2 + 1116);
}
return sub_1001F6604(v2, v4);
}
return result;
}