; LLVM IR from cryspen/libcrux :: sys/hacl/c/src (Hacl_GenericField32)

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

@.str = external hidden unnamed_addr constant [70 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [86 x i8], align 1

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

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

declare i32 @printf(ptr noundef, ...) #1

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #2

; 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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #4

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #4

; Function Attrs: nounwind uwtable
declare dso_local void @Hacl_GenericField32_exp_vartime(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #6

; Function Attrs: nounwind uwtable
define dso_local void @Hacl_GenericField32_inverse(ptr noundef %0, ptr noundef %1, ptr noundef %2) #6 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %struct.Hacl_Bignum_MontArithmetic_bn_mont_ctx_u32_s, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca ptr, align 8
  %28 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #8
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %7, ptr align 8 %29, i64 32, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  %30 = getelementptr inbounds %struct.Hacl_Bignum_MontArithmetic_bn_mont_ctx_u32_s, ptr %7, i32 0, i32 0
  %31 = load i32, ptr %30, align 8, !tbaa !12
  store i32 %31, ptr %8, align 4, !tbaa !10
  br label %32

32:                                               ; preds = %3
  %33 = load i32, ptr %8, align 4, !tbaa !10
  %34 = zext i32 %33 to i64
  %35 = icmp ugt i64 %34, 4611686018427387903
  br i1 %35, label %36, label %38

36:                                               ; preds = %32
  %37 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 574)
  call void @exit(i32 noundef 253) #9
  unreachable

38:                                               ; preds = %32
  br label %39

39:                                               ; preds = %38
  br label %40

40:                                               ; preds = %39
  %41 = load i32, ptr %8, align 4, !tbaa !10
  %42 = zext i32 %41 to i64
  %43 = call ptr @llvm.stacksave.p0()
  store ptr %43, ptr %9, align 8
  %44 = alloca i32, i64 %42, align 16
  store i64 %42, ptr %10, align 8
  %45 = load i32, ptr %8, align 4, !tbaa !10
  %46 = zext i32 %45 to i64
  %47 = mul i64 %46, 4
  call void @llvm.memset.p0.i64(ptr align 16 %44, i8 0, i64 %47, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  %48 = getelementptr inbounds %struct.Hacl_Bignum_MontArithmetic_bn_mont_ctx_u32_s, ptr %7, i32 0, i32 1
  %49 = load ptr, ptr %48, align 8, !tbaa !14
  %50 = getelementptr inbounds i32, ptr %49, i64 0
  %51 = load i32, ptr %50, align 4, !tbaa !10
  %52 = call i32 @Hacl_IntTypes_Intrinsics_sub_borrow_u32(i32 noundef 0, i32 noundef %51, i32 noundef 2, ptr noundef %44)
  store i32 %52, ptr %11, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  %53 = load i32, ptr %8, align 4, !tbaa !10
  %54 = icmp ult i32 1, %53
  br i1 %54, label %55, label %169

55:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %56 = getelementptr inbounds %struct.Hacl_Bignum_MontArithmetic_bn_mont_ctx_u32_s, ptr %7, i32 0, i32 1
  %57 = load ptr, ptr %56, align 8, !tbaa !14
  %58 = getelementptr inbounds i32, ptr %57, i64 1
  store ptr %58, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %59 = getelementptr inbounds i32, ptr %44, i64 1
  store ptr %59, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  %60 = load i32, ptr %11, align 4, !tbaa !10
  store i32 %60, ptr %15, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  store i32 0, ptr %16, align 4, !tbaa !10
  br label %61

61:                                               ; preds = %135, %55
  %62 = load i32, ptr %16, align 4, !tbaa !10
  %63 = load i32, ptr %8, align 4, !tbaa !10
  %64 = sub i32 %63, 1
  %65 = udiv i32 %64, 4
  %66 = icmp ult i32 %62, %65
  br i1 %66, label %68, label %67

67:                                               ; preds = %61
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %138

68:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  %69 = load ptr, ptr %13, align 8, !tbaa !5
  %70 = load i32, ptr %16, align 4, !tbaa !10
  %71 = mul i32 4, %70
  %72 = zext i32 %71 to i64
  %73 = getelementptr inbounds i32, ptr %69, i64 %72
  %74 = load i32, ptr %73, align 4, !tbaa !10
  store i32 %74, ptr %17, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %75 = load ptr, ptr %14, align 8, !tbaa !5
  %76 = load i32, ptr %16, align 4, !tbaa !10
  %77 = mul i32 4, %76
  %78 = zext i32 %77 to i64
  %79 = getelementptr inbounds i32, ptr %75, i64 %78
  store ptr %79, ptr %18, align 8, !tbaa !5
  %80 = load i32, ptr %15, align 4, !tbaa !10
  %81 = load i32, ptr %17, align 4, !tbaa !10
  %82 = load ptr, ptr %18, align 8, !tbaa !5
  %83 = call i32 @Hacl_IntTypes_Intrinsics_sub_borrow_u32(i32 noundef %80, i32 noundef %81, i32 noundef 0, ptr noundef %82)
  store i32 %83, ptr %15, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  %84 = load ptr, ptr %13, align 8, !tbaa !5
  %85 = load i32, ptr %16, align 4, !tbaa !10
  %86 = mul i32 4, %85
  %87 = add i32 %86, 1
  %88 = zext i32 %87 to i64
  %89 = getelementptr inbounds i32, ptr %84, i64 %88
  %90 = load i32, ptr %89, align 4, !tbaa !10
  store i32 %90, ptr %19, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %91 = load ptr, ptr %14, align 8, !tbaa !5
  %92 = load i32, ptr %16, align 4, !tbaa !10
  %93 = mul i32 4, %92
  %94 = zext i32 %93 to i64
  %95 = getelementptr inbounds i32, ptr %91, i64 %94
  %96 = getelementptr inbounds i32, ptr %95, i64 1
  store ptr %96, ptr %20, align 8, !tbaa !5
  %97 = load i32, ptr %15, align 4, !tbaa !10
  %98 = load i32, ptr %19, align 4, !tbaa !10
  %99 = load ptr, ptr %20, align 8, !tbaa !5
  %100 = call i32 @Hacl_IntTypes_Intrinsics_sub_borrow_u32(i32 noundef %97, i32 noundef %98, i32 noundef 0, ptr noundef %99)
  store i32 %100, ptr %15, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  %101 = load ptr, ptr %13, align 8, !tbaa !5
  %102 = load i32, ptr %16, align 4, !tbaa !10
  %103 = mul i32 4, %102
  %104 = add i32 %103, 2
  %105 = zext i32 %104 to i64
  %106 = getelementptr inbounds i32, ptr %101, i64 %105
  %107 = load i32, ptr %106, align 4, !tbaa !10
  store i32 %107, ptr %21, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %108 = load ptr, ptr %14, align 8, !tbaa !5
  %109 = load i32, ptr %16, align 4, !tbaa !10
  %110 = mul i32 4, %109
  %111 = zext i32 %110 to i64
  %112 = getelementptr inbounds i32, ptr %108, i64 %111
  %113 = getelementptr inbounds i32, ptr %112, i64 2
  store ptr %113, ptr %22, align 8, !tbaa !5
  %114 = load i32, ptr %15, align 4, !tbaa !10
  %115 = load i32, ptr %21, align 4, !tbaa !10
  %116 = load ptr, ptr %22, align 8, !tbaa !5
  %117 = call i32 @Hacl_IntTypes_Intrinsics_sub_borrow_u32(i32 noundef %114, i32 noundef %115, i32 noundef 0, ptr noundef %116)
  store i32 %117, ptr %15, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  %118 = load ptr, ptr %13, align 8, !tbaa !5
  %119 = load i32, ptr %16, align 4, !tbaa !10
  %120 = mul i32 4, %119
  %121 = add i32 %120, 3
  %122 = zext i32 %121 to i64
  %123 = getelementptr inbounds i32, ptr %118, i64 %122
  %124 = load i32, ptr %123, align 4, !tbaa !10
  store i32 %124, ptr %23, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %125 = load ptr, ptr %14, align 8, !tbaa !5
  %126 = load i32, ptr %16, align 4, !tbaa !10
  %127 = mul i32 4, %126
  %128 = zext i32 %127 to i64
  %129 = getelementptr inbounds i32, ptr %125, i64 %128
  %130 = getelementptr inbounds i32, ptr %129, i64 3
  store ptr %130, ptr %24, align 8, !tbaa !5
  %131 = load i32, ptr %15, align 4, !tbaa !10
  %132 = load i32, ptr %23, align 4, !tbaa !10
  %133 = load ptr, ptr %24, align 8, !tbaa !5
  %134 = call i32 @Hacl_IntTypes_Intrinsics_sub_borrow_u32(i32 noundef %131, i32 noundef %132, i32 noundef 0, ptr noundef %133)
  store i32 %134, ptr %15, align 4, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %135

135:                                              ; preds = %68
  %136 = load i32, ptr %16, align 4, !tbaa !10
  %137 = add i32 %136, 1
  store i32 %137, ptr %16, align 4, !tbaa !10
  br label %61, !llvm.loop !15

138:                                              ; preds = %67
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  %139 = load i32, ptr %8, align 4, !tbaa !10
  %140 = sub i32 %139, 1
  %141 = udiv i32 %140, 4
  %142 = mul i32 %141, 4
  store i32 %142, ptr %25, align 4, !tbaa !10
  br label %143

143:                                              ; preds = %163, %138
  %144 = load i32, ptr %25, align 4, !tbaa !10
  %145 = load i32, ptr %8, align 4, !tbaa !10
  %146 = sub i32 %145, 1
  %147 = icmp ult i32 %144, %146
  br i1 %147, label %149, label %148

148:                                              ; preds = %143
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  br label %166

149:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  %150 = load ptr, ptr %13, align 8, !tbaa !5
  %151 = load i32, ptr %25, align 4, !tbaa !10
  %152 = zext i32 %151 to i64
  %153 = getelementptr inbounds i32, ptr %150, i64 %152
  %154 = load i32, ptr %153, align 4, !tbaa !10
  store i32 %154, ptr %26, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %155 = load ptr, ptr %14, align 8, !tbaa !5
  %156 = load i32, ptr %25, align 4, !tbaa !10
  %157 = zext i32 %156 to i64
  %158 = getelementptr inbounds i32, ptr %155, i64 %157
  store ptr %158, ptr %27, align 8, !tbaa !5
  %159 = load i32, ptr %15, align 4, !tbaa !10
  %160 = load i32, ptr %26, align 4, !tbaa !10
  %161 = load ptr, ptr %27, align 8, !tbaa !5
  %162 = call i32 @Hacl_IntTypes_Intrinsics_sub_borrow_u32(i32 noundef %159, i32 noundef %160, i32 noundef 0, ptr noundef %161)
  store i32 %162, ptr %15, align 4, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  br label %163

163:                                              ; preds = %149
  %164 = load i32, ptr %25, align 4, !tbaa !10
  %165 = add i32 %164, 1
  store i32 %165, ptr %25, align 4, !tbaa !10
  br label %143, !llvm.loop !17

166:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  %167 = load i32, ptr %15, align 4, !tbaa !10
  store i32 %167, ptr %28, align 4, !tbaa !10
  %168 = load i32, ptr %28, align 4, !tbaa !10
  store i32 %168, ptr %12, align 4, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %171

169:                                              ; preds = %40
  %170 = load i32, ptr %11, align 4, !tbaa !10
  store i32 %170, ptr %12, align 4, !tbaa !10
  br label %171

171:                                              ; preds = %169, %166
  %172 = load i32, ptr %12, align 4, !tbaa !10
  %173 = load ptr, ptr %4, align 8, !tbaa !5
  %174 = load ptr, ptr %5, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.Hacl_Bignum_MontArithmetic_bn_mont_ctx_u32_s, ptr %7, i32 0, i32 0
  %176 = load i32, ptr %175, align 8, !tbaa !12
  %177 = mul i32 %176, 32
  %178 = load ptr, ptr %6, align 8, !tbaa !5
  call void @Hacl_GenericField32_exp_vartime(ptr noundef %173, ptr noundef %174, i32 noundef %177, ptr noundef %44, ptr noundef %178)
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  %179 = load ptr, ptr %9, align 8
  call void @llvm.stackrestore.p0(ptr %179)
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #8
  ret void
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @Hacl_IntTypes_Intrinsics_sub_borrow_u32(i32 noundef, i32 noundef, i32 noundef, ptr noundef) #7

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 = { noreturn nounwind "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 = { nocallback nofree nosync nounwind willreturn }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { noreturn 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 = !{i64 0, i64 4, !10, i64 8, i64 8, !5, i64 16, i64 4, !10, i64 24, i64 8, !5}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"Hacl_Bignum_MontArithmetic_bn_mont_ctx_u32_s", !11, i64 0, !6, i64 8, !11, i64 16, !6, i64 24}
!14 = !{!13, !6, i64 8}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}


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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #0

; Function Attrs: nounwind uwtable
declare dso_local void @Hacl_GenericField32_exp_vartime(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @Hacl_GenericField32_inverse(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #1 {
  %.sroa.0.0.copyload = load i32, ptr %0, align 8, !tbaa !5
  %.sroa.552.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 8
  %.sroa.552.0.copyload = load ptr, ptr %.sroa.552.0..sroa_idx, align 8, !tbaa !9
  %4 = zext i32 %.sroa.0.0.copyload to i64
  %5 = alloca i32, i64 %4, align 16
  %6 = shl nuw nsw i64 %4, 2
  call void @llvm.memset.p0.i64(ptr nonnull align 16 %5, i8 0, i64 %6, i1 false)
  %7 = load i32, ptr %.sroa.552.0.copyload, align 4, !tbaa !5
  %8 = call i32 @Hacl_IntTypes_Intrinsics_sub_borrow_u32(i32 noundef 0, i32 noundef %7, i32 noundef 2, ptr noundef nonnull %5)
  %9 = icmp ugt i32 %.sroa.0.0.copyload, 1
  br i1 %9, label %10, label %.loopexit

10:                                               ; preds = %3
  %11 = getelementptr inbounds i8, ptr %.sroa.552.0.copyload, i64 4
  %12 = getelementptr inbounds i8, ptr %5, i64 4
  %13 = add i32 %.sroa.0.0.copyload, -1
  %.not = icmp ult i32 %.sroa.0.0.copyload, 5
  br i1 %.not, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %10
  %14 = lshr i32 %13, 2
  %wide.trip.count = zext nneg i32 %14 to i64
  br label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %10
  %.058.lcssa = phi i32 [ %8, %10 ], [ %37, %.lr.ph ]
  %15 = and i32 %13, 3
  %.not68 = icmp eq i32 %15, 0
  br i1 %.not68, label %.loopexit, label %.lr.ph67.preheader

.lr.ph67.preheader:                               ; preds = %._crit_edge
  %16 = zext i32 %13 to i64
  %17 = and i64 %16, 4294967292
  br label %.lr.ph67

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %.05862 = phi i32 [ %8, %.lr.ph.preheader ], [ %37, %.lr.ph ]
  %18 = shl nuw i64 %indvars.iv, 2
  %19 = getelementptr inbounds i32, ptr %11, i64 %18
  %20 = load i32, ptr %19, align 4, !tbaa !5
  %21 = getelementptr inbounds i32, ptr %12, i64 %18
  %22 = call i32 @Hacl_IntTypes_Intrinsics_sub_borrow_u32(i32 noundef %.05862, i32 noundef %20, i32 noundef 0, ptr noundef nonnull %21)
  %23 = or disjoint i64 %18, 1
  %24 = getelementptr inbounds i32, ptr %11, i64 %23
  %25 = load i32, ptr %24, align 4, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %21, i64 4
  %27 = call i32 @Hacl_IntTypes_Intrinsics_sub_borrow_u32(i32 noundef %22, i32 noundef %25, i32 noundef 0, ptr noundef nonnull %26)
  %28 = or disjoint i64 %18, 2
  %29 = getelementptr inbounds i32, ptr %11, i64 %28
  %30 = load i32, ptr %29, align 4, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %21, i64 8
  %32 = call i32 @Hacl_IntTypes_Intrinsics_sub_borrow_u32(i32 noundef %27, i32 noundef %30, i32 noundef 0, ptr noundef nonnull %31)
  %33 = or disjoint i64 %18, 3
  %34 = getelementptr inbounds i32, ptr %11, i64 %33
  %35 = load i32, ptr %34, align 4, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %21, i64 12
  %37 = call i32 @Hacl_IntTypes_Intrinsics_sub_borrow_u32(i32 noundef %32, i32 noundef %35, i32 noundef 0, ptr noundef nonnull %36)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !11

.lr.ph67:                                         ; preds = %.lr.ph67.preheader, %.lr.ph67
  %indvars.iv70 = phi i64 [ %17, %.lr.ph67.preheader ], [ %indvars.iv.next71, %.lr.ph67 ]
  %.165 = phi i32 [ %.058.lcssa, %.lr.ph67.preheader ], [ %41, %.lr.ph67 ]
  %38 = getelementptr inbounds i32, ptr %11, i64 %indvars.iv70
  %39 = load i32, ptr %38, align 4, !tbaa !5
  %40 = getelementptr inbounds i32, ptr %12, i64 %indvars.iv70
  %41 = call i32 @Hacl_IntTypes_Intrinsics_sub_borrow_u32(i32 noundef %.165, i32 noundef %39, i32 noundef 0, ptr noundef nonnull %40)
  %indvars.iv.next71 = add nuw nsw i64 %indvars.iv70, 1
  %42 = icmp ult i64 %indvars.iv.next71, %16
  br i1 %42, label %.lr.ph67, label %.loopexit, !llvm.loop !13

.loopexit:                                        ; preds = %.lr.ph67, %._crit_edge, %3
  %43 = shl i32 %.sroa.0.0.copyload, 5
  call void @Hacl_GenericField32_exp_vartime(ptr noundef nonnull %0, ptr noundef %1, i32 noundef %43, ptr noundef nonnull %5, ptr noundef %2)
  ret void
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @Hacl_IntTypes_Intrinsics_sub_borrow_u32(i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { 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" }

!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, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SCCPPass,SROAPass,SimplifyCFGPass