//
// ssl3_set_handshake_header from 0xd37820 to 0xd37858 (56 bytes)
//
// 5 xrefs:
// > ??> @ 0xb1390
// > ??> @ 0x1220560
// > ??> @ 0x12206b8
// > ??> @ 0x1220738
// > ??> @ 0x12207b8
//
// 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 ssl3_set_handshake_header(__int64 a1, char a2, int a3)
{
_BYTE *v5; // x3
v5 = *(_BYTE **)(*(_QWORD *)(a1 + 120) + 8LL);
*v5 = a2;
v5[1] = BYTE2(a3);
v5[2] = BYTE1(a3);
v5[3] = a3;
*(_QWORD *)(a1 + 136) = (unsigned int)(a3 + 4);
return 1;
}