//
// sub_795940 from 0x795940 to 0x795980 (64 bytes)
//
// 12 xrefs:
// > SSL_read @ 0x796f54
// > SSL_read @ 0x796f68
// > ??> @ 0x797074
// > SSL_peek @ 0x797130
// > SSL_peek @ 0x797144
// > ??> @ 0x79723c
// > SSL_write @ 0x7972f4
// > SSL_write @ 0x79730c
// > ??> @ 0x797434
// > SSL_shutdown @ 0x7974d4
// > SSL_shutdown @ 0x7974ec
// > ??> @ 0x797608
//
// 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
//
int __fastcall sub_795940(int a1)
{
if ( *(_DWORD *)(a1 + 12) > 2u )
return -1;
else
return (*(int (__fastcall **)(_DWORD, _DWORD, _DWORD))(a1 + 16))(
*(_DWORD *)a1,
*(_DWORD *)(a1 + 4),
*(_DWORD *)(a1 + 8));
}