//
// sub_4DDE90 from 0x4dde90 to 0x4ddf5c (204 bytes)
//
// 3 xrefs:
// > sub_B787B0 @ 0xb79b8c
// > sub_B787B0 @ 0xb79d44
// > sub_B787B0 @ 0xb7a070
//
// 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_4DDE90(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v3; // x20
__int64 v4; // x3
unsigned int v5; // w19
int v6; // w0
int v7; // w0
__int64 v9; // x0
v3 = a1 + 0x8000;
v4 = *(_QWORD *)(a1 + 1080);
v5 = 0;
v6 = *(_DWORD *)(a1 + 36004);
*(_BYTE *)(v3 + 3240) = 0;
if ( v6 != 10 )
{
v7 = *(_DWORD *)(a2 + 568);
if ( v7 != 10 && (v4 != 1 || v7 > 10) )
{
v5 = v4 > 1;
if ( v4 > 1 || !v4 )
{
v5 = 0;
if ( v7 != 20 )
{
v9 = sub_B77070(a2, "Expect:");
if ( v9 )
{
*(_BYTE *)(v3 + 3240) = sub_B782F0(v9, "Expect:");
}
else
{
v5 = sub_B77FA8(a3, "Expect: 100-continue\r\n");
if ( !v5 )
*(_BYTE *)(v3 + 3240) = 1;
}
}
}
}
}
return v5;
}