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

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

; 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: inlinehint nounwind uwtable
declare hidden i32 @Hacl_IntTypes_Intrinsics_sub_borrow_u32(i32 noundef, i32 noundef, i32 noundef, ptr noundef) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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: inlinehint nounwind uwtable
declare hidden void @exp_vartime_precomp(ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @Hacl_Bignum4096_32_mod_inv_prime_vartime_precomp(ptr noundef %0, ptr noundef %1, ptr noundef %2) #4 {
  %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 [128 x i32], align 16
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca ptr, align 8
  %29 = alloca i32, align 4
  %30 = 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) #5
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %7, ptr align 8 %31, i64 32, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 512, ptr %8) #5
  call void @llvm.memset.p0.i64(ptr align 16 %8, i8 0, i64 512, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %32 = getelementptr inbounds %struct.Hacl_Bignum_MontArithmetic_bn_mont_ctx_u32_s, ptr %7, i32 0, i32 1
  %33 = load ptr, ptr %32, align 8, !tbaa !12
  %34 = getelementptr inbounds i32, ptr %33, i64 0
  %35 = load i32, ptr %34, align 4, !tbaa !10
  %36 = getelementptr inbounds [128 x i32], ptr %8, i64 0, i64 0
  %37 = call i32 @Hacl_IntTypes_Intrinsics_sub_borrow_u32(i32 noundef 0, i32 noundef %35, i32 noundef 2, ptr noundef %36)
  store i32 %37, ptr %9, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %38 = getelementptr inbounds %struct.Hacl_Bignum_MontArithmetic_bn_mont_ctx_u32_s, ptr %7, i32 0, i32 1
  %39 = load ptr, ptr %38, align 8, !tbaa !12
  %40 = getelementptr inbounds i32, ptr %39, i64 1
  store ptr %40, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %41 = getelementptr inbounds [128 x i32], ptr %8, i64 0, i64 0
  %42 = getelementptr inbounds i32, ptr %41, i64 1
  store ptr %42, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %43 = load i32, ptr %9, align 4, !tbaa !10
  store i32 %43, ptr %12, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !10
  br label %44

44:                                               ; preds = %115, %3
  %45 = load i32, ptr %13, align 4, !tbaa !10
  %46 = icmp ult i32 %45, 31
  br i1 %46, label %48, label %47

47:                                               ; preds = %44
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %118

48:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %49 = load ptr, ptr %10, align 8, !tbaa !5
  %50 = load i32, ptr %13, align 4, !tbaa !10
  %51 = mul i32 4, %50
  %52 = zext i32 %51 to i64
  %53 = getelementptr inbounds i32, ptr %49, i64 %52
  %54 = load i32, ptr %53, align 4, !tbaa !10
  store i32 %54, ptr %14, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %55 = load ptr, ptr %11, align 8, !tbaa !5
  %56 = load i32, ptr %13, align 4, !tbaa !10
  %57 = mul i32 4, %56
  %58 = zext i32 %57 to i64
  %59 = getelementptr inbounds i32, ptr %55, i64 %58
  store ptr %59, ptr %15, align 8, !tbaa !5
  %60 = load i32, ptr %12, align 4, !tbaa !10
  %61 = load i32, ptr %14, align 4, !tbaa !10
  %62 = load ptr, ptr %15, align 8, !tbaa !5
  %63 = call i32 @Hacl_IntTypes_Intrinsics_sub_borrow_u32(i32 noundef %60, i32 noundef %61, i32 noundef 0, ptr noundef %62)
  store i32 %63, ptr %12, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %64 = load ptr, ptr %10, align 8, !tbaa !5
  %65 = load i32, ptr %13, align 4, !tbaa !10
  %66 = mul i32 4, %65
  %67 = add i32 %66, 1
  %68 = zext i32 %67 to i64
  %69 = getelementptr inbounds i32, ptr %64, i64 %68
  %70 = load i32, ptr %69, align 4, !tbaa !10
  store i32 %70, ptr %16, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %71 = load ptr, ptr %11, align 8, !tbaa !5
  %72 = load i32, ptr %13, align 4, !tbaa !10
  %73 = mul i32 4, %72
  %74 = zext i32 %73 to i64
  %75 = getelementptr inbounds i32, ptr %71, i64 %74
  %76 = getelementptr inbounds i32, ptr %75, i64 1
  store ptr %76, ptr %17, align 8, !tbaa !5
  %77 = load i32, ptr %12, align 4, !tbaa !10
  %78 = load i32, ptr %16, align 4, !tbaa !10
  %79 = load ptr, ptr %17, align 8, !tbaa !5
  %80 = call i32 @Hacl_IntTypes_Intrinsics_sub_borrow_u32(i32 noundef %77, i32 noundef %78, i32 noundef 0, ptr noundef %79)
  store i32 %80, ptr %12, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %81 = load ptr, ptr %10, align 8, !tbaa !5
  %82 = load i32, ptr %13, align 4, !tbaa !10
  %83 = mul i32 4, %82
  %84 = add i32 %83, 2
  %85 = zext i32 %84 to i64
  %86 = getelementptr inbounds i32, ptr %81, i64 %85
  %87 = load i32, ptr %86, align 4, !tbaa !10
  store i32 %87, ptr %18, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %88 = load ptr, ptr %11, align 8, !tbaa !5
  %89 = load i32, ptr %13, align 4, !tbaa !10
  %90 = mul i32 4, %89
  %91 = zext i32 %90 to i64
  %92 = getelementptr inbounds i32, ptr %88, i64 %91
  %93 = getelementptr inbounds i32, ptr %92, i64 2
  store ptr %93, ptr %19, align 8, !tbaa !5
  %94 = load i32, ptr %12, align 4, !tbaa !10
  %95 = load i32, ptr %18, align 4, !tbaa !10
  %96 = load ptr, ptr %19, align 8, !tbaa !5
  %97 = call i32 @Hacl_IntTypes_Intrinsics_sub_borrow_u32(i32 noundef %94, i32 noundef %95, i32 noundef 0, ptr noundef %96)
  store i32 %97, ptr %12, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %98 = load ptr, ptr %10, align 8, !tbaa !5
  %99 = load i32, ptr %13, align 4, !tbaa !10
  %100 = mul i32 4, %99
  %101 = add i32 %100, 3
  %102 = zext i32 %101 to i64
  %103 = getelementptr inbounds i32, ptr %98, i64 %102
  %104 = load i32, ptr %103, align 4, !tbaa !10
  store i32 %104, ptr %20, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %105 = load ptr, ptr %11, align 8, !tbaa !5
  %106 = load i32, ptr %13, align 4, !tbaa !10
  %107 = mul i32 4, %106
  %108 = zext i32 %107 to i64
  %109 = getelementptr inbounds i32, ptr %105, i64 %108
  %110 = getelementptr inbounds i32, ptr %109, i64 3
  store ptr %110, ptr %21, align 8, !tbaa !5
  %111 = load i32, ptr %12, align 4, !tbaa !10
  %112 = load i32, ptr %20, align 4, !tbaa !10
  %113 = load ptr, ptr %21, align 8, !tbaa !5
  %114 = call i32 @Hacl_IntTypes_Intrinsics_sub_borrow_u32(i32 noundef %111, i32 noundef %112, i32 noundef 0, ptr noundef %113)
  store i32 %114, ptr %12, align 4, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %115

115:                                              ; preds = %48
  %116 = load i32, ptr %13, align 4, !tbaa !10
  %117 = add i32 %116, 1
  store i32 %117, ptr %13, align 4, !tbaa !10
  br label %44, !llvm.loop !14

118:                                              ; preds = %47
  br label %119

119:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  store i32 124, ptr %22, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  %120 = load ptr, ptr %10, align 8, !tbaa !5
  %121 = load i32, ptr %22, align 4, !tbaa !10
  %122 = zext i32 %121 to i64
  %123 = getelementptr inbounds i32, ptr %120, 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) #5
  %125 = load ptr, ptr %11, align 8, !tbaa !5
  %126 = load i32, ptr %22, align 4, !tbaa !10
  %127 = zext i32 %126 to i64
  %128 = getelementptr inbounds i32, ptr %125, i64 %127
  store ptr %128, ptr %24, align 8, !tbaa !5
  %129 = load i32, ptr %12, align 4, !tbaa !10
  %130 = load i32, ptr %23, align 4, !tbaa !10
  %131 = load ptr, ptr %24, align 8, !tbaa !5
  %132 = call i32 @Hacl_IntTypes_Intrinsics_sub_borrow_u32(i32 noundef %129, i32 noundef %130, i32 noundef 0, ptr noundef %131)
  store i32 %132, ptr %12, align 4, !tbaa !10
  %133 = load i32, ptr %22, align 4, !tbaa !10
  %134 = add i32 %133, 1
  store i32 %134, ptr %22, align 4, !tbaa !10
  %135 = load i32, ptr %22, align 4, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  %136 = load ptr, ptr %10, align 8, !tbaa !5
  %137 = load i32, ptr %22, align 4, !tbaa !10
  %138 = zext i32 %137 to i64
  %139 = getelementptr inbounds i32, ptr %136, i64 %138
  %140 = load i32, ptr %139, align 4, !tbaa !10
  store i32 %140, ptr %25, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  %141 = load ptr, ptr %11, align 8, !tbaa !5
  %142 = load i32, ptr %22, align 4, !tbaa !10
  %143 = zext i32 %142 to i64
  %144 = getelementptr inbounds i32, ptr %141, i64 %143
  store ptr %144, ptr %26, align 8, !tbaa !5
  %145 = load i32, ptr %12, align 4, !tbaa !10
  %146 = load i32, ptr %25, align 4, !tbaa !10
  %147 = load ptr, ptr %26, align 8, !tbaa !5
  %148 = call i32 @Hacl_IntTypes_Intrinsics_sub_borrow_u32(i32 noundef %145, i32 noundef %146, i32 noundef 0, ptr noundef %147)
  store i32 %148, ptr %12, align 4, !tbaa !10
  %149 = load i32, ptr %22, align 4, !tbaa !10
  %150 = add i32 %149, 1
  store i32 %150, ptr %22, align 4, !tbaa !10
  %151 = load i32, ptr %22, align 4, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  %152 = load ptr, ptr %10, align 8, !tbaa !5
  %153 = load i32, ptr %22, align 4, !tbaa !10
  %154 = zext i32 %153 to i64
  %155 = getelementptr inbounds i32, ptr %152, i64 %154
  %156 = load i32, ptr %155, align 4, !tbaa !10
  store i32 %156, ptr %27, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  %157 = load ptr, ptr %11, align 8, !tbaa !5
  %158 = load i32, ptr %22, align 4, !tbaa !10
  %159 = zext i32 %158 to i64
  %160 = getelementptr inbounds i32, ptr %157, i64 %159
  store ptr %160, ptr %28, align 8, !tbaa !5
  %161 = load i32, ptr %12, align 4, !tbaa !10
  %162 = load i32, ptr %27, align 4, !tbaa !10
  %163 = load ptr, ptr %28, align 8, !tbaa !5
  %164 = call i32 @Hacl_IntTypes_Intrinsics_sub_borrow_u32(i32 noundef %161, i32 noundef %162, i32 noundef 0, ptr noundef %163)
  store i32 %164, ptr %12, align 4, !tbaa !10
  %165 = load i32, ptr %22, align 4, !tbaa !10
  %166 = add i32 %165, 1
  store i32 %166, ptr %22, align 4, !tbaa !10
  %167 = load i32, ptr %22, align 4, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  br label %168

168:                                              ; preds = %119
  br label %169

169:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #5
  %170 = load i32, ptr %12, align 4, !tbaa !10
  store i32 %170, ptr %29, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #5
  %171 = load i32, ptr %29, align 4, !tbaa !10
  store i32 %171, ptr %30, align 4, !tbaa !10
  %172 = load i32, ptr %30, align 4, !tbaa !10
  %173 = getelementptr inbounds %struct.Hacl_Bignum_MontArithmetic_bn_mont_ctx_u32_s, ptr %7, i32 0, i32 1
  %174 = load ptr, ptr %173, align 8, !tbaa !12
  %175 = getelementptr inbounds %struct.Hacl_Bignum_MontArithmetic_bn_mont_ctx_u32_s, ptr %7, i32 0, i32 2
  %176 = load i32, ptr %175, align 8, !tbaa !16
  %177 = getelementptr inbounds %struct.Hacl_Bignum_MontArithmetic_bn_mont_ctx_u32_s, ptr %7, i32 0, i32 3
  %178 = load ptr, ptr %177, align 8, !tbaa !17
  %179 = load ptr, ptr %5, align 8, !tbaa !5
  %180 = getelementptr inbounds [128 x i32], ptr %8, i64 0, i64 0
  %181 = load ptr, ptr %6, align 8, !tbaa !5
  call void @exp_vartime_precomp(ptr noundef %174, i32 noundef %176, ptr noundef %178, ptr noundef %179, i32 noundef 4096, ptr noundef %180, ptr noundef %181)
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 512, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #5
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nocallback nofree 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 }

!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, !6, i64 8}
!13 = !{!"Hacl_Bignum_MontArithmetic_bn_mont_ctx_u32_s", !11, i64 0, !6, i64 8, !11, i64 16, !6, i64 24}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!13, !11, i64 16}
!17 = !{!13, !6, i64 24}


; 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

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

; 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 #1

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @exp_vartime_precomp(ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @Hacl_Bignum4096_32_mod_inv_prime_vartime_precomp(ptr nocapture noundef readonly %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #3 {
  %4 = alloca [128 x i32], align 16
  %.sroa.3.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 8
  %.sroa.3.0.copyload = load ptr, ptr %.sroa.3.0..sroa_idx, align 8, !tbaa !5
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 16
  %.sroa.6.0.copyload = load i32, ptr %.sroa.6.0..sroa_idx, align 8, !tbaa !9
  %.sroa.762.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 24
  %.sroa.762.0.copyload = load ptr, ptr %.sroa.762.0..sroa_idx, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %4) #4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(512) %4, i8 0, i64 512, i1 false)
  %5 = load i32, ptr %.sroa.3.0.copyload, align 4, !tbaa !9
  %6 = call i32 @Hacl_IntTypes_Intrinsics_sub_borrow_u32(i32 noundef 0, i32 noundef %5, i32 noundef 2, ptr noundef nonnull %4)
  %7 = getelementptr inbounds i8, ptr %.sroa.3.0.copyload, i64 4
  %8 = getelementptr inbounds i8, ptr %4, i64 4
  br label %22

9:                                                ; preds = %22
  %10 = getelementptr inbounds i8, ptr %.sroa.3.0.copyload, i64 500
  %11 = load i32, ptr %10, align 4, !tbaa !9
  %12 = getelementptr inbounds i8, ptr %4, i64 500
  %13 = call i32 @Hacl_IntTypes_Intrinsics_sub_borrow_u32(i32 noundef %42, i32 noundef %11, i32 noundef 0, ptr noundef nonnull %12)
  %14 = getelementptr inbounds i8, ptr %.sroa.3.0.copyload, i64 504
  %15 = load i32, ptr %14, align 4, !tbaa !9
  %16 = getelementptr inbounds i8, ptr %4, i64 504
  %17 = call i32 @Hacl_IntTypes_Intrinsics_sub_borrow_u32(i32 noundef %13, i32 noundef %15, i32 noundef 0, ptr noundef nonnull %16)
  %18 = getelementptr inbounds i8, ptr %.sroa.3.0.copyload, i64 508
  %19 = load i32, ptr %18, align 4, !tbaa !9
  %20 = getelementptr inbounds i8, ptr %4, i64 508
  %21 = call i32 @Hacl_IntTypes_Intrinsics_sub_borrow_u32(i32 noundef %17, i32 noundef %19, i32 noundef 0, ptr noundef nonnull %20)
  call void @exp_vartime_precomp(ptr noundef nonnull %.sroa.3.0.copyload, i32 noundef %.sroa.6.0.copyload, ptr noundef %.sroa.762.0.copyload, ptr noundef %1, i32 noundef 4096, ptr noundef nonnull %4, ptr noundef %2)
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %4) #4
  ret void

22:                                               ; preds = %3, %22
  %indvars.iv = phi i64 [ 0, %3 ], [ %indvars.iv.next, %22 ]
  %.068 = phi i32 [ %6, %3 ], [ %42, %22 ]
  %23 = shl nuw nsw i64 %indvars.iv, 2
  %24 = getelementptr inbounds i32, ptr %7, i64 %23
  %25 = load i32, ptr %24, align 4, !tbaa !9
  %26 = getelementptr inbounds i32, ptr %8, i64 %23
  %27 = call i32 @Hacl_IntTypes_Intrinsics_sub_borrow_u32(i32 noundef %.068, i32 noundef %25, i32 noundef 0, ptr noundef nonnull %26)
  %28 = or disjoint i64 %23, 1
  %29 = getelementptr inbounds i32, ptr %7, i64 %28
  %30 = load i32, ptr %29, align 4, !tbaa !9
  %31 = getelementptr inbounds i8, ptr %26, i64 4
  %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 %23, 2
  %34 = getelementptr inbounds i32, ptr %7, i64 %33
  %35 = load i32, ptr %34, align 4, !tbaa !9
  %36 = getelementptr inbounds i8, ptr %26, i64 8
  %37 = call i32 @Hacl_IntTypes_Intrinsics_sub_borrow_u32(i32 noundef %32, i32 noundef %35, i32 noundef 0, ptr noundef nonnull %36)
  %38 = or disjoint i64 %23, 3
  %39 = getelementptr inbounds i32, ptr %7, i64 %38
  %40 = load i32, ptr %39, align 4, !tbaa !9
  %41 = getelementptr inbounds i8, ptr %26, i64 12
  %42 = call i32 @Hacl_IntTypes_Intrinsics_sub_borrow_u32(i32 noundef %37, i32 noundef %40, i32 noundef 0, ptr noundef nonnull %41)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 31
  br i1 %exitcond.not, label %9, label %22, !llvm.loop !11
}

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

!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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LoopRotatePass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass