//
// ossl_statem_client_construct_message from 0x9b8f74 to 0x9b8ff0 (124 bytes)
//
// 4 xrefs:
// > sub_9B3990 @ 0x9b3b50
// > ??> @ 0x7688c
// > sub_9B3990 @ 0x9b3a88
// > ??> @ 0xd1d4c0
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:07:00 +0000
//
int __fastcall ossl_statem_client_construct_message(int *a1)
{
int result; // r0
switch ( a1[16] )
{
case 12:
result = tls_construct_client_hello((int)a1);
break;
case 13:
result = tls_construct_client_certificate(a1);
break;
case 14:
result = tls_construct_client_key_exchange(a1);
break;
case 15:
result = tls_construct_client_verify((int)a1);
break;
case 16:
if ( (*(_DWORD *)(*(_DWORD *)(a1[1] + 100) + 52) & 8) != 0 )
result = dtls_construct_change_cipher_spec();
else
result = tls_construct_change_cipher_spec();
break;
case 17:
result = tls_construct_next_proto((int)a1);
break;
case 18:
result = tls_construct_finished();
break;
default:
result = 0;
break;
}
return result;
}