//
// SSL_set_accept_state from 0xd42c6c to 0xd42cb8 (76 bytes)
//
// 6 xrefs:
// > sub_D2F9E8 @ 0xd2fe48
// > sub_D2F9E8 @ 0xd2febc
// > BIO_new_ssl @ 0xd2ff18
// > SSL_accept @ 0xd42ce0
// > SSL_dup @ 0xd43a84
// > ??> @ 0xbfc88
//
// 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_accept_state(__int64 a1)
{
*(_DWORD *)(a1 + 56) = 1;
*(_DWORD *)(a1 + 68) = 0;
ossl_statem_clear();
*(_QWORD *)(a1 + 48) = *(_QWORD *)(*(_QWORD *)(a1 + 8) + 40LL);
ssl_clear_cipher_ctx((_QWORD *)a1);
ssl_clear_hash_ctx((__int64 *)(a1 + 288));
return ssl_clear_hash_ctx((__int64 *)(a1 + 320));
}