; LLVM IR from aws/s2n-tls :: utils (s2n_blob)

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

@_s2n_debug_info = external thread_local global %struct.s2n_debug_info, align 8
@s2n_errno = external thread_local global i32, align 4
@.str.11 = external hidden unnamed_addr constant [86 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @s2n_blob_validate(ptr noundef) #0

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

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

declare i32 @s2n_calculate_stacktrace() #3

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @s2n_result_is_ok(i32) #5

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @s2n_blob_slice(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %struct.s2n_result, align 4
  %11 = alloca %struct.s2n_result, align 4
  %12 = alloca %struct.s2n_result, align 4
  %13 = alloca %struct.s2n_result, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %struct.s2n_result, align 4
  %17 = alloca %struct.s2n_result, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !9
  br label %18

18:                                               ; preds = %4
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = call i32 @s2n_blob_validate(ptr noundef %19)
  %21 = getelementptr inbounds %struct.s2n_result, ptr %11, i32 0, i32 0
  store i32 %20, ptr %21, align 4
  %22 = getelementptr inbounds %struct.s2n_result, ptr %11, i32 0, i32 0
  %23 = load i32, ptr %22, align 4
  %24 = call zeroext i1 @s2n_result_is_ok(i32 %23)
  %25 = xor i1 %24, true
  %26 = xor i1 %25, true
  %27 = zext i1 %26 to i32
  %28 = sext i32 %27 to i64
  %29 = call i64 @llvm.expect.i64(i64 %28, i64 1)
  %30 = icmp ne i64 %29, 0
  br i1 %30, label %31, label %33

31:                                               ; preds = %18
  %32 = getelementptr inbounds %struct.s2n_result, ptr %10, i32 0, i32 0
  store i32 0, ptr %32, align 4, !tbaa !11
  br label %35

33:                                               ; preds = %18
  %34 = getelementptr inbounds %struct.s2n_result, ptr %10, i32 0, i32 0
  store i32 -1, ptr %34, align 4, !tbaa !11
  br label %35

35:                                               ; preds = %33, %31
  %36 = getelementptr inbounds %struct.s2n_result, ptr %10, i32 0, i32 0
  %37 = load i32, ptr %36, align 4
  %38 = call zeroext i1 @s2n_result_is_ok(i32 %37)
  br i1 %38, label %40, label %39

39:                                               ; preds = %35
  store i32 -1, ptr %5, align 4
  br label %169

40:                                               ; preds = %35
  br label %41

41:                                               ; preds = %40
  br label %42

42:                                               ; preds = %41
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = call i32 @s2n_blob_validate(ptr noundef %43)
  %45 = getelementptr inbounds %struct.s2n_result, ptr %13, i32 0, i32 0
  store i32 %44, ptr %45, align 4
  %46 = getelementptr inbounds %struct.s2n_result, ptr %13, i32 0, i32 0
  %47 = load i32, ptr %46, align 4
  %48 = call zeroext i1 @s2n_result_is_ok(i32 %47)
  %49 = xor i1 %48, true
  %50 = xor i1 %49, true
  %51 = zext i1 %50 to i32
  %52 = sext i32 %51 to i64
  %53 = call i64 @llvm.expect.i64(i64 %52, i64 1)
  %54 = icmp ne i64 %53, 0
  br i1 %54, label %55, label %57

55:                                               ; preds = %42
  %56 = getelementptr inbounds %struct.s2n_result, ptr %12, i32 0, i32 0
  store i32 0, ptr %56, align 4, !tbaa !11
  br label %59

57:                                               ; preds = %42
  %58 = getelementptr inbounds %struct.s2n_result, ptr %12, i32 0, i32 0
  store i32 -1, ptr %58, align 4, !tbaa !11
  br label %59

59:                                               ; preds = %57, %55
  %60 = getelementptr inbounds %struct.s2n_result, ptr %12, i32 0, i32 0
  %61 = load i32, ptr %60, align 4
  %62 = call zeroext i1 @s2n_result_is_ok(i32 %61)
  br i1 %62, label %64, label %63

63:                                               ; preds = %59
  store i32 -1, ptr %5, align 4
  br label %169

64:                                               ; preds = %59
  br label %65

65:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %66

66:                                               ; preds = %65
  %67 = load i32, ptr %8, align 4, !tbaa !9
  %68 = load i32, ptr %9, align 4, !tbaa !9
  %69 = call i32 @s2n_add_overflow(i32 noundef %67, i32 noundef %68, ptr noundef %14)
  %70 = icmp sgt i32 %69, -1
  br i1 %70, label %72, label %71

71:                                               ; preds = %66
  store i32 -1, ptr %5, align 4
  store i32 1, ptr %15, align 4
  br label %168

72:                                               ; preds = %66
  br label %73

73:                                               ; preds = %72
  br label %74

74:                                               ; preds = %73
  br label %75

75:                                               ; preds = %74
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.s2n_blob, ptr %76, i32 0, i32 1
  %78 = load i32, ptr %77, align 8, !tbaa !13
  %79 = load i32, ptr %14, align 4, !tbaa !9
  %80 = icmp uge i32 %78, %79
  br i1 %80, label %114, label %81

81:                                               ; preds = %75
  br label %82

82:                                               ; preds = %81
  br label %83

83:                                               ; preds = %82
  %84 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %85 = getelementptr inbounds %struct.s2n_debug_info, ptr %84, i32 0, i32 0
  store ptr @.str.11, ptr %85, align 8, !tbaa !15
  %86 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %87 = getelementptr inbounds %struct.s2n_debug_info, ptr %86, i32 0, i32 0
  %88 = load ptr, ptr %87, align 8, !tbaa !15
  %89 = getelementptr inbounds i8, ptr %88, i64 21
  %90 = call ptr @strrchr(ptr noundef %89, i32 noundef 47) #8
  %91 = icmp ne ptr %90, null
  br i1 %91, label %92, label %99

92:                                               ; preds = %83
  %93 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %94 = getelementptr inbounds %struct.s2n_debug_info, ptr %93, i32 0, i32 0
  %95 = load ptr, ptr %94, align 8, !tbaa !15
  %96 = getelementptr inbounds i8, ptr %95, i64 21
  %97 = call ptr @strrchr(ptr noundef %96, i32 noundef 47) #8
  %98 = getelementptr inbounds i8, ptr %97, i64 1
  br label %104

99:                                               ; preds = %83
  %100 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %101 = getelementptr inbounds %struct.s2n_debug_info, ptr %100, i32 0, i32 0
  %102 = load ptr, ptr %101, align 8, !tbaa !15
  %103 = getelementptr inbounds i8, ptr %102, i64 21
  br label %104

104:                                              ; preds = %99, %92
  %105 = phi ptr [ %98, %92 ], [ %103, %99 ]
  %106 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %107 = getelementptr inbounds %struct.s2n_debug_info, ptr %106, i32 0, i32 1
  store ptr %105, ptr %107, align 8, !tbaa !17
  %108 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653220, ptr %108, align 4, !tbaa !9
  %109 = call i32 @s2n_calculate_stacktrace()
  br label %110

110:                                              ; preds = %104
  br label %111

111:                                              ; preds = %110
  store i32 -1, ptr %5, align 4
  store i32 1, ptr %15, align 4
  br label %168

112:                                              ; No predecessors!
  br label %113

113:                                              ; preds = %112
  br label %114

114:                                              ; preds = %113, %75
  br label %115

115:                                              ; preds = %114
  br label %116

116:                                              ; preds = %115
  %117 = load ptr, ptr %6, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.s2n_blob, ptr %117, i32 0, i32 0
  %119 = load ptr, ptr %118, align 8, !tbaa !18
  %120 = icmp ne ptr %119, null
  br i1 %120, label %121, label %128

121:                                              ; preds = %116
  %122 = load ptr, ptr %6, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.s2n_blob, ptr %122, i32 0, i32 0
  %124 = load ptr, ptr %123, align 8, !tbaa !18
  %125 = load i32, ptr %8, align 4, !tbaa !9
  %126 = zext i32 %125 to i64
  %127 = getelementptr inbounds i8, ptr %124, i64 %126
  br label %129

128:                                              ; preds = %116
  br label %129

129:                                              ; preds = %128, %121
  %130 = phi ptr [ %127, %121 ], [ null, %128 ]
  %131 = load ptr, ptr %7, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.s2n_blob, ptr %131, i32 0, i32 0
  store ptr %130, ptr %132, align 8, !tbaa !18
  %133 = load i32, ptr %9, align 4, !tbaa !9
  %134 = load ptr, ptr %7, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.s2n_blob, ptr %134, i32 0, i32 1
  store i32 %133, ptr %135, align 8, !tbaa !13
  %136 = load ptr, ptr %7, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.s2n_blob, ptr %136, i32 0, i32 3
  %138 = load i8, ptr %137, align 8
  %139 = and i8 %138, -2
  %140 = or i8 %139, 0
  store i8 %140, ptr %137, align 8
  %141 = load ptr, ptr %7, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.s2n_blob, ptr %141, i32 0, i32 2
  store i32 0, ptr %142, align 4, !tbaa !19
  br label %143

143:                                              ; preds = %129
  %144 = load ptr, ptr %7, align 8, !tbaa !5
  %145 = call i32 @s2n_blob_validate(ptr noundef %144)
  %146 = getelementptr inbounds %struct.s2n_result, ptr %17, i32 0, i32 0
  store i32 %145, ptr %146, align 4
  %147 = getelementptr inbounds %struct.s2n_result, ptr %17, i32 0, i32 0
  %148 = load i32, ptr %147, align 4
  %149 = call zeroext i1 @s2n_result_is_ok(i32 %148)
  %150 = xor i1 %149, true
  %151 = xor i1 %150, true
  %152 = zext i1 %151 to i32
  %153 = sext i32 %152 to i64
  %154 = call i64 @llvm.expect.i64(i64 %153, i64 1)
  %155 = icmp ne i64 %154, 0
  br i1 %155, label %156, label %158

156:                                              ; preds = %143
  %157 = getelementptr inbounds %struct.s2n_result, ptr %16, i32 0, i32 0
  store i32 0, ptr %157, align 4, !tbaa !11
  br label %160

158:                                              ; preds = %143
  %159 = getelementptr inbounds %struct.s2n_result, ptr %16, i32 0, i32 0
  store i32 -1, ptr %159, align 4, !tbaa !11
  br label %160

160:                                              ; preds = %158, %156
  %161 = getelementptr inbounds %struct.s2n_result, ptr %16, i32 0, i32 0
  %162 = load i32, ptr %161, align 4
  %163 = call zeroext i1 @s2n_result_is_ok(i32 %162)
  br i1 %163, label %165, label %164

164:                                              ; preds = %160
  store i32 -1, ptr %5, align 4
  store i32 1, ptr %15, align 4
  br label %168

165:                                              ; preds = %160
  br label %166

166:                                              ; preds = %165
  br label %167

167:                                              ; preds = %166
  store i32 0, ptr %5, align 4
  store i32 1, ptr %15, align 4
  br label %168

168:                                              ; preds = %167, %164, %111, %71
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %169

169:                                              ; preds = %168, %63, %39
  %170 = load i32, ptr %5, align 4
  ret i32 %170
}

declare i32 @s2n_add_overflow(i32 noundef, i32 noundef, ptr noundef) #3

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #5 = { inlinehint 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 #6 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }

!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 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"", !10, i64 0}
!13 = !{!14, !10, i64 8}
!14 = !{!"s2n_blob", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16}
!15 = !{!16, !6, i64 0}
!16 = !{!"s2n_debug_info", !6, i64 0, !6, i64 8}
!17 = !{!16, !6, i64 8}
!18 = !{!14, !6, i64 0}
!19 = !{!14, !10, i64 12}


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

; Function Attrs: nounwind uwtable
declare dso_local i32 @s2n_blob_validate(ptr noundef) local_unnamed_addr #0

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

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

declare i32 @s2n_calculate_stacktrace() local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @s2n_result_is_ok(i32) local_unnamed_addr #4

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

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @s2n_blob_slice(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 {
  %5 = alloca i32, align 4
  %6 = tail call i32 @s2n_blob_validate(ptr noundef %0)
  %7 = tail call zeroext i1 @s2n_result_is_ok(i32 %6)
  %not. = xor i1 %7, true
  %. = sext i1 %not. to i32
  %8 = tail call zeroext i1 @s2n_result_is_ok(i32 %.)
  br i1 %8, label %9, label %44

9:                                                ; preds = %4
  %10 = tail call i32 @s2n_blob_validate(ptr noundef %1)
  %11 = tail call zeroext i1 @s2n_result_is_ok(i32 %10)
  %not.25 = xor i1 %11, true
  %.23 = sext i1 %not.25 to i32
  %12 = tail call zeroext i1 @s2n_result_is_ok(i32 %.23)
  br i1 %12, label %13, label %44

13:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  store i32 0, ptr %5, align 4, !tbaa !5
  %14 = call i32 @s2n_add_overflow(i32 noundef %2, i32 noundef %3, ptr noundef nonnull %5) #6
  %15 = icmp sgt i32 %14, -1
  br i1 %15, label %16, label %43

16:                                               ; preds = %13
  %17 = getelementptr inbounds i8, ptr %0, i64 8
  %18 = load i32, ptr %17, align 8, !tbaa !9
  %19 = load i32, ptr %5, align 4, !tbaa !5
  %.not = icmp ult i32 %18, %19
  br i1 %.not, label %20, label %28

20:                                               ; preds = %16
  %21 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.11, ptr %21, align 8, !tbaa !12
  %22 = call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.11, i64 21), i32 noundef 47) #7
  %.not21 = icmp eq ptr %22, null
  %23 = getelementptr inbounds i8, ptr %22, i64 1
  %24 = select i1 %.not21, ptr getelementptr inbounds (i8, ptr @.str.11, i64 21), ptr %23
  %25 = getelementptr inbounds i8, ptr %21, i64 8
  store ptr %24, ptr %25, align 8, !tbaa !14
  %26 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653220, ptr %26, align 4, !tbaa !5
  %27 = call i32 @s2n_calculate_stacktrace() #6
  br label %43

28:                                               ; preds = %16
  %29 = load ptr, ptr %0, align 8, !tbaa !15
  %.not22 = icmp eq ptr %29, null
  %30 = zext i32 %2 to i64
  %31 = getelementptr inbounds i8, ptr %29, i64 %30
  %32 = select i1 %.not22, ptr null, ptr %31
  store ptr %32, ptr %1, align 8, !tbaa !15
  %33 = getelementptr inbounds i8, ptr %1, i64 8
  store i32 %3, ptr %33, align 8, !tbaa !9
  %34 = getelementptr inbounds i8, ptr %1, i64 16
  %35 = load i8, ptr %34, align 8
  %36 = and i8 %35, -2
  store i8 %36, ptr %34, align 8
  %37 = getelementptr inbounds i8, ptr %1, i64 12
  store i32 0, ptr %37, align 4, !tbaa !16
  %38 = call i32 @s2n_blob_validate(ptr noundef nonnull %1)
  %39 = call zeroext i1 @s2n_result_is_ok(i32 %38)
  br i1 %39, label %41, label %40, !prof !17

40:                                               ; preds = %28
  br label %41

41:                                               ; preds = %28, %40
  %.sroa.01.0 = phi i32 [ -1, %40 ], [ 0, %28 ]
  %42 = call zeroext i1 @s2n_result_is_ok(i32 %.sroa.01.0)
  %not.26 = xor i1 %42, true
  %.24 = sext i1 %not.26 to i32
  br label %43

43:                                               ; preds = %41, %13, %20
  %.0 = phi i32 [ -1, %20 ], [ -1, %13 ], [ %.24, %41 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  br label %44

44:                                               ; preds = %9, %4, %43
  %.1 = phi i32 [ %.0, %43 ], [ -1, %4 ], [ -1, %9 ]
  ret i32 %.1
}

declare i32 @s2n_add_overflow(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 8}
!10 = !{!"s2n_blob", !11, i64 0, !6, i64 8, !6, i64 12, !6, i64 16}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"s2n_debug_info", !11, i64 0, !11, i64 8}
!14 = !{!13, !11, i64 8}
!15 = !{!10, !11, i64 0}
!16 = !{!10, !6, i64 12}
!17 = !{!"branch_weights", !"expected", i32 2000, i32 1}


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