; 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] }

@.str = external hidden unnamed_addr constant [97 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [36 x i8], align 1

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @mbedtls_ssl_flush_output(ptr noundef %0) #2 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #4
  %8 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, i32, ptr, ...) @mbedtls_debug_print_msg(ptr noundef %8, i32 noundef 2, ptr noundef @.str, i32 noundef 2416, ptr noundef @.str.39)
  %9 = load ptr, ptr %3, align 8, !tbaa !5
  %10 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %9, i32 0, i32 7
  %11 = load ptr, ptr %10, align 8, !tbaa !9
  %12 = icmp eq ptr %11, null
  br i1 %12, label %13, label %15

13:                                               ; preds = %1
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, i32, ptr, ...) @mbedtls_debug_print_msg(ptr noundef %14, i32 noundef 1, ptr noundef @.str, i32 noundef 2421, ptr noundef @.str.27)
  store i32 -28928, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %113

15:                                               ; preds = %1
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %16, i32 0, i32 48
  %18 = load i64, ptr %17, align 8, !tbaa !14
  %19 = icmp eq i64 %18, 0
  br i1 %19, label %20, label %22

20:                                               ; preds = %15
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, i32, ptr, ...) @mbedtls_debug_print_msg(ptr noundef %21, i32 noundef 2, ptr noundef @.str, i32 noundef 2428, ptr noundef @.str.40)
  store i32 0, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %113

22:                                               ; preds = %15
  br label %23

23:                                               ; preds = %71, %22
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %24, i32 0, i32 48
  %26 = load i64, ptr %25, align 8, !tbaa !14
  %27 = icmp ugt i64 %26, 0
  br i1 %27, label %28, label %78

28:                                               ; preds = %23
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = call i64 @mbedtls_ssl_hdr_len(ptr noundef %30)
  %32 = load ptr, ptr %3, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %32, i32 0, i32 47
  %34 = load i64, ptr %33, align 8, !tbaa !15
  %35 = add i64 %31, %34
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %36, i32 0, i32 48
  %38 = load i64, ptr %37, align 8, !tbaa !14
  call void (ptr, i32, ptr, i32, ptr, ...) @mbedtls_debug_print_msg(ptr noundef %29, i32 noundef 2, ptr noundef @.str, i32 noundef 2435, ptr noundef @.str.41, i64 noundef %35, i64 noundef %38)
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %39, i32 0, i32 42
  %41 = load ptr, ptr %40, align 8, !tbaa !16
  %42 = load ptr, ptr %3, align 8, !tbaa !5
  %43 = call i64 @mbedtls_ssl_hdr_len(ptr noundef %42)
  %44 = getelementptr inbounds i8, ptr %41, i64 %43
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %45, i32 0, i32 47
  %47 = load i64, ptr %46, align 8, !tbaa !15
  %48 = getelementptr inbounds i8, ptr %44, i64 %47
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %49, i32 0, i32 48
  %51 = load i64, ptr %50, align 8, !tbaa !14
  %52 = sub i64 0, %51
  %53 = getelementptr inbounds i8, ptr %48, i64 %52
  store ptr %53, ptr %5, align 8, !tbaa !5
  %54 = load ptr, ptr %3, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %54, i32 0, i32 7
  %56 = load ptr, ptr %55, align 8, !tbaa !9
  %57 = load ptr, ptr %3, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %57, i32 0, i32 10
  %59 = load ptr, ptr %58, align 8, !tbaa !17
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = load ptr, ptr %3, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %61, i32 0, i32 48
  %63 = load i64, ptr %62, align 8, !tbaa !14
  %64 = call i32 %56(ptr noundef %59, ptr noundef %60, i64 noundef %63)
  store i32 %64, ptr %4, align 4, !tbaa !18
  %65 = load ptr, ptr %3, align 8, !tbaa !5
  %66 = load i32, ptr %4, align 4, !tbaa !18
  call void @mbedtls_debug_print_ret(ptr noundef %65, i32 noundef 2, ptr noundef @.str, i32 noundef 2441, ptr noundef @.str.42, i32 noundef %66)
  %67 = load i32, ptr %4, align 4, !tbaa !18
  %68 = icmp sle i32 %67, 0
  br i1 %68, label %69, label %71

69:                                               ; preds = %28
  %70 = load i32, ptr %4, align 4, !tbaa !18
  store i32 %70, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %113

71:                                               ; preds = %28
  %72 = load i32, ptr %4, align 4, !tbaa !18
  %73 = sext i32 %72 to i64
  %74 = load ptr, ptr %3, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %74, i32 0, i32 48
  %76 = load i64, ptr %75, align 8, !tbaa !14
  %77 = sub i64 %76, %73
  store i64 %77, ptr %75, align 8, !tbaa !14
  br label %23, !llvm.loop !19

78:                                               ; preds = %23
  store i8 8, ptr %6, align 1, !tbaa !21
  br label %79

79:                                               ; preds = %100, %78
  %80 = load i8, ptr %6, align 1, !tbaa !21
  %81 = zext i8 %80 to i64
  %82 = load ptr, ptr %3, align 8, !tbaa !5
  %83 = call i64 @ssl_ep_len(ptr noundef %82)
  %84 = icmp ugt i64 %81, %83
  br i1 %84, label %85, label %103

85:                                               ; preds = %79
  %86 = load ptr, ptr %3, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %86, i32 0, i32 41
  %88 = load ptr, ptr %87, align 8, !tbaa !22
  %89 = load i8, ptr %6, align 1, !tbaa !21
  %90 = zext i8 %89 to i32
  %91 = sub nsw i32 %90, 1
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds i8, ptr %88, i64 %92
  %94 = load i8, ptr %93, align 1, !tbaa !21
  %95 = add i8 %94, 1
  store i8 %95, ptr %93, align 1, !tbaa !21
  %96 = zext i8 %95 to i32
  %97 = icmp ne i32 %96, 0
  br i1 %97, label %98, label %99

98:                                               ; preds = %85
  br label %103

99:                                               ; preds = %85
  br label %100

100:                                              ; preds = %99
  %101 = load i8, ptr %6, align 1, !tbaa !21
  %102 = add i8 %101, -1
  store i8 %102, ptr %6, align 1, !tbaa !21
  br label %79, !llvm.loop !23

103:                                              ; preds = %98, %79
  %104 = load i8, ptr %6, align 1, !tbaa !21
  %105 = zext i8 %104 to i64
  %106 = load ptr, ptr %3, align 8, !tbaa !5
  %107 = call i64 @ssl_ep_len(ptr noundef %106)
  %108 = icmp eq i64 %105, %107
  br i1 %108, label %109, label %111

109:                                              ; preds = %103
  %110 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, i32, ptr, ...) @mbedtls_debug_print_msg(ptr noundef %110, i32 noundef 1, ptr noundef @.str, i32 noundef 2456, ptr noundef @.str.43)
  store i32 -27520, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %113

111:                                              ; preds = %103
  %112 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, i32, ptr, ...) @mbedtls_debug_print_msg(ptr noundef %112, i32 noundef 2, ptr noundef @.str, i32 noundef 2460, ptr noundef @.str.40)
  store i32 0, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %113

113:                                              ; preds = %111, %109, %69, %20, %13
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  %114 = load i32, ptr %2, align 4
  ret i32 %114
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @mbedtls_ssl_hdr_len(ptr noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @ssl_ep_len(ptr noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 #2 = { 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 #3 = { inlinehint 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 #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, !6, i64 32}
!10 = !{!"mbedtls_ssl_context", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, 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, !11, i64 216, !12, i64 224, !12, i64 232, !13, i64 240, !12, i64 248, !12, i64 256, !12, i64 264, !12, i64 272, !11, i64 280, !11, i64 284, !6, i64 288, !6, i64 296, !6, i64 304, !6, i64 312, !6, i64 320, !6, i64 328, !11, i64 336, !12, i64 344, !12, i64 352, !7, i64 360, !11, i64 364, !6, i64 368, !6, i64 376, !6, i64 384, !12, i64 392, !11, i64 400, !12, i64 408, !7, i64 416, !7, i64 428}
!11 = !{!"int", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!"short", !7, i64 0}
!14 = !{!10, !12, i64 352}
!15 = !{!10, !12, i64 344}
!16 = !{!10, !6, i64 304}
!17 = !{!10, !6, i64 56}
!18 = !{!11, !11, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!7, !7, i64 0}
!22 = !{!10, !6, i64 296}
!23 = distinct !{!23, !20}


; 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.27 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [36 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 -2147483648, 1) i32 @mbedtls_ssl_flush_output(ptr noundef %0) local_unnamed_addr #1 {
  tail call void (ptr, i32, ptr, i32, ptr, ...) @mbedtls_debug_print_msg(ptr noundef %0, i32 noundef 2, ptr noundef nonnull @.str, i32 noundef 2416, ptr noundef nonnull @.str.39) #3
  %2 = getelementptr inbounds i8, ptr %0, i64 32
  %3 = load ptr, ptr %2, align 8, !tbaa !5
  %4 = icmp eq ptr %3, null
  br i1 %4, label %5, label %6

5:                                                ; preds = %1
  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 2421, ptr noundef nonnull @.str.27) #3
  br label %.loopexit

6:                                                ; preds = %1
  %7 = getelementptr inbounds i8, ptr %0, i64 352
  %8 = load i64, ptr %7, align 8, !tbaa !13
  %9 = icmp eq i64 %8, 0
  br i1 %9, label %13, label %.preheader36

.preheader36:                                     ; preds = %6
  %10 = getelementptr inbounds i8, ptr %0, i64 344
  %11 = getelementptr inbounds i8, ptr %0, i64 304
  %12 = getelementptr inbounds i8, ptr %0, i64 56
  br label %17

13:                                               ; preds = %6
  tail call void (ptr, i32, ptr, i32, ptr, ...) @mbedtls_debug_print_msg(ptr noundef nonnull %0, i32 noundef 2, ptr noundef nonnull @.str, i32 noundef 2428, ptr noundef nonnull @.str.40) #3
  br label %.loopexit

.preheader:                                       ; preds = %34
  %14 = getelementptr inbounds i8, ptr %0, i64 296
  %15 = tail call i64 @ssl_ep_len(ptr noundef nonnull %0)
  %16 = icmp ult i64 %15, 8
  br i1 %16, label %.lr.ph, label %._crit_edge

17:                                               ; preds = %.preheader36, %34
  %18 = tail call i64 @mbedtls_ssl_hdr_len(ptr noundef nonnull %0)
  %19 = load i64, ptr %10, align 8, !tbaa !14
  %20 = add i64 %19, %18
  %21 = load i64, ptr %7, align 8, !tbaa !13
  tail call void (ptr, i32, ptr, i32, ptr, ...) @mbedtls_debug_print_msg(ptr noundef nonnull %0, i32 noundef 2, ptr noundef nonnull @.str, i32 noundef 2435, ptr noundef nonnull @.str.41, i64 noundef %20, i64 noundef %21) #3
  %22 = load ptr, ptr %11, align 8, !tbaa !15
  %23 = tail call i64 @mbedtls_ssl_hdr_len(ptr noundef nonnull %0)
  %24 = getelementptr inbounds i8, ptr %22, i64 %23
  %25 = load i64, ptr %10, align 8, !tbaa !14
  %26 = getelementptr inbounds i8, ptr %24, i64 %25
  %27 = load i64, ptr %7, align 8, !tbaa !13
  %28 = sub i64 0, %27
  %29 = getelementptr inbounds i8, ptr %26, i64 %28
  %30 = load ptr, ptr %2, align 8, !tbaa !5
  %31 = load ptr, ptr %12, align 8, !tbaa !16
  %32 = tail call i32 %30(ptr noundef %31, ptr noundef %29, i64 noundef %27) #3
  tail call void @mbedtls_debug_print_ret(ptr noundef nonnull %0, i32 noundef 2, ptr noundef nonnull @.str, i32 noundef 2441, ptr noundef nonnull @.str.42, i32 noundef %32) #3
  %33 = icmp slt i32 %32, 1
  br i1 %33, label %.loopexit, label %34

34:                                               ; preds = %17
  %35 = zext nneg i32 %32 to i64
  %36 = load i64, ptr %7, align 8, !tbaa !13
  %37 = sub i64 %36, %35
  store i64 %37, ptr %7, align 8, !tbaa !13
  %.not = icmp eq i64 %36, %35
  br i1 %.not, label %.preheader, label %17, !llvm.loop !17

38:                                               ; preds = %.lr.ph
  %39 = add i8 %.038, -1
  %40 = zext i8 %39 to i64
  %41 = tail call i64 @ssl_ep_len(ptr noundef nonnull %0)
  %42 = icmp ult i64 %41, %40
  br i1 %42, label %.lr.ph, label %._crit_edge, !llvm.loop !19

.lr.ph:                                           ; preds = %.preheader, %38
  %43 = phi i64 [ %40, %38 ], [ 8, %.preheader ]
  %.038 = phi i8 [ %39, %38 ], [ 8, %.preheader ]
  %44 = load ptr, ptr %14, align 8, !tbaa !20
  %45 = getelementptr i8, ptr %44, i64 %43
  %46 = getelementptr i8, ptr %45, i64 -1
  %47 = load i8, ptr %46, align 1, !tbaa !21
  %48 = add i8 %47, 1
  store i8 %48, ptr %46, align 1, !tbaa !21
  %.not35 = icmp eq i8 %48, 0
  br i1 %.not35, label %38, label %._crit_edge

._crit_edge:                                      ; preds = %38, %.lr.ph, %.preheader
  %.lcssa = phi i64 [ 8, %.preheader ], [ %43, %.lr.ph ], [ %40, %38 ]
  %49 = tail call i64 @ssl_ep_len(ptr noundef nonnull %0)
  %50 = icmp eq i64 %49, %.lcssa
  br i1 %50, label %51, label %52

51:                                               ; preds = %._crit_edge
  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 2456, ptr noundef nonnull @.str.43) #3
  br label %.loopexit

52:                                               ; preds = %._crit_edge
  tail call void (ptr, i32, ptr, i32, ptr, ...) @mbedtls_debug_print_msg(ptr noundef nonnull %0, i32 noundef 2, ptr noundef nonnull @.str, i32 noundef 2460, ptr noundef nonnull @.str.40) #3
  br label %.loopexit

.loopexit:                                        ; preds = %17, %52, %51, %13, %5
  %.033 = phi i32 [ -28928, %5 ], [ 0, %13 ], [ -27520, %51 ], [ 0, %52 ], [ %32, %17 ]
  ret i32 %.033
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @mbedtls_ssl_hdr_len(ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @ssl_ep_len(ptr noundef) local_unnamed_addr #2

attributes #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 = { 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 #2 = { inlinehint 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 #3 = { 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 32}
!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, !11, i64 352}
!14 = !{!6, !11, i64 344}
!15 = !{!6, !7, i64 304}
!16 = !{!6, !7, i64 56}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = !{!6, !7, i64 296}
!21 = !{!8, !8, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass