//
// sub_D3E5E4 from 0xd3e5e4 to 0xd3e644 (96 bytes)
//
// 8 xrefs:
// > SSL_read @ 0xd3fed4
// > SSL_read @ 0xd3fee0
// > SSL_peek @ 0xd40074
// > SSL_peek @ 0xd40080
// > SSL_write @ 0xd401fc
// > SSL_write @ 0xd40208
// > SSL_shutdown @ 0xd40394
// > SSL_shutdown @ 0xd403a0
//
// 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_D3E5E4(_QWORD *a1)
{
unsigned int v1; // w3
v1 = *((_DWORD *)a1 + 5);
if ( v1 < 2 )
return ((__int64 (__fastcall *)(_QWORD, _QWORD, _QWORD))a1[3])(*a1, a1[1], *((unsigned int *)a1 + 4));
if ( v1 == 2 )
return ((__int64 (__fastcall *)(_QWORD))a1[3])(*a1);
return 0xFFFFFFFFLL;
}