; LLVM IR from openanolis/openssl :: providers/common (provider_util)

; 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.ossl_param_st = type { ptr, i32, ptr, i64, i64 }

@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 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 ptr @OSSL_PARAM_locate_const(ptr noundef, ptr 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 @ossl_prov_set_macctx(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, i64 noundef %7) #2 {
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, 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 i64, align 8
  %18 = alloca ptr, align 8
  %19 = alloca [6 x %struct.ossl_param_st], align 16
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca %struct.ossl_param_st, align 8
  %23 = alloca %struct.ossl_param_st, align 8
  %24 = alloca %struct.ossl_param_st, align 8
  %25 = alloca %struct.ossl_param_st, align 8
  %26 = alloca %struct.ossl_param_st, align 8
  %27 = alloca %struct.ossl_param_st, align 8
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !5
  store ptr %2, ptr %12, align 8, !tbaa !5
  store ptr %3, ptr %13, align 8, !tbaa !5
  store ptr %4, ptr %14, align 8, !tbaa !5
  store ptr %5, ptr %15, align 8, !tbaa !5
  store ptr %6, ptr %16, align 8, !tbaa !5
  store i64 %7, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 240, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %28 = getelementptr inbounds [6 x %struct.ossl_param_st], ptr %19, i64 0, i64 0
  store ptr %28, ptr %20, align 8, !tbaa !5
  %29 = load ptr, ptr %11, align 8, !tbaa !5
  %30 = icmp ne ptr %29, null
  br i1 %30, label %31, label %86

31:                                               ; preds = %8
  %32 = load ptr, ptr %13, align 8, !tbaa !5
  %33 = icmp eq ptr %32, null
  br i1 %33, label %34, label %49

34:                                               ; preds = %31
  %35 = load ptr, ptr %11, align 8, !tbaa !5
  %36 = call ptr @OSSL_PARAM_locate_const(ptr noundef %35, ptr noundef @.str.1)
  store ptr %36, ptr %18, align 8, !tbaa !5
  %37 = icmp ne ptr %36, null
  br i1 %37, label %38, label %48

38:                                               ; preds = %34
  %39 = load ptr, ptr %18, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.ossl_param_st, ptr %39, i32 0, i32 1
  %41 = load i32, ptr %40, align 8, !tbaa !11
  %42 = icmp ne i32 %41, 4
  br i1 %42, label %43, label %44

43:                                               ; preds = %38
  store i32 0, ptr %9, align 4
  store i32 1, ptr %21, align 4
  br label %127

44:                                               ; preds = %38
  %45 = load ptr, ptr %18, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.ossl_param_st, ptr %45, i32 0, i32 2
  %47 = load ptr, ptr %46, align 8, !tbaa !14
  store ptr %47, ptr %13, align 8, !tbaa !5
  br label %48

48:                                               ; preds = %44, %34
  br label %49

49:                                               ; preds = %48, %31
  %50 = load ptr, ptr %12, align 8, !tbaa !5
  %51 = icmp eq ptr %50, null
  br i1 %51, label %52, label %67

52:                                               ; preds = %49
  %53 = load ptr, ptr %11, align 8, !tbaa !5
  %54 = call ptr @OSSL_PARAM_locate_const(ptr noundef %53, ptr noundef @.str)
  store ptr %54, ptr %18, align 8, !tbaa !5
  %55 = icmp ne ptr %54, null
  br i1 %55, label %56, label %66

56:                                               ; preds = %52
  %57 = load ptr, ptr %18, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.ossl_param_st, ptr %57, i32 0, i32 1
  %59 = load i32, ptr %58, align 8, !tbaa !11
  %60 = icmp ne i32 %59, 4
  br i1 %60, label %61, label %62

61:                                               ; preds = %56
  store i32 0, ptr %9, align 4
  store i32 1, ptr %21, align 4
  br label %127

62:                                               ; preds = %56
  %63 = load ptr, ptr %18, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.ossl_param_st, ptr %63, i32 0, i32 2
  %65 = load ptr, ptr %64, align 8, !tbaa !14
  store ptr %65, ptr %12, align 8, !tbaa !5
  br label %66

66:                                               ; preds = %62, %52
  br label %67

67:                                               ; preds = %66, %49
  %68 = load ptr, ptr %14, align 8, !tbaa !5
  %69 = icmp eq ptr %68, null
  br i1 %69, label %70, label %85

70:                                               ; preds = %67
  %71 = load ptr, ptr %11, align 8, !tbaa !5
  %72 = call ptr @OSSL_PARAM_locate_const(ptr noundef %71, ptr noundef @.str.2)
  store ptr %72, ptr %18, align 8, !tbaa !5
  %73 = icmp ne ptr %72, null
  br i1 %73, label %74, label %84

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

79:                                               ; preds = %74
  store i32 0, ptr %9, align 4
  store i32 1, ptr %21, align 4
  br label %127

80:                                               ; preds = %74
  %81 = load ptr, ptr %18, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.ossl_param_st, ptr %81, i32 0, i32 2
  %83 = load ptr, ptr %82, align 8, !tbaa !14
  store ptr %83, ptr %14, align 8, !tbaa !5
  br label %84

84:                                               ; preds = %80, %70
  br label %85

85:                                               ; preds = %84, %67
  br label %86

86:                                               ; preds = %85, %8
  %87 = load ptr, ptr %13, align 8, !tbaa !5
  %88 = icmp ne ptr %87, null
  br i1 %88, label %89, label %93

89:                                               ; preds = %86
  %90 = load ptr, ptr %20, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.ossl_param_st, ptr %90, i32 1
  store ptr %91, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %22) #4
  %92 = load ptr, ptr %13, align 8, !tbaa !5
  call void @OSSL_PARAM_construct_utf8_string(ptr dead_on_unwind writable sret(%struct.ossl_param_st) align 8 %22, ptr noundef @.str.1, ptr noundef %92, i64 noundef 0)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %90, ptr align 8 %22, i64 40, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 40, ptr %22) #4
  br label %93

93:                                               ; preds = %89, %86
  %94 = load ptr, ptr %12, align 8, !tbaa !5
  %95 = icmp ne ptr %94, null
  br i1 %95, label %96, label %100

96:                                               ; preds = %93
  %97 = load ptr, ptr %20, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.ossl_param_st, ptr %97, i32 1
  store ptr %98, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %23) #4
  %99 = load ptr, ptr %12, align 8, !tbaa !5
  call void @OSSL_PARAM_construct_utf8_string(ptr dead_on_unwind writable sret(%struct.ossl_param_st) align 8 %23, ptr noundef @.str, ptr noundef %99, i64 noundef 0)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %97, ptr align 8 %23, i64 40, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 40, ptr %23) #4
  br label %100

100:                                              ; preds = %96, %93
  %101 = load ptr, ptr %15, align 8, !tbaa !5
  %102 = icmp ne ptr %101, null
  br i1 %102, label %103, label %107

103:                                              ; preds = %100
  %104 = load ptr, ptr %20, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.ossl_param_st, ptr %104, i32 1
  store ptr %105, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %24) #4
  %106 = load ptr, ptr %15, align 8, !tbaa !5
  call void @OSSL_PARAM_construct_utf8_string(ptr dead_on_unwind writable sret(%struct.ossl_param_st) align 8 %24, ptr noundef @.str.3, ptr noundef %106, i64 noundef 0)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %104, ptr align 8 %24, i64 40, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 40, ptr %24) #4
  br label %107

107:                                              ; preds = %103, %100
  %108 = load ptr, ptr %14, align 8, !tbaa !5
  %109 = icmp ne ptr %108, null
  br i1 %109, label %110, label %114

110:                                              ; preds = %107
  %111 = load ptr, ptr %20, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.ossl_param_st, ptr %111, i32 1
  store ptr %112, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %25) #4
  %113 = load ptr, ptr %14, align 8, !tbaa !5
  call void @OSSL_PARAM_construct_utf8_string(ptr dead_on_unwind writable sret(%struct.ossl_param_st) align 8 %25, ptr noundef @.str.2, ptr noundef %113, i64 noundef 0)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %111, ptr align 8 %25, i64 40, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 40, ptr %25) #4
  br label %114

114:                                              ; preds = %110, %107
  %115 = load ptr, ptr %16, align 8, !tbaa !5
  %116 = icmp ne ptr %115, null
  br i1 %116, label %117, label %122

117:                                              ; preds = %114
  %118 = load ptr, ptr %20, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.ossl_param_st, ptr %118, i32 1
  store ptr %119, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %26) #4
  %120 = load ptr, ptr %16, align 8, !tbaa !5
  %121 = load i64, ptr %17, align 8, !tbaa !9
  call void @OSSL_PARAM_construct_octet_string(ptr dead_on_unwind writable sret(%struct.ossl_param_st) align 8 %26, ptr noundef @.str.4, ptr noundef %120, i64 noundef %121)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %118, ptr align 8 %26, i64 40, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 40, ptr %26) #4
  br label %122

122:                                              ; preds = %117, %114
  %123 = load ptr, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %27) #4
  call void @OSSL_PARAM_construct_end(ptr dead_on_unwind writable sret(%struct.ossl_param_st) align 8 %27)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %123, ptr align 8 %27, i64 40, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 40, ptr %27) #4
  %124 = load ptr, ptr %10, align 8, !tbaa !5
  %125 = getelementptr inbounds [6 x %struct.ossl_param_st], ptr %19, i64 0, i64 0
  %126 = call i32 @EVP_MAC_CTX_set_params(ptr noundef %124, ptr noundef %125)
  store i32 %126, ptr %9, align 4
  store i32 1, ptr %21, align 4
  br label %127

127:                                              ; preds = %122, %79, %61, %43
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 240, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  %128 = load i32, ptr %9, align 4
  ret i32 %128
}

declare void @OSSL_PARAM_construct_utf8_string(ptr dead_on_unwind writable sret(%struct.ossl_param_st) align 8, ptr noundef, ptr noundef, i64 noundef) #1

; 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 void @OSSL_PARAM_construct_octet_string(ptr dead_on_unwind writable sret(%struct.ossl_param_st) align 8, ptr noundef, ptr noundef, i64 noundef) #1

declare void @OSSL_PARAM_construct_end(ptr dead_on_unwind writable sret(%struct.ossl_param_st) align 8) #1

declare i32 @EVP_MAC_CTX_set_params(ptr noundef, ptr noundef) #1

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 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !13, i64 8}
!12 = !{!"ossl_param_st", !6, i64 0, !13, i64 8, !6, i64 16, !10, i64 24, !10, i64 32}
!13 = !{!"int", !7, i64 0}
!14 = !{!12, !6, i64 16}
!15 = !{i64 0, i64 8, !5, i64 8, i64 4, !16, i64 16, i64 8, !5, i64 24, i64 8, !9, i64 32, i64 8, !9}
!16 = !{!13, !13, i64 0}


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

%struct.ossl_param_st = type { ptr, i32, ptr, i64, i64 }

@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 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

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

; 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 @ossl_prov_set_macctx(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, i64 noundef %7) local_unnamed_addr #2 {
  %9 = alloca [6 x %struct.ossl_param_st], align 16
  %10 = alloca %struct.ossl_param_st, align 8
  %11 = alloca %struct.ossl_param_st, align 8
  %12 = alloca %struct.ossl_param_st, align 8
  %13 = alloca %struct.ossl_param_st, align 8
  %14 = alloca %struct.ossl_param_st, align 8
  call void @llvm.lifetime.start.p0(i64 240, ptr nonnull %9) #4
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %45, label %15

15:                                               ; preds = %8
  %16 = icmp eq ptr %3, null
  br i1 %16, label %17, label %25

17:                                               ; preds = %15
  %18 = tail call ptr @OSSL_PARAM_locate_const(ptr noundef nonnull %1, ptr noundef nonnull @.str.1) #4
  %.not49 = icmp eq ptr %18, null
  br i1 %.not49, label %25, label %19

19:                                               ; preds = %17
  %20 = getelementptr inbounds i8, ptr %18, i64 8
  %21 = load i32, ptr %20, align 8, !tbaa !5
  %.not50 = icmp eq i32 %21, 4
  br i1 %.not50, label %22, label %62

22:                                               ; preds = %19
  %23 = getelementptr inbounds i8, ptr %18, i64 16
  %24 = load ptr, ptr %23, align 8, !tbaa !12
  br label %25

25:                                               ; preds = %17, %22, %15
  %.034 = phi ptr [ %24, %22 ], [ null, %17 ], [ %3, %15 ]
  %26 = icmp eq ptr %2, null
  br i1 %26, label %27, label %35

27:                                               ; preds = %25
  %28 = tail call ptr @OSSL_PARAM_locate_const(ptr noundef nonnull %1, ptr noundef nonnull @.str) #4
  %.not51 = icmp eq ptr %28, null
  br i1 %.not51, label %35, label %29

29:                                               ; preds = %27
  %30 = getelementptr inbounds i8, ptr %28, i64 8
  %31 = load i32, ptr %30, align 8, !tbaa !5
  %.not52 = icmp eq i32 %31, 4
  br i1 %.not52, label %32, label %62

32:                                               ; preds = %29
  %33 = getelementptr inbounds i8, ptr %28, i64 16
  %34 = load ptr, ptr %33, align 8, !tbaa !12
  br label %35

35:                                               ; preds = %27, %32, %25
  %.032 = phi ptr [ %34, %32 ], [ null, %27 ], [ %2, %25 ]
  %36 = icmp eq ptr %4, null
  br i1 %36, label %37, label %45

37:                                               ; preds = %35
  %38 = tail call ptr @OSSL_PARAM_locate_const(ptr noundef nonnull %1, ptr noundef nonnull @.str.2) #4
  %.not53 = icmp eq ptr %38, null
  br i1 %.not53, label %45, label %39

39:                                               ; preds = %37
  %40 = getelementptr inbounds i8, ptr %38, i64 8
  %41 = load i32, ptr %40, align 8, !tbaa !5
  %.not54 = icmp eq i32 %41, 4
  br i1 %.not54, label %42, label %62

42:                                               ; preds = %39
  %43 = getelementptr inbounds i8, ptr %38, i64 16
  %44 = load ptr, ptr %43, align 8, !tbaa !12
  br label %45

45:                                               ; preds = %35, %42, %37, %8
  %.036 = phi ptr [ %44, %42 ], [ null, %37 ], [ %4, %35 ], [ %4, %8 ]
  %.135 = phi ptr [ %.034, %42 ], [ %.034, %37 ], [ %.034, %35 ], [ %3, %8 ]
  %.133 = phi ptr [ %.032, %42 ], [ %.032, %37 ], [ %.032, %35 ], [ %2, %8 ]
  %.not55 = icmp eq ptr %.135, null
  br i1 %.not55, label %48, label %46

46:                                               ; preds = %45
  %47 = getelementptr inbounds i8, ptr %9, i64 40
  call void @OSSL_PARAM_construct_utf8_string(ptr dead_on_unwind nonnull writable sret(%struct.ossl_param_st) align 8 %9, ptr noundef nonnull @.str.1, ptr noundef nonnull %.135, i64 noundef 0) #4
  br label %48

48:                                               ; preds = %46, %45
  %.0 = phi ptr [ %47, %46 ], [ %9, %45 ]
  %.not56 = icmp eq ptr %.133, null
  br i1 %.not56, label %51, label %49

49:                                               ; preds = %48
  %50 = getelementptr inbounds i8, ptr %.0, i64 40
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %10) #4
  call void @OSSL_PARAM_construct_utf8_string(ptr dead_on_unwind nonnull writable sret(%struct.ossl_param_st) align 8 %10, ptr noundef nonnull @.str, ptr noundef nonnull %.133, i64 noundef 0) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %.0, ptr noundef nonnull align 8 dereferenceable(40) %10, i64 40, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #4
  br label %51

51:                                               ; preds = %49, %48
  %.1 = phi ptr [ %50, %49 ], [ %.0, %48 ]
  %.not57 = icmp eq ptr %5, null
  br i1 %.not57, label %54, label %52

52:                                               ; preds = %51
  %53 = getelementptr inbounds i8, ptr %.1, i64 40
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %11) #4
  call void @OSSL_PARAM_construct_utf8_string(ptr dead_on_unwind nonnull writable sret(%struct.ossl_param_st) align 8 %11, ptr noundef nonnull @.str.3, ptr noundef nonnull %5, i64 noundef 0) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %.1, ptr noundef nonnull align 8 dereferenceable(40) %11, i64 40, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #4
  br label %54

54:                                               ; preds = %52, %51
  %.2 = phi ptr [ %53, %52 ], [ %.1, %51 ]
  %.not58 = icmp eq ptr %.036, null
  br i1 %.not58, label %57, label %55

55:                                               ; preds = %54
  %56 = getelementptr inbounds i8, ptr %.2, i64 40
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %12) #4
  call void @OSSL_PARAM_construct_utf8_string(ptr dead_on_unwind nonnull writable sret(%struct.ossl_param_st) align 8 %12, ptr noundef nonnull @.str.2, ptr noundef nonnull %.036, i64 noundef 0) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %.2, ptr noundef nonnull align 8 dereferenceable(40) %12, i64 40, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %12) #4
  br label %57

57:                                               ; preds = %55, %54
  %.3 = phi ptr [ %56, %55 ], [ %.2, %54 ]
  %.not59 = icmp eq ptr %6, null
  br i1 %.not59, label %60, label %58

58:                                               ; preds = %57
  %59 = getelementptr inbounds i8, ptr %.3, i64 40
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %13) #4
  call void @OSSL_PARAM_construct_octet_string(ptr dead_on_unwind nonnull writable sret(%struct.ossl_param_st) align 8 %13, ptr noundef nonnull @.str.4, ptr noundef nonnull %6, i64 noundef %7) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %.3, ptr noundef nonnull align 8 dereferenceable(40) %13, i64 40, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %13) #4
  br label %60

60:                                               ; preds = %58, %57
  %.4 = phi ptr [ %59, %58 ], [ %.3, %57 ]
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %14) #4
  call void @OSSL_PARAM_construct_end(ptr dead_on_unwind nonnull writable sret(%struct.ossl_param_st) align 8 %14) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %.4, ptr noundef nonnull align 8 dereferenceable(40) %14, i64 40, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %14) #4
  %61 = call i32 @EVP_MAC_CTX_set_params(ptr noundef %0, ptr noundef nonnull %9) #4
  br label %62

62:                                               ; preds = %39, %29, %19, %60
  %.031 = phi i32 [ %61, %60 ], [ 0, %19 ], [ 0, %29 ], [ 0, %39 ]
  call void @llvm.lifetime.end.p0(i64 240, ptr nonnull %9) #4
  ret i32 %.031
}

declare void @OSSL_PARAM_construct_utf8_string(ptr dead_on_unwind writable sret(%struct.ossl_param_st) align 8, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1

; 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 void @OSSL_PARAM_construct_octet_string(ptr dead_on_unwind writable sret(%struct.ossl_param_st) align 8, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1

declare void @OSSL_PARAM_construct_end(ptr dead_on_unwind writable sret(%struct.ossl_param_st) align 8) local_unnamed_addr #1

declare i32 @EVP_MAC_CTX_set_params(ptr noundef, ptr noundef) local_unnamed_addr #1

attributes #0 = { mustprogress 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 = { 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, !10, i64 8}
!6 = !{!"ossl_param_st", !7, i64 0, !10, i64 8, !7, i64 16, !11, i64 24, !11, i64 32}
!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 16}
!13 = !{i64 0, i64 8, !14, i64 8, i64 4, !15, i64 16, i64 8, !14, i64 24, i64 8, !16, i64 32, i64 8, !16}
!14 = !{!7, !7, i64 0}
!15 = !{!10, !10, i64 0}
!16 = !{!11, !11, i64 0}


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