//
// ssl_add_serverhello_renegotiate_ext from 0x9c9cb0 to 0x9c9d6c (188 bytes)
//
// 3 xrefs:
// > ssl_add_serverhello_tlsext @ 0x9c3d74
// > ssl_add_serverhello_tlsext @ 0x9c3df4
// > ??> @ 0x772dc
//
// 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_serverhello_renegotiate_ext(int a1, _BYTE *a2, _DWORD *a3, int a4)
{
int v6; // r12
char *v7; // r0
if ( !a2 )
goto LABEL_4;
v6 = *(unsigned __int8 *)(*(_DWORD *)(a1 + 104) + 764) + *(unsigned __int8 *)(*(_DWORD *)(a1 + 104) + 829);
if ( v6 < a4 )
{
*a2 = v6;
v7 = (char *)memcpy(
a2 + 1,
(const void *)(*(_DWORD *)(a1 + 104) + 700),
*(unsigned __int8 *)(*(_DWORD *)(a1 + 104) + 764));
memcpy(
&v7[*(unsigned __int8 *)(*(_DWORD *)(a1 + 104) + 764)],
(const void *)(*(_DWORD *)(a1 + 104) + 765),
*(unsigned __int8 *)(*(_DWORD *)(a1 + 104) + 829));
LABEL_4:
*a3 = *(unsigned __int8 *)(*(_DWORD *)(a1 + 104) + 764) + *(unsigned __int8 *)(*(_DWORD *)(a1 + 104) + 829) + 1;
return 1;
}
ERR_put_error(20, 299, 335, "ssl/t1_reneg.c", 84);
return 0;
}