; LLVM IR from aws/s2n-tls :: crypto (s2n_fips_rules)

; 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.s2n_debug_info = type { ptr, ptr }
%struct.s2n_result = type { i32 }
%struct.s2n_cipher_suite = type { i8, ptr, ptr, [2 x i8], ptr, i32, ptr, [2 x ptr], i8, ptr, ptr, i32, i8 }

@_s2n_debug_info = external thread_local global %struct.s2n_debug_info, align 8
@s2n_errno = external thread_local global i32, align 4
@fips_cipher_suite_ianas = external dso_local constant [20 x [2 x i8]], align 16
@.str.1 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [93 x i8], align 1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare nonnull ptr @llvm.threadlocal.address.p0(ptr nonnull) #0

; Function Attrs: nounwind willreturn memory(read)
declare ptr @strrchr(ptr noundef, i32 noundef) #1

declare i32 @s2n_calculate_stacktrace() #2

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @s2n_fips_validate_cipher_suite(ptr noundef %0, ptr noundef %1) #4 {
  %3 = alloca %struct.s2n_result, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  br label %8

8:                                                ; preds = %2
  %9 = load ptr, ptr %4, align 8, !tbaa !5
  %10 = icmp ne ptr %9, null
  br i1 %10, label %43, label %11

11:                                               ; preds = %8
  br label %12

12:                                               ; preds = %11
  br label %13

13:                                               ; preds = %12
  %14 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %15 = getelementptr inbounds %struct.s2n_debug_info, ptr %14, i32 0, i32 0
  store ptr @.str.1, ptr %15, align 8, !tbaa !9
  %16 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %17 = getelementptr inbounds %struct.s2n_debug_info, ptr %16, i32 0, i32 0
  %18 = load ptr, ptr %17, align 8, !tbaa !9
  %19 = getelementptr inbounds i8, ptr %18, i64 21
  %20 = call ptr @strrchr(ptr noundef %19, i32 noundef 47) #5
  %21 = icmp ne ptr %20, null
  br i1 %21, label %22, label %29

22:                                               ; preds = %13
  %23 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %24 = getelementptr inbounds %struct.s2n_debug_info, ptr %23, i32 0, i32 0
  %25 = load ptr, ptr %24, align 8, !tbaa !9
  %26 = getelementptr inbounds i8, ptr %25, i64 21
  %27 = call ptr @strrchr(ptr noundef %26, i32 noundef 47) #5
  %28 = getelementptr inbounds i8, ptr %27, i64 1
  br label %34

29:                                               ; preds = %13
  %30 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %31 = getelementptr inbounds %struct.s2n_debug_info, ptr %30, i32 0, i32 0
  %32 = load ptr, ptr %31, align 8, !tbaa !9
  %33 = getelementptr inbounds i8, ptr %32, i64 21
  br label %34

34:                                               ; preds = %29, %22
  %35 = phi ptr [ %28, %22 ], [ %33, %29 ]
  %36 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %37 = getelementptr inbounds %struct.s2n_debug_info, ptr %36, i32 0, i32 1
  store ptr %35, ptr %37, align 8, !tbaa !11
  %38 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %38, align 4, !tbaa !12
  %39 = call i32 @s2n_calculate_stacktrace()
  br label %40

40:                                               ; preds = %34
  %41 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 -1, ptr %41, align 4, !tbaa !14
  br label %123

42:                                               ; No predecessors!
  br label %43

43:                                               ; preds = %42, %8
  br label %44

44:                                               ; preds = %43
  br label %45

45:                                               ; preds = %44
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = icmp ne ptr %46, null
  br i1 %47, label %80, label %48

48:                                               ; preds = %45
  br label %49

49:                                               ; preds = %48
  br label %50

50:                                               ; preds = %49
  %51 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %52 = getelementptr inbounds %struct.s2n_debug_info, ptr %51, i32 0, i32 0
  store ptr @.str.2, ptr %52, align 8, !tbaa !9
  %53 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %54 = getelementptr inbounds %struct.s2n_debug_info, ptr %53, i32 0, i32 0
  %55 = load ptr, ptr %54, align 8, !tbaa !9
  %56 = getelementptr inbounds i8, ptr %55, i64 21
  %57 = call ptr @strrchr(ptr noundef %56, i32 noundef 47) #5
  %58 = icmp ne ptr %57, null
  br i1 %58, label %59, label %66

59:                                               ; preds = %50
  %60 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %61 = getelementptr inbounds %struct.s2n_debug_info, ptr %60, i32 0, i32 0
  %62 = load ptr, ptr %61, align 8, !tbaa !9
  %63 = getelementptr inbounds i8, ptr %62, i64 21
  %64 = call ptr @strrchr(ptr noundef %63, i32 noundef 47) #5
  %65 = getelementptr inbounds i8, ptr %64, i64 1
  br label %71

66:                                               ; preds = %50
  %67 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %68 = getelementptr inbounds %struct.s2n_debug_info, ptr %67, i32 0, i32 0
  %69 = load ptr, ptr %68, align 8, !tbaa !9
  %70 = getelementptr inbounds i8, ptr %69, i64 21
  br label %71

71:                                               ; preds = %66, %59
  %72 = phi ptr [ %65, %59 ], [ %70, %66 ]
  %73 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %74 = getelementptr inbounds %struct.s2n_debug_info, ptr %73, i32 0, i32 1
  store ptr %72, ptr %74, align 8, !tbaa !11
  %75 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %75, align 4, !tbaa !12
  %76 = call i32 @s2n_calculate_stacktrace()
  br label %77

77:                                               ; preds = %71
  %78 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 -1, ptr %78, align 4, !tbaa !14
  br label %123

79:                                               ; No predecessors!
  br label %80

80:                                               ; preds = %79, %45
  br label %81

81:                                               ; preds = %80
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  store i8 0, ptr %82, align 1, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  store i64 0, ptr %6, align 8, !tbaa !18
  br label %83

83:                                               ; preds = %116, %81
  %84 = load i64, ptr %6, align 8, !tbaa !18
  %85 = icmp ult i64 %84, 20
  br i1 %85, label %87, label %86

86:                                               ; preds = %83
  store i32 14, ptr %7, align 4
  br label %119

87:                                               ; preds = %83
  %88 = load i64, ptr %6, align 8, !tbaa !18
  %89 = getelementptr inbounds [20 x [2 x i8]], ptr @fips_cipher_suite_ianas, i64 0, i64 %88
  %90 = getelementptr inbounds [2 x i8], ptr %89, i64 0, i64 0
  %91 = load i8, ptr %90, align 2, !tbaa !20
  %92 = zext i8 %91 to i32
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.s2n_cipher_suite, ptr %93, i32 0, i32 3
  %95 = getelementptr inbounds [2 x i8], ptr %94, i64 0, i64 0
  %96 = load i8, ptr %95, align 8, !tbaa !20
  %97 = zext i8 %96 to i32
  %98 = icmp ne i32 %92, %97
  br i1 %98, label %99, label %100

99:                                               ; preds = %87
  br label %116

100:                                              ; preds = %87
  %101 = load i64, ptr %6, align 8, !tbaa !18
  %102 = getelementptr inbounds [20 x [2 x i8]], ptr @fips_cipher_suite_ianas, i64 0, i64 %101
  %103 = getelementptr inbounds [2 x i8], ptr %102, i64 0, i64 1
  %104 = load i8, ptr %103, align 1, !tbaa !20
  %105 = zext i8 %104 to i32
  %106 = load ptr, ptr %4, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.s2n_cipher_suite, ptr %106, i32 0, i32 3
  %108 = getelementptr inbounds [2 x i8], ptr %107, i64 0, i64 1
  %109 = load i8, ptr %108, align 1, !tbaa !20
  %110 = zext i8 %109 to i32
  %111 = icmp ne i32 %105, %110
  br i1 %111, label %112, label %113

112:                                              ; preds = %100
  br label %116

113:                                              ; preds = %100
  %114 = load ptr, ptr %5, align 8, !tbaa !5
  store i8 1, ptr %114, align 1, !tbaa !16
  %115 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 0, ptr %115, align 4, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %119

116:                                              ; preds = %112, %99
  %117 = load i64, ptr %6, align 8, !tbaa !18
  %118 = add i64 %117, 1
  store i64 %118, ptr %6, align 8, !tbaa !18
  br label %83, !llvm.loop !21

119:                                              ; preds = %113, %86
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  %120 = load i32, ptr %7, align 4
  switch i32 %120, label %126 [
    i32 14, label %121
    i32 1, label %123
  ]

121:                                              ; preds = %119
  %122 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 0, ptr %122, align 4, !tbaa !14
  br label %123

123:                                              ; preds = %121, %119, %77, %40
  %124 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  %125 = load i32, ptr %124, align 4
  ret i32 %125

126:                                              ; preds = %119
  unreachable
}

attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { nounwind willreturn memory(read) "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { nounwind willreturn memory(read) }
attributes #6 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"s2n_debug_info", !6, i64 0, !6, i64 8}
!11 = !{!10, !6, i64 8}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !13, i64 0}
!15 = !{!"", !13, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"_Bool", !7, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"long", !7, i64 0}
!20 = !{!7, !7, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"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.s2n_debug_info = type { ptr, ptr }

@_s2n_debug_info = external thread_local local_unnamed_addr global %struct.s2n_debug_info, align 8
@s2n_errno = external thread_local local_unnamed_addr global i32, align 4
@fips_cipher_suite_ianas = external dso_local local_unnamed_addr constant [20 x [2 x i8]], align 16
@.str.1 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [93 x i8], align 1

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare nonnull ptr @llvm.threadlocal.address.p0(ptr nonnull) #0

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare ptr @strrchr(ptr noundef, i32 noundef) local_unnamed_addr #1

declare i32 @s2n_calculate_stacktrace() local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @s2n_fips_validate_cipher_suite(ptr noundef readonly %0, ptr noundef writeonly %1) local_unnamed_addr #3 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %3, label %11

3:                                                ; preds = %2
  %4 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.1, ptr %4, align 8, !tbaa !5
  %5 = tail call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.1, i64 21), i32 noundef 47) #4
  %.not15 = icmp eq ptr %5, null
  %6 = getelementptr inbounds i8, ptr %5, i64 1
  %7 = select i1 %.not15, ptr getelementptr inbounds (i8, ptr @.str.1, i64 21), ptr %6
  %8 = getelementptr inbounds i8, ptr %4, i64 8
  store ptr %7, ptr %8, align 8, !tbaa !10
  %9 = tail call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %9, align 4, !tbaa !11
  %10 = tail call i32 @s2n_calculate_stacktrace() #5
  br label %.loopexit

11:                                               ; preds = %2
  %.not16 = icmp eq ptr %1, null
  br i1 %.not16, label %12, label %20

12:                                               ; preds = %11
  %13 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.2, ptr %13, align 8, !tbaa !5
  %14 = tail call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.2, i64 21), i32 noundef 47) #4
  %.not17 = icmp eq ptr %14, null
  %15 = getelementptr inbounds i8, ptr %14, i64 1
  %16 = select i1 %.not17, ptr getelementptr inbounds (i8, ptr @.str.2, i64 21), ptr %15
  %17 = getelementptr inbounds i8, ptr %13, i64 8
  store ptr %16, ptr %17, align 8, !tbaa !10
  %18 = tail call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %18, align 4, !tbaa !11
  %19 = tail call i32 @s2n_calculate_stacktrace() #5
  br label %.loopexit

20:                                               ; preds = %11
  store i8 0, ptr %1, align 1, !tbaa !13
  %21 = getelementptr inbounds i8, ptr %0, i64 24
  %22 = load i8, ptr %21, align 8, !tbaa !15
  %23 = getelementptr inbounds i8, ptr %0, i64 25
  %24 = load i8, ptr @fips_cipher_suite_ianas, align 16, !tbaa !15
  %.not18 = icmp eq i8 %24, %22
  br i1 %.not18, label %25, label %29

25:                                               ; preds = %20
  %26 = load i8, ptr getelementptr inbounds (i8, ptr @fips_cipher_suite_ianas, i64 1), align 1, !tbaa !15
  %27 = load i8, ptr %23, align 1, !tbaa !15
  %.not19 = icmp eq i8 %26, %27
  br i1 %.not19, label %28, label %29

28:                                               ; preds = %121, %116, %111, %106, %101, %96, %91, %86, %81, %76, %71, %66, %61, %56, %51, %46, %41, %36, %31, %25
  store i8 1, ptr %1, align 1, !tbaa !13
  br label %.loopexit

29:                                               ; preds = %25, %20
  %30 = load i8, ptr getelementptr inbounds (i8, ptr @fips_cipher_suite_ianas, i64 2), align 2, !tbaa !15
  %.not18.1 = icmp eq i8 %30, %22
  br i1 %.not18.1, label %31, label %34

31:                                               ; preds = %29
  %32 = load i8, ptr getelementptr inbounds (i8, ptr @fips_cipher_suite_ianas, i64 3), align 1, !tbaa !15
  %33 = load i8, ptr %23, align 1, !tbaa !15
  %.not19.1 = icmp eq i8 %32, %33
  br i1 %.not19.1, label %28, label %34

34:                                               ; preds = %31, %29
  %35 = load i8, ptr getelementptr inbounds (i8, ptr @fips_cipher_suite_ianas, i64 4), align 4, !tbaa !15
  %.not18.2 = icmp eq i8 %35, %22
  br i1 %.not18.2, label %36, label %39

36:                                               ; preds = %34
  %37 = load i8, ptr getelementptr inbounds (i8, ptr @fips_cipher_suite_ianas, i64 5), align 1, !tbaa !15
  %38 = load i8, ptr %23, align 1, !tbaa !15
  %.not19.2 = icmp eq i8 %37, %38
  br i1 %.not19.2, label %28, label %39

39:                                               ; preds = %36, %34
  %40 = load i8, ptr getelementptr inbounds (i8, ptr @fips_cipher_suite_ianas, i64 6), align 2, !tbaa !15
  %.not18.3 = icmp eq i8 %40, %22
  br i1 %.not18.3, label %41, label %44

41:                                               ; preds = %39
  %42 = load i8, ptr getelementptr inbounds (i8, ptr @fips_cipher_suite_ianas, i64 7), align 1, !tbaa !15
  %43 = load i8, ptr %23, align 1, !tbaa !15
  %.not19.3 = icmp eq i8 %42, %43
  br i1 %.not19.3, label %28, label %44

44:                                               ; preds = %41, %39
  %45 = load i8, ptr getelementptr inbounds (i8, ptr @fips_cipher_suite_ianas, i64 8), align 8, !tbaa !15
  %.not18.4 = icmp eq i8 %45, %22
  br i1 %.not18.4, label %46, label %49

46:                                               ; preds = %44
  %47 = load i8, ptr getelementptr inbounds (i8, ptr @fips_cipher_suite_ianas, i64 9), align 1, !tbaa !15
  %48 = load i8, ptr %23, align 1, !tbaa !15
  %.not19.4 = icmp eq i8 %47, %48
  br i1 %.not19.4, label %28, label %49

49:                                               ; preds = %46, %44
  %50 = load i8, ptr getelementptr inbounds (i8, ptr @fips_cipher_suite_ianas, i64 10), align 2, !tbaa !15
  %.not18.5 = icmp eq i8 %50, %22
  br i1 %.not18.5, label %51, label %54

51:                                               ; preds = %49
  %52 = load i8, ptr getelementptr inbounds (i8, ptr @fips_cipher_suite_ianas, i64 11), align 1, !tbaa !15
  %53 = load i8, ptr %23, align 1, !tbaa !15
  %.not19.5 = icmp eq i8 %52, %53
  br i1 %.not19.5, label %28, label %54

54:                                               ; preds = %51, %49
  %55 = load i8, ptr getelementptr inbounds (i8, ptr @fips_cipher_suite_ianas, i64 12), align 4, !tbaa !15
  %.not18.6 = icmp eq i8 %55, %22
  br i1 %.not18.6, label %56, label %59

56:                                               ; preds = %54
  %57 = load i8, ptr getelementptr inbounds (i8, ptr @fips_cipher_suite_ianas, i64 13), align 1, !tbaa !15
  %58 = load i8, ptr %23, align 1, !tbaa !15
  %.not19.6 = icmp eq i8 %57, %58
  br i1 %.not19.6, label %28, label %59

59:                                               ; preds = %56, %54
  %60 = load i8, ptr getelementptr inbounds (i8, ptr @fips_cipher_suite_ianas, i64 14), align 2, !tbaa !15
  %.not18.7 = icmp eq i8 %60, %22
  br i1 %.not18.7, label %61, label %64

61:                                               ; preds = %59
  %62 = load i8, ptr getelementptr inbounds (i8, ptr @fips_cipher_suite_ianas, i64 15), align 1, !tbaa !15
  %63 = load i8, ptr %23, align 1, !tbaa !15
  %.not19.7 = icmp eq i8 %62, %63
  br i1 %.not19.7, label %28, label %64

64:                                               ; preds = %61, %59
  %65 = load i8, ptr getelementptr inbounds (i8, ptr @fips_cipher_suite_ianas, i64 16), align 16, !tbaa !15
  %.not18.8 = icmp eq i8 %65, %22
  br i1 %.not18.8, label %66, label %69

66:                                               ; preds = %64
  %67 = load i8, ptr getelementptr inbounds (i8, ptr @fips_cipher_suite_ianas, i64 17), align 1, !tbaa !15
  %68 = load i8, ptr %23, align 1, !tbaa !15
  %.not19.8 = icmp eq i8 %67, %68
  br i1 %.not19.8, label %28, label %69

69:                                               ; preds = %66, %64
  %70 = load i8, ptr getelementptr inbounds (i8, ptr @fips_cipher_suite_ianas, i64 18), align 2, !tbaa !15
  %.not18.9 = icmp eq i8 %70, %22
  br i1 %.not18.9, label %71, label %74

71:                                               ; preds = %69
  %72 = load i8, ptr getelementptr inbounds (i8, ptr @fips_cipher_suite_ianas, i64 19), align 1, !tbaa !15
  %73 = load i8, ptr %23, align 1, !tbaa !15
  %.not19.9 = icmp eq i8 %72, %73
  br i1 %.not19.9, label %28, label %74

74:                                               ; preds = %71, %69
  %75 = load i8, ptr getelementptr inbounds (i8, ptr @fips_cipher_suite_ianas, i64 20), align 4, !tbaa !15
  %.not18.10 = icmp eq i8 %75, %22
  br i1 %.not18.10, label %76, label %79

76:                                               ; preds = %74
  %77 = load i8, ptr getelementptr inbounds (i8, ptr @fips_cipher_suite_ianas, i64 21), align 1, !tbaa !15
  %78 = load i8, ptr %23, align 1, !tbaa !15
  %.not19.10 = icmp eq i8 %77, %78
  br i1 %.not19.10, label %28, label %79

79:                                               ; preds = %76, %74
  %80 = load i8, ptr getelementptr inbounds (i8, ptr @fips_cipher_suite_ianas, i64 22), align 2, !tbaa !15
  %.not18.11 = icmp eq i8 %80, %22
  br i1 %.not18.11, label %81, label %84

81:                                               ; preds = %79
  %82 = load i8, ptr getelementptr inbounds (i8, ptr @fips_cipher_suite_ianas, i64 23), align 1, !tbaa !15
  %83 = load i8, ptr %23, align 1, !tbaa !15
  %.not19.11 = icmp eq i8 %82, %83
  br i1 %.not19.11, label %28, label %84

84:                                               ; preds = %81, %79
  %85 = load i8, ptr getelementptr inbounds (i8, ptr @fips_cipher_suite_ianas, i64 24), align 8, !tbaa !15
  %.not18.12 = icmp eq i8 %85, %22
  br i1 %.not18.12, label %86, label %89

86:                                               ; preds = %84
  %87 = load i8, ptr getelementptr inbounds (i8, ptr @fips_cipher_suite_ianas, i64 25), align 1, !tbaa !15
  %88 = load i8, ptr %23, align 1, !tbaa !15
  %.not19.12 = icmp eq i8 %87, %88
  br i1 %.not19.12, label %28, label %89

89:                                               ; preds = %86, %84
  %90 = load i8, ptr getelementptr inbounds (i8, ptr @fips_cipher_suite_ianas, i64 26), align 2, !tbaa !15
  %.not18.13 = icmp eq i8 %90, %22
  br i1 %.not18.13, label %91, label %94

91:                                               ; preds = %89
  %92 = load i8, ptr getelementptr inbounds (i8, ptr @fips_cipher_suite_ianas, i64 27), align 1, !tbaa !15
  %93 = load i8, ptr %23, align 1, !tbaa !15
  %.not19.13 = icmp eq i8 %92, %93
  br i1 %.not19.13, label %28, label %94

94:                                               ; preds = %91, %89
  %95 = load i8, ptr getelementptr inbounds (i8, ptr @fips_cipher_suite_ianas, i64 28), align 4, !tbaa !15
  %.not18.14 = icmp eq i8 %95, %22
  br i1 %.not18.14, label %96, label %99

96:                                               ; preds = %94
  %97 = load i8, ptr getelementptr inbounds (i8, ptr @fips_cipher_suite_ianas, i64 29), align 1, !tbaa !15
  %98 = load i8, ptr %23, align 1, !tbaa !15
  %.not19.14 = icmp eq i8 %97, %98
  br i1 %.not19.14, label %28, label %99

99:                                               ; preds = %96, %94
  %100 = load i8, ptr getelementptr inbounds (i8, ptr @fips_cipher_suite_ianas, i64 30), align 2, !tbaa !15
  %.not18.15 = icmp eq i8 %100, %22
  br i1 %.not18.15, label %101, label %104

101:                                              ; preds = %99
  %102 = load i8, ptr getelementptr inbounds (i8, ptr @fips_cipher_suite_ianas, i64 31), align 1, !tbaa !15
  %103 = load i8, ptr %23, align 1, !tbaa !15
  %.not19.15 = icmp eq i8 %102, %103
  br i1 %.not19.15, label %28, label %104

104:                                              ; preds = %101, %99
  %105 = load i8, ptr getelementptr inbounds (i8, ptr @fips_cipher_suite_ianas, i64 32), align 16, !tbaa !15
  %.not18.16 = icmp eq i8 %105, %22
  br i1 %.not18.16, label %106, label %109

106:                                              ; preds = %104
  %107 = load i8, ptr getelementptr inbounds (i8, ptr @fips_cipher_suite_ianas, i64 33), align 1, !tbaa !15
  %108 = load i8, ptr %23, align 1, !tbaa !15
  %.not19.16 = icmp eq i8 %107, %108
  br i1 %.not19.16, label %28, label %109

109:                                              ; preds = %106, %104
  %110 = load i8, ptr getelementptr inbounds (i8, ptr @fips_cipher_suite_ianas, i64 34), align 2, !tbaa !15
  %.not18.17 = icmp eq i8 %110, %22
  br i1 %.not18.17, label %111, label %114

111:                                              ; preds = %109
  %112 = load i8, ptr getelementptr inbounds (i8, ptr @fips_cipher_suite_ianas, i64 35), align 1, !tbaa !15
  %113 = load i8, ptr %23, align 1, !tbaa !15
  %.not19.17 = icmp eq i8 %112, %113
  br i1 %.not19.17, label %28, label %114

114:                                              ; preds = %111, %109
  %115 = load i8, ptr getelementptr inbounds (i8, ptr @fips_cipher_suite_ianas, i64 36), align 4, !tbaa !15
  %.not18.18 = icmp eq i8 %115, %22
  br i1 %.not18.18, label %116, label %119

116:                                              ; preds = %114
  %117 = load i8, ptr getelementptr inbounds (i8, ptr @fips_cipher_suite_ianas, i64 37), align 1, !tbaa !15
  %118 = load i8, ptr %23, align 1, !tbaa !15
  %.not19.18 = icmp eq i8 %117, %118
  br i1 %.not19.18, label %28, label %119

119:                                              ; preds = %116, %114
  %120 = load i8, ptr getelementptr inbounds (i8, ptr @fips_cipher_suite_ianas, i64 38), align 2, !tbaa !15
  %.not18.19 = icmp eq i8 %120, %22
  br i1 %.not18.19, label %121, label %.loopexit

121:                                              ; preds = %119
  %122 = load i8, ptr getelementptr inbounds (i8, ptr @fips_cipher_suite_ianas, i64 39), align 1, !tbaa !15
  %123 = load i8, ptr %23, align 1, !tbaa !15
  %.not19.19 = icmp eq i8 %122, %123
  br i1 %.not19.19, label %28, label %.loopexit

.loopexit:                                        ; preds = %119, %121, %28, %12, %3
  %.sroa.0.1 = phi i32 [ -1, %12 ], [ -1, %3 ], [ 0, %28 ], [ 0, %121 ], [ 0, %119 ]
  ret i32 %.sroa.0.1
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind willreturn memory(read) }
attributes #5 = { 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 = !{!"s2n_debug_info", !7, i64 0, !7, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 8}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"_Bool", !8, i64 0}
!15 = !{!8, !8, i64 0}


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