//
// statem_flush from 0xfc63b8 to 0xfc6414 (92 bytes)
//
// 6 xrefs:
// > ossl_statem_client_post_work @ 0xfc911c
// > ossl_statem_client_post_work @ 0xfc9200
// > ossl_statem_server_post_work @ 0xfce63c
// > ossl_statem_server_post_work @ 0xfce65c
// > ossl_statem_server_post_work @ 0xfce688
// > ??> @ 0x1025c8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:15:24 +0000
//
__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;
}