//
// ossl_statem_client_construct_message from 0xfca704 to 0xfca774 (112 bytes)
//
// 4 xrefs:
// > sub_FC5998 @ 0xfc5b58
// > ??> @ 0xd27f0
// > sub_FC5998 @ 0xfc5a94
// > ??> @ 0x15463e0
//
// 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:26 +0000
//
__int64 __fastcall ossl_statem_client_construct_message(__int64 a1)
{
__int64 result; // x0
switch ( *(_DWORD *)(a1 + 92) )
{
case 0xC:
result = tls_construct_client_hello(a1);
break;
case 0xD:
result = tls_construct_client_certificate(a1);
break;
case 0xE:
result = tls_construct_client_key_exchange(a1);
break;
case 0xF:
result = tls_construct_client_verify(a1);
break;
case 0x10:
if ( (*(_DWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 8) + 192LL) + 104LL) & 8) != 0 )
result = dtls_construct_change_cipher_spec();
else
result = tls_construct_change_cipher_spec();
break;
case 0x11:
result = tls_construct_next_proto(a1);
break;
case 0x12:
result = tls_construct_finished(
a1,
*(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 8) + 192LL) + 56LL),
*(unsigned int *)(*(_QWORD *)(*(_QWORD *)(a1 + 8) + 192LL) + 64LL));
break;
default:
result = 0;
break;
}
return result;
}