//
// SSL_set_connect_state from 0xd42cf4 to 0xd42d3c (72 bytes)
//
// 9 xrefs:
// > sub_BB78D0 @ 0xbb84d4
// > sub_BB8FAC @ 0xbb8fe0
// > sub_BB8FAC @ 0xbb901c
// > sub_D2F9E8 @ 0xd2fc78
// > sub_D2F9E8 @ 0xd2feb0
// > BIO_new_ssl @ 0xd2ff44
// > SSL_connect @ 0xd42d64
// > SSL_dup @ 0xd43b58
// > ??> @ 0xb21b8
//
// 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
//
__int64 __fastcall SSL_set_connect_state(__int64 a1)
{
*(_DWORD *)(a1 + 56) = 0;
*(_DWORD *)(a1 + 68) = 0;
ossl_statem_clear();
*(_QWORD *)(a1 + 48) = *(_QWORD *)(*(_QWORD *)(a1 + 8) + 48LL);
ssl_clear_cipher_ctx((_QWORD *)a1);
ssl_clear_hash_ctx((__int64 *)(a1 + 288));
return ssl_clear_hash_ctx((__int64 *)(a1 + 320));
}