; LLVM IR from openssl/openssl :: crypto/ffc (ffc_dh)

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

@dh_named_groups = external hidden constant [14 x %struct.dh_named_group_st], align 16

; 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 ptr @ossl_ffc_numbers_to_dh_named_group(ptr noundef %0, ptr noundef %1, ptr noundef %2) #1 {
  %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 i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  store i64 0, ptr %8, align 8, !tbaa !9
  br label %10

10:                                               ; preds = %44, %3
  %11 = load i64, ptr %8, align 8, !tbaa !9
  %12 = icmp ult i64 %11, 14
  br i1 %12, label %13, label %47

13:                                               ; preds = %10
  %14 = load ptr, ptr %5, align 8, !tbaa !5
  %15 = load i64, ptr %8, align 8, !tbaa !9
  %16 = getelementptr inbounds [14 x %struct.dh_named_group_st], ptr @dh_named_groups, i64 0, i64 %15
  %17 = getelementptr inbounds %struct.dh_named_group_st, ptr %16, i32 0, i32 4
  %18 = load ptr, ptr %17, align 8, !tbaa !11
  %19 = call i32 @BN_cmp(ptr noundef %14, ptr noundef %18)
  %20 = icmp eq i32 %19, 0
  br i1 %20, label %21, label %43

21:                                               ; preds = %13
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  %23 = load i64, ptr %8, align 8, !tbaa !9
  %24 = getelementptr inbounds [14 x %struct.dh_named_group_st], ptr @dh_named_groups, i64 0, i64 %23
  %25 = getelementptr inbounds %struct.dh_named_group_st, ptr %24, i32 0, i32 6
  %26 = load ptr, ptr %25, align 8, !tbaa !14
  %27 = call i32 @BN_cmp(ptr noundef %22, ptr noundef %26)
  %28 = icmp eq i32 %27, 0
  br i1 %28, label %29, label %43

29:                                               ; preds = %21
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = icmp eq ptr %30, null
  br i1 %31, label %40, label %32

32:                                               ; preds = %29
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = load i64, ptr %8, align 8, !tbaa !9
  %35 = getelementptr inbounds [14 x %struct.dh_named_group_st], ptr @dh_named_groups, i64 0, i64 %34
  %36 = getelementptr inbounds %struct.dh_named_group_st, ptr %35, i32 0, i32 5
  %37 = load ptr, ptr %36, align 16, !tbaa !15
  %38 = call i32 @BN_cmp(ptr noundef %33, ptr noundef %37)
  %39 = icmp eq i32 %38, 0
  br i1 %39, label %40, label %43

40:                                               ; preds = %32, %29
  %41 = load i64, ptr %8, align 8, !tbaa !9
  %42 = getelementptr inbounds [14 x %struct.dh_named_group_st], ptr @dh_named_groups, i64 0, i64 %41
  store ptr %42, ptr %4, align 8
  store i32 1, ptr %9, align 4
  br label %48

43:                                               ; preds = %32, %21, %13
  br label %44

44:                                               ; preds = %43
  %45 = load i64, ptr %8, align 8, !tbaa !9
  %46 = add i64 %45, 1
  store i64 %46, ptr %8, align 8, !tbaa !9
  br label %10, !llvm.loop !16

47:                                               ; preds = %10
  store ptr null, ptr %4, align 8
  store i32 1, ptr %9, align 4
  br label %48

48:                                               ; preds = %47, %40
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  %49 = load ptr, ptr %4, align 8
  ret ptr %49
}

declare i32 @BN_cmp(ptr 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, !6, i64 24}
!12 = !{!"dh_named_group_st", !6, i64 0, !13, i64 8, !13, i64 12, !13, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!13 = !{!"int", !7, i64 0}
!14 = !{!12, !6, i64 40}
!15 = !{!12, !6, i64 32}
!16 = distinct !{!16, !17}
!17 = !{!"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"

%struct.dh_named_group_st = type { ptr, i32, i32, i32, ptr, ptr, ptr }

@dh_named_groups = external hidden constant [14 x %struct.dh_named_group_st], align 16

; Function Attrs: nounwind uwtable
define dso_local ptr @ossl_ffc_numbers_to_dh_named_group(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #0 {
  %4 = icmp eq ptr %1, null
  %5 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 24), align 8, !tbaa !5
  %6 = tail call i32 @BN_cmp(ptr noundef %0, ptr noundef %5) #2
  %7 = icmp eq i32 %6, 0
  br i1 %4, label %.split.us.preheader, label %.split.preheader

.split.preheader:                                 ; preds = %3
  br i1 %7, label %104, label %.split.1

.split.us.preheader:                              ; preds = %3
  br i1 %7, label %8, label %.split.us.1

8:                                                ; preds = %.split.us.preheader
  %9 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 40), align 8, !tbaa !11
  %10 = tail call i32 @BN_cmp(ptr noundef %2, ptr noundef %9) #2
  %11 = icmp eq i32 %10, 0
  br i1 %11, label %.split14.us, label %.split.us.1

.split.us.1:                                      ; preds = %8, %.split.us.preheader
  %12 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 72), align 8, !tbaa !5
  %13 = tail call i32 @BN_cmp(ptr noundef %0, ptr noundef %12) #2
  %14 = icmp eq i32 %13, 0
  br i1 %14, label %15, label %.split.us.2

15:                                               ; preds = %.split.us.1
  %16 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 88), align 8, !tbaa !11
  %17 = tail call i32 @BN_cmp(ptr noundef %2, ptr noundef %16) #2
  %18 = icmp eq i32 %17, 0
  br i1 %18, label %.split14.us, label %.split.us.2

.split.us.2:                                      ; preds = %15, %.split.us.1
  %19 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 120), align 8, !tbaa !5
  %20 = tail call i32 @BN_cmp(ptr noundef %0, ptr noundef %19) #2
  %21 = icmp eq i32 %20, 0
  br i1 %21, label %22, label %.split.us.3

22:                                               ; preds = %.split.us.2
  %23 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 136), align 8, !tbaa !11
  %24 = tail call i32 @BN_cmp(ptr noundef %2, ptr noundef %23) #2
  %25 = icmp eq i32 %24, 0
  br i1 %25, label %.split14.us, label %.split.us.3

.split.us.3:                                      ; preds = %22, %.split.us.2
  %26 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 168), align 8, !tbaa !5
  %27 = tail call i32 @BN_cmp(ptr noundef %0, ptr noundef %26) #2
  %28 = icmp eq i32 %27, 0
  br i1 %28, label %29, label %.split.us.4

29:                                               ; preds = %.split.us.3
  %30 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 184), align 8, !tbaa !11
  %31 = tail call i32 @BN_cmp(ptr noundef %2, ptr noundef %30) #2
  %32 = icmp eq i32 %31, 0
  br i1 %32, label %.split14.us, label %.split.us.4

.split.us.4:                                      ; preds = %29, %.split.us.3
  %33 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 216), align 8, !tbaa !5
  %34 = tail call i32 @BN_cmp(ptr noundef %0, ptr noundef %33) #2
  %35 = icmp eq i32 %34, 0
  br i1 %35, label %36, label %.split.us.5

36:                                               ; preds = %.split.us.4
  %37 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 232), align 8, !tbaa !11
  %38 = tail call i32 @BN_cmp(ptr noundef %2, ptr noundef %37) #2
  %39 = icmp eq i32 %38, 0
  br i1 %39, label %.split14.us, label %.split.us.5

.split.us.5:                                      ; preds = %36, %.split.us.4
  %40 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 264), align 8, !tbaa !5
  %41 = tail call i32 @BN_cmp(ptr noundef %0, ptr noundef %40) #2
  %42 = icmp eq i32 %41, 0
  br i1 %42, label %43, label %.split.us.6

43:                                               ; preds = %.split.us.5
  %44 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 280), align 8, !tbaa !11
  %45 = tail call i32 @BN_cmp(ptr noundef %2, ptr noundef %44) #2
  %46 = icmp eq i32 %45, 0
  br i1 %46, label %.split14.us, label %.split.us.6

.split.us.6:                                      ; preds = %43, %.split.us.5
  %47 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 312), align 8, !tbaa !5
  %48 = tail call i32 @BN_cmp(ptr noundef %0, ptr noundef %47) #2
  %49 = icmp eq i32 %48, 0
  br i1 %49, label %50, label %.split.us.7

50:                                               ; preds = %.split.us.6
  %51 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 328), align 8, !tbaa !11
  %52 = tail call i32 @BN_cmp(ptr noundef %2, ptr noundef %51) #2
  %53 = icmp eq i32 %52, 0
  br i1 %53, label %.split14.us, label %.split.us.7

.split.us.7:                                      ; preds = %50, %.split.us.6
  %54 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 360), align 8, !tbaa !5
  %55 = tail call i32 @BN_cmp(ptr noundef %0, ptr noundef %54) #2
  %56 = icmp eq i32 %55, 0
  br i1 %56, label %57, label %.split.us.8

57:                                               ; preds = %.split.us.7
  %58 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 376), align 8, !tbaa !11
  %59 = tail call i32 @BN_cmp(ptr noundef %2, ptr noundef %58) #2
  %60 = icmp eq i32 %59, 0
  br i1 %60, label %.split14.us, label %.split.us.8

.split.us.8:                                      ; preds = %57, %.split.us.7
  %61 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 408), align 8, !tbaa !5
  %62 = tail call i32 @BN_cmp(ptr noundef %0, ptr noundef %61) #2
  %63 = icmp eq i32 %62, 0
  br i1 %63, label %64, label %.split.us.9

64:                                               ; preds = %.split.us.8
  %65 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 424), align 8, !tbaa !11
  %66 = tail call i32 @BN_cmp(ptr noundef %2, ptr noundef %65) #2
  %67 = icmp eq i32 %66, 0
  br i1 %67, label %.split14.us, label %.split.us.9

.split.us.9:                                      ; preds = %64, %.split.us.8
  %68 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 456), align 8, !tbaa !5
  %69 = tail call i32 @BN_cmp(ptr noundef %0, ptr noundef %68) #2
  %70 = icmp eq i32 %69, 0
  br i1 %70, label %71, label %.split.us.10

71:                                               ; preds = %.split.us.9
  %72 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 472), align 8, !tbaa !11
  %73 = tail call i32 @BN_cmp(ptr noundef %2, ptr noundef %72) #2
  %74 = icmp eq i32 %73, 0
  br i1 %74, label %.split14.us, label %.split.us.10

.split.us.10:                                     ; preds = %71, %.split.us.9
  %75 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 504), align 8, !tbaa !5
  %76 = tail call i32 @BN_cmp(ptr noundef %0, ptr noundef %75) #2
  %77 = icmp eq i32 %76, 0
  br i1 %77, label %78, label %.split.us.11

78:                                               ; preds = %.split.us.10
  %79 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 520), align 8, !tbaa !11
  %80 = tail call i32 @BN_cmp(ptr noundef %2, ptr noundef %79) #2
  %81 = icmp eq i32 %80, 0
  br i1 %81, label %.split14.us, label %.split.us.11

.split.us.11:                                     ; preds = %78, %.split.us.10
  %82 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 552), align 8, !tbaa !5
  %83 = tail call i32 @BN_cmp(ptr noundef %0, ptr noundef %82) #2
  %84 = icmp eq i32 %83, 0
  br i1 %84, label %85, label %.split.us.12

85:                                               ; preds = %.split.us.11
  %86 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 568), align 8, !tbaa !11
  %87 = tail call i32 @BN_cmp(ptr noundef %2, ptr noundef %86) #2
  %88 = icmp eq i32 %87, 0
  br i1 %88, label %.split14.us, label %.split.us.12

.split.us.12:                                     ; preds = %85, %.split.us.11
  %89 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 600), align 8, !tbaa !5
  %90 = tail call i32 @BN_cmp(ptr noundef %0, ptr noundef %89) #2
  %91 = icmp eq i32 %90, 0
  br i1 %91, label %92, label %.split.us.13

92:                                               ; preds = %.split.us.12
  %93 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 616), align 8, !tbaa !11
  %94 = tail call i32 @BN_cmp(ptr noundef %2, ptr noundef %93) #2
  %95 = icmp eq i32 %94, 0
  br i1 %95, label %.split14.us, label %.split.us.13

.split.us.13:                                     ; preds = %92, %.split.us.12
  %96 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 648), align 8, !tbaa !5
  %97 = tail call i32 @BN_cmp(ptr noundef %0, ptr noundef %96) #2
  %98 = icmp eq i32 %97, 0
  br i1 %98, label %99, label %103

99:                                               ; preds = %.split.us.13
  %100 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 664), align 8, !tbaa !11
  %101 = tail call i32 @BN_cmp(ptr noundef %2, ptr noundef %100) #2
  %102 = icmp eq i32 %101, 0
  br i1 %102, label %.split14.us, label %103

103:                                              ; preds = %99, %.split.us.13
  br label %.split14.us

104:                                              ; preds = %.split.preheader
  %105 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 40), align 8, !tbaa !11
  %106 = tail call i32 @BN_cmp(ptr noundef %2, ptr noundef %105) #2
  %107 = icmp eq i32 %106, 0
  br i1 %107, label %108, label %.split.1

108:                                              ; preds = %104
  %109 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 32), align 16, !tbaa !12
  %110 = tail call i32 @BN_cmp(ptr noundef nonnull %1, ptr noundef %109) #2
  %111 = icmp eq i32 %110, 0
  br i1 %111, label %.split14.us, label %.split.1

.split.1:                                         ; preds = %.split.preheader, %104, %108
  %112 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 72), align 8, !tbaa !5
  %113 = tail call i32 @BN_cmp(ptr noundef %0, ptr noundef %112) #2
  %114 = icmp eq i32 %113, 0
  br i1 %114, label %115, label %.split.2

115:                                              ; preds = %.split.1
  %116 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 88), align 8, !tbaa !11
  %117 = tail call i32 @BN_cmp(ptr noundef %2, ptr noundef %116) #2
  %118 = icmp eq i32 %117, 0
  br i1 %118, label %119, label %.split.2

119:                                              ; preds = %115
  %120 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 80), align 16, !tbaa !12
  %121 = tail call i32 @BN_cmp(ptr noundef nonnull %1, ptr noundef %120) #2
  %122 = icmp eq i32 %121, 0
  br i1 %122, label %.split14.us, label %.split.2

.split.2:                                         ; preds = %119, %115, %.split.1
  %123 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 120), align 8, !tbaa !5
  %124 = tail call i32 @BN_cmp(ptr noundef %0, ptr noundef %123) #2
  %125 = icmp eq i32 %124, 0
  br i1 %125, label %126, label %.split.3

126:                                              ; preds = %.split.2
  %127 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 136), align 8, !tbaa !11
  %128 = tail call i32 @BN_cmp(ptr noundef %2, ptr noundef %127) #2
  %129 = icmp eq i32 %128, 0
  br i1 %129, label %130, label %.split.3

130:                                              ; preds = %126
  %131 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 128), align 16, !tbaa !12
  %132 = tail call i32 @BN_cmp(ptr noundef nonnull %1, ptr noundef %131) #2
  %133 = icmp eq i32 %132, 0
  br i1 %133, label %.split14.us, label %.split.3

.split.3:                                         ; preds = %130, %126, %.split.2
  %134 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 168), align 8, !tbaa !5
  %135 = tail call i32 @BN_cmp(ptr noundef %0, ptr noundef %134) #2
  %136 = icmp eq i32 %135, 0
  br i1 %136, label %137, label %.split.4

137:                                              ; preds = %.split.3
  %138 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 184), align 8, !tbaa !11
  %139 = tail call i32 @BN_cmp(ptr noundef %2, ptr noundef %138) #2
  %140 = icmp eq i32 %139, 0
  br i1 %140, label %141, label %.split.4

141:                                              ; preds = %137
  %142 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 176), align 16, !tbaa !12
  %143 = tail call i32 @BN_cmp(ptr noundef nonnull %1, ptr noundef %142) #2
  %144 = icmp eq i32 %143, 0
  br i1 %144, label %.split14.us, label %.split.4

.split.4:                                         ; preds = %141, %137, %.split.3
  %145 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 216), align 8, !tbaa !5
  %146 = tail call i32 @BN_cmp(ptr noundef %0, ptr noundef %145) #2
  %147 = icmp eq i32 %146, 0
  br i1 %147, label %148, label %.split.5

148:                                              ; preds = %.split.4
  %149 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 232), align 8, !tbaa !11
  %150 = tail call i32 @BN_cmp(ptr noundef %2, ptr noundef %149) #2
  %151 = icmp eq i32 %150, 0
  br i1 %151, label %152, label %.split.5

152:                                              ; preds = %148
  %153 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 224), align 16, !tbaa !12
  %154 = tail call i32 @BN_cmp(ptr noundef nonnull %1, ptr noundef %153) #2
  %155 = icmp eq i32 %154, 0
  br i1 %155, label %.split14.us, label %.split.5

.split.5:                                         ; preds = %152, %148, %.split.4
  %156 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 264), align 8, !tbaa !5
  %157 = tail call i32 @BN_cmp(ptr noundef %0, ptr noundef %156) #2
  %158 = icmp eq i32 %157, 0
  br i1 %158, label %159, label %.split.6

159:                                              ; preds = %.split.5
  %160 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 280), align 8, !tbaa !11
  %161 = tail call i32 @BN_cmp(ptr noundef %2, ptr noundef %160) #2
  %162 = icmp eq i32 %161, 0
  br i1 %162, label %163, label %.split.6

163:                                              ; preds = %159
  %164 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 272), align 16, !tbaa !12
  %165 = tail call i32 @BN_cmp(ptr noundef nonnull %1, ptr noundef %164) #2
  %166 = icmp eq i32 %165, 0
  br i1 %166, label %.split14.us, label %.split.6

.split.6:                                         ; preds = %163, %159, %.split.5
  %167 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 312), align 8, !tbaa !5
  %168 = tail call i32 @BN_cmp(ptr noundef %0, ptr noundef %167) #2
  %169 = icmp eq i32 %168, 0
  br i1 %169, label %170, label %.split.7

170:                                              ; preds = %.split.6
  %171 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 328), align 8, !tbaa !11
  %172 = tail call i32 @BN_cmp(ptr noundef %2, ptr noundef %171) #2
  %173 = icmp eq i32 %172, 0
  br i1 %173, label %174, label %.split.7

174:                                              ; preds = %170
  %175 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 320), align 16, !tbaa !12
  %176 = tail call i32 @BN_cmp(ptr noundef nonnull %1, ptr noundef %175) #2
  %177 = icmp eq i32 %176, 0
  br i1 %177, label %.split14.us, label %.split.7

.split.7:                                         ; preds = %174, %170, %.split.6
  %178 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 360), align 8, !tbaa !5
  %179 = tail call i32 @BN_cmp(ptr noundef %0, ptr noundef %178) #2
  %180 = icmp eq i32 %179, 0
  br i1 %180, label %181, label %.split.8

181:                                              ; preds = %.split.7
  %182 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 376), align 8, !tbaa !11
  %183 = tail call i32 @BN_cmp(ptr noundef %2, ptr noundef %182) #2
  %184 = icmp eq i32 %183, 0
  br i1 %184, label %185, label %.split.8

185:                                              ; preds = %181
  %186 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 368), align 16, !tbaa !12
  %187 = tail call i32 @BN_cmp(ptr noundef nonnull %1, ptr noundef %186) #2
  %188 = icmp eq i32 %187, 0
  br i1 %188, label %.split14.us, label %.split.8

.split.8:                                         ; preds = %185, %181, %.split.7
  %189 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 408), align 8, !tbaa !5
  %190 = tail call i32 @BN_cmp(ptr noundef %0, ptr noundef %189) #2
  %191 = icmp eq i32 %190, 0
  br i1 %191, label %192, label %.split.9

192:                                              ; preds = %.split.8
  %193 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 424), align 8, !tbaa !11
  %194 = tail call i32 @BN_cmp(ptr noundef %2, ptr noundef %193) #2
  %195 = icmp eq i32 %194, 0
  br i1 %195, label %196, label %.split.9

196:                                              ; preds = %192
  %197 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 416), align 16, !tbaa !12
  %198 = tail call i32 @BN_cmp(ptr noundef nonnull %1, ptr noundef %197) #2
  %199 = icmp eq i32 %198, 0
  br i1 %199, label %.split14.us, label %.split.9

.split.9:                                         ; preds = %196, %192, %.split.8
  %200 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 456), align 8, !tbaa !5
  %201 = tail call i32 @BN_cmp(ptr noundef %0, ptr noundef %200) #2
  %202 = icmp eq i32 %201, 0
  br i1 %202, label %203, label %.split.10

203:                                              ; preds = %.split.9
  %204 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 472), align 8, !tbaa !11
  %205 = tail call i32 @BN_cmp(ptr noundef %2, ptr noundef %204) #2
  %206 = icmp eq i32 %205, 0
  br i1 %206, label %207, label %.split.10

207:                                              ; preds = %203
  %208 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 464), align 16, !tbaa !12
  %209 = tail call i32 @BN_cmp(ptr noundef nonnull %1, ptr noundef %208) #2
  %210 = icmp eq i32 %209, 0
  br i1 %210, label %.split14.us, label %.split.10

.split.10:                                        ; preds = %207, %203, %.split.9
  %211 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 504), align 8, !tbaa !5
  %212 = tail call i32 @BN_cmp(ptr noundef %0, ptr noundef %211) #2
  %213 = icmp eq i32 %212, 0
  br i1 %213, label %214, label %.split.11

214:                                              ; preds = %.split.10
  %215 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 520), align 8, !tbaa !11
  %216 = tail call i32 @BN_cmp(ptr noundef %2, ptr noundef %215) #2
  %217 = icmp eq i32 %216, 0
  br i1 %217, label %218, label %.split.11

218:                                              ; preds = %214
  %219 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 512), align 16, !tbaa !12
  %220 = tail call i32 @BN_cmp(ptr noundef nonnull %1, ptr noundef %219) #2
  %221 = icmp eq i32 %220, 0
  br i1 %221, label %.split14.us, label %.split.11

.split.11:                                        ; preds = %218, %214, %.split.10
  %222 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 552), align 8, !tbaa !5
  %223 = tail call i32 @BN_cmp(ptr noundef %0, ptr noundef %222) #2
  %224 = icmp eq i32 %223, 0
  br i1 %224, label %225, label %.split.12

225:                                              ; preds = %.split.11
  %226 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 568), align 8, !tbaa !11
  %227 = tail call i32 @BN_cmp(ptr noundef %2, ptr noundef %226) #2
  %228 = icmp eq i32 %227, 0
  br i1 %228, label %229, label %.split.12

229:                                              ; preds = %225
  %230 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 560), align 16, !tbaa !12
  %231 = tail call i32 @BN_cmp(ptr noundef nonnull %1, ptr noundef %230) #2
  %232 = icmp eq i32 %231, 0
  br i1 %232, label %.split14.us, label %.split.12

.split.12:                                        ; preds = %229, %225, %.split.11
  %233 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 600), align 8, !tbaa !5
  %234 = tail call i32 @BN_cmp(ptr noundef %0, ptr noundef %233) #2
  %235 = icmp eq i32 %234, 0
  br i1 %235, label %236, label %.split.13

236:                                              ; preds = %.split.12
  %237 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 616), align 8, !tbaa !11
  %238 = tail call i32 @BN_cmp(ptr noundef %2, ptr noundef %237) #2
  %239 = icmp eq i32 %238, 0
  br i1 %239, label %240, label %.split.13

240:                                              ; preds = %236
  %241 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 608), align 16, !tbaa !12
  %242 = tail call i32 @BN_cmp(ptr noundef nonnull %1, ptr noundef %241) #2
  %243 = icmp eq i32 %242, 0
  br i1 %243, label %.split14.us, label %.split.13

.split.13:                                        ; preds = %240, %236, %.split.12
  %244 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 648), align 8, !tbaa !5
  %245 = tail call i32 @BN_cmp(ptr noundef %0, ptr noundef %244) #2
  %246 = icmp eq i32 %245, 0
  br i1 %246, label %247, label %255

247:                                              ; preds = %.split.13
  %248 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 664), align 8, !tbaa !11
  %249 = tail call i32 @BN_cmp(ptr noundef %2, ptr noundef %248) #2
  %250 = icmp eq i32 %249, 0
  br i1 %250, label %251, label %255

251:                                              ; preds = %247
  %252 = load ptr, ptr getelementptr inbounds (i8, ptr @dh_named_groups, i64 656), align 16, !tbaa !12
  %253 = tail call i32 @BN_cmp(ptr noundef nonnull %1, ptr noundef %252) #2
  %254 = icmp eq i32 %253, 0
  br i1 %254, label %.split14.us, label %255

255:                                              ; preds = %251, %247, %.split.13
  br label %.split14.us

.split14.us:                                      ; preds = %108, %119, %130, %141, %152, %163, %174, %185, %196, %207, %218, %229, %240, %251, %255, %8, %15, %22, %29, %36, %43, %50, %57, %64, %71, %78, %85, %92, %99, %103
  %.us-phi = phi ptr [ @dh_named_groups, %8 ], [ getelementptr inbounds (i8, ptr @dh_named_groups, i64 48), %15 ], [ getelementptr inbounds (i8, ptr @dh_named_groups, i64 96), %22 ], [ getelementptr inbounds (i8, ptr @dh_named_groups, i64 144), %29 ], [ getelementptr inbounds (i8, ptr @dh_named_groups, i64 192), %36 ], [ getelementptr inbounds (i8, ptr @dh_named_groups, i64 240), %43 ], [ getelementptr inbounds (i8, ptr @dh_named_groups, i64 288), %50 ], [ getelementptr inbounds (i8, ptr @dh_named_groups, i64 336), %57 ], [ getelementptr inbounds (i8, ptr @dh_named_groups, i64 384), %64 ], [ getelementptr inbounds (i8, ptr @dh_named_groups, i64 432), %71 ], [ getelementptr inbounds (i8, ptr @dh_named_groups, i64 480), %78 ], [ getelementptr inbounds (i8, ptr @dh_named_groups, i64 528), %85 ], [ getelementptr inbounds (i8, ptr @dh_named_groups, i64 576), %92 ], [ getelementptr inbounds (i8, ptr @dh_named_groups, i64 624), %99 ], [ null, %103 ], [ @dh_named_groups, %108 ], [ getelementptr inbounds (i8, ptr @dh_named_groups, i64 48), %119 ], [ getelementptr inbounds (i8, ptr @dh_named_groups, i64 96), %130 ], [ getelementptr inbounds (i8, ptr @dh_named_groups, i64 144), %141 ], [ getelementptr inbounds (i8, ptr @dh_named_groups, i64 192), %152 ], [ getelementptr inbounds (i8, ptr @dh_named_groups, i64 240), %163 ], [ getelementptr inbounds (i8, ptr @dh_named_groups, i64 288), %174 ], [ getelementptr inbounds (i8, ptr @dh_named_groups, i64 336), %185 ], [ getelementptr inbounds (i8, ptr @dh_named_groups, i64 384), %196 ], [ getelementptr inbounds (i8, ptr @dh_named_groups, i64 432), %207 ], [ getelementptr inbounds (i8, ptr @dh_named_groups, i64 480), %218 ], [ getelementptr inbounds (i8, ptr @dh_named_groups, i64 528), %229 ], [ getelementptr inbounds (i8, ptr @dh_named_groups, i64 576), %240 ], [ getelementptr inbounds (i8, ptr @dh_named_groups, i64 624), %251 ], [ null, %255 ]
  ret ptr %.us-phi
}

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "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 }

!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 24}
!6 = !{!"dh_named_group_st", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !7, i64 24, !7, i64 32, !7, i64 40}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !7, i64 40}
!12 = !{!6, !7, i64 32}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,SROAPass,SimplifyCFGPass,TailCallElimPass