//
// ssl3_renegotiate from 0xfb6480 to 0xfb64ac (44 bytes)
//
// 25 xrefs:
// > dtls1_read_bytes @ 0xfaf3d4
// > ssl3_read_bytes @ 0xfb172c
// > ??> @ 0x8bf18
// > ??> @ 0x1536f90
// > ??> @ 0x1537070
// > ??> @ 0x1537150
// > ??> @ 0x1537230
// > ??> @ 0x1537310
// > ??> @ 0x15373f0
// > ??> @ 0x15374d0
// > ??> @ 0x15375b0
// > ??> @ 0x1537690
// > ??> @ 0x1537770
// > ??> @ 0x1537850
// > ??> @ 0x1537930
// > ??> @ 0x1537a10
// > ??> @ 0x1537af0
// > ??> @ 0x1537bd0
// > ??> @ 0x1537cb0
// > ??> @ 0x1537d90
// > ??> @ 0x1537e70
// > ??> @ 0x1537f50
// > ??> @ 0x1538030
// > ??> @ 0x1538110
// > ??> @ 0x15381f0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:15:15 +0000
//
__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;
}