//
// ssl_add_clienthello_renegotiate_ext from 0x9c9b04 to 0x9c9b8c (136 bytes)
//
// 3 xrefs:
// > ssl_add_clienthello_tlsext @ 0x9c6998
// > ssl_add_clienthello_tlsext @ 0x9c6a18
// > ??> @ 0x773ac
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:07:08 +0000
//
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;
}