; LLVM IR from tleonhardt/practical_cryptography_engineering :: mbedtls (ssl_tls)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.mbedtls_ssl_context = type { ptr, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i64, i64, i16, i64, i64, i64, i64, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, i32, i64, i64, i8, i32, ptr, ptr, ptr, i64, i32, i64, [12 x i8], [12 x i8] }
%struct.mbedtls_ssl_transform = type { ptr, i32, i64, i64, i64, i64, [16 x i8], [16 x i8], %struct.mbedtls_md_context_t, %struct.mbedtls_md_context_t, %struct.mbedtls_cipher_context_t, %struct.mbedtls_cipher_context_t }
%struct.mbedtls_md_context_t = type { ptr, ptr, ptr }
%struct.mbedtls_cipher_context_t = type { ptr, i32, i32, ptr, ptr, [16 x i8], i64, [16 x i8], i64, ptr }
%struct.mbedtls_ssl_ciphersuite_t = type { i32, ptr, i32, i32, i32, i32, i32, i32, i32, i8 }
%struct.mbedtls_ssl_handshake_params = type { %struct.mbedtls_ssl_sig_hash_set_t, %struct.mbedtls_dhm_context, %struct.mbedtls_ecdh_context, ptr, ptr, i64, ptr, i32, ptr, ptr, ptr, i32, i32, ptr, i8, ptr, i32, i8, ptr, ptr, i32, ptr, [8 x i8], %struct.mbedtls_md5_context, %struct.mbedtls_sha1_context, %struct.mbedtls_sha256_context, %struct.mbedtls_sha512_context, ptr, ptr, ptr, ptr, i64, [64 x i8], [1060 x i8], i32, i32, i32, i32, i32, i32 }
%struct.mbedtls_ssl_sig_hash_set_t = type { i32, i32 }
%struct.mbedtls_dhm_context = type { i64, %struct.mbedtls_mpi, %struct.mbedtls_mpi, %struct.mbedtls_mpi, %struct.mbedtls_mpi, %struct.mbedtls_mpi, %struct.mbedtls_mpi, %struct.mbedtls_mpi, %struct.mbedtls_mpi, %struct.mbedtls_mpi, %struct.mbedtls_mpi }
%struct.mbedtls_mpi = type { i32, i64, ptr }
%struct.mbedtls_ecdh_context = type { %struct.mbedtls_ecp_group, %struct.mbedtls_mpi, %struct.mbedtls_ecp_point, %struct.mbedtls_ecp_point, %struct.mbedtls_mpi, i32, %struct.mbedtls_ecp_point, %struct.mbedtls_ecp_point, %struct.mbedtls_mpi }
%struct.mbedtls_ecp_group = type { i32, %struct.mbedtls_mpi, %struct.mbedtls_mpi, %struct.mbedtls_mpi, %struct.mbedtls_ecp_point, %struct.mbedtls_mpi, i64, i64, i32, ptr, ptr, ptr, ptr, ptr, i64 }
%struct.mbedtls_ecp_point = type { %struct.mbedtls_mpi, %struct.mbedtls_mpi, %struct.mbedtls_mpi }
%struct.mbedtls_md5_context = type { [2 x i32], [4 x i32], [64 x i8] }
%struct.mbedtls_sha1_context = type { [2 x i32], [5 x i32], [64 x i8] }
%struct.mbedtls_sha256_context = type { [2 x i32], [8 x i32], [64 x i8], i32 }
%struct.mbedtls_sha512_context = type { [2 x i64], [8 x i64], [128 x i8], i32 }
%struct.mbedtls_ssl_session = type { i64, i32, i32, i64, [32 x i8], [48 x i8], ptr, i32, ptr, i64, i32, i8, i32, i32 }
%struct.mbedtls_cipher_info_t = type { i32, i32, i32, ptr, i32, i32, i32, ptr }
%struct.mbedtls_ssl_config = type { [4 x ptr], ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct.mbedtls_mpi, %struct.mbedtls_mpi, ptr, i64, ptr, i64, ptr, i32, i32, i32, i32, [8 x i8], i32, i32, i8, i8, i8, i8, i32 }

@.str = external hidden unnamed_addr constant [97 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [15 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @mbedtls_ssl_derive_keys(ptr noundef %0) #0 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca [64 x i8], align 16
  %6 = alloca [256 x i8], align 16
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca [48 x i8], align 16
  %19 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  store i32 0, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 64, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 256, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %20, i32 0, i32 14
  %22 = load ptr, ptr %21, align 8, !tbaa !11
  store ptr %22, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %23, i32 0, i32 19
  %25 = load ptr, ptr %24, align 8, !tbaa !15
  store ptr %25, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %26, i32 0, i32 15
  %28 = load ptr, ptr %27, align 8, !tbaa !16
  store ptr %28, ptr %16, align 8, !tbaa !5
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, i32, ptr, ...) @mbedtls_debug_print_msg(ptr noundef %29, i32 noundef 2, ptr noundef @.str, i32 noundef 501, ptr noundef @.str.1)
  %30 = load ptr, ptr %15, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %30, i32 0, i32 0
  %32 = load ptr, ptr %31, align 8, !tbaa !17
  %33 = getelementptr inbounds %struct.mbedtls_ssl_ciphersuite_t, ptr %32, i32 0, i32 2
  %34 = load i32, ptr %33, align 8, !tbaa !21
  %35 = call ptr @mbedtls_cipher_info_from_type(i32 noundef %34)
  store ptr %35, ptr %12, align 8, !tbaa !5
  %36 = load ptr, ptr %12, align 8, !tbaa !5
  %37 = icmp eq ptr %36, null
  br i1 %37, label %38, label %45

38:                                               ; preds = %1
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  %40 = load ptr, ptr %15, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %40, i32 0, i32 0
  %42 = load ptr, ptr %41, align 8, !tbaa !17
  %43 = getelementptr inbounds %struct.mbedtls_ssl_ciphersuite_t, ptr %42, i32 0, i32 2
  %44 = load i32, ptr %43, align 8, !tbaa !21
  call void (ptr, i32, ptr, i32, ptr, ...) @mbedtls_debug_print_msg(ptr noundef %39, i32 noundef 1, ptr noundef @.str, i32 noundef 507, ptr noundef @.str.2, i32 noundef %44)
  store i32 -28928, ptr %2, align 4
  store i32 1, ptr %17, align 4
  br label %701

45:                                               ; preds = %1
  %46 = load ptr, ptr %15, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %46, i32 0, i32 0
  %48 = load ptr, ptr %47, align 8, !tbaa !17
  %49 = getelementptr inbounds %struct.mbedtls_ssl_ciphersuite_t, ptr %48, i32 0, i32 3
  %50 = load i32, ptr %49, align 4, !tbaa !23
  %51 = call ptr @mbedtls_md_info_from_type(i32 noundef %50)
  store ptr %51, ptr %13, align 8, !tbaa !5
  %52 = load ptr, ptr %13, align 8, !tbaa !5
  %53 = icmp eq ptr %52, null
  br i1 %53, label %54, label %61

54:                                               ; preds = %45
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  %56 = load ptr, ptr %15, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %56, i32 0, i32 0
  %58 = load ptr, ptr %57, align 8, !tbaa !17
  %59 = getelementptr inbounds %struct.mbedtls_ssl_ciphersuite_t, ptr %58, i32 0, i32 3
  %60 = load i32, ptr %59, align 4, !tbaa !23
  call void (ptr, i32, ptr, i32, ptr, ...) @mbedtls_debug_print_msg(ptr noundef %55, i32 noundef 1, ptr noundef @.str, i32 noundef 515, ptr noundef @.str.3, i32 noundef %60)
  store i32 -28928, ptr %2, align 4
  store i32 1, ptr %17, align 4
  br label %701

61:                                               ; preds = %45
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %62, i32 0, i32 5
  %64 = load i32, ptr %63, align 8, !tbaa !24
  %65 = icmp slt i32 %64, 3
  br i1 %65, label %66, label %73

66:                                               ; preds = %61
  %67 = load ptr, ptr %16, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.mbedtls_ssl_handshake_params, ptr %67, i32 0, i32 30
  store ptr @tls1_prf, ptr %68, align 8, !tbaa !25
  %69 = load ptr, ptr %16, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.mbedtls_ssl_handshake_params, ptr %69, i32 0, i32 28
  store ptr @ssl_calc_verify_tls, ptr %70, align 8, !tbaa !37
  %71 = load ptr, ptr %16, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.mbedtls_ssl_handshake_params, ptr %71, i32 0, i32 29
  store ptr @ssl_calc_finished_tls, ptr %72, align 8, !tbaa !38
  br label %108

73:                                               ; preds = %61
  %74 = load ptr, ptr %3, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %74, i32 0, i32 5
  %76 = load i32, ptr %75, align 8, !tbaa !24
  %77 = icmp eq i32 %76, 3
  br i1 %77, label %78, label %92

78:                                               ; preds = %73
  %79 = load ptr, ptr %15, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %79, i32 0, i32 0
  %81 = load ptr, ptr %80, align 8, !tbaa !17
  %82 = getelementptr inbounds %struct.mbedtls_ssl_ciphersuite_t, ptr %81, i32 0, i32 3
  %83 = load i32, ptr %82, align 4, !tbaa !23
  %84 = icmp eq i32 %83, 7
  br i1 %84, label %85, label %92

85:                                               ; preds = %78
  %86 = load ptr, ptr %16, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.mbedtls_ssl_handshake_params, ptr %86, i32 0, i32 30
  store ptr @tls_prf_sha384, ptr %87, align 8, !tbaa !25
  %88 = load ptr, ptr %16, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.mbedtls_ssl_handshake_params, ptr %88, i32 0, i32 28
  store ptr @ssl_calc_verify_tls_sha384, ptr %89, align 8, !tbaa !37
  %90 = load ptr, ptr %16, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.mbedtls_ssl_handshake_params, ptr %90, i32 0, i32 29
  store ptr @ssl_calc_finished_tls_sha384, ptr %91, align 8, !tbaa !38
  br label %107

92:                                               ; preds = %78, %73
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %93, i32 0, i32 5
  %95 = load i32, ptr %94, align 8, !tbaa !24
  %96 = icmp eq i32 %95, 3
  br i1 %96, label %97, label %104

97:                                               ; preds = %92
  %98 = load ptr, ptr %16, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.mbedtls_ssl_handshake_params, ptr %98, i32 0, i32 30
  store ptr @tls_prf_sha256, ptr %99, align 8, !tbaa !25
  %100 = load ptr, ptr %16, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.mbedtls_ssl_handshake_params, ptr %100, i32 0, i32 28
  store ptr @ssl_calc_verify_tls_sha256, ptr %101, align 8, !tbaa !37
  %102 = load ptr, ptr %16, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.mbedtls_ssl_handshake_params, ptr %102, i32 0, i32 29
  store ptr @ssl_calc_finished_tls_sha256, ptr %103, align 8, !tbaa !38
  br label %106

104:                                              ; preds = %92
  %105 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, i32, ptr, ...) @mbedtls_debug_print_msg(ptr noundef %105, i32 noundef 1, ptr noundef @.str, i32 noundef 562, ptr noundef @.str.4)
  store i32 -27648, ptr %2, align 4
  store i32 1, ptr %17, align 4
  br label %701

106:                                              ; preds = %97
  br label %107

107:                                              ; preds = %106, %85
  br label %108

108:                                              ; preds = %107, %66
  %109 = load ptr, ptr %16, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.mbedtls_ssl_handshake_params, ptr %109, i32 0, i32 34
  %111 = load i32, ptr %110, align 4, !tbaa !39
  %112 = icmp eq i32 %111, 0
  br i1 %112, label %113, label %210

113:                                              ; preds = %108
  %114 = load ptr, ptr %3, align 8, !tbaa !5
  %115 = load ptr, ptr %16, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.mbedtls_ssl_handshake_params, ptr %115, i32 0, i32 33
  %117 = getelementptr inbounds [1060 x i8], ptr %116, i64 0, i64 0
  %118 = load ptr, ptr %16, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.mbedtls_ssl_handshake_params, ptr %118, i32 0, i32 31
  %120 = load i64, ptr %119, align 8, !tbaa !40
  call void @mbedtls_debug_print_buf(ptr noundef %114, i32 noundef 3, ptr noundef @.str, i32 noundef 579, ptr noundef @.str.5, ptr noundef %117, i64 noundef %120)
  %121 = load ptr, ptr %3, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %121, i32 0, i32 15
  %123 = load ptr, ptr %122, align 8, !tbaa !16
  %124 = getelementptr inbounds %struct.mbedtls_ssl_handshake_params, ptr %123, i32 0, i32 39
  %125 = load i32, ptr %124, align 8, !tbaa !41
  %126 = icmp eq i32 %125, 1
  br i1 %126, label %127, label %182

127:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 48, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %128 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, i32, ptr, ...) @mbedtls_debug_print_msg(ptr noundef %128, i32 noundef 3, ptr noundef @.str, i32 noundef 587, ptr noundef @.str.6)
  %129 = load ptr, ptr %3, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %129, i32 0, i32 15
  %131 = load ptr, ptr %130, align 8, !tbaa !16
  %132 = getelementptr inbounds %struct.mbedtls_ssl_handshake_params, ptr %131, i32 0, i32 28
  %133 = load ptr, ptr %132, align 8, !tbaa !37
  %134 = load ptr, ptr %3, align 8, !tbaa !5
  %135 = getelementptr inbounds [48 x i8], ptr %18, i64 0, i64 0
  call void %133(ptr noundef %134, ptr noundef %135)
  %136 = load ptr, ptr %3, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %136, i32 0, i32 5
  %138 = load i32, ptr %137, align 8, !tbaa !24
  %139 = icmp eq i32 %138, 3
  br i1 %139, label %140, label %152

140:                                              ; preds = %127
  %141 = load ptr, ptr %3, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %141, i32 0, i32 19
  %143 = load ptr, ptr %142, align 8, !tbaa !15
  %144 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %143, i32 0, i32 0
  %145 = load ptr, ptr %144, align 8, !tbaa !17
  %146 = getelementptr inbounds %struct.mbedtls_ssl_ciphersuite_t, ptr %145, i32 0, i32 3
  %147 = load i32, ptr %146, align 4, !tbaa !23
  %148 = icmp eq i32 %147, 7
  br i1 %148, label %149, label %150

149:                                              ; preds = %140
  store i64 48, ptr %19, align 8, !tbaa !42
  br label %151

150:                                              ; preds = %140
  store i64 32, ptr %19, align 8, !tbaa !42
  br label %151

151:                                              ; preds = %150, %149
  br label %153

152:                                              ; preds = %127
  store i64 36, ptr %19, align 8, !tbaa !42
  br label %153

153:                                              ; preds = %152, %151
  %154 = load ptr, ptr %3, align 8, !tbaa !5
  %155 = getelementptr inbounds [48 x i8], ptr %18, i64 0, i64 0
  %156 = load i64, ptr %19, align 8, !tbaa !42
  call void @mbedtls_debug_print_buf(ptr noundef %154, i32 noundef 3, ptr noundef @.str, i32 noundef 608, ptr noundef @.str.7, ptr noundef %155, i64 noundef %156)
  %157 = load ptr, ptr %16, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.mbedtls_ssl_handshake_params, ptr %157, i32 0, i32 30
  %159 = load ptr, ptr %158, align 8, !tbaa !25
  %160 = load ptr, ptr %16, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.mbedtls_ssl_handshake_params, ptr %160, i32 0, i32 33
  %162 = getelementptr inbounds [1060 x i8], ptr %161, i64 0, i64 0
  %163 = load ptr, ptr %16, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.mbedtls_ssl_handshake_params, ptr %163, i32 0, i32 31
  %165 = load i64, ptr %164, align 8, !tbaa !40
  %166 = getelementptr inbounds [48 x i8], ptr %18, i64 0, i64 0
  %167 = load i64, ptr %19, align 8, !tbaa !42
  %168 = load ptr, ptr %14, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.mbedtls_ssl_session, ptr %168, i32 0, i32 5
  %170 = getelementptr inbounds [48 x i8], ptr %169, i64 0, i64 0
  %171 = call i32 %159(ptr noundef %162, i64 noundef %165, ptr noundef @.str.8, ptr noundef %166, i64 noundef %167, ptr noundef %170, i64 noundef 48)
  store i32 %171, ptr %4, align 4, !tbaa !9
  %172 = load i32, ptr %4, align 4, !tbaa !9
  %173 = icmp ne i32 %172, 0
  br i1 %173, label %174, label %178

174:                                              ; preds = %153
  %175 = load ptr, ptr %3, align 8, !tbaa !5
  %176 = load i32, ptr %4, align 4, !tbaa !9
  call void @mbedtls_debug_print_ret(ptr noundef %175, i32 noundef 1, ptr noundef @.str, i32 noundef 616, ptr noundef @.str.9, i32 noundef %176)
  %177 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %177, ptr %2, align 4
  store i32 1, ptr %17, align 4
  br label %179

178:                                              ; preds = %153
  store i32 0, ptr %17, align 4
  br label %179

179:                                              ; preds = %178, %174
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %18) #4
  %180 = load i32, ptr %17, align 4
  switch i32 %180, label %701 [
    i32 0, label %181
  ]

181:                                              ; preds = %179
  br label %199

182:                                              ; preds = %113
  %183 = load ptr, ptr %16, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.mbedtls_ssl_handshake_params, ptr %183, i32 0, i32 30
  %185 = load ptr, ptr %184, align 8, !tbaa !25
  %186 = load ptr, ptr %16, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.mbedtls_ssl_handshake_params, ptr %186, i32 0, i32 33
  %188 = getelementptr inbounds [1060 x i8], ptr %187, i64 0, i64 0
  %189 = load ptr, ptr %16, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.mbedtls_ssl_handshake_params, ptr %189, i32 0, i32 31
  %191 = load i64, ptr %190, align 8, !tbaa !40
  %192 = load ptr, ptr %16, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.mbedtls_ssl_handshake_params, ptr %192, i32 0, i32 32
  %194 = getelementptr inbounds [64 x i8], ptr %193, i64 0, i64 0
  %195 = load ptr, ptr %14, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.mbedtls_ssl_session, ptr %195, i32 0, i32 5
  %197 = getelementptr inbounds [48 x i8], ptr %196, i64 0, i64 0
  %198 = call i32 %185(ptr noundef %188, i64 noundef %191, ptr noundef @.str.10, ptr noundef %194, i64 noundef 64, ptr noundef %197, i64 noundef 48)
  store i32 %198, ptr %4, align 4, !tbaa !9
  br label %199

199:                                              ; preds = %182, %181
  %200 = load i32, ptr %4, align 4, !tbaa !9
  %201 = icmp ne i32 %200, 0
  br i1 %201, label %202, label %206

202:                                              ; preds = %199
  %203 = load ptr, ptr %3, align 8, !tbaa !5
  %204 = load i32, ptr %4, align 4, !tbaa !9
  call void @mbedtls_debug_print_ret(ptr noundef %203, i32 noundef 1, ptr noundef @.str, i32 noundef 629, ptr noundef @.str.9, i32 noundef %204)
  %205 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %205, ptr %2, align 4
  store i32 1, ptr %17, align 4
  br label %701

206:                                              ; preds = %199
  %207 = load ptr, ptr %16, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.mbedtls_ssl_handshake_params, ptr %207, i32 0, i32 33
  %209 = getelementptr inbounds [1060 x i8], ptr %208, i64 0, i64 0
  call void @mbedtls_zeroize(ptr noundef %209, i64 noundef 1060)
  br label %212

210:                                              ; preds = %108
  %211 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, i32, ptr, ...) @mbedtls_debug_print_msg(ptr noundef %211, i32 noundef 3, ptr noundef @.str, i32 noundef 636, ptr noundef @.str.11)
  br label %212

212:                                              ; preds = %210, %206
  %213 = getelementptr inbounds [64 x i8], ptr %5, i64 0, i64 0
  %214 = load ptr, ptr %16, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.mbedtls_ssl_handshake_params, ptr %214, i32 0, i32 32
  %216 = getelementptr inbounds [64 x i8], ptr %215, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %213, ptr align 8 %216, i64 64, i1 false)
  %217 = load ptr, ptr %16, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.mbedtls_ssl_handshake_params, ptr %217, i32 0, i32 32
  %219 = getelementptr inbounds [64 x i8], ptr %218, i64 0, i64 0
  %220 = getelementptr inbounds [64 x i8], ptr %5, i64 0, i64 0
  %221 = getelementptr inbounds i8, ptr %220, i64 32
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %219, ptr align 1 %221, i64 32, i1 false)
  %222 = load ptr, ptr %16, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.mbedtls_ssl_handshake_params, ptr %222, i32 0, i32 32
  %224 = getelementptr inbounds [64 x i8], ptr %223, i64 0, i64 0
  %225 = getelementptr inbounds i8, ptr %224, i64 32
  %226 = getelementptr inbounds [64 x i8], ptr %5, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %225, ptr align 16 %226, i64 32, i1 false)
  %227 = getelementptr inbounds [64 x i8], ptr %5, i64 0, i64 0
  call void @mbedtls_zeroize(ptr noundef %227, i64 noundef 64)
  %228 = load ptr, ptr %16, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.mbedtls_ssl_handshake_params, ptr %228, i32 0, i32 30
  %230 = load ptr, ptr %229, align 8, !tbaa !25
  %231 = load ptr, ptr %14, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.mbedtls_ssl_session, ptr %231, i32 0, i32 5
  %233 = getelementptr inbounds [48 x i8], ptr %232, i64 0, i64 0
  %234 = load ptr, ptr %16, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.mbedtls_ssl_handshake_params, ptr %234, i32 0, i32 32
  %236 = getelementptr inbounds [64 x i8], ptr %235, i64 0, i64 0
  %237 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
  %238 = call i32 %230(ptr noundef %233, i64 noundef 48, ptr noundef @.str.12, ptr noundef %236, i64 noundef 64, ptr noundef %237, i64 noundef 256)
  store i32 %238, ptr %4, align 4, !tbaa !9
  %239 = load i32, ptr %4, align 4, !tbaa !9
  %240 = icmp ne i32 %239, 0
  br i1 %240, label %241, label %245

241:                                              ; preds = %212
  %242 = load ptr, ptr %3, align 8, !tbaa !5
  %243 = load i32, ptr %4, align 4, !tbaa !9
  call void @mbedtls_debug_print_ret(ptr noundef %242, i32 noundef 1, ptr noundef @.str, i32 noundef 662, ptr noundef @.str.9, i32 noundef %243)
  %244 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %244, ptr %2, align 4
  store i32 1, ptr %17, align 4
  br label %701

245:                                              ; preds = %212
  %246 = load ptr, ptr %3, align 8, !tbaa !5
  %247 = load ptr, ptr %14, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.mbedtls_ssl_session, ptr %247, i32 0, i32 1
  %249 = load i32, ptr %248, align 8, !tbaa !43
  %250 = call ptr @mbedtls_ssl_get_ciphersuite_name(i32 noundef %249)
  call void (ptr, i32, ptr, i32, ptr, ...) @mbedtls_debug_print_msg(ptr noundef %246, i32 noundef 3, ptr noundef @.str, i32 noundef 667, ptr noundef @.str.13, ptr noundef %250)
  %251 = load ptr, ptr %3, align 8, !tbaa !5
  %252 = load ptr, ptr %14, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct.mbedtls_ssl_session, ptr %252, i32 0, i32 5
  %254 = getelementptr inbounds [48 x i8], ptr %253, i64 0, i64 0
  call void @mbedtls_debug_print_buf(ptr noundef %251, i32 noundef 3, ptr noundef @.str, i32 noundef 668, ptr noundef @.str.10, ptr noundef %254, i64 noundef 48)
  %255 = load ptr, ptr %3, align 8, !tbaa !5
  %256 = load ptr, ptr %16, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.mbedtls_ssl_handshake_params, ptr %256, i32 0, i32 32
  %258 = getelementptr inbounds [64 x i8], ptr %257, i64 0, i64 0
  call void @mbedtls_debug_print_buf(ptr noundef %255, i32 noundef 4, ptr noundef @.str, i32 noundef 669, ptr noundef @.str.14, ptr noundef %258, i64 noundef 64)
  %259 = load ptr, ptr %3, align 8, !tbaa !5
  %260 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
  call void @mbedtls_debug_print_buf(ptr noundef %259, i32 noundef 4, ptr noundef @.str, i32 noundef 670, ptr noundef @.str.15, ptr noundef %260, i64 noundef 256)
  %261 = load ptr, ptr %16, align 8, !tbaa !5
  %262 = getelementptr inbounds %struct.mbedtls_ssl_handshake_params, ptr %261, i32 0, i32 32
  %263 = getelementptr inbounds [64 x i8], ptr %262, i64 0, i64 0
  call void @mbedtls_zeroize(ptr noundef %263, i64 noundef 64)
  %264 = load ptr, ptr %12, align 8, !tbaa !5
  %265 = getelementptr inbounds %struct.mbedtls_cipher_info_t, ptr %264, i32 0, i32 2
  %266 = load i32, ptr %265, align 8, !tbaa !45
  %267 = udiv i32 %266, 8
  %268 = load ptr, ptr %15, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %268, i32 0, i32 1
  store i32 %267, ptr %269, align 8, !tbaa !47
  %270 = load ptr, ptr %12, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.mbedtls_cipher_info_t, ptr %270, i32 0, i32 1
  %272 = load i32, ptr %271, align 4, !tbaa !48
  %273 = icmp eq i32 %272, 6
  br i1 %273, label %279, label %274

274:                                              ; preds = %245
  %275 = load ptr, ptr %12, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.mbedtls_cipher_info_t, ptr %275, i32 0, i32 1
  %277 = load i32, ptr %276, align 4, !tbaa !48
  %278 = icmp eq i32 %277, 8
  br i1 %278, label %279, label %307

279:                                              ; preds = %274, %245
  %280 = load ptr, ptr %15, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %280, i32 0, i32 5
  store i64 0, ptr %281, align 8, !tbaa !49
  %282 = load ptr, ptr %15, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %282, i32 0, i32 3
  store i64 12, ptr %283, align 8, !tbaa !50
  %284 = load ptr, ptr %15, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %284, i32 0, i32 4
  store i64 4, ptr %285, align 8, !tbaa !51
  %286 = load ptr, ptr %15, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %286, i32 0, i32 3
  %288 = load i64, ptr %287, align 8, !tbaa !50
  %289 = load ptr, ptr %15, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %289, i32 0, i32 4
  %291 = load i64, ptr %290, align 8, !tbaa !51
  %292 = sub i64 %288, %291
  %293 = load ptr, ptr %15, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %293, i32 0, i32 0
  %295 = load ptr, ptr %294, align 8, !tbaa !17
  %296 = getelementptr inbounds %struct.mbedtls_ssl_ciphersuite_t, ptr %295, i32 0, i32 9
  %297 = load i8, ptr %296, align 4, !tbaa !52
  %298 = zext i8 %297 to i32
  %299 = and i32 %298, 2
  %300 = icmp ne i32 %299, 0
  %301 = zext i1 %300 to i64
  %302 = select i1 %300, i32 8, i32 16
  %303 = sext i32 %302 to i64
  %304 = add i64 %292, %303
  %305 = load ptr, ptr %15, align 8, !tbaa !5
  %306 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %305, i32 0, i32 2
  store i64 %304, ptr %306, align 8, !tbaa !53
  br label %423

307:                                              ; preds = %274
  %308 = load ptr, ptr %15, align 8, !tbaa !5
  %309 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %308, i32 0, i32 8
  %310 = load ptr, ptr %13, align 8, !tbaa !5
  %311 = call i32 @mbedtls_md_setup(ptr noundef %309, ptr noundef %310, i32 noundef 1)
  store i32 %311, ptr %4, align 4, !tbaa !9
  %312 = icmp ne i32 %311, 0
  br i1 %312, label %319, label %313

313:                                              ; preds = %307
  %314 = load ptr, ptr %15, align 8, !tbaa !5
  %315 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %314, i32 0, i32 9
  %316 = load ptr, ptr %13, align 8, !tbaa !5
  %317 = call i32 @mbedtls_md_setup(ptr noundef %315, ptr noundef %316, i32 noundef 1)
  store i32 %317, ptr %4, align 4, !tbaa !9
  %318 = icmp ne i32 %317, 0
  br i1 %318, label %319, label %323

319:                                              ; preds = %313, %307
  %320 = load ptr, ptr %3, align 8, !tbaa !5
  %321 = load i32, ptr %4, align 4, !tbaa !9
  call void @mbedtls_debug_print_ret(ptr noundef %320, i32 noundef 1, ptr noundef @.str, i32 noundef 699, ptr noundef @.str.16, i32 noundef %321)
  %322 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %322, ptr %2, align 4
  store i32 1, ptr %17, align 4
  br label %701

323:                                              ; preds = %313
  %324 = load ptr, ptr %13, align 8, !tbaa !5
  %325 = call zeroext i8 @mbedtls_md_get_size(ptr noundef %324)
  %326 = zext i8 %325 to i64
  %327 = load ptr, ptr %15, align 8, !tbaa !5
  %328 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %327, i32 0, i32 5
  store i64 %326, ptr %328, align 8, !tbaa !49
  %329 = load ptr, ptr %14, align 8, !tbaa !5
  %330 = getelementptr inbounds %struct.mbedtls_ssl_session, ptr %329, i32 0, i32 12
  %331 = load i32, ptr %330, align 8, !tbaa !54
  %332 = icmp eq i32 %331, 1
  br i1 %332, label %333, label %336

333:                                              ; preds = %323
  %334 = load ptr, ptr %15, align 8, !tbaa !5
  %335 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %334, i32 0, i32 5
  store i64 10, ptr %335, align 8, !tbaa !49
  br label %336

336:                                              ; preds = %333, %323
  %337 = load ptr, ptr %12, align 8, !tbaa !5
  %338 = getelementptr inbounds %struct.mbedtls_cipher_info_t, ptr %337, i32 0, i32 4
  %339 = load i32, ptr %338, align 8, !tbaa !55
  %340 = zext i32 %339 to i64
  %341 = load ptr, ptr %15, align 8, !tbaa !5
  %342 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %341, i32 0, i32 3
  store i64 %340, ptr %342, align 8, !tbaa !50
  %343 = load ptr, ptr %12, align 8, !tbaa !5
  %344 = getelementptr inbounds %struct.mbedtls_cipher_info_t, ptr %343, i32 0, i32 1
  %345 = load i32, ptr %344, align 4, !tbaa !48
  %346 = icmp eq i32 %345, 7
  br i1 %346, label %347, label %353

347:                                              ; preds = %336
  %348 = load ptr, ptr %15, align 8, !tbaa !5
  %349 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %348, i32 0, i32 5
  %350 = load i64, ptr %349, align 8, !tbaa !49
  %351 = load ptr, ptr %15, align 8, !tbaa !5
  %352 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %351, i32 0, i32 2
  store i64 %350, ptr %352, align 8, !tbaa !53
  br label %422

353:                                              ; preds = %336
  %354 = load ptr, ptr %14, align 8, !tbaa !5
  %355 = getelementptr inbounds %struct.mbedtls_ssl_session, ptr %354, i32 0, i32 13
  %356 = load i32, ptr %355, align 4, !tbaa !56
  %357 = icmp eq i32 %356, 1
  br i1 %357, label %358, label %369

358:                                              ; preds = %353
  %359 = load ptr, ptr %15, align 8, !tbaa !5
  %360 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %359, i32 0, i32 5
  %361 = load i64, ptr %360, align 8, !tbaa !49
  %362 = load ptr, ptr %12, align 8, !tbaa !5
  %363 = getelementptr inbounds %struct.mbedtls_cipher_info_t, ptr %362, i32 0, i32 6
  %364 = load i32, ptr %363, align 8, !tbaa !57
  %365 = zext i32 %364 to i64
  %366 = add i64 %361, %365
  %367 = load ptr, ptr %15, align 8, !tbaa !5
  %368 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %367, i32 0, i32 2
  store i64 %366, ptr %368, align 8, !tbaa !53
  br label %389

369:                                              ; preds = %353
  %370 = load ptr, ptr %15, align 8, !tbaa !5
  %371 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %370, i32 0, i32 5
  %372 = load i64, ptr %371, align 8, !tbaa !49
  %373 = load ptr, ptr %12, align 8, !tbaa !5
  %374 = getelementptr inbounds %struct.mbedtls_cipher_info_t, ptr %373, i32 0, i32 6
  %375 = load i32, ptr %374, align 8, !tbaa !57
  %376 = zext i32 %375 to i64
  %377 = add i64 %372, %376
  %378 = load ptr, ptr %15, align 8, !tbaa !5
  %379 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %378, i32 0, i32 5
  %380 = load i64, ptr %379, align 8, !tbaa !49
  %381 = load ptr, ptr %12, align 8, !tbaa !5
  %382 = getelementptr inbounds %struct.mbedtls_cipher_info_t, ptr %381, i32 0, i32 6
  %383 = load i32, ptr %382, align 8, !tbaa !57
  %384 = zext i32 %383 to i64
  %385 = urem i64 %380, %384
  %386 = sub i64 %377, %385
  %387 = load ptr, ptr %15, align 8, !tbaa !5
  %388 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %387, i32 0, i32 2
  store i64 %386, ptr %388, align 8, !tbaa !53
  br label %389

389:                                              ; preds = %369, %358
  %390 = load ptr, ptr %3, align 8, !tbaa !5
  %391 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %390, i32 0, i32 5
  %392 = load i32, ptr %391, align 8, !tbaa !24
  %393 = icmp eq i32 %392, 0
  br i1 %393, label %399, label %394

394:                                              ; preds = %389
  %395 = load ptr, ptr %3, align 8, !tbaa !5
  %396 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %395, i32 0, i32 5
  %397 = load i32, ptr %396, align 8, !tbaa !24
  %398 = icmp eq i32 %397, 1
  br i1 %398, label %399, label %400

399:                                              ; preds = %394, %389
  br label %421

400:                                              ; preds = %394
  %401 = load ptr, ptr %3, align 8, !tbaa !5
  %402 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %401, i32 0, i32 5
  %403 = load i32, ptr %402, align 8, !tbaa !24
  %404 = icmp eq i32 %403, 2
  br i1 %404, label %410, label %405

405:                                              ; preds = %400
  %406 = load ptr, ptr %3, align 8, !tbaa !5
  %407 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %406, i32 0, i32 5
  %408 = load i32, ptr %407, align 8, !tbaa !24
  %409 = icmp eq i32 %408, 3
  br i1 %409, label %410, label %418

410:                                              ; preds = %405, %400
  %411 = load ptr, ptr %15, align 8, !tbaa !5
  %412 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %411, i32 0, i32 3
  %413 = load i64, ptr %412, align 8, !tbaa !50
  %414 = load ptr, ptr %15, align 8, !tbaa !5
  %415 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %414, i32 0, i32 2
  %416 = load i64, ptr %415, align 8, !tbaa !53
  %417 = add i64 %416, %413
  store i64 %417, ptr %415, align 8, !tbaa !53
  br label %420

418:                                              ; preds = %405
  %419 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, i32, ptr, ...) @mbedtls_debug_print_msg(ptr noundef %419, i32 noundef 1, ptr noundef @.str, i32 noundef 759, ptr noundef @.str.4)
  store i32 -27648, ptr %2, align 4
  store i32 1, ptr %17, align 4
  br label %701

420:                                              ; preds = %410
  br label %421

421:                                              ; preds = %420, %399
  br label %422

422:                                              ; preds = %421, %347
  br label %423

423:                                              ; preds = %422, %279
  %424 = load ptr, ptr %3, align 8, !tbaa !5
  %425 = load ptr, ptr %15, align 8, !tbaa !5
  %426 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %425, i32 0, i32 1
  %427 = load i32, ptr %426, align 8, !tbaa !47
  %428 = load ptr, ptr %15, align 8, !tbaa !5
  %429 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %428, i32 0, i32 2
  %430 = load i64, ptr %429, align 8, !tbaa !53
  %431 = load ptr, ptr %15, align 8, !tbaa !5
  %432 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %431, i32 0, i32 3
  %433 = load i64, ptr %432, align 8, !tbaa !50
  %434 = load ptr, ptr %15, align 8, !tbaa !5
  %435 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %434, i32 0, i32 5
  %436 = load i64, ptr %435, align 8, !tbaa !49
  call void (ptr, i32, ptr, i32, ptr, ...) @mbedtls_debug_print_msg(ptr noundef %424, i32 noundef 3, ptr noundef @.str, i32 noundef 767, ptr noundef @.str.17, i32 noundef %427, i64 noundef %430, i64 noundef %433, i64 noundef %436)
  %437 = load ptr, ptr %3, align 8, !tbaa !5
  %438 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %437, i32 0, i32 0
  %439 = load ptr, ptr %438, align 8, !tbaa !58
  %440 = getelementptr inbounds %struct.mbedtls_ssl_config, ptr %439, i32 0, i32 46
  %441 = load i32, ptr %440, align 4
  %442 = and i32 %441, 1
  %443 = icmp eq i32 %442, 0
  br i1 %443, label %444, label %504

444:                                              ; preds = %423
  %445 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
  %446 = load ptr, ptr %15, align 8, !tbaa !5
  %447 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %446, i32 0, i32 5
  %448 = load i64, ptr %447, align 8, !tbaa !49
  %449 = mul i64 %448, 2
  %450 = getelementptr inbounds i8, ptr %445, i64 %449
  store ptr %450, ptr %7, align 8, !tbaa !5
  %451 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
  %452 = load ptr, ptr %15, align 8, !tbaa !5
  %453 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %452, i32 0, i32 5
  %454 = load i64, ptr %453, align 8, !tbaa !49
  %455 = mul i64 %454, 2
  %456 = getelementptr inbounds i8, ptr %451, i64 %455
  %457 = load ptr, ptr %15, align 8, !tbaa !5
  %458 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %457, i32 0, i32 1
  %459 = load i32, ptr %458, align 8, !tbaa !47
  %460 = zext i32 %459 to i64
  %461 = getelementptr inbounds i8, ptr %456, i64 %460
  store ptr %461, ptr %8, align 8, !tbaa !5
  %462 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
  store ptr %462, ptr %9, align 8, !tbaa !5
  %463 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
  %464 = load ptr, ptr %15, align 8, !tbaa !5
  %465 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %464, i32 0, i32 5
  %466 = load i64, ptr %465, align 8, !tbaa !49
  %467 = getelementptr inbounds i8, ptr %463, i64 %466
  store ptr %467, ptr %10, align 8, !tbaa !5
  %468 = load ptr, ptr %15, align 8, !tbaa !5
  %469 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %468, i32 0, i32 4
  %470 = load i64, ptr %469, align 8, !tbaa !51
  %471 = icmp ne i64 %470, 0
  br i1 %471, label %472, label %476

472:                                              ; preds = %444
  %473 = load ptr, ptr %15, align 8, !tbaa !5
  %474 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %473, i32 0, i32 4
  %475 = load i64, ptr %474, align 8, !tbaa !51
  br label %480

476:                                              ; preds = %444
  %477 = load ptr, ptr %15, align 8, !tbaa !5
  %478 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %477, i32 0, i32 3
  %479 = load i64, ptr %478, align 8, !tbaa !50
  br label %480

480:                                              ; preds = %476, %472
  %481 = phi i64 [ %475, %472 ], [ %479, %476 ]
  store i64 %481, ptr %11, align 8, !tbaa !42
  %482 = load ptr, ptr %15, align 8, !tbaa !5
  %483 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %482, i32 0, i32 6
  %484 = getelementptr inbounds [16 x i8], ptr %483, i64 0, i64 0
  %485 = load ptr, ptr %8, align 8, !tbaa !5
  %486 = load ptr, ptr %15, align 8, !tbaa !5
  %487 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %486, i32 0, i32 1
  %488 = load i32, ptr %487, align 8, !tbaa !47
  %489 = zext i32 %488 to i64
  %490 = getelementptr inbounds i8, ptr %485, i64 %489
  %491 = load i64, ptr %11, align 8, !tbaa !42
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %484, ptr align 1 %490, i64 %491, i1 false)
  %492 = load ptr, ptr %15, align 8, !tbaa !5
  %493 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %492, i32 0, i32 7
  %494 = getelementptr inbounds [16 x i8], ptr %493, i64 0, i64 0
  %495 = load ptr, ptr %8, align 8, !tbaa !5
  %496 = load ptr, ptr %15, align 8, !tbaa !5
  %497 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %496, i32 0, i32 1
  %498 = load i32, ptr %497, align 8, !tbaa !47
  %499 = zext i32 %498 to i64
  %500 = getelementptr inbounds i8, ptr %495, i64 %499
  %501 = load i64, ptr %11, align 8, !tbaa !42
  %502 = getelementptr inbounds i8, ptr %500, i64 %501
  %503 = load i64, ptr %11, align 8, !tbaa !42
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %494, ptr align 1 %502, i64 %503, i1 false)
  br label %575

504:                                              ; preds = %423
  %505 = load ptr, ptr %3, align 8, !tbaa !5
  %506 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %505, i32 0, i32 0
  %507 = load ptr, ptr %506, align 8, !tbaa !58
  %508 = getelementptr inbounds %struct.mbedtls_ssl_config, ptr %507, i32 0, i32 46
  %509 = load i32, ptr %508, align 4
  %510 = and i32 %509, 1
  %511 = icmp eq i32 %510, 1
  br i1 %511, label %512, label %572

512:                                              ; preds = %504
  %513 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
  %514 = load ptr, ptr %15, align 8, !tbaa !5
  %515 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %514, i32 0, i32 5
  %516 = load i64, ptr %515, align 8, !tbaa !49
  %517 = mul i64 %516, 2
  %518 = getelementptr inbounds i8, ptr %513, i64 %517
  %519 = load ptr, ptr %15, align 8, !tbaa !5
  %520 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %519, i32 0, i32 1
  %521 = load i32, ptr %520, align 8, !tbaa !47
  %522 = zext i32 %521 to i64
  %523 = getelementptr inbounds i8, ptr %518, i64 %522
  store ptr %523, ptr %7, align 8, !tbaa !5
  %524 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
  %525 = load ptr, ptr %15, align 8, !tbaa !5
  %526 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %525, i32 0, i32 5
  %527 = load i64, ptr %526, align 8, !tbaa !49
  %528 = mul i64 %527, 2
  %529 = getelementptr inbounds i8, ptr %524, i64 %528
  store ptr %529, ptr %8, align 8, !tbaa !5
  %530 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
  %531 = load ptr, ptr %15, align 8, !tbaa !5
  %532 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %531, i32 0, i32 5
  %533 = load i64, ptr %532, align 8, !tbaa !49
  %534 = getelementptr inbounds i8, ptr %530, i64 %533
  store ptr %534, ptr %9, align 8, !tbaa !5
  %535 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
  store ptr %535, ptr %10, align 8, !tbaa !5
  %536 = load ptr, ptr %15, align 8, !tbaa !5
  %537 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %536, i32 0, i32 4
  %538 = load i64, ptr %537, align 8, !tbaa !51
  %539 = icmp ne i64 %538, 0
  br i1 %539, label %540, label %544

540:                                              ; preds = %512
  %541 = load ptr, ptr %15, align 8, !tbaa !5
  %542 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %541, i32 0, i32 4
  %543 = load i64, ptr %542, align 8, !tbaa !51
  br label %548

544:                                              ; preds = %512
  %545 = load ptr, ptr %15, align 8, !tbaa !5
  %546 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %545, i32 0, i32 3
  %547 = load i64, ptr %546, align 8, !tbaa !50
  br label %548

548:                                              ; preds = %544, %540
  %549 = phi i64 [ %543, %540 ], [ %547, %544 ]
  store i64 %549, ptr %11, align 8, !tbaa !42
  %550 = load ptr, ptr %15, align 8, !tbaa !5
  %551 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %550, i32 0, i32 7
  %552 = getelementptr inbounds [16 x i8], ptr %551, i64 0, i64 0
  %553 = load ptr, ptr %7, align 8, !tbaa !5
  %554 = load ptr, ptr %15, align 8, !tbaa !5
  %555 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %554, i32 0, i32 1
  %556 = load i32, ptr %555, align 8, !tbaa !47
  %557 = zext i32 %556 to i64
  %558 = getelementptr inbounds i8, ptr %553, i64 %557
  %559 = load i64, ptr %11, align 8, !tbaa !42
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %552, ptr align 1 %558, i64 %559, i1 false)
  %560 = load ptr, ptr %15, align 8, !tbaa !5
  %561 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %560, i32 0, i32 6
  %562 = getelementptr inbounds [16 x i8], ptr %561, i64 0, i64 0
  %563 = load ptr, ptr %7, align 8, !tbaa !5
  %564 = load ptr, ptr %15, align 8, !tbaa !5
  %565 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %564, i32 0, i32 1
  %566 = load i32, ptr %565, align 8, !tbaa !47
  %567 = zext i32 %566 to i64
  %568 = getelementptr inbounds i8, ptr %563, i64 %567
  %569 = load i64, ptr %11, align 8, !tbaa !42
  %570 = getelementptr inbounds i8, ptr %568, i64 %569
  %571 = load i64, ptr %11, align 8, !tbaa !42
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %562, ptr align 1 %570, i64 %571, i1 false)
  br label %574

572:                                              ; preds = %504
  %573 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, i32, ptr, ...) @mbedtls_debug_print_msg(ptr noundef %573, i32 noundef 1, ptr noundef @.str, i32 noundef 813, ptr noundef @.str.4)
  store i32 -27648, ptr %2, align 4
  store i32 1, ptr %17, align 4
  br label %701

574:                                              ; preds = %548
  br label %575

575:                                              ; preds = %574, %480
  %576 = load ptr, ptr %3, align 8, !tbaa !5
  %577 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %576, i32 0, i32 5
  %578 = load i32, ptr %577, align 8, !tbaa !24
  %579 = icmp sge i32 %578, 1
  br i1 %579, label %580, label %595

580:                                              ; preds = %575
  %581 = load ptr, ptr %15, align 8, !tbaa !5
  %582 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %581, i32 0, i32 8
  %583 = load ptr, ptr %9, align 8, !tbaa !5
  %584 = load ptr, ptr %15, align 8, !tbaa !5
  %585 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %584, i32 0, i32 5
  %586 = load i64, ptr %585, align 8, !tbaa !49
  %587 = call i32 @mbedtls_md_hmac_starts(ptr noundef %582, ptr noundef %583, i64 noundef %586)
  %588 = load ptr, ptr %15, align 8, !tbaa !5
  %589 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %588, i32 0, i32 9
  %590 = load ptr, ptr %10, align 8, !tbaa !5
  %591 = load ptr, ptr %15, align 8, !tbaa !5
  %592 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %591, i32 0, i32 5
  %593 = load i64, ptr %592, align 8, !tbaa !49
  %594 = call i32 @mbedtls_md_hmac_starts(ptr noundef %589, ptr noundef %590, i64 noundef %593)
  br label %597

595:                                              ; preds = %575
  %596 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, i32, ptr, ...) @mbedtls_debug_print_msg(ptr noundef %596, i32 noundef 1, ptr noundef @.str, i32 noundef 841, ptr noundef @.str.4)
  store i32 -27648, ptr %2, align 4
  store i32 1, ptr %17, align 4
  br label %701

597:                                              ; preds = %580
  %598 = load ptr, ptr %3, align 8, !tbaa !5
  %599 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %598, i32 0, i32 0
  %600 = load ptr, ptr %599, align 8, !tbaa !58
  %601 = getelementptr inbounds %struct.mbedtls_ssl_config, ptr %600, i32 0, i32 20
  %602 = load ptr, ptr %601, align 8, !tbaa !59
  %603 = icmp ne ptr %602, null
  br i1 %603, label %604, label %628

604:                                              ; preds = %597
  %605 = load ptr, ptr %3, align 8, !tbaa !5
  %606 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %605, i32 0, i32 0
  %607 = load ptr, ptr %606, align 8, !tbaa !58
  %608 = getelementptr inbounds %struct.mbedtls_ssl_config, ptr %607, i32 0, i32 20
  %609 = load ptr, ptr %608, align 8, !tbaa !59
  %610 = load ptr, ptr %3, align 8, !tbaa !5
  %611 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %610, i32 0, i32 0
  %612 = load ptr, ptr %611, align 8, !tbaa !58
  %613 = getelementptr inbounds %struct.mbedtls_ssl_config, ptr %612, i32 0, i32 21
  %614 = load ptr, ptr %613, align 8, !tbaa !61
  %615 = load ptr, ptr %14, align 8, !tbaa !5
  %616 = getelementptr inbounds %struct.mbedtls_ssl_session, ptr %615, i32 0, i32 5
  %617 = getelementptr inbounds [48 x i8], ptr %616, i64 0, i64 0
  %618 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
  %619 = load ptr, ptr %15, align 8, !tbaa !5
  %620 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %619, i32 0, i32 5
  %621 = load i64, ptr %620, align 8, !tbaa !49
  %622 = load ptr, ptr %15, align 8, !tbaa !5
  %623 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %622, i32 0, i32 1
  %624 = load i32, ptr %623, align 8, !tbaa !47
  %625 = zext i32 %624 to i64
  %626 = load i64, ptr %11, align 8, !tbaa !42
  %627 = call i32 %609(ptr noundef %614, ptr noundef %617, ptr noundef %618, i64 noundef %621, i64 noundef %625, i64 noundef %626)
  br label %628

628:                                              ; preds = %604, %597
  %629 = load ptr, ptr %15, align 8, !tbaa !5
  %630 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %629, i32 0, i32 10
  %631 = load ptr, ptr %12, align 8, !tbaa !5
  %632 = call i32 @mbedtls_cipher_setup(ptr noundef %630, ptr noundef %631)
  store i32 %632, ptr %4, align 4, !tbaa !9
  %633 = icmp ne i32 %632, 0
  br i1 %633, label %634, label %638

634:                                              ; preds = %628
  %635 = load ptr, ptr %3, align 8, !tbaa !5
  %636 = load i32, ptr %4, align 4, !tbaa !9
  call void @mbedtls_debug_print_ret(ptr noundef %635, i32 noundef 1, ptr noundef @.str, i32 noundef 877, ptr noundef @.str.18, i32 noundef %636)
  %637 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %637, ptr %2, align 4
  store i32 1, ptr %17, align 4
  br label %701

638:                                              ; preds = %628
  %639 = load ptr, ptr %15, align 8, !tbaa !5
  %640 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %639, i32 0, i32 11
  %641 = load ptr, ptr %12, align 8, !tbaa !5
  %642 = call i32 @mbedtls_cipher_setup(ptr noundef %640, ptr noundef %641)
  store i32 %642, ptr %4, align 4, !tbaa !9
  %643 = icmp ne i32 %642, 0
  br i1 %643, label %644, label %648

644:                                              ; preds = %638
  %645 = load ptr, ptr %3, align 8, !tbaa !5
  %646 = load i32, ptr %4, align 4, !tbaa !9
  call void @mbedtls_debug_print_ret(ptr noundef %645, i32 noundef 1, ptr noundef @.str, i32 noundef 884, ptr noundef @.str.18, i32 noundef %646)
  %647 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %647, ptr %2, align 4
  store i32 1, ptr %17, align 4
  br label %701

648:                                              ; preds = %638
  %649 = load ptr, ptr %15, align 8, !tbaa !5
  %650 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %649, i32 0, i32 10
  %651 = load ptr, ptr %7, align 8, !tbaa !5
  %652 = load ptr, ptr %12, align 8, !tbaa !5
  %653 = getelementptr inbounds %struct.mbedtls_cipher_info_t, ptr %652, i32 0, i32 2
  %654 = load i32, ptr %653, align 8, !tbaa !45
  %655 = call i32 @mbedtls_cipher_setkey(ptr noundef %650, ptr noundef %651, i32 noundef %654, i32 noundef 1)
  store i32 %655, ptr %4, align 4, !tbaa !9
  %656 = icmp ne i32 %655, 0
  br i1 %656, label %657, label %661

657:                                              ; preds = %648
  %658 = load ptr, ptr %3, align 8, !tbaa !5
  %659 = load i32, ptr %4, align 4, !tbaa !9
  call void @mbedtls_debug_print_ret(ptr noundef %658, i32 noundef 1, ptr noundef @.str, i32 noundef 892, ptr noundef @.str.19, i32 noundef %659)
  %660 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %660, ptr %2, align 4
  store i32 1, ptr %17, align 4
  br label %701

661:                                              ; preds = %648
  %662 = load ptr, ptr %15, align 8, !tbaa !5
  %663 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %662, i32 0, i32 11
  %664 = load ptr, ptr %8, align 8, !tbaa !5
  %665 = load ptr, ptr %12, align 8, !tbaa !5
  %666 = getelementptr inbounds %struct.mbedtls_cipher_info_t, ptr %665, i32 0, i32 2
  %667 = load i32, ptr %666, align 8, !tbaa !45
  %668 = call i32 @mbedtls_cipher_setkey(ptr noundef %663, ptr noundef %664, i32 noundef %667, i32 noundef 0)
  store i32 %668, ptr %4, align 4, !tbaa !9
  %669 = icmp ne i32 %668, 0
  br i1 %669, label %670, label %674

670:                                              ; preds = %661
  %671 = load ptr, ptr %3, align 8, !tbaa !5
  %672 = load i32, ptr %4, align 4, !tbaa !9
  call void @mbedtls_debug_print_ret(ptr noundef %671, i32 noundef 1, ptr noundef @.str, i32 noundef 900, ptr noundef @.str.19, i32 noundef %672)
  %673 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %673, ptr %2, align 4
  store i32 1, ptr %17, align 4
  br label %701

674:                                              ; preds = %661
  %675 = load ptr, ptr %12, align 8, !tbaa !5
  %676 = getelementptr inbounds %struct.mbedtls_cipher_info_t, ptr %675, i32 0, i32 1
  %677 = load i32, ptr %676, align 4, !tbaa !48
  %678 = icmp eq i32 %677, 2
  br i1 %678, label %679, label %698

679:                                              ; preds = %674
  %680 = load ptr, ptr %15, align 8, !tbaa !5
  %681 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %680, i32 0, i32 10
  %682 = call i32 @mbedtls_cipher_set_padding_mode(ptr noundef %681, i32 noundef 4)
  store i32 %682, ptr %4, align 4, !tbaa !9
  %683 = icmp ne i32 %682, 0
  br i1 %683, label %684, label %688

684:                                              ; preds = %679
  %685 = load ptr, ptr %3, align 8, !tbaa !5
  %686 = load i32, ptr %4, align 4, !tbaa !9
  call void @mbedtls_debug_print_ret(ptr noundef %685, i32 noundef 1, ptr noundef @.str, i32 noundef 910, ptr noundef @.str.20, i32 noundef %686)
  %687 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %687, ptr %2, align 4
  store i32 1, ptr %17, align 4
  br label %701

688:                                              ; preds = %679
  %689 = load ptr, ptr %15, align 8, !tbaa !5
  %690 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %689, i32 0, i32 11
  %691 = call i32 @mbedtls_cipher_set_padding_mode(ptr noundef %690, i32 noundef 4)
  store i32 %691, ptr %4, align 4, !tbaa !9
  %692 = icmp ne i32 %691, 0
  br i1 %692, label %693, label %697

693:                                              ; preds = %688
  %694 = load ptr, ptr %3, align 8, !tbaa !5
  %695 = load i32, ptr %4, align 4, !tbaa !9
  call void @mbedtls_debug_print_ret(ptr noundef %694, i32 noundef 1, ptr noundef @.str, i32 noundef 917, ptr noundef @.str.20, i32 noundef %695)
  %696 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %696, ptr %2, align 4
  store i32 1, ptr %17, align 4
  br label %701

697:                                              ; preds = %688
  br label %698

698:                                              ; preds = %697, %674
  %699 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
  call void @mbedtls_zeroize(ptr noundef %699, i64 noundef 256)
  %700 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, i32, ptr, ...) @mbedtls_debug_print_msg(ptr noundef %700, i32 noundef 2, ptr noundef @.str, i32 noundef 957, ptr noundef @.str.21)
  store i32 0, ptr %2, align 4
  store i32 1, ptr %17, align 4
  br label %701

701:                                              ; preds = %698, %693, %684, %670, %657, %644, %634, %595, %572, %418, %319, %241, %202, %179, %104, %54, %38
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 256, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  %702 = load i32, ptr %2, align 4
  ret i32 %702
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

declare void @mbedtls_debug_print_msg(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) #2

declare ptr @mbedtls_cipher_info_from_type(i32 noundef) #2

declare ptr @mbedtls_md_info_from_type(i32 noundef) #2

; Function Attrs: nounwind uwtable
declare hidden i32 @tls1_prf(ptr noundef, i64 noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @ssl_calc_verify_tls(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @ssl_calc_finished_tls(ptr noundef, ptr noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @tls_prf_sha384(ptr noundef, i64 noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @ssl_calc_verify_tls_sha384(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @ssl_calc_finished_tls_sha384(ptr noundef, ptr noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @tls_prf_sha256(ptr noundef, i64 noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @ssl_calc_verify_tls_sha256(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @ssl_calc_finished_tls_sha256(ptr noundef, ptr noundef, i32 noundef) #0

declare void @mbedtls_debug_print_buf(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, i64 noundef) #2

declare void @mbedtls_debug_print_ret(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind uwtable
declare hidden void @mbedtls_zeroize(ptr noundef, i64 noundef) #0

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

declare ptr @mbedtls_ssl_get_ciphersuite_name(i32 noundef) #2

declare i32 @mbedtls_md_setup(ptr noundef, ptr noundef, i32 noundef) #2

declare zeroext i8 @mbedtls_md_get_size(ptr noundef) #2

declare i32 @mbedtls_md_hmac_starts(ptr noundef, ptr noundef, i64 noundef) #2

declare i32 @mbedtls_cipher_setup(ptr noundef, ptr noundef) #2

declare i32 @mbedtls_cipher_setkey(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #2

declare i32 @mbedtls_cipher_set_padding_mode(ptr noundef, i32 noundef) #2

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 88}
!12 = !{!"mbedtls_ssl_context", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !10, i64 216, !13, i64 224, !13, i64 232, !14, i64 240, !13, i64 248, !13, i64 256, !13, i64 264, !13, i64 272, !10, i64 280, !10, i64 284, !6, i64 288, !6, i64 296, !6, i64 304, !6, i64 312, !6, i64 320, !6, i64 328, !10, i64 336, !13, i64 344, !13, i64 352, !7, i64 360, !10, i64 364, !6, i64 368, !6, i64 376, !6, i64 384, !13, i64 392, !10, i64 400, !13, i64 408, !7, i64 416, !7, i64 428}
!13 = !{!"long", !7, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = !{!12, !6, i64 128}
!16 = !{!12, !6, i64 96}
!17 = !{!18, !6, i64 0}
!18 = !{!"mbedtls_ssl_transform", !6, i64 0, !10, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !7, i64 48, !7, i64 64, !19, i64 80, !19, i64 104, !20, i64 128, !20, i64 216}
!19 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!"", !6, i64 0, !10, i64 8, !10, i64 12, !6, i64 16, !6, i64 24, !7, i64 32, !13, i64 48, !7, i64 56, !13, i64 72, !6, i64 80}
!21 = !{!22, !10, i64 16}
!22 = !{!"mbedtls_ssl_ciphersuite_t", !10, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !7, i64 44}
!23 = !{!22, !10, i64 20}
!24 = !{!12, !10, i64 24}
!25 = !{!26, !6, i64 1544}
!26 = !{!"mbedtls_ssl_handshake_params", !27, i64 0, !28, i64 8, !30, i64 256, !6, i64 872, !6, i64 880, !13, i64 888, !6, i64 896, !10, i64 904, !6, i64 912, !6, i64 920, !6, i64 928, !10, i64 936, !10, i64 940, !6, i64 944, !7, i64 952, !6, i64 960, !10, i64 968, !7, i64 972, !6, i64 976, !6, i64 984, !10, i64 992, !6, i64 1000, !7, i64 1008, !33, i64 1016, !34, i64 1104, !35, i64 1196, !36, i64 1304, !6, i64 1520, !6, i64 1528, !6, i64 1536, !6, i64 1544, !13, i64 1552, !7, i64 1560, !7, i64 1624, !10, i64 2684, !10, i64 2688, !10, i64 2692, !10, i64 2696, !10, i64 2700, !10, i64 2704}
!27 = !{!"mbedtls_ssl_sig_hash_set_t", !10, i64 0, !10, i64 4}
!28 = !{!"", !13, i64 0, !29, i64 8, !29, i64 32, !29, i64 56, !29, i64 80, !29, i64 104, !29, i64 128, !29, i64 152, !29, i64 176, !29, i64 200, !29, i64 224}
!29 = !{!"", !10, i64 0, !13, i64 8, !6, i64 16}
!30 = !{!"", !31, i64 0, !29, i64 248, !32, i64 272, !32, i64 344, !29, i64 416, !10, i64 440, !32, i64 448, !32, i64 520, !29, i64 592}
!31 = !{!"", !10, i64 0, !29, i64 8, !29, i64 32, !29, i64 56, !32, i64 80, !29, i64 152, !13, i64 176, !13, i64 184, !10, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !13, i64 240}
!32 = !{!"", !29, i64 0, !29, i64 24, !29, i64 48}
!33 = !{!"", !7, i64 0, !7, i64 8, !7, i64 24}
!34 = !{!"", !7, i64 0, !7, i64 8, !7, i64 28}
!35 = !{!"", !7, i64 0, !7, i64 8, !7, i64 40, !10, i64 104}
!36 = !{!"", !7, i64 0, !7, i64 16, !7, i64 80, !10, i64 208}
!37 = !{!26, !6, i64 1528}
!38 = !{!26, !6, i64 1536}
!39 = !{!26, !10, i64 2684}
!40 = !{!26, !13, i64 1552}
!41 = !{!26, !10, i64 2704}
!42 = !{!13, !13, i64 0}
!43 = !{!44, !10, i64 8}
!44 = !{!"mbedtls_ssl_session", !13, i64 0, !10, i64 8, !10, i64 12, !13, i64 16, !7, i64 24, !7, i64 56, !6, i64 104, !10, i64 112, !6, i64 120, !13, i64 128, !10, i64 136, !7, i64 140, !10, i64 144, !10, i64 148}
!45 = !{!46, !10, i64 8}
!46 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !6, i64 40}
!47 = !{!18, !10, i64 8}
!48 = !{!46, !10, i64 4}
!49 = !{!18, !13, i64 40}
!50 = !{!18, !13, i64 24}
!51 = !{!18, !13, i64 32}
!52 = !{!22, !7, i64 44}
!53 = !{!18, !13, i64 16}
!54 = !{!44, !10, i64 144}
!55 = !{!46, !10, i64 24}
!56 = !{!44, !10, i64 148}
!57 = !{!46, !10, i64 32}
!58 = !{!12, !6, i64 0}
!59 = !{!60, !6, i64 184}
!60 = !{!"mbedtls_ssl_config", !7, i64 0, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !29, i64 248, !29, i64 272, !6, i64 296, !13, i64 304, !6, i64 312, !13, i64 320, !6, i64 328, !10, i64 336, !10, i64 340, !10, i64 344, !10, i64 348, !7, i64 352, !10, i64 360, !10, i64 364, !7, i64 368, !7, i64 369, !7, i64 370, !7, i64 371, !10, i64 372, !10, i64 372, !10, i64 372, !10, i64 372, !10, i64 372, !10, i64 372, !10, i64 373, !10, i64 373, !10, i64 373, !10, i64 373, !10, i64 373, !10, i64 373, !10, i64 374, !10, i64 374, !10, i64 374}
!61 = !{!60, !6, i64 192}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [97 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [15 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @mbedtls_ssl_derive_keys(ptr noundef %0) local_unnamed_addr #0 {
  %2 = alloca [64 x i8], align 16
  %3 = alloca [256 x i8], align 16
  %4 = alloca [48 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %3) #4
  %5 = getelementptr inbounds i8, ptr %0, i64 88
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 128
  %8 = load ptr, ptr %7, align 8, !tbaa !13
  %9 = getelementptr inbounds i8, ptr %0, i64 96
  %10 = load ptr, ptr %9, align 8, !tbaa !14
  tail call void (ptr, i32, ptr, i32, ptr, ...) @mbedtls_debug_print_msg(ptr noundef %0, i32 noundef 2, ptr noundef nonnull @.str, i32 noundef 501, ptr noundef nonnull @.str.1) #4
  %11 = load ptr, ptr %8, align 8, !tbaa !15
  %12 = getelementptr inbounds i8, ptr %11, i64 16
  %13 = load i32, ptr %12, align 8, !tbaa !19
  %14 = tail call ptr @mbedtls_cipher_info_from_type(i32 noundef %13) #4
  %15 = icmp eq ptr %14, null
  %16 = load ptr, ptr %8, align 8, !tbaa !15
  br i1 %15, label %17, label %20

17:                                               ; preds = %1
  %18 = getelementptr inbounds i8, ptr %16, i64 16
  %19 = load i32, ptr %18, align 8, !tbaa !19
  tail call void (ptr, i32, ptr, i32, ptr, ...) @mbedtls_debug_print_msg(ptr noundef nonnull %0, i32 noundef 1, ptr noundef nonnull @.str, i32 noundef 507, ptr noundef nonnull @.str.2, i32 noundef %19) #4
  br label %232

20:                                               ; preds = %1
  %21 = getelementptr inbounds i8, ptr %16, i64 20
  %22 = load i32, ptr %21, align 4, !tbaa !21
  %23 = tail call ptr @mbedtls_md_info_from_type(i32 noundef %22) #4
  %24 = icmp eq ptr %23, null
  br i1 %24, label %25, label %29

25:                                               ; preds = %20
  %26 = load ptr, ptr %8, align 8, !tbaa !15
  %27 = getelementptr inbounds i8, ptr %26, i64 20
  %28 = load i32, ptr %27, align 4, !tbaa !21
  tail call void (ptr, i32, ptr, i32, ptr, ...) @mbedtls_debug_print_msg(ptr noundef nonnull %0, i32 noundef 1, ptr noundef nonnull @.str, i32 noundef 515, ptr noundef nonnull @.str.3, i32 noundef %28) #4
  br label %232

29:                                               ; preds = %20
  %30 = getelementptr inbounds i8, ptr %0, i64 24
  %31 = load i32, ptr %30, align 8, !tbaa !22
  %32 = icmp slt i32 %31, 3
  br i1 %32, label %33, label %37

33:                                               ; preds = %29
  %34 = getelementptr inbounds i8, ptr %10, i64 1544
  store ptr @tls1_prf, ptr %34, align 8, !tbaa !23
  %35 = getelementptr inbounds i8, ptr %10, i64 1528
  store ptr @ssl_calc_verify_tls, ptr %35, align 8, !tbaa !35
  %36 = getelementptr inbounds i8, ptr %10, i64 1536
  store ptr @ssl_calc_finished_tls, ptr %36, align 8, !tbaa !36
  br label %50

37:                                               ; preds = %29
  %38 = icmp eq i32 %31, 3
  br i1 %38, label %39, label %49

39:                                               ; preds = %37
  %40 = load ptr, ptr %8, align 8, !tbaa !15
  %41 = getelementptr inbounds i8, ptr %40, i64 20
  %42 = load i32, ptr %41, align 4, !tbaa !21
  %43 = icmp eq i32 %42, 7
  %44 = getelementptr inbounds i8, ptr %10, i64 1544
  %45 = getelementptr inbounds i8, ptr %10, i64 1528
  %46 = getelementptr inbounds i8, ptr %10, i64 1536
  br i1 %43, label %47, label %48

47:                                               ; preds = %39
  store ptr @tls_prf_sha384, ptr %44, align 8, !tbaa !23
  store ptr @ssl_calc_verify_tls_sha384, ptr %45, align 8, !tbaa !35
  store ptr @ssl_calc_finished_tls_sha384, ptr %46, align 8, !tbaa !36
  br label %50

48:                                               ; preds = %39
  store ptr @tls_prf_sha256, ptr %44, align 8, !tbaa !23
  store ptr @ssl_calc_verify_tls_sha256, ptr %45, align 8, !tbaa !35
  store ptr @ssl_calc_finished_tls_sha256, ptr %46, align 8, !tbaa !36
  br label %50

49:                                               ; preds = %37
  tail call void (ptr, i32, ptr, i32, ptr, ...) @mbedtls_debug_print_msg(ptr noundef nonnull %0, i32 noundef 1, ptr noundef nonnull @.str, i32 noundef 562, ptr noundef nonnull @.str.4) #4
  br label %232

50:                                               ; preds = %47, %48, %33
  %51 = getelementptr inbounds i8, ptr %10, i64 2684
  %52 = load i32, ptr %51, align 4, !tbaa !37
  %53 = icmp eq i32 %52, 0
  br i1 %53, label %54, label %90

54:                                               ; preds = %50
  %55 = getelementptr inbounds i8, ptr %10, i64 1624
  %56 = getelementptr inbounds i8, ptr %10, i64 1552
  %57 = load i64, ptr %56, align 8, !tbaa !38
  tail call void @mbedtls_debug_print_buf(ptr noundef nonnull %0, i32 noundef 3, ptr noundef nonnull @.str, i32 noundef 579, ptr noundef nonnull @.str.5, ptr noundef nonnull %55, i64 noundef %57) #4
  %58 = load ptr, ptr %9, align 8, !tbaa !14
  %59 = getelementptr inbounds i8, ptr %58, i64 2704
  %60 = load i32, ptr %59, align 8, !tbaa !39
  %61 = icmp eq i32 %60, 1
  br i1 %61, label %62, label %81

62:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #4
  tail call void (ptr, i32, ptr, i32, ptr, ...) @mbedtls_debug_print_msg(ptr noundef nonnull %0, i32 noundef 3, ptr noundef nonnull @.str, i32 noundef 587, ptr noundef nonnull @.str.6) #4
  %63 = load ptr, ptr %9, align 8, !tbaa !14
  %64 = getelementptr inbounds i8, ptr %63, i64 1528
  %65 = load ptr, ptr %64, align 8, !tbaa !35
  call void %65(ptr noundef nonnull %0, ptr noundef nonnull %4) #4
  %66 = load i32, ptr %30, align 8, !tbaa !22
  %67 = icmp eq i32 %66, 3
  br i1 %67, label %68, label %74

68:                                               ; preds = %62
  %69 = load ptr, ptr %7, align 8, !tbaa !13
  %70 = load ptr, ptr %69, align 8, !tbaa !15
  %71 = getelementptr inbounds i8, ptr %70, i64 20
  %72 = load i32, ptr %71, align 4, !tbaa !21
  %73 = icmp eq i32 %72, 7
  %. = select i1 %73, i64 48, i64 32
  br label %74

74:                                               ; preds = %62, %68
  %.0 = phi i64 [ %., %68 ], [ 36, %62 ]
  call void @mbedtls_debug_print_buf(ptr noundef nonnull %0, i32 noundef 3, ptr noundef nonnull @.str, i32 noundef 608, ptr noundef nonnull @.str.7, ptr noundef nonnull %4, i64 noundef %.0) #4
  %75 = getelementptr inbounds i8, ptr %10, i64 1544
  %76 = load ptr, ptr %75, align 8, !tbaa !23
  %77 = load i64, ptr %56, align 8, !tbaa !38
  %78 = getelementptr inbounds i8, ptr %6, i64 56
  %79 = call i32 %76(ptr noundef nonnull %55, i64 noundef %77, ptr noundef nonnull @.str.8, ptr noundef nonnull %4, i64 noundef %.0, ptr noundef nonnull %78, i64 noundef 48) #4
  %.not = icmp eq i32 %79, 0
  br i1 %.not, label %.thread249, label %80

80:                                               ; preds = %74
  call void @mbedtls_debug_print_ret(ptr noundef nonnull %0, i32 noundef 1, ptr noundef nonnull @.str, i32 noundef 616, ptr noundef nonnull @.str.9, i32 noundef %79) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #4
  br label %232

.thread249:                                       ; preds = %74
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #4
  br label %89

81:                                               ; preds = %54
  %82 = getelementptr inbounds i8, ptr %10, i64 1544
  %83 = load ptr, ptr %82, align 8, !tbaa !23
  %84 = load i64, ptr %56, align 8, !tbaa !38
  %85 = getelementptr inbounds i8, ptr %10, i64 1560
  %86 = getelementptr inbounds i8, ptr %6, i64 56
  %87 = tail call i32 %83(ptr noundef nonnull %55, i64 noundef %84, ptr noundef nonnull @.str.10, ptr noundef nonnull %85, i64 noundef 64, ptr noundef nonnull %86, i64 noundef 48) #4
  %.not235 = icmp eq i32 %87, 0
  br i1 %.not235, label %89, label %88

88:                                               ; preds = %81
  tail call void @mbedtls_debug_print_ret(ptr noundef nonnull %0, i32 noundef 1, ptr noundef nonnull @.str, i32 noundef 629, ptr noundef nonnull @.str.9, i32 noundef %87) #4
  br label %232

89:                                               ; preds = %.thread249, %81
  call void @mbedtls_zeroize(ptr noundef nonnull %55, i64 noundef 1060)
  br label %91

90:                                               ; preds = %50
  tail call void (ptr, i32, ptr, i32, ptr, ...) @mbedtls_debug_print_msg(ptr noundef nonnull %0, i32 noundef 3, ptr noundef nonnull @.str, i32 noundef 636, ptr noundef nonnull @.str.11) #4
  br label %91

91:                                               ; preds = %90, %89
  %92 = getelementptr inbounds i8, ptr %10, i64 1560
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %2, ptr noundef nonnull align 8 dereferenceable(64) %92, i64 64, i1 false)
  %93 = getelementptr inbounds i8, ptr %10, i64 1592
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %92, ptr noundef nonnull align 8 dereferenceable(32) %93, i64 32, i1 false)
  %94 = getelementptr inbounds i8, ptr %10, i64 1592
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(32) %94, ptr noundef nonnull align 16 dereferenceable(32) %2, i64 32, i1 false)
  call void @mbedtls_zeroize(ptr noundef nonnull %2, i64 noundef 64)
  %95 = getelementptr inbounds i8, ptr %10, i64 1544
  %96 = load ptr, ptr %95, align 8, !tbaa !23
  %97 = getelementptr inbounds i8, ptr %6, i64 56
  %98 = call i32 %96(ptr noundef nonnull %97, i64 noundef 48, ptr noundef nonnull @.str.12, ptr noundef nonnull %92, i64 noundef 64, ptr noundef nonnull %3, i64 noundef 256) #4
  %.not236 = icmp eq i32 %98, 0
  br i1 %.not236, label %100, label %99

99:                                               ; preds = %91
  call void @mbedtls_debug_print_ret(ptr noundef nonnull %0, i32 noundef 1, ptr noundef nonnull @.str, i32 noundef 662, ptr noundef nonnull @.str.9, i32 noundef %98) #4
  br label %232

100:                                              ; preds = %91
  %101 = getelementptr inbounds i8, ptr %6, i64 8
  %102 = load i32, ptr %101, align 8, !tbaa !40
  %103 = call ptr @mbedtls_ssl_get_ciphersuite_name(i32 noundef %102) #4
  call void (ptr, i32, ptr, i32, ptr, ...) @mbedtls_debug_print_msg(ptr noundef nonnull %0, i32 noundef 3, ptr noundef nonnull @.str, i32 noundef 667, ptr noundef nonnull @.str.13, ptr noundef %103) #4
  call void @mbedtls_debug_print_buf(ptr noundef nonnull %0, i32 noundef 3, ptr noundef nonnull @.str, i32 noundef 668, ptr noundef nonnull @.str.10, ptr noundef nonnull %97, i64 noundef 48) #4
  call void @mbedtls_debug_print_buf(ptr noundef nonnull %0, i32 noundef 4, ptr noundef nonnull @.str, i32 noundef 669, ptr noundef nonnull @.str.14, ptr noundef nonnull %92, i64 noundef 64) #4
  call void @mbedtls_debug_print_buf(ptr noundef nonnull %0, i32 noundef 4, ptr noundef nonnull @.str, i32 noundef 670, ptr noundef nonnull @.str.15, ptr noundef nonnull %3, i64 noundef 256) #4
  call void @mbedtls_zeroize(ptr noundef nonnull %92, i64 noundef 64)
  %104 = getelementptr inbounds i8, ptr %14, i64 8
  %105 = load i32, ptr %104, align 8, !tbaa !42
  %106 = lshr i32 %105, 3
  %107 = getelementptr inbounds i8, ptr %8, i64 8
  store i32 %106, ptr %107, align 8, !tbaa !44
  %108 = getelementptr inbounds i8, ptr %14, i64 4
  %109 = load i32, ptr %108, align 4, !tbaa !45
  switch i32 %109, label %120 [
    i32 6, label %110
    i32 8, label %110
  ]

110:                                              ; preds = %100, %100
  %111 = getelementptr inbounds i8, ptr %8, i64 40
  store i64 0, ptr %111, align 8, !tbaa !46
  %112 = getelementptr inbounds i8, ptr %8, i64 24
  store i64 12, ptr %112, align 8, !tbaa !47
  %113 = getelementptr inbounds i8, ptr %8, i64 32
  store i64 4, ptr %113, align 8, !tbaa !48
  %114 = load ptr, ptr %8, align 8, !tbaa !15
  %115 = getelementptr inbounds i8, ptr %114, i64 44
  %116 = load i8, ptr %115, align 4, !tbaa !49
  %117 = and i8 %116, 2
  %.not239 = icmp eq i8 %117, 0
  %118 = select i1 %.not239, i64 24, i64 16
  %119 = getelementptr inbounds i8, ptr %8, i64 16
  store i64 %118, ptr %119, align 8, !tbaa !50
  br label %160

120:                                              ; preds = %100
  %121 = getelementptr inbounds i8, ptr %8, i64 80
  %122 = call i32 @mbedtls_md_setup(ptr noundef nonnull %121, ptr noundef nonnull %23, i32 noundef 1) #4
  %.not237 = icmp eq i32 %122, 0
  br i1 %.not237, label %123, label %126

123:                                              ; preds = %120
  %124 = getelementptr inbounds i8, ptr %8, i64 104
  %125 = call i32 @mbedtls_md_setup(ptr noundef nonnull %124, ptr noundef nonnull %23, i32 noundef 1) #4
  %.not238 = icmp eq i32 %125, 0
  br i1 %.not238, label %127, label %126

126:                                              ; preds = %123, %120
  %.1210 = phi i32 [ %122, %120 ], [ %125, %123 ]
  call void @mbedtls_debug_print_ret(ptr noundef nonnull %0, i32 noundef 1, ptr noundef nonnull @.str, i32 noundef 699, ptr noundef nonnull @.str.16, i32 noundef %.1210) #4
  br label %232

127:                                              ; preds = %123
  %128 = call zeroext i8 @mbedtls_md_get_size(ptr noundef nonnull %23) #4
  %129 = zext i8 %128 to i64
  %130 = getelementptr inbounds i8, ptr %8, i64 40
  %131 = getelementptr inbounds i8, ptr %6, i64 144
  %132 = load i32, ptr %131, align 8, !tbaa !51
  %133 = icmp eq i32 %132, 1
  %spec.store.select = select i1 %133, i64 10, i64 %129
  store i64 %spec.store.select, ptr %130, align 8
  %134 = getelementptr inbounds i8, ptr %14, i64 24
  %135 = load i32, ptr %134, align 8, !tbaa !52
  %136 = zext i32 %135 to i64
  %137 = getelementptr inbounds i8, ptr %8, i64 24
  store i64 %136, ptr %137, align 8, !tbaa !47
  %138 = load i32, ptr %108, align 4, !tbaa !45
  %139 = icmp eq i32 %138, 7
  br i1 %139, label %140, label %142

140:                                              ; preds = %127
  %141 = getelementptr inbounds i8, ptr %8, i64 16
  store i64 %spec.store.select, ptr %141, align 8, !tbaa !50
  br label %160

142:                                              ; preds = %127
  %143 = getelementptr inbounds i8, ptr %6, i64 148
  %144 = load i32, ptr %143, align 4, !tbaa !53
  %145 = icmp eq i32 %144, 1
  %146 = getelementptr inbounds i8, ptr %14, i64 32
  %147 = load i32, ptr %146, align 8, !tbaa !54
  %148 = zext i32 %147 to i64
  %149 = add nuw nsw i64 %spec.store.select, %148
  br i1 %145, label %153, label %150

150:                                              ; preds = %142
  %.lhs.trunc = trunc nuw nsw i64 %spec.store.select to i32
  %151 = urem i32 %.lhs.trunc, %147
  %.zext = zext nneg i32 %151 to i64
  %152 = sub nsw i64 %149, %.zext
  br label %153

153:                                              ; preds = %142, %150
  %154 = phi i64 [ %152, %150 ], [ %149, %142 ]
  %155 = getelementptr inbounds i8, ptr %8, i64 16
  store i64 %154, ptr %155, align 8
  %156 = load i32, ptr %30, align 8, !tbaa !22
  switch i32 %156, label %159 [
    i32 0, label %160
    i32 1, label %160
    i32 2, label %157
    i32 3, label %157
  ]

157:                                              ; preds = %153, %153
  %158 = add nsw i64 %154, %136
  store i64 %158, ptr %155, align 8, !tbaa !50
  br label %160

159:                                              ; preds = %153
  call void (ptr, i32, ptr, i32, ptr, ...) @mbedtls_debug_print_msg(ptr noundef nonnull %0, i32 noundef 1, ptr noundef nonnull @.str, i32 noundef 759, ptr noundef nonnull @.str.4) #4
  br label %232

160:                                              ; preds = %153, %153, %140, %157, %110
  %161 = phi i64 [ %spec.store.select, %153 ], [ %spec.store.select, %153 ], [ %spec.store.select, %140 ], [ %spec.store.select, %157 ], [ 0, %110 ]
  %162 = phi i64 [ %136, %153 ], [ %136, %153 ], [ %136, %140 ], [ %136, %157 ], [ 12, %110 ]
  %163 = phi i64 [ %154, %153 ], [ %154, %153 ], [ %spec.store.select, %140 ], [ %158, %157 ], [ %118, %110 ]
  %164 = load i32, ptr %107, align 8, !tbaa !44
  %165 = getelementptr inbounds i8, ptr %8, i64 40
  call void (ptr, i32, ptr, i32, ptr, ...) @mbedtls_debug_print_msg(ptr noundef nonnull %0, i32 noundef 3, ptr noundef nonnull @.str, i32 noundef 767, ptr noundef nonnull @.str.17, i32 noundef %164, i64 noundef %163, i64 noundef %162, i64 noundef %161) #4
  %166 = load ptr, ptr %0, align 8, !tbaa !55
  %167 = getelementptr inbounds i8, ptr %166, i64 372
  %168 = load i32, ptr %167, align 4
  %169 = and i32 %168, 1
  %170 = icmp eq i32 %169, 0
  %171 = load i64, ptr %165, align 8, !tbaa !46
  %172 = shl i64 %171, 1
  %173 = getelementptr inbounds i8, ptr %3, i64 %172
  %174 = load i32, ptr %107, align 8, !tbaa !44
  %175 = zext i32 %174 to i64
  %176 = getelementptr inbounds i8, ptr %173, i64 %175
  %177 = getelementptr inbounds i8, ptr %3, i64 %171
  %178 = getelementptr inbounds i8, ptr %8, i64 32
  %179 = load i64, ptr %178, align 8, !tbaa !48
  %.not241 = icmp eq i64 %179, 0
  %.260 = select i1 %170, i64 48, i64 64
  %.261 = select i1 %170, i64 64, i64 48
  %.262 = select i1 %170, ptr %177, ptr %3
  %.263 = select i1 %170, ptr %3, ptr %177
  %.264 = select i1 %170, ptr %176, ptr %173
  %.265 = select i1 %170, ptr %173, ptr %176
  br i1 %.not241, label %.sink.split, label %182

.sink.split:                                      ; preds = %160
  %180 = getelementptr inbounds i8, ptr %8, i64 24
  %181 = load i64, ptr %180, align 8, !tbaa !47
  br label %182

182:                                              ; preds = %160, %.sink.split
  %.sink258 = phi i64 [ %181, %.sink.split ], [ %179, %160 ]
  %183 = getelementptr inbounds i8, ptr %8, i64 %.260
  %184 = getelementptr inbounds i8, ptr %176, i64 %175
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %183, ptr nonnull align 1 %184, i64 %.sink258, i1 false)
  %185 = getelementptr inbounds i8, ptr %8, i64 %.261
  %186 = getelementptr inbounds i8, ptr %184, i64 %.sink258
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %185, ptr nonnull align 1 %186, i64 %.sink258, i1 false)
  %187 = load i32, ptr %30, align 8, !tbaa !22
  %188 = icmp sgt i32 %187, 0
  br i1 %188, label %189, label %198

189:                                              ; preds = %182
  %190 = getelementptr inbounds i8, ptr %8, i64 80
  %191 = call i32 @mbedtls_md_hmac_starts(ptr noundef nonnull %190, ptr noundef nonnull %.263, i64 noundef %171) #4
  %192 = getelementptr inbounds i8, ptr %8, i64 104
  %193 = load i64, ptr %165, align 8, !tbaa !46
  %194 = call i32 @mbedtls_md_hmac_starts(ptr noundef nonnull %192, ptr noundef nonnull %.262, i64 noundef %193) #4
  %195 = load ptr, ptr %0, align 8, !tbaa !55
  %196 = getelementptr inbounds i8, ptr %195, i64 184
  %197 = load ptr, ptr %196, align 8, !tbaa !56
  %.not242 = icmp eq ptr %197, null
  br i1 %.not242, label %206, label %199

198:                                              ; preds = %182
  call void (ptr, i32, ptr, i32, ptr, ...) @mbedtls_debug_print_msg(ptr noundef nonnull %0, i32 noundef 1, ptr noundef nonnull @.str, i32 noundef 841, ptr noundef nonnull @.str.4) #4
  br label %232

199:                                              ; preds = %189
  %200 = getelementptr inbounds i8, ptr %195, i64 192
  %201 = load ptr, ptr %200, align 8, !tbaa !58
  %202 = load i64, ptr %165, align 8, !tbaa !46
  %203 = load i32, ptr %107, align 8, !tbaa !44
  %204 = zext i32 %203 to i64
  %205 = call i32 %197(ptr noundef %201, ptr noundef nonnull %97, ptr noundef nonnull %3, i64 noundef %202, i64 noundef %204, i64 noundef %.sink258) #4
  br label %206

206:                                              ; preds = %199, %189
  %207 = getelementptr inbounds i8, ptr %8, i64 128
  %208 = call i32 @mbedtls_cipher_setup(ptr noundef nonnull %207, ptr noundef nonnull %14) #4
  %.not243 = icmp eq i32 %208, 0
  br i1 %.not243, label %210, label %209

209:                                              ; preds = %206
  call void @mbedtls_debug_print_ret(ptr noundef nonnull %0, i32 noundef 1, ptr noundef nonnull @.str, i32 noundef 877, ptr noundef nonnull @.str.18, i32 noundef %208) #4
  br label %232

210:                                              ; preds = %206
  %211 = getelementptr inbounds i8, ptr %8, i64 216
  %212 = call i32 @mbedtls_cipher_setup(ptr noundef nonnull %211, ptr noundef nonnull %14) #4
  %.not244 = icmp eq i32 %212, 0
  br i1 %.not244, label %214, label %213

213:                                              ; preds = %210
  call void @mbedtls_debug_print_ret(ptr noundef nonnull %0, i32 noundef 1, ptr noundef nonnull @.str, i32 noundef 884, ptr noundef nonnull @.str.18, i32 noundef %212) #4
  br label %232

214:                                              ; preds = %210
  %215 = load i32, ptr %104, align 8, !tbaa !42
  %216 = call i32 @mbedtls_cipher_setkey(ptr noundef nonnull %207, ptr noundef nonnull %.265, i32 noundef %215, i32 noundef 1) #4
  %.not245 = icmp eq i32 %216, 0
  br i1 %.not245, label %218, label %217

217:                                              ; preds = %214
  call void @mbedtls_debug_print_ret(ptr noundef nonnull %0, i32 noundef 1, ptr noundef nonnull @.str, i32 noundef 892, ptr noundef nonnull @.str.19, i32 noundef %216) #4
  br label %232

218:                                              ; preds = %214
  %219 = load i32, ptr %104, align 8, !tbaa !42
  %220 = call i32 @mbedtls_cipher_setkey(ptr noundef nonnull %211, ptr noundef nonnull %.264, i32 noundef %219, i32 noundef 0) #4
  %.not246 = icmp eq i32 %220, 0
  br i1 %.not246, label %222, label %221

221:                                              ; preds = %218
  call void @mbedtls_debug_print_ret(ptr noundef nonnull %0, i32 noundef 1, ptr noundef nonnull @.str, i32 noundef 900, ptr noundef nonnull @.str.19, i32 noundef %220) #4
  br label %232

222:                                              ; preds = %218
  %223 = load i32, ptr %108, align 4, !tbaa !45
  %224 = icmp eq i32 %223, 2
  br i1 %224, label %225, label %231

225:                                              ; preds = %222
  %226 = call i32 @mbedtls_cipher_set_padding_mode(ptr noundef nonnull %207, i32 noundef 4) #4
  %.not247 = icmp eq i32 %226, 0
  br i1 %.not247, label %228, label %227

227:                                              ; preds = %225
  call void @mbedtls_debug_print_ret(ptr noundef nonnull %0, i32 noundef 1, ptr noundef nonnull @.str, i32 noundef 910, ptr noundef nonnull @.str.20, i32 noundef %226) #4
  br label %232

228:                                              ; preds = %225
  %229 = call i32 @mbedtls_cipher_set_padding_mode(ptr noundef nonnull %211, i32 noundef 4) #4
  %.not248 = icmp eq i32 %229, 0
  br i1 %.not248, label %231, label %230

230:                                              ; preds = %228
  call void @mbedtls_debug_print_ret(ptr noundef nonnull %0, i32 noundef 1, ptr noundef nonnull @.str, i32 noundef 917, ptr noundef nonnull @.str.20, i32 noundef %229) #4
  br label %232

231:                                              ; preds = %228, %222
  call void @mbedtls_zeroize(ptr noundef nonnull %3, i64 noundef 256)
  call void (ptr, i32, ptr, i32, ptr, ...) @mbedtls_debug_print_msg(ptr noundef nonnull %0, i32 noundef 2, ptr noundef nonnull @.str, i32 noundef 957, ptr noundef nonnull @.str.21) #4
  br label %232

232:                                              ; preds = %80, %231, %230, %227, %221, %217, %213, %209, %198, %159, %126, %99, %88, %49, %25, %17
  %.1 = phi i32 [ -28928, %17 ], [ -28928, %25 ], [ %87, %88 ], [ %98, %99 ], [ %208, %209 ], [ %212, %213 ], [ %216, %217 ], [ %220, %221 ], [ %226, %227 ], [ %229, %230 ], [ 0, %231 ], [ -27648, %198 ], [ %.1210, %126 ], [ -27648, %159 ], [ %79, %80 ], [ -27648, %49 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %2) #4
  ret i32 %.1
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

declare void @mbedtls_debug_print_msg(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #2

declare ptr @mbedtls_cipher_info_from_type(i32 noundef) local_unnamed_addr #2

declare ptr @mbedtls_md_info_from_type(i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden i32 @tls1_prf(ptr noundef, i64 noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @ssl_calc_verify_tls(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @ssl_calc_finished_tls(ptr noundef, ptr noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @tls_prf_sha384(ptr noundef, i64 noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @ssl_calc_verify_tls_sha384(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @ssl_calc_finished_tls_sha384(ptr noundef, ptr noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @tls_prf_sha256(ptr noundef, i64 noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @ssl_calc_verify_tls_sha256(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @ssl_calc_finished_tls_sha256(ptr noundef, ptr noundef, i32 noundef) #0

declare void @mbedtls_debug_print_buf(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

declare void @mbedtls_debug_print_ret(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind uwtable
declare hidden void @mbedtls_zeroize(ptr noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

declare ptr @mbedtls_ssl_get_ciphersuite_name(i32 noundef) local_unnamed_addr #2

declare i32 @mbedtls_md_setup(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

declare zeroext i8 @mbedtls_md_get_size(ptr noundef) local_unnamed_addr #2

declare i32 @mbedtls_md_hmac_starts(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

declare i32 @mbedtls_cipher_setup(ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @mbedtls_cipher_setkey(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

declare i32 @mbedtls_cipher_set_padding_mode(ptr noundef, i32 noundef) local_unnamed_addr #2

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 88}
!6 = !{!"mbedtls_ssl_context", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !7, i64 160, !7, i64 168, !7, i64 176, !7, i64 184, !7, i64 192, !7, i64 200, !7, i64 208, !10, i64 216, !11, i64 224, !11, i64 232, !12, i64 240, !11, i64 248, !11, i64 256, !11, i64 264, !11, i64 272, !10, i64 280, !10, i64 284, !7, i64 288, !7, i64 296, !7, i64 304, !7, i64 312, !7, i64 320, !7, i64 328, !10, i64 336, !11, i64 344, !11, i64 352, !8, i64 360, !10, i64 364, !7, i64 368, !7, i64 376, !7, i64 384, !11, i64 392, !10, i64 400, !11, i64 408, !8, i64 416, !8, i64 428}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!"short", !8, i64 0}
!13 = !{!6, !7, i64 128}
!14 = !{!6, !7, i64 96}
!15 = !{!16, !7, i64 0}
!16 = !{!"mbedtls_ssl_transform", !7, i64 0, !10, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !8, i64 48, !8, i64 64, !17, i64 80, !17, i64 104, !18, i64 128, !18, i64 216}
!17 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16}
!18 = !{!"", !7, i64 0, !10, i64 8, !10, i64 12, !7, i64 16, !7, i64 24, !8, i64 32, !11, i64 48, !8, i64 56, !11, i64 72, !7, i64 80}
!19 = !{!20, !10, i64 16}
!20 = !{!"mbedtls_ssl_ciphersuite_t", !10, i64 0, !7, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !8, i64 44}
!21 = !{!20, !10, i64 20}
!22 = !{!6, !10, i64 24}
!23 = !{!24, !7, i64 1544}
!24 = !{!"mbedtls_ssl_handshake_params", !25, i64 0, !26, i64 8, !28, i64 256, !7, i64 872, !7, i64 880, !11, i64 888, !7, i64 896, !10, i64 904, !7, i64 912, !7, i64 920, !7, i64 928, !10, i64 936, !10, i64 940, !7, i64 944, !8, i64 952, !7, i64 960, !10, i64 968, !8, i64 972, !7, i64 976, !7, i64 984, !10, i64 992, !7, i64 1000, !8, i64 1008, !31, i64 1016, !32, i64 1104, !33, i64 1196, !34, i64 1304, !7, i64 1520, !7, i64 1528, !7, i64 1536, !7, i64 1544, !11, i64 1552, !8, i64 1560, !8, i64 1624, !10, i64 2684, !10, i64 2688, !10, i64 2692, !10, i64 2696, !10, i64 2700, !10, i64 2704}
!25 = !{!"mbedtls_ssl_sig_hash_set_t", !10, i64 0, !10, i64 4}
!26 = !{!"", !11, i64 0, !27, i64 8, !27, i64 32, !27, i64 56, !27, i64 80, !27, i64 104, !27, i64 128, !27, i64 152, !27, i64 176, !27, i64 200, !27, i64 224}
!27 = !{!"", !10, i64 0, !11, i64 8, !7, i64 16}
!28 = !{!"", !29, i64 0, !27, i64 248, !30, i64 272, !30, i64 344, !27, i64 416, !10, i64 440, !30, i64 448, !30, i64 520, !27, i64 592}
!29 = !{!"", !10, i64 0, !27, i64 8, !27, i64 32, !27, i64 56, !30, i64 80, !27, i64 152, !11, i64 176, !11, i64 184, !10, i64 192, !7, i64 200, !7, i64 208, !7, i64 216, !7, i64 224, !7, i64 232, !11, i64 240}
!30 = !{!"", !27, i64 0, !27, i64 24, !27, i64 48}
!31 = !{!"", !8, i64 0, !8, i64 8, !8, i64 24}
!32 = !{!"", !8, i64 0, !8, i64 8, !8, i64 28}
!33 = !{!"", !8, i64 0, !8, i64 8, !8, i64 40, !10, i64 104}
!34 = !{!"", !8, i64 0, !8, i64 16, !8, i64 80, !10, i64 208}
!35 = !{!24, !7, i64 1528}
!36 = !{!24, !7, i64 1536}
!37 = !{!24, !10, i64 2684}
!38 = !{!24, !11, i64 1552}
!39 = !{!24, !10, i64 2704}
!40 = !{!41, !10, i64 8}
!41 = !{!"mbedtls_ssl_session", !11, i64 0, !10, i64 8, !10, i64 12, !11, i64 16, !8, i64 24, !8, i64 56, !7, i64 104, !10, i64 112, !7, i64 120, !11, i64 128, !10, i64 136, !8, i64 140, !10, i64 144, !10, i64 148}
!42 = !{!43, !10, i64 8}
!43 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !7, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !7, i64 40}
!44 = !{!16, !10, i64 8}
!45 = !{!43, !10, i64 4}
!46 = !{!16, !11, i64 40}
!47 = !{!16, !11, i64 24}
!48 = !{!16, !11, i64 32}
!49 = !{!20, !8, i64 44}
!50 = !{!16, !11, i64 16}
!51 = !{!41, !10, i64 144}
!52 = !{!43, !10, i64 24}
!53 = !{!41, !10, i64 148}
!54 = !{!43, !10, i64 32}
!55 = !{!6, !7, i64 0}
!56 = !{!57, !7, i64 184}
!57 = !{!"mbedtls_ssl_config", !8, i64 0, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !7, i64 160, !7, i64 168, !7, i64 176, !7, i64 184, !7, i64 192, !7, i64 200, !7, i64 208, !7, i64 216, !7, i64 224, !7, i64 232, !7, i64 240, !27, i64 248, !27, i64 272, !7, i64 296, !11, i64 304, !7, i64 312, !11, i64 320, !7, i64 328, !10, i64 336, !10, i64 340, !10, i64 344, !10, i64 348, !8, i64 352, !10, i64 360, !10, i64 364, !8, i64 368, !8, i64 369, !8, i64 370, !8, i64 371, !10, i64 372, !10, i64 372, !10, i64 372, !10, i64 372, !10, i64 372, !10, i64 372, !10, i64 373, !10, i64 373, !10, i64 373, !10, i64 373, !10, i64 373, !10, i64 373, !10, i64 374, !10, i64 374, !10, i64 374}
!58 = !{!57, !7, i64 192}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,MemCpyOptPass,MergedLoadStoreMotionPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass