//
// statem_flush from 0xd48064 to 0xd480c0 (92 bytes)
//
// 6 xrefs:
// > ossl_statem_client_post_work @ 0xd4adc8
// > ossl_statem_client_post_work @ 0xd4aeac
// > ossl_statem_server_post_work @ 0xd502e8
// > ossl_statem_server_post_work @ 0xd50308
// > ossl_statem_server_post_work @ 0xd50334
// > ??> @ 0xc68a0
//
// 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 statem_flush(__int64 a1)
{
__int64 v2; // x0
v2 = *(_QWORD *)(a1 + 24);
*(_DWORD *)(a1 + 40) = 2;
if ( (int)BIO_ctrl(v2, 11, 0, 0) <= 0 )
return 0;
*(_DWORD *)(a1 + 40) = 1;
return 1;
}