//
// sub_E31DE0 from 0xe31de0 to 0xe31e2c (76 bytes)
//
// 4 xrefs:
// > sub_E327AC @ 0xe328c4
// > lws_serve_http_file_fragment @ 0xe33d24
// > sub_E34F88 @ 0xe35488
// > lws_server_socket_service @ 0xe39ccc
//
// 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 13:09:56 +0000
//
__int64 __fastcall sub_E31DE0(
__int64 (__fastcall *a1)(__int64, _QWORD, __int64, __int64, __int64),
__int64 a2,
unsigned int a3,
__int64 a4,
__int64 a5,
__int64 a6)
{
__int64 result; // x0
result = a1(a2, a3, a4, a5, a6);
if ( !(_DWORD)result )
return sub_E39224(a2);
return result;
}