//
// ssl_add_clienthello_renegotiate_ext from 0x7b4f00 to 0x7b4f88 (136 bytes)
//
// 3 xrefs:
// > ssl_add_clienthello_tlsext @ 0x7b1d94
// > ssl_add_clienthello_tlsext @ 0x7b1e14
// > ??> @ 0x5d92c
//
// 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
//
int __fastcall ssl_add_clienthello_renegotiate_ext(int a1, _BYTE *a2, _DWORD *a3, int a4)
{
int v6; // r0
if ( !a2 )
goto LABEL_4;
v6 = *(unsigned __int8 *)(*(_DWORD *)(a1 + 104) + 764);
if ( v6 < a4 )
{
*a2 = v6;
memcpy(a2 + 1, (const void *)(*(_DWORD *)(a1 + 104) + 700), *(unsigned __int8 *)(*(_DWORD *)(a1 + 104) + 764));
LABEL_4:
*a3 = *(unsigned __int8 *)(*(_DWORD *)(a1 + 104) + 764) + 1;
return 1;
}
ERR_put_error(20, 298, 335, "ssl/t1_reneg.c", 21);
return 0;
}