; LLVM IR from ARMmbed/mbed-crypto :: library (cmac)

; 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_cipher_context_t = type { ptr, i32, i32, ptr, ptr, [16 x i8], i64, [16 x i8], i64, ptr, ptr }
%struct.mbedtls_cipher_info_t = type { i32, i32, i32, ptr, i32, i32, i32, ptr }
%struct.mbedtls_cmac_context_t = type { [16 x i8], [16 x i8], i64 }

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

; 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_cipher_cmac_update(ptr noundef %0, ptr noundef %1, i64 noundef %2) #1 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i64 %2, ptr %7, align 8, !tbaa !9
  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 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !11
  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
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = icmp eq ptr %16, null
  br i1 %17, label %31, label %18

18:                                               ; preds = %3
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.mbedtls_cipher_context_t, ptr %19, i32 0, i32 0
  %21 = load ptr, ptr %20, align 8, !tbaa !13
  %22 = icmp eq ptr %21, null
  br i1 %22, label %31, label %23

23:                                               ; preds = %18
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = icmp eq ptr %24, null
  br i1 %25, label %31, label %26

26:                                               ; preds = %23
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.mbedtls_cipher_context_t, ptr %27, i32 0, i32 10
  %29 = load ptr, ptr %28, align 8, !tbaa !15
  %30 = icmp eq ptr %29, null
  br i1 %30, label %31, label %32

31:                                               ; preds = %26, %23, %18, %3
  store i32 -24832, ptr %4, align 4
  store i32 1, ptr %15, align 4
  br label %155

32:                                               ; preds = %26
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.mbedtls_cipher_context_t, ptr %33, i32 0, i32 10
  %35 = load ptr, ptr %34, align 8, !tbaa !15
  store ptr %35, ptr %8, align 8, !tbaa !5
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.mbedtls_cipher_context_t, ptr %36, i32 0, i32 0
  %38 = load ptr, ptr %37, align 8, !tbaa !13
  %39 = getelementptr inbounds %struct.mbedtls_cipher_info_t, ptr %38, i32 0, i32 6
  %40 = load i32, ptr %39, align 8, !tbaa !16
  %41 = zext i32 %40 to i64
  store i64 %41, ptr %14, align 8, !tbaa !9
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.mbedtls_cipher_context_t, ptr %42, i32 0, i32 10
  %44 = load ptr, ptr %43, align 8, !tbaa !15
  %45 = getelementptr inbounds %struct.mbedtls_cmac_context_t, ptr %44, i32 0, i32 0
  %46 = getelementptr inbounds [16 x i8], ptr %45, i64 0, i64 0
  store ptr %46, ptr %9, align 8, !tbaa !5
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.mbedtls_cmac_context_t, ptr %47, i32 0, i32 2
  %49 = load i64, ptr %48, align 8, !tbaa !18
  %50 = icmp ugt i64 %49, 0
  br i1 %50, label %51, label %102

51:                                               ; preds = %32
  %52 = load i64, ptr %7, align 8, !tbaa !9
  %53 = load i64, ptr %14, align 8, !tbaa !9
  %54 = load ptr, ptr %8, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.mbedtls_cmac_context_t, ptr %54, i32 0, i32 2
  %56 = load i64, ptr %55, align 8, !tbaa !18
  %57 = sub i64 %53, %56
  %58 = icmp ugt i64 %52, %57
  br i1 %58, label %59, label %102

59:                                               ; preds = %51
  %60 = load ptr, ptr %8, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.mbedtls_cmac_context_t, ptr %60, i32 0, i32 1
  %62 = load ptr, ptr %8, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.mbedtls_cmac_context_t, ptr %62, i32 0, i32 2
  %64 = load i64, ptr %63, align 8, !tbaa !18
  %65 = getelementptr inbounds [16 x i8], ptr %61, i64 0, i64 %64
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = load i64, ptr %14, align 8, !tbaa !9
  %68 = load ptr, ptr %8, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.mbedtls_cmac_context_t, ptr %68, i32 0, i32 2
  %70 = load i64, ptr %69, align 8, !tbaa !18
  %71 = sub i64 %67, %70
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %65, ptr align 1 %66, i64 %71, i1 false)
  %72 = load ptr, ptr %9, align 8, !tbaa !5
  %73 = load ptr, ptr %8, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.mbedtls_cmac_context_t, ptr %73, i32 0, i32 1
  %75 = getelementptr inbounds [16 x i8], ptr %74, i64 0, i64 0
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  %77 = load i64, ptr %14, align 8, !tbaa !9
  call void @cmac_xor_block(ptr noundef %72, ptr noundef %75, ptr noundef %76, i64 noundef %77)
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = load ptr, ptr %9, align 8, !tbaa !5
  %80 = load i64, ptr %14, align 8, !tbaa !9
  %81 = load ptr, ptr %9, align 8, !tbaa !5
  %82 = call i32 @mbedtls_cipher_update(ptr noundef %78, ptr noundef %79, i64 noundef %80, ptr noundef %81, ptr noundef %13)
  store i32 %82, ptr %10, align 4, !tbaa !11
  %83 = icmp ne i32 %82, 0
  br i1 %83, label %84, label %85

84:                                               ; preds = %59
  br label %153

85:                                               ; preds = %59
  %86 = load i64, ptr %14, align 8, !tbaa !9
  %87 = load ptr, ptr %8, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.mbedtls_cmac_context_t, ptr %87, i32 0, i32 2
  %89 = load i64, ptr %88, align 8, !tbaa !18
  %90 = sub i64 %86, %89
  %91 = load ptr, ptr %6, align 8, !tbaa !5
  %92 = getelementptr inbounds i8, ptr %91, i64 %90
  store ptr %92, ptr %6, align 8, !tbaa !5
  %93 = load i64, ptr %14, align 8, !tbaa !9
  %94 = load ptr, ptr %8, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.mbedtls_cmac_context_t, ptr %94, i32 0, i32 2
  %96 = load i64, ptr %95, align 8, !tbaa !18
  %97 = sub i64 %93, %96
  %98 = load i64, ptr %7, align 8, !tbaa !9
  %99 = sub i64 %98, %97
  store i64 %99, ptr %7, align 8, !tbaa !9
  %100 = load ptr, ptr %8, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.mbedtls_cmac_context_t, ptr %100, i32 0, i32 2
  store i64 0, ptr %101, align 8, !tbaa !18
  br label %102

102:                                              ; preds = %85, %51, %32
  %103 = load i64, ptr %7, align 8, !tbaa !9
  %104 = load i64, ptr %14, align 8, !tbaa !9
  %105 = add i64 %103, %104
  %106 = sub i64 %105, 1
  %107 = load i64, ptr %14, align 8, !tbaa !9
  %108 = udiv i64 %106, %107
  store i64 %108, ptr %11, align 8, !tbaa !9
  store i64 1, ptr %12, align 8, !tbaa !9
  br label %109

109:                                              ; preds = %132, %102
  %110 = load i64, ptr %12, align 8, !tbaa !9
  %111 = load i64, ptr %11, align 8, !tbaa !9
  %112 = icmp ult i64 %110, %111
  br i1 %112, label %113, label %135

113:                                              ; preds = %109
  %114 = load ptr, ptr %9, align 8, !tbaa !5
  %115 = load ptr, ptr %6, align 8, !tbaa !5
  %116 = load ptr, ptr %9, align 8, !tbaa !5
  %117 = load i64, ptr %14, align 8, !tbaa !9
  call void @cmac_xor_block(ptr noundef %114, ptr noundef %115, ptr noundef %116, i64 noundef %117)
  %118 = load ptr, ptr %5, align 8, !tbaa !5
  %119 = load ptr, ptr %9, align 8, !tbaa !5
  %120 = load i64, ptr %14, align 8, !tbaa !9
  %121 = load ptr, ptr %9, align 8, !tbaa !5
  %122 = call i32 @mbedtls_cipher_update(ptr noundef %118, ptr noundef %119, i64 noundef %120, ptr noundef %121, ptr noundef %13)
  store i32 %122, ptr %10, align 4, !tbaa !11
  %123 = icmp ne i32 %122, 0
  br i1 %123, label %124, label %125

124:                                              ; preds = %113
  br label %153

125:                                              ; preds = %113
  %126 = load i64, ptr %14, align 8, !tbaa !9
  %127 = load i64, ptr %7, align 8, !tbaa !9
  %128 = sub i64 %127, %126
  store i64 %128, ptr %7, align 8, !tbaa !9
  %129 = load i64, ptr %14, align 8, !tbaa !9
  %130 = load ptr, ptr %6, align 8, !tbaa !5
  %131 = getelementptr inbounds i8, ptr %130, i64 %129
  store ptr %131, ptr %6, align 8, !tbaa !5
  br label %132

132:                                              ; preds = %125
  %133 = load i64, ptr %12, align 8, !tbaa !9
  %134 = add i64 %133, 1
  store i64 %134, ptr %12, align 8, !tbaa !9
  br label %109, !llvm.loop !20

135:                                              ; preds = %109
  %136 = load i64, ptr %7, align 8, !tbaa !9
  %137 = icmp ugt i64 %136, 0
  br i1 %137, label %138, label %152

138:                                              ; preds = %135
  %139 = load ptr, ptr %8, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.mbedtls_cmac_context_t, ptr %139, i32 0, i32 1
  %141 = load ptr, ptr %8, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.mbedtls_cmac_context_t, ptr %141, i32 0, i32 2
  %143 = load i64, ptr %142, align 8, !tbaa !18
  %144 = getelementptr inbounds [16 x i8], ptr %140, i64 0, i64 %143
  %145 = load ptr, ptr %6, align 8, !tbaa !5
  %146 = load i64, ptr %7, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %144, ptr align 1 %145, i64 %146, i1 false)
  %147 = load i64, ptr %7, align 8, !tbaa !9
  %148 = load ptr, ptr %8, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.mbedtls_cmac_context_t, ptr %148, i32 0, i32 2
  %150 = load i64, ptr %149, align 8, !tbaa !18
  %151 = add i64 %150, %147
  store i64 %151, ptr %149, align 8, !tbaa !18
  br label %152

152:                                              ; preds = %138, %135
  br label %153

153:                                              ; preds = %152, %124, %84
  %154 = load i32, ptr %10, align 4, !tbaa !11
  store i32 %154, ptr %4, align 4
  store i32 1, ptr %15, align 4
  br label %155

155:                                              ; preds = %153, %31
  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 4, 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
  %156 = load i32, ptr %4, align 4
  ret i32 %156
}

; 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) #2

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

declare i32 @mbedtls_cipher_update(ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"mbedtls_cipher_context_t", !6, i64 0, !12, i64 8, !12, i64 12, !6, i64 16, !6, i64 24, !7, i64 32, !10, i64 48, !7, i64 56, !10, i64 72, !6, i64 80, !6, i64 88}
!15 = !{!14, !6, i64 88}
!16 = !{!17, !12, i64 32}
!17 = !{!"mbedtls_cipher_info_t", !12, i64 0, !12, i64 4, !12, i64 8, !6, i64 16, !12, i64 24, !12, i64 28, !12, i64 32, !6, i64 40}
!18 = !{!19, !10, i64 32}
!19 = !{!"mbedtls_cmac_context_t", !7, i64 0, !7, i64 16, !10, i64 32}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}


; 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"

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

; Function Attrs: mustprogress 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_cipher_cmac_update(ptr noundef %0, ptr noundef %1, i64 noundef %2) local_unnamed_addr #1 {
  %4 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  %5 = icmp eq ptr %0, null
  br i1 %5, label %.loopexit, label %6

6:                                                ; preds = %3
  %7 = load ptr, ptr %0, align 8, !tbaa !5
  %8 = icmp eq ptr %7, null
  %9 = icmp eq ptr %1, null
  %or.cond = or i1 %9, %8
  br i1 %or.cond, label %.loopexit, label %10

10:                                               ; preds = %6
  %11 = getelementptr inbounds i8, ptr %0, i64 88
  %12 = load ptr, ptr %11, align 8, !tbaa !12
  %13 = icmp eq ptr %12, null
  br i1 %13, label %.loopexit, label %14

14:                                               ; preds = %10
  %15 = getelementptr inbounds i8, ptr %7, i64 32
  %16 = load i32, ptr %15, align 8, !tbaa !13
  %17 = zext i32 %16 to i64
  %18 = getelementptr inbounds i8, ptr %12, i64 32
  %19 = load i64, ptr %18, align 8, !tbaa !15
  %.not = icmp eq i64 %19, 0
  br i1 %.not, label %32, label %20

20:                                               ; preds = %14
  %21 = sub i64 %17, %19
  %22 = icmp ult i64 %21, %2
  br i1 %22, label %23, label %32

23:                                               ; preds = %20
  %24 = getelementptr inbounds i8, ptr %12, i64 16
  %25 = getelementptr inbounds [16 x i8], ptr %24, i64 0, i64 %19
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 1 %25, ptr nonnull align 1 %1, i64 %21, i1 false)
  tail call void @cmac_xor_block(ptr noundef nonnull %12, ptr noundef nonnull %24, ptr noundef nonnull %12, i64 noundef %17)
  %26 = call i32 @mbedtls_cipher_update(ptr noundef nonnull %0, ptr noundef nonnull %12, i64 noundef %17, ptr noundef nonnull %12, ptr noundef nonnull %4) #4
  %.not76 = icmp eq i32 %26, 0
  br i1 %.not76, label %27, label %.loopexit

27:                                               ; preds = %23
  %28 = load i64, ptr %18, align 8, !tbaa !15
  %29 = sub i64 %17, %28
  %30 = getelementptr inbounds i8, ptr %1, i64 %29
  %31 = sub i64 %2, %29
  store i64 0, ptr %18, align 8, !tbaa !15
  br label %32

32:                                               ; preds = %27, %20, %14
  %.062 = phi i64 [ %31, %27 ], [ %2, %20 ], [ %2, %14 ]
  %.059 = phi ptr [ %30, %27 ], [ %1, %20 ], [ %1, %14 ]
  %33 = add nsw i64 %17, -1
  %34 = add i64 %33, %.062
  %35 = udiv i64 %34, %17
  %36 = icmp ugt i64 %35, 1
  br i1 %36, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %32, %38
  %.05883 = phi i64 [ %41, %38 ], [ 1, %32 ]
  %.182 = phi ptr [ %40, %38 ], [ %.059, %32 ]
  %.16381 = phi i64 [ %39, %38 ], [ %.062, %32 ]
  call void @cmac_xor_block(ptr noundef nonnull %12, ptr noundef %.182, ptr noundef nonnull %12, i64 noundef %17)
  %37 = call i32 @mbedtls_cipher_update(ptr noundef nonnull %0, ptr noundef nonnull %12, i64 noundef %17, ptr noundef nonnull %12, ptr noundef nonnull %4) #4
  %.not78 = icmp eq i32 %37, 0
  br i1 %.not78, label %38, label %.loopexit

38:                                               ; preds = %.lr.ph
  %39 = sub i64 %.16381, %17
  %40 = getelementptr inbounds i8, ptr %.182, i64 %17
  %41 = add nuw i64 %.05883, 1
  %42 = icmp ult i64 %41, %35
  br i1 %42, label %.lr.ph, label %._crit_edge, !llvm.loop !17

._crit_edge:                                      ; preds = %38, %32
  %.163.lcssa = phi i64 [ %.062, %32 ], [ %39, %38 ]
  %.1.lcssa = phi ptr [ %.059, %32 ], [ %40, %38 ]
  %.not77 = icmp eq i64 %.163.lcssa, 0
  br i1 %.not77, label %.loopexit, label %43

43:                                               ; preds = %._crit_edge
  %44 = getelementptr inbounds i8, ptr %12, i64 16
  %45 = load i64, ptr %18, align 8, !tbaa !15
  %46 = getelementptr inbounds [16 x i8], ptr %44, i64 0, i64 %45
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 1 %46, ptr align 1 %.1.lcssa, i64 %.163.lcssa, i1 false)
  %47 = load i64, ptr %18, align 8, !tbaa !15
  %48 = add i64 %47, %.163.lcssa
  store i64 %48, ptr %18, align 8, !tbaa !15
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph, %23, %43, %._crit_edge, %3, %6, %10
  %.0 = phi i32 [ -24832, %10 ], [ -24832, %6 ], [ -24832, %3 ], [ %26, %23 ], [ 0, %43 ], [ 0, %._crit_edge ], [ %37, %.lr.ph ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  ret i32 %.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) #2

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

declare i32 @mbedtls_cipher_update(ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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, !7, i64 0}
!6 = !{!"mbedtls_cipher_context_t", !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, !7, i64 88}
!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 = !{!6, !7, i64 88}
!13 = !{!14, !10, i64 32}
!14 = !{!"mbedtls_cipher_info_t", !10, i64 0, !10, i64 4, !10, i64 8, !7, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !7, i64 40}
!15 = !{!16, !11, i64 32}
!16 = !{!"mbedtls_cmac_context_t", !8, i64 0, !8, i64 16, !11, i64 32}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


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