//
// sub_E2794 from 0xe2794 to 0xe2890 (252 bytes)
//
// 1 xrefs:
// > ??> @ 0x10f1f8
//
// 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 12:14:58 +0000
//
__int64 __fastcall sub_E2794(_QWORD *a1, __int64 a2, _DWORD *a3, char a4)
{
__int64 (__fastcall *v8)(__int64, int); // x8
void (__fastcall *v9)(__int64, _QWORD); // x8
__int64 v10; // x0
__int64 result; // x0
*(_QWORD *)a2 = a1[69];
if ( !sub_E2664(a1) )
{
result = (*(__int64 (__fastcall **)(_QWORD *, _QWORD, _QWORD, __int64))(*a1 + 56LL))(
a1,
*(_QWORD *)(a2 + 32),
*(unsigned int *)(a2 + 12),
a2 + 40);
goto LABEL_16;
}
*((_DWORD *)a1 + 119) = 46;
if ( (a4 & 1) != 0 )
v8 = sub_E25A0;
else
v8 = sub_E25B8;
*(_QWORD *)(a2 + 48) = v8;
v9 = (void (__fastcall *)(__int64, _QWORD))a1[67];
if ( v9 || (sub_E28F4(), v9) )
v9(a2, a1[70]);
if ( (a4 & 1) != 0 )
{
v10 = a1[62];
if ( v10 )
{
sub_E71A8(v10);
result = *((unsigned int *)a1 + 119);
}
else
{
while ( 1 )
{
result = *((unsigned int *)a1 + 119);
if ( (_DWORD)result != 46 )
break;
if ( *((_BYTE *)a1 + 60) )
{
result = 46;
goto LABEL_16;
}
FMOD_OS_Time_Sleep(10);
}
}
goto LABEL_16;
}
result = *((unsigned int *)a1 + 119);
if ( (_DWORD)result != 46 )
LABEL_16:
*a3 = *(_DWORD *)(a2 + 40);
return result;
}