//
// sub_10057B518 from 0x10057b518 to 0x10057b5c4 (172 bytes)
//
// 1 xrefs:
// > ??> @ 0x10082eb98
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_10057B518(__int64 a1, __int64 a2, char a3)
{
size_t v4; // x20
__int64 v5; // x22
__int64 v6; // x19
__int64 v7; // x8
int v8; // w10
v4 = *(_QWORD *)a1;
v5 = *(_QWORD *)(*(_QWORD *)a1 + 536LL);
v6 = sub_10054F830((__int64 *)a1, a2, (*(_DWORD *)(*(_QWORD *)a1 + 1796LL) == 11) | a3);
if ( v5 )
{
v7 = *(_QWORD *)(v5 + 144);
v8 = *(_DWORD *)(v4 + 1796);
if ( *(_QWORD *)(v5 + 136) == v7 || v8 == 11 )
{
if ( v8 == 11 && *(_DWORD *)(a1 + 1352) == -1 )
sub_1005524A4(v4, "Got an RTP Receive with a CSeq of %ld\n", *(_QWORD *)(v5 + 144));
}
else
{
sub_100552734(v4, "The CSeq of this request %ld did not match the response %ld", *(_QWORD *)(v5 + 136), v7);
return 85;
}
}
return v6;
}