//
// sub_BAAC08 from 0xbaac08 to 0xbaacc0 (184 bytes)
//
// 1 xrefs:
// > ??> @ 0x111cd08
//
// 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_BAAC08(__int64 a1, unsigned int a2, unsigned __int8 a3)
{
__int64 v3; // x19
__int64 v5; // x20
__int64 result; // x0
__int64 v7; // x2
__int64 v8; // x3
unsigned int v9; // w20
v3 = *(_QWORD *)a1;
v5 = *(_QWORD *)(*(_QWORD *)a1 + 536LL);
if ( *(_DWORD *)(*(_QWORD *)a1 + 2172LL) == 11 )
a3 = 1;
LODWORD(result) = sub_B76E68((_QWORD *)a1, a2, a3);
if ( v5 )
{
v7 = *(_QWORD *)(v5 + 136);
v8 = *(_QWORD *)(v5 + 144);
if ( *(_DWORD *)(v3 + 2172) == 11 )
{
v9 = result;
if ( *(_DWORD *)(a1 + 1576) == -1 )
sub_B7B528(v3, "Got an RTP Receive with a CSeq of %ld\n", v8);
return v9;
}
if ( v7 != v8 )
{
v9 = 85;
sub_B7B690(v3, "The CSeq of this request %ld did not match the response %ld", v7, v8);
return v9;
}
}
return (unsigned int)result;
}