; LLVM IR from intel/intel-ipsec-mb :: test/imb-provider (prov_ciphers)

; 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.prov_gcm_ctx_st = type { %struct.gcm_key_data, %struct.gcm_context_data, i32, i32, ptr, i32, ptr, ptr, i32, ptr, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, i32, i64, i64, i64, i64, i64, i64, i8, [16 x i8], ptr, ptr, [48 x i8] }
%struct.gcm_key_data = type { [240 x i8], %union.anon }
%union.anon = type { %struct.anon.1 }
%struct.anon.1 = type { [1024 x i8] }
%struct.gcm_context_data = type { [16 x i8], i64, i64, [16 x i8], [16 x i8], [16 x i8], i64 }
%struct.ossl_param_st = type { ptr, i32, ptr, i64, i64 }

@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [87 x i8], align 1
@__func__.prov_gcm_set_ctx_params = external hidden unnamed_addr constant [24 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [9 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

; 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 @prov_gcm_set_ctx_params(ptr noundef %0, ptr noundef %1) #1 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %11, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  store i64 0, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %12 = load ptr, ptr %5, align 8, !tbaa !5
  %13 = icmp eq ptr %12, null
  br i1 %13, label %14, label %15

14:                                               ; preds = %2
  store i32 1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %152

15:                                               ; preds = %2
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = call ptr @OSSL_PARAM_locate_const(ptr noundef %16, ptr noundef @.str.12)
  store ptr %17, ptr %7, align 8, !tbaa !5
  %18 = load ptr, ptr %7, align 8, !tbaa !5
  %19 = icmp ne ptr %18, null
  br i1 %19, label %20, label %44

20:                                               ; preds = %15
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.prov_gcm_ctx_st, ptr %21, i32 0, i32 27
  %23 = getelementptr inbounds [16 x i8], ptr %22, i64 0, i64 0
  store ptr %23, ptr %9, align 8, !tbaa !5
  %24 = load ptr, ptr %7, align 8, !tbaa !5
  %25 = call i32 @OSSL_PARAM_get_octet_string(ptr noundef %24, ptr noundef %9, i64 noundef 16, ptr noundef %8)
  %26 = icmp ne i32 %25, 0
  br i1 %26, label %28, label %27

27:                                               ; preds = %20
  store i32 0, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %152

28:                                               ; preds = %20
  %29 = load i64, ptr %8, align 8, !tbaa !9
  %30 = icmp eq i64 %29, 0
  br i1 %30, label %38, label %31

31:                                               ; preds = %28
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.prov_gcm_ctx_st, ptr %32, i32 0, i32 26
  %34 = load i8, ptr %33, align 8
  %35 = and i8 %34, 1
  %36 = zext i8 %35 to i32
  %37 = icmp ne i32 %36, 0
  br i1 %37, label %38, label %39

38:                                               ; preds = %31, %28
  store i32 0, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %152

39:                                               ; preds = %31
  %40 = load i64, ptr %8, align 8, !tbaa !9
  %41 = trunc i64 %40 to i32
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.prov_gcm_ctx_st, ptr %42, i32 0, i32 12
  store i32 %41, ptr %43, align 8, !tbaa !11
  br label %44

44:                                               ; preds = %39, %15
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = call ptr @OSSL_PARAM_locate_const(ptr noundef %45, ptr noundef @.str.6)
  store ptr %46, ptr %7, align 8, !tbaa !5
  %47 = load ptr, ptr %7, align 8, !tbaa !5
  %48 = icmp ne ptr %47, null
  br i1 %48, label %49, label %70

49:                                               ; preds = %44
  %50 = load ptr, ptr %7, align 8, !tbaa !5
  %51 = call i32 @OSSL_PARAM_get_size_t(ptr noundef %50, ptr noundef %8)
  %52 = icmp ne i32 %51, 0
  br i1 %52, label %54, label %53

53:                                               ; preds = %49
  store i32 0, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %152

54:                                               ; preds = %49
  %55 = load i64, ptr %8, align 8, !tbaa !9
  %56 = icmp eq i64 %55, 0
  br i1 %56, label %64, label %57

57:                                               ; preds = %54
  %58 = load i64, ptr %8, align 8, !tbaa !9
  %59 = load ptr, ptr %6, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.prov_gcm_ctx_st, ptr %59, i32 0, i32 13
  %61 = load i32, ptr %60, align 4, !tbaa !16
  %62 = sext i32 %61 to i64
  %63 = icmp ugt i64 %58, %62
  br i1 %63, label %64, label %65

64:                                               ; preds = %57, %54
  store i32 0, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %152

65:                                               ; preds = %57
  %66 = load i64, ptr %8, align 8, !tbaa !9
  %67 = trunc i64 %66 to i32
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.prov_gcm_ctx_st, ptr %68, i32 0, i32 13
  store i32 %67, ptr %69, align 4, !tbaa !16
  br label %70

70:                                               ; preds = %65, %44
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = call ptr @OSSL_PARAM_locate_const(ptr noundef %71, ptr noundef @.str.13)
  store ptr %72, ptr %7, align 8, !tbaa !5
  %73 = load ptr, ptr %7, align 8, !tbaa !5
  %74 = icmp ne ptr %73, null
  br i1 %74, label %75, label %99

75:                                               ; preds = %70
  %76 = load ptr, ptr %7, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.ossl_param_st, ptr %76, i32 0, i32 1
  %78 = load i32, ptr %77, align 8, !tbaa !17
  %79 = icmp ne i32 %78, 5
  br i1 %79, label %80, label %81

80:                                               ; preds = %75
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str.14, i32 noundef 217, ptr noundef @__func__.prov_gcm_set_ctx_params)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 57, i32 noundef 103, ptr noundef null)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %152

81:                                               ; preds = %75
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = load ptr, ptr %7, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.ossl_param_st, ptr %83, i32 0, i32 3
  %85 = load i64, ptr %84, align 8, !tbaa !19
  %86 = trunc i64 %85 to i32
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.ossl_param_st, ptr %87, i32 0, i32 2
  %89 = load ptr, ptr %88, align 8, !tbaa !20
  %90 = call i32 @vaesgcm_ciphers_ctrl(ptr noundef %82, i32 noundef 22, i32 noundef %86, ptr noundef %89)
  %91 = sext i32 %90 to i64
  store i64 %91, ptr %8, align 8, !tbaa !9
  %92 = load i64, ptr %8, align 8, !tbaa !9
  %93 = icmp eq i64 %92, 0
  br i1 %93, label %94, label %95

94:                                               ; preds = %81
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str.14, i32 noundef 222, ptr noundef @__func__.prov_gcm_set_ctx_params)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 57, i32 noundef 108, ptr noundef null)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %152

95:                                               ; preds = %81
  %96 = load i64, ptr %8, align 8, !tbaa !9
  %97 = load ptr, ptr %6, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.prov_gcm_ctx_st, ptr %97, i32 0, i32 22
  store i64 %96, ptr %98, align 8, !tbaa !21
  br label %99

99:                                               ; preds = %95, %70
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  %101 = call ptr @OSSL_PARAM_locate_const(ptr noundef %100, ptr noundef @.str.15)
  store ptr %101, ptr %7, align 8, !tbaa !5
  %102 = load ptr, ptr %7, align 8, !tbaa !5
  %103 = icmp ne ptr %102, null
  br i1 %103, label %104, label %123

104:                                              ; preds = %99
  %105 = load ptr, ptr %7, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.ossl_param_st, ptr %105, i32 0, i32 1
  %107 = load i32, ptr %106, align 8, !tbaa !17
  %108 = icmp ne i32 %107, 5
  br i1 %108, label %109, label %110

109:                                              ; preds = %104
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str.14, i32 noundef 231, ptr noundef @__func__.prov_gcm_set_ctx_params)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 57, i32 noundef 103, ptr noundef null)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %152

110:                                              ; preds = %104
  %111 = load ptr, ptr %6, align 8, !tbaa !5
  %112 = load ptr, ptr %7, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.ossl_param_st, ptr %112, i32 0, i32 3
  %114 = load i64, ptr %113, align 8, !tbaa !19
  %115 = trunc i64 %114 to i32
  %116 = load ptr, ptr %7, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.ossl_param_st, ptr %116, i32 0, i32 2
  %118 = load ptr, ptr %117, align 8, !tbaa !20
  %119 = call i32 @vaesgcm_ciphers_ctrl(ptr noundef %111, i32 noundef 18, i32 noundef %115, ptr noundef %118)
  %120 = icmp eq i32 %119, 0
  br i1 %120, label %121, label %122

121:                                              ; preds = %110
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str.14, i32 noundef 236, ptr noundef @__func__.prov_gcm_set_ctx_params)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 57, i32 noundef 103, ptr noundef null)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %152

122:                                              ; preds = %110
  br label %123

123:                                              ; preds = %122, %99
  %124 = load ptr, ptr %5, align 8, !tbaa !5
  %125 = call ptr @OSSL_PARAM_locate_const(ptr noundef %124, ptr noundef @.str.16)
  store ptr %125, ptr %7, align 8, !tbaa !5
  %126 = load ptr, ptr %7, align 8, !tbaa !5
  %127 = icmp ne ptr %126, null
  br i1 %127, label %128, label %151

128:                                              ; preds = %123
  %129 = load ptr, ptr %7, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.ossl_param_st, ptr %129, i32 0, i32 2
  %131 = load ptr, ptr %130, align 8, !tbaa !20
  %132 = icmp eq ptr %131, null
  br i1 %132, label %149, label %133

133:                                              ; preds = %128
  %134 = load ptr, ptr %7, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.ossl_param_st, ptr %134, i32 0, i32 1
  %136 = load i32, ptr %135, align 8, !tbaa !17
  %137 = icmp ne i32 %136, 5
  br i1 %137, label %149, label %138

138:                                              ; preds = %133
  %139 = load ptr, ptr %6, align 8, !tbaa !5
  %140 = load ptr, ptr %7, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.ossl_param_st, ptr %140, i32 0, i32 3
  %142 = load i64, ptr %141, align 8, !tbaa !19
  %143 = trunc i64 %142 to i32
  %144 = load ptr, ptr %7, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.ossl_param_st, ptr %144, i32 0, i32 2
  %146 = load ptr, ptr %145, align 8, !tbaa !20
  %147 = call i32 @vaesgcm_ciphers_ctrl(ptr noundef %139, i32 noundef 24, i32 noundef %143, ptr noundef %146)
  %148 = icmp ne i32 %147, 0
  br i1 %148, label %150, label %149

149:                                              ; preds = %138, %133, %128
  store i32 0, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %152

150:                                              ; preds = %138
  br label %151

151:                                              ; preds = %150, %123
  store i32 1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %152

152:                                              ; preds = %151, %149, %121, %109, %94, %80, %64, %53, %38, %27, %14
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  %153 = load i32, ptr %3, align 4
  ret i32 %153
}

declare ptr @OSSL_PARAM_locate_const(ptr noundef, ptr noundef) #2

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

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

declare void @ERR_new() #2

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

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

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

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 = { "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, !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, !15, i64 1416}
!12 = !{!"prov_gcm_ctx_st", !13, i64 0, !14, i64 1264, !15, i64 1352, !15, i64 1356, !6, i64 1360, !15, i64 1368, !6, i64 1376, !6, i64 1384, !15, i64 1392, !6, i64 1400, !15, i64 1408, !15, i64 1412, !15, i64 1416, !15, i64 1420, !15, i64 1424, !15, i64 1428, !15, i64 1432, !6, i64 1440, !6, i64 1448, !15, i64 1456, !10, i64 1464, !10, i64 1472, !10, i64 1480, !10, i64 1488, !10, i64 1496, !10, i64 1504, !15, i64 1512, !15, i64 1512, !15, i64 1512, !7, i64 1513, !6, i64 1536, !6, i64 1544}
!13 = !{!"gcm_key_data", !7, i64 0, !7, i64 240}
!14 = !{!"gcm_context_data", !7, i64 0, !10, i64 16, !10, i64 24, !7, i64 32, !7, i64 48, !7, i64 64, !10, i64 80}
!15 = !{!"int", !7, i64 0}
!16 = !{!12, !15, i64 1420}
!17 = !{!18, !15, i64 8}
!18 = !{!"ossl_param_st", !6, i64 0, !15, i64 8, !6, i64 16, !10, i64 24, !10, i64 32}
!19 = !{!18, !10, i64 24}
!20 = !{!18, !6, i64 16}
!21 = !{!12, !10, i64 1480}


; 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.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [87 x i8], align 1
@__func__.prov_gcm_set_ctx_params = external hidden unnamed_addr constant [24 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [9 x i8], align 1

; 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 range(i32 0, 2) i32 @prov_gcm_set_ctx_params(ptr noundef %0, ptr noundef %1) local_unnamed_addr #1 {
  %3 = alloca i64, align 8
  %4 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
  store i64 0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
  %5 = icmp eq ptr %1, null
  br i1 %5, label %83, label %6

6:                                                ; preds = %2
  %7 = tail call ptr @OSSL_PARAM_locate_const(ptr noundef nonnull %1, ptr noundef nonnull @.str.12) #3
  %.not = icmp eq ptr %7, null
  br i1 %.not, label %21, label %8

8:                                                ; preds = %6
  %9 = getelementptr inbounds i8, ptr %0, i64 1513
  store ptr %9, ptr %4, align 8, !tbaa !9
  %10 = call i32 @OSSL_PARAM_get_octet_string(ptr noundef nonnull %7, ptr noundef nonnull %4, i64 noundef 16, ptr noundef nonnull %3) #3
  %.not43 = icmp eq i32 %10, 0
  br i1 %.not43, label %83, label %11

11:                                               ; preds = %8
  %12 = load i64, ptr %3, align 8, !tbaa !5
  %13 = icmp eq i64 %12, 0
  br i1 %13, label %83, label %14

14:                                               ; preds = %11
  %15 = getelementptr inbounds i8, ptr %0, i64 1512
  %16 = load i8, ptr %15, align 8
  %17 = and i8 %16, 1
  %.not44 = icmp eq i8 %17, 0
  br i1 %.not44, label %18, label %83

18:                                               ; preds = %14
  %19 = trunc i64 %12 to i32
  %20 = getelementptr inbounds i8, ptr %0, i64 1416
  store i32 %19, ptr %20, align 8, !tbaa !11
  br label %21

21:                                               ; preds = %18, %6
  %22 = call ptr @OSSL_PARAM_locate_const(ptr noundef nonnull %1, ptr noundef nonnull @.str.6) #3
  %.not45 = icmp eq ptr %22, null
  br i1 %.not45, label %35, label %23

23:                                               ; preds = %21
  %24 = call i32 @OSSL_PARAM_get_size_t(ptr noundef nonnull %22, ptr noundef nonnull %3) #3
  %.not46 = icmp eq i32 %24, 0
  br i1 %.not46, label %83, label %25

25:                                               ; preds = %23
  %26 = load i64, ptr %3, align 8, !tbaa !5
  %27 = icmp eq i64 %26, 0
  br i1 %27, label %83, label %28

28:                                               ; preds = %25
  %29 = getelementptr inbounds i8, ptr %0, i64 1420
  %30 = load i32, ptr %29, align 4, !tbaa !16
  %31 = sext i32 %30 to i64
  %32 = icmp ugt i64 %26, %31
  br i1 %32, label %83, label %33

33:                                               ; preds = %28
  %34 = trunc i64 %26 to i32
  store i32 %34, ptr %29, align 4, !tbaa !16
  br label %35

35:                                               ; preds = %33, %21
  %36 = call ptr @OSSL_PARAM_locate_const(ptr noundef nonnull %1, ptr noundef nonnull @.str.13) #3
  %.not47 = icmp eq ptr %36, null
  br i1 %.not47, label %53, label %37

37:                                               ; preds = %35
  %38 = getelementptr inbounds i8, ptr %36, i64 8
  %39 = load i32, ptr %38, align 8, !tbaa !17
  %.not48 = icmp eq i32 %39, 5
  br i1 %.not48, label %41, label %40

40:                                               ; preds = %37
  call void @ERR_new() #3
  call void @ERR_set_debug(ptr noundef nonnull @.str.14, i32 noundef 217, ptr noundef nonnull @__func__.prov_gcm_set_ctx_params) #3
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 57, i32 noundef 103, ptr noundef null) #3
  br label %83

41:                                               ; preds = %37
  %42 = getelementptr inbounds i8, ptr %36, i64 24
  %43 = load i64, ptr %42, align 8, !tbaa !19
  %44 = trunc i64 %43 to i32
  %45 = getelementptr inbounds i8, ptr %36, i64 16
  %46 = load ptr, ptr %45, align 8, !tbaa !20
  %47 = call i32 @vaesgcm_ciphers_ctrl(ptr noundef %0, i32 noundef 22, i32 noundef %44, ptr noundef %46) #3
  %48 = sext i32 %47 to i64
  store i64 %48, ptr %3, align 8, !tbaa !5
  %49 = icmp eq i32 %47, 0
  br i1 %49, label %50, label %51

50:                                               ; preds = %41
  call void @ERR_new() #3
  call void @ERR_set_debug(ptr noundef nonnull @.str.14, i32 noundef 222, ptr noundef nonnull @__func__.prov_gcm_set_ctx_params) #3
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 57, i32 noundef 108, ptr noundef null) #3
  br label %83

51:                                               ; preds = %41
  %52 = getelementptr inbounds i8, ptr %0, i64 1480
  store i64 %48, ptr %52, align 8, !tbaa !21
  br label %53

53:                                               ; preds = %51, %35
  %54 = call ptr @OSSL_PARAM_locate_const(ptr noundef nonnull %1, ptr noundef nonnull @.str.15) #3
  %.not49 = icmp eq ptr %54, null
  br i1 %.not49, label %68, label %55

55:                                               ; preds = %53
  %56 = getelementptr inbounds i8, ptr %54, i64 8
  %57 = load i32, ptr %56, align 8, !tbaa !17
  %.not50 = icmp eq i32 %57, 5
  br i1 %.not50, label %59, label %58

58:                                               ; preds = %55
  call void @ERR_new() #3
  call void @ERR_set_debug(ptr noundef nonnull @.str.14, i32 noundef 231, ptr noundef nonnull @__func__.prov_gcm_set_ctx_params) #3
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 57, i32 noundef 103, ptr noundef null) #3
  br label %83

59:                                               ; preds = %55
  %60 = getelementptr inbounds i8, ptr %54, i64 24
  %61 = load i64, ptr %60, align 8, !tbaa !19
  %62 = trunc i64 %61 to i32
  %63 = getelementptr inbounds i8, ptr %54, i64 16
  %64 = load ptr, ptr %63, align 8, !tbaa !20
  %65 = call i32 @vaesgcm_ciphers_ctrl(ptr noundef %0, i32 noundef 18, i32 noundef %62, ptr noundef %64) #3
  %66 = icmp eq i32 %65, 0
  br i1 %66, label %67, label %68

67:                                               ; preds = %59
  call void @ERR_new() #3
  call void @ERR_set_debug(ptr noundef nonnull @.str.14, i32 noundef 236, ptr noundef nonnull @__func__.prov_gcm_set_ctx_params) #3
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 57, i32 noundef 103, ptr noundef null) #3
  br label %83

68:                                               ; preds = %59, %53
  %69 = call ptr @OSSL_PARAM_locate_const(ptr noundef nonnull %1, ptr noundef nonnull @.str.16) #3
  %.not51 = icmp eq ptr %69, null
  br i1 %.not51, label %82, label %70

70:                                               ; preds = %68
  %71 = getelementptr inbounds i8, ptr %69, i64 16
  %72 = load ptr, ptr %71, align 8, !tbaa !20
  %73 = icmp eq ptr %72, null
  br i1 %73, label %83, label %74

74:                                               ; preds = %70
  %75 = getelementptr inbounds i8, ptr %69, i64 8
  %76 = load i32, ptr %75, align 8, !tbaa !17
  %.not52 = icmp eq i32 %76, 5
  br i1 %.not52, label %77, label %83

77:                                               ; preds = %74
  %78 = getelementptr inbounds i8, ptr %69, i64 24
  %79 = load i64, ptr %78, align 8, !tbaa !19
  %80 = trunc i64 %79 to i32
  %81 = call i32 @vaesgcm_ciphers_ctrl(ptr noundef %0, i32 noundef 24, i32 noundef %80, ptr noundef nonnull %72) #3
  %.not53 = icmp eq i32 %81, 0
  br i1 %.not53, label %83, label %82

82:                                               ; preds = %77, %68
  br label %83

83:                                               ; preds = %70, %74, %77, %25, %28, %23, %11, %14, %8, %2, %82, %67, %58, %50, %40
  %.0 = phi i32 [ 0, %40 ], [ 0, %50 ], [ 0, %58 ], [ 0, %67 ], [ 1, %82 ], [ 1, %2 ], [ 0, %8 ], [ 0, %14 ], [ 0, %11 ], [ 0, %23 ], [ 0, %28 ], [ 0, %25 ], [ 0, %77 ], [ 0, %74 ], [ 0, %70 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
  ret i32 %.0
}

declare ptr @OSSL_PARAM_locate_const(ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

declare void @ERR_new() local_unnamed_addr #2

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

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

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

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 = { "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, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !15, i64 1416}
!12 = !{!"prov_gcm_ctx_st", !13, i64 0, !14, i64 1264, !15, i64 1352, !15, i64 1356, !10, i64 1360, !15, i64 1368, !10, i64 1376, !10, i64 1384, !15, i64 1392, !10, i64 1400, !15, i64 1408, !15, i64 1412, !15, i64 1416, !15, i64 1420, !15, i64 1424, !15, i64 1428, !15, i64 1432, !10, i64 1440, !10, i64 1448, !15, i64 1456, !6, i64 1464, !6, i64 1472, !6, i64 1480, !6, i64 1488, !6, i64 1496, !6, i64 1504, !15, i64 1512, !15, i64 1512, !15, i64 1512, !7, i64 1513, !10, i64 1536, !10, i64 1544}
!13 = !{!"gcm_key_data", !7, i64 0, !7, i64 240}
!14 = !{!"gcm_context_data", !7, i64 0, !6, i64 16, !6, i64 24, !7, i64 32, !7, i64 48, !7, i64 64, !6, i64 80}
!15 = !{!"int", !7, i64 0}
!16 = !{!12, !15, i64 1420}
!17 = !{!18, !15, i64 8}
!18 = !{!"ossl_param_st", !10, i64 0, !15, i64 8, !10, i64 16, !6, i64 24, !6, i64 32}
!19 = !{!18, !6, i64 24}
!20 = !{!18, !10, i64 16}
!21 = !{!12, !6, i64 1480}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass