//
// ssl3_renegotiate from 0xd3812c to 0xd38158 (44 bytes)
//
// 25 xrefs:
// > dtls1_read_bytes @ 0xd31080
// > ssl3_read_bytes @ 0xd333d8
// > ??> @ 0x67230
// > ??> @ 0x121f208
// > ??> @ 0x121f2e8
// > ??> @ 0x121f3c8
// > ??> @ 0x121f4a8
// > ??> @ 0x121f588
// > ??> @ 0x121f668
// > ??> @ 0x121f748
// > ??> @ 0x121f828
// > ??> @ 0x121f908
// > ??> @ 0x121f9e8
// > ??> @ 0x121fac8
// > ??> @ 0x121fba8
// > ??> @ 0x121fc88
// > ??> @ 0x121fd68
// > ??> @ 0x121fe48
// > ??> @ 0x121ff28
// > ??> @ 0x1220008
// > ??> @ 0x12200e8
// > ??> @ 0x12201c8
// > ??> @ 0x12202a8
// > ??> @ 0x1220388
// > ??> @ 0x1220468
//
// 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_renegotiate(__int64 a1)
{
__int64 v1; // x1
__int64 result; // x0
if ( !*(_QWORD *)(a1 + 48) )
return 1;
v1 = *(_QWORD *)(a1 + 144);
result = 0;
if ( (*(_QWORD *)v1 & 1) == 0 )
{
result = 1;
*(_DWORD *)(v1 + 252) = 1;
}
return result;
}