//
// statem_flush from 0x79f88c to 0x79f8c8 (60 bytes)
//
// 6 xrefs:
// > ossl_statem_client_post_work @ 0x7a2af8
// > ossl_statem_client_post_work @ 0x7a2bb0
// > ossl_statem_server_post_work @ 0x7a85a8
// > ossl_statem_server_post_work @ 0x7a85f4
// > ossl_statem_server_post_work @ 0x7a8620
// > ??> @ 0x5cf2c
//
// 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 statem_flush(int a1)
{
*(_DWORD *)(a1 + 20) = 2;
if ( BIO_ctrl(*(_DWORD *)(a1 + 12), 11, 0, 0) <= 0 )
return 0;
*(_DWORD *)(a1 + 20) = 1;
return 1;
}