//
// SSL_renegotiate from 0x797630 to 0x797654 (36 bytes)
//
// 5 xrefs:
// > sub_785B18 @ 0x785c00
// > sub_785B18 @ 0x785ca0
// > ??> @ 0x785d90
// > ??> @ 0x785e1c
// > ??> @ 0x59e2c
//
// 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_renegotiate(_DWORD *a1)
{
int (*v1)(void); // r3
if ( !a1[121] )
a1[121] = 1;
v1 = *(int (**)(void))(a1[1] + 48);
a1[8] = 1;
return v1();
}