//
// SSL_callback_ctrl from 0x797bb4 to 0x797bd8 (36 bytes)
//
// 4 xrefs:
// > SSL_set_tmp_dh_callback @ 0x799c4c
// > SSL_set_msg_callback @ 0x799e84
// > SSL_set_not_resumable_session_callback @ 0x799e9c
// > ??> @ 0x5bd3c
//
// 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 SSL_callback_ctrl(int a1, int a2, int a3)
{
if ( a2 != 15 )
return (*(int (**)(void))(*(_DWORD *)(a1 + 4) + 108))();
*(_DWORD *)(a1 + 112) = a3;
return 1;
}