//
// dtls1_write_bytes from 0xd318a4 to 0xd318e0 (60 bytes)
//
// 3 xrefs:
// > dtls1_do_write @ 0xd4cf5c
// > dtls1_write_app_data_bytes @ 0xd5de78
// > ??> @ 0x5a600
//
// 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 dtls1_write_bytes(__int64 a1, unsigned int a2, const void *a3, signed int a4)
{
if ( a4 > 0x4000 )
OPENSSL_die((int)"assertion failed: len <= SSL3_RT_MAX_PLAIN_LENGTH");
*(_DWORD *)(a1 + 40) = 1;
return do_dtls1_write(a1, a2, a3, a4, 0);
}