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

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

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

; Function Attrs: nounwind uwtable
define dso_local zeroext i1 @Hacl_Bignum256_mod(ptr noundef %0, ptr noundef %1, ptr noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca [4 x i64], align 16
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i32, align 4
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i32, align 4
  %23 = alloca [4 x i64], align 16
  %24 = alloca i64, align 8
  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) #6
  call void @llvm.memset.p0.i64(ptr align 16 %7, i8 0, i64 32, i1 false)
  %25 = getelementptr inbounds [4 x i64], ptr %7, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %25, i8 0, i64 32, i1 false)
  %26 = getelementptr inbounds [4 x i64], ptr %7, i64 0, i64 0
  store i64 1, ptr %26, align 16, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = getelementptr inbounds i64, ptr %27, i64 0
  %29 = load i64, ptr %28, align 8, !tbaa !9
  %30 = and i64 %29, 1
  store i64 %30, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %31 = load i64, ptr %8, align 8, !tbaa !9
  %32 = sub i64 0, %31
  store i64 %32, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  store i64 0, ptr %10, align 8, !tbaa !9
  br label %33

33:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %34 = load i32, ptr %11, align 4, !tbaa !11
  %35 = zext i32 %34 to i64
  %36 = getelementptr inbounds [4 x i64], ptr %7, i64 0, i64 %35
  %37 = load i64, ptr %36, align 8, !tbaa !9
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = load i32, ptr %11, align 4, !tbaa !11
  %40 = zext i32 %39 to i64
  %41 = getelementptr inbounds i64, ptr %38, i64 %40
  %42 = load i64, ptr %41, align 8, !tbaa !9
  %43 = call i64 @FStar_UInt64_eq_mask(i64 noundef %37, i64 noundef %42)
  store i64 %43, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %44 = load i32, ptr %11, align 4, !tbaa !11
  %45 = zext i32 %44 to i64
  %46 = getelementptr inbounds [4 x i64], ptr %7, i64 0, i64 %45
  %47 = load i64, ptr %46, align 8, !tbaa !9
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = load i32, ptr %11, align 4, !tbaa !11
  %50 = zext i32 %49 to i64
  %51 = getelementptr inbounds i64, ptr %48, i64 %50
  %52 = load i64, ptr %51, align 8, !tbaa !9
  %53 = call i64 @FStar_UInt64_gte_mask(i64 noundef %47, i64 noundef %52)
  %54 = xor i64 %53, -1
  store i64 %54, ptr %13, align 8, !tbaa !9
  %55 = load i64, ptr %12, align 8, !tbaa !9
  %56 = load i64, ptr %10, align 8, !tbaa !9
  %57 = and i64 %55, %56
  %58 = load i64, ptr %12, align 8, !tbaa !9
  %59 = xor i64 %58, -1
  %60 = load i64, ptr %13, align 8, !tbaa !9
  %61 = and i64 %60, -1
  %62 = load i64, ptr %13, align 8, !tbaa !9
  %63 = xor i64 %62, -1
  %64 = and i64 %63, 0
  %65 = or i64 %61, %64
  %66 = and i64 %59, %65
  %67 = or i64 %57, %66
  store i64 %67, ptr %10, align 8, !tbaa !9
  %68 = load i32, ptr %11, align 4, !tbaa !11
  %69 = add i32 %68, 1
  store i32 %69, ptr %11, align 4, !tbaa !11
  %70 = load i32, ptr %11, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %71 = load i32, ptr %11, align 4, !tbaa !11
  %72 = zext i32 %71 to i64
  %73 = getelementptr inbounds [4 x i64], ptr %7, i64 0, i64 %72
  %74 = load i64, ptr %73, align 8, !tbaa !9
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = load i32, ptr %11, align 4, !tbaa !11
  %77 = zext i32 %76 to i64
  %78 = getelementptr inbounds i64, ptr %75, i64 %77
  %79 = load i64, ptr %78, align 8, !tbaa !9
  %80 = call i64 @FStar_UInt64_eq_mask(i64 noundef %74, i64 noundef %79)
  store i64 %80, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %81 = load i32, ptr %11, align 4, !tbaa !11
  %82 = zext i32 %81 to i64
  %83 = getelementptr inbounds [4 x i64], ptr %7, i64 0, i64 %82
  %84 = load i64, ptr %83, align 8, !tbaa !9
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = load i32, ptr %11, align 4, !tbaa !11
  %87 = zext i32 %86 to i64
  %88 = getelementptr inbounds i64, ptr %85, i64 %87
  %89 = load i64, ptr %88, align 8, !tbaa !9
  %90 = call i64 @FStar_UInt64_gte_mask(i64 noundef %84, i64 noundef %89)
  %91 = xor i64 %90, -1
  store i64 %91, ptr %15, align 8, !tbaa !9
  %92 = load i64, ptr %14, align 8, !tbaa !9
  %93 = load i64, ptr %10, align 8, !tbaa !9
  %94 = and i64 %92, %93
  %95 = load i64, ptr %14, align 8, !tbaa !9
  %96 = xor i64 %95, -1
  %97 = load i64, ptr %15, align 8, !tbaa !9
  %98 = and i64 %97, -1
  %99 = load i64, ptr %15, align 8, !tbaa !9
  %100 = xor i64 %99, -1
  %101 = and i64 %100, 0
  %102 = or i64 %98, %101
  %103 = and i64 %96, %102
  %104 = or i64 %94, %103
  store i64 %104, ptr %10, align 8, !tbaa !9
  %105 = load i32, ptr %11, align 4, !tbaa !11
  %106 = add i32 %105, 1
  store i32 %106, ptr %11, align 4, !tbaa !11
  %107 = load i32, ptr %11, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %108 = load i32, ptr %11, align 4, !tbaa !11
  %109 = zext i32 %108 to i64
  %110 = getelementptr inbounds [4 x i64], ptr %7, i64 0, i64 %109
  %111 = load i64, ptr %110, align 8, !tbaa !9
  %112 = load ptr, ptr %4, align 8, !tbaa !5
  %113 = load i32, ptr %11, align 4, !tbaa !11
  %114 = zext i32 %113 to i64
  %115 = getelementptr inbounds i64, ptr %112, i64 %114
  %116 = load i64, ptr %115, align 8, !tbaa !9
  %117 = call i64 @FStar_UInt64_eq_mask(i64 noundef %111, i64 noundef %116)
  store i64 %117, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %118 = load i32, ptr %11, align 4, !tbaa !11
  %119 = zext i32 %118 to i64
  %120 = getelementptr inbounds [4 x i64], ptr %7, i64 0, i64 %119
  %121 = load i64, ptr %120, align 8, !tbaa !9
  %122 = load ptr, ptr %4, align 8, !tbaa !5
  %123 = load i32, ptr %11, align 4, !tbaa !11
  %124 = zext i32 %123 to i64
  %125 = getelementptr inbounds i64, ptr %122, i64 %124
  %126 = load i64, ptr %125, align 8, !tbaa !9
  %127 = call i64 @FStar_UInt64_gte_mask(i64 noundef %121, i64 noundef %126)
  %128 = xor i64 %127, -1
  store i64 %128, ptr %17, align 8, !tbaa !9
  %129 = load i64, ptr %16, align 8, !tbaa !9
  %130 = load i64, ptr %10, align 8, !tbaa !9
  %131 = and i64 %129, %130
  %132 = load i64, ptr %16, align 8, !tbaa !9
  %133 = xor i64 %132, -1
  %134 = load i64, ptr %17, align 8, !tbaa !9
  %135 = and i64 %134, -1
  %136 = load i64, ptr %17, align 8, !tbaa !9
  %137 = xor i64 %136, -1
  %138 = and i64 %137, 0
  %139 = or i64 %135, %138
  %140 = and i64 %133, %139
  %141 = or i64 %131, %140
  store i64 %141, ptr %10, align 8, !tbaa !9
  %142 = load i32, ptr %11, align 4, !tbaa !11
  %143 = add i32 %142, 1
  store i32 %143, ptr %11, align 4, !tbaa !11
  %144 = load i32, ptr %11, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %145 = load i32, ptr %11, align 4, !tbaa !11
  %146 = zext i32 %145 to i64
  %147 = getelementptr inbounds [4 x i64], ptr %7, i64 0, i64 %146
  %148 = load i64, ptr %147, align 8, !tbaa !9
  %149 = load ptr, ptr %4, align 8, !tbaa !5
  %150 = load i32, ptr %11, align 4, !tbaa !11
  %151 = zext i32 %150 to i64
  %152 = getelementptr inbounds i64, ptr %149, i64 %151
  %153 = load i64, ptr %152, align 8, !tbaa !9
  %154 = call i64 @FStar_UInt64_eq_mask(i64 noundef %148, i64 noundef %153)
  store i64 %154, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %155 = load i32, ptr %11, align 4, !tbaa !11
  %156 = zext i32 %155 to i64
  %157 = getelementptr inbounds [4 x i64], ptr %7, i64 0, i64 %156
  %158 = load i64, ptr %157, align 8, !tbaa !9
  %159 = load ptr, ptr %4, align 8, !tbaa !5
  %160 = load i32, ptr %11, align 4, !tbaa !11
  %161 = zext i32 %160 to i64
  %162 = getelementptr inbounds i64, ptr %159, i64 %161
  %163 = load i64, ptr %162, align 8, !tbaa !9
  %164 = call i64 @FStar_UInt64_gte_mask(i64 noundef %158, i64 noundef %163)
  %165 = xor i64 %164, -1
  store i64 %165, ptr %19, align 8, !tbaa !9
  %166 = load i64, ptr %18, align 8, !tbaa !9
  %167 = load i64, ptr %10, align 8, !tbaa !9
  %168 = and i64 %166, %167
  %169 = load i64, ptr %18, align 8, !tbaa !9
  %170 = xor i64 %169, -1
  %171 = load i64, ptr %19, align 8, !tbaa !9
  %172 = and i64 %171, -1
  %173 = load i64, ptr %19, align 8, !tbaa !9
  %174 = xor i64 %173, -1
  %175 = and i64 %174, 0
  %176 = or i64 %172, %175
  %177 = and i64 %170, %176
  %178 = or i64 %168, %177
  store i64 %178, ptr %10, align 8, !tbaa !9
  %179 = load i32, ptr %11, align 4, !tbaa !11
  %180 = add i32 %179, 1
  store i32 %180, ptr %11, align 4, !tbaa !11
  %181 = load i32, ptr %11, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %182

182:                                              ; preds = %33
  br label %183

183:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %184 = load i64, ptr %10, align 8, !tbaa !9
  store i64 %184, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %185 = load i64, ptr %9, align 8, !tbaa !9
  %186 = load i64, ptr %20, align 8, !tbaa !9
  %187 = and i64 %185, %186
  store i64 %187, ptr %21, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %188 = load ptr, ptr %4, align 8, !tbaa !5
  %189 = call i64 @Hacl_Bignum_Lib_bn_get_top_index_u64(i32 noundef 4, ptr noundef %188)
  %190 = trunc i64 %189 to i32
  %191 = mul i32 64, %190
  store i32 %191, ptr %22, align 4, !tbaa !11
  %192 = load i64, ptr %21, align 8, !tbaa !9
  %193 = icmp eq i64 %192, -1
  br i1 %193, label %194, label %207

194:                                              ; preds = %183
  call void @llvm.lifetime.start.p0(i64 32, ptr %23) #6
  call void @llvm.memset.p0.i64(ptr align 16 %23, i8 0, i64 32, i1 false)
  %195 = load i32, ptr %22, align 4, !tbaa !11
  %196 = load ptr, ptr %4, align 8, !tbaa !5
  %197 = getelementptr inbounds [4 x i64], ptr %23, i64 0, i64 0
  call void @precompr2(i32 noundef %195, ptr noundef %196, ptr noundef %197)
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %198 = load ptr, ptr %4, align 8, !tbaa !5
  %199 = getelementptr inbounds i64, ptr %198, i64 0
  %200 = load i64, ptr %199, align 8, !tbaa !9
  %201 = call i64 @Hacl_Bignum_ModInvLimb_mod_inv_uint64(i64 noundef %200)
  store i64 %201, ptr %24, align 8, !tbaa !9
  %202 = load ptr, ptr %4, align 8, !tbaa !5
  %203 = load i64, ptr %24, align 8, !tbaa !9
  %204 = getelementptr inbounds [4 x i64], ptr %23, i64 0, i64 0
  %205 = load ptr, ptr %5, align 8, !tbaa !5
  %206 = load ptr, ptr %6, align 8, !tbaa !5
  call void @bn_slow_precomp(ptr noundef %202, i64 noundef %203, ptr noundef %204, ptr noundef %205, ptr noundef %206)
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #6
  br label %209

207:                                              ; preds = %183
  %208 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 8 %208, i8 0, i64 32, i1 false)
  br label %209

209:                                              ; preds = %207, %194
  %210 = load i64, ptr %21, align 8, !tbaa !9
  %211 = icmp eq i64 %210, -1
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #6
  ret i1 %211
}

; Function Attrs: noinline nounwind uwtable
declare hidden i64 @FStar_UInt64_eq_mask(i64 noundef, i64 noundef) #3

; Function Attrs: noinline nounwind uwtable
declare hidden i64 @FStar_UInt64_gte_mask(i64 noundef, i64 noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @Hacl_Bignum_Lib_bn_get_top_index_u64(i32 noundef, ptr noundef) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @precompr2(i32 noundef, ptr noundef, ptr noundef) #4

declare i64 @Hacl_Bignum_ModInvLimb_mod_inv_uint64(i64 noundef) #5

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @bn_slow_precomp(ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) #4

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}


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

; Function Attrs: nounwind uwtable
define dso_local noundef zeroext i1 @Hacl_Bignum256_mod(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #2 {
  %4 = alloca [4 x i64], align 16
  %5 = load i64, ptr %0, align 8, !tbaa !5
  %6 = and i64 %5, 1
  %7 = tail call i64 @FStar_UInt64_eq_mask(i64 noundef 1, i64 noundef %5)
  %8 = load i64, ptr %0, align 8, !tbaa !5
  %9 = tail call i64 @FStar_UInt64_gte_mask(i64 noundef 1, i64 noundef %8)
  %.demorgan = or i64 %9, %7
  %10 = xor i64 %.demorgan, -1
  %11 = getelementptr inbounds i8, ptr %0, i64 8
  %12 = load i64, ptr %11, align 8, !tbaa !5
  %13 = tail call i64 @FStar_UInt64_eq_mask(i64 noundef 0, i64 noundef %12)
  %14 = load i64, ptr %11, align 8, !tbaa !5
  %15 = tail call i64 @FStar_UInt64_gte_mask(i64 noundef 0, i64 noundef %14)
  %16 = and i64 %13, %10
  %.demorgan67 = or i64 %15, %13
  %17 = xor i64 %.demorgan67, -1
  %18 = or i64 %16, %17
  %19 = getelementptr inbounds i8, ptr %0, i64 16
  %20 = load i64, ptr %19, align 8, !tbaa !5
  %21 = tail call i64 @FStar_UInt64_eq_mask(i64 noundef 0, i64 noundef %20)
  %22 = load i64, ptr %19, align 8, !tbaa !5
  %23 = tail call i64 @FStar_UInt64_gte_mask(i64 noundef 0, i64 noundef %22)
  %24 = and i64 %21, %18
  %.demorgan68 = or i64 %23, %21
  %25 = xor i64 %.demorgan68, -1
  %26 = or i64 %24, %25
  %27 = getelementptr inbounds i8, ptr %0, i64 24
  %28 = load i64, ptr %27, align 8, !tbaa !5
  %29 = tail call i64 @FStar_UInt64_eq_mask(i64 noundef 0, i64 noundef %28)
  %30 = load i64, ptr %27, align 8, !tbaa !5
  %31 = tail call i64 @FStar_UInt64_gte_mask(i64 noundef 0, i64 noundef %30)
  %32 = and i64 %29, %26
  %.demorgan69 = or i64 %31, %29
  %33 = xor i64 %.demorgan69, -1
  %34 = or i64 %32, %33
  %35 = icmp ne i64 %6, 0
  %36 = tail call i64 @Hacl_Bignum_Lib_bn_get_top_index_u64(i32 noundef 4, ptr noundef nonnull %0)
  %37 = icmp eq i64 %34, -1
  %38 = select i1 %35, i1 %37, i1 false
  br i1 %38, label %39, label %44

39:                                               ; preds = %3
  %40 = trunc i64 %36 to i32
  %41 = shl i32 %40, 6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %4, i8 0, i64 32, i1 false)
  call void @precompr2(i32 noundef %41, ptr noundef nonnull %0, ptr noundef nonnull %4)
  %42 = load i64, ptr %0, align 8, !tbaa !5
  %43 = call i64 @Hacl_Bignum_ModInvLimb_mod_inv_uint64(i64 noundef %42) #6
  call void @bn_slow_precomp(ptr noundef nonnull %0, i64 noundef %43, ptr noundef nonnull %4, ptr noundef %1, ptr noundef %2)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  br label %45

44:                                               ; preds = %3
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %2, i8 0, i64 32, i1 false)
  br label %45

45:                                               ; preds = %44, %39
  ret i1 %38
}

; Function Attrs: noinline nounwind uwtable
declare hidden i64 @FStar_UInt64_eq_mask(i64 noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: noinline nounwind uwtable
declare hidden i64 @FStar_UInt64_gte_mask(i64 noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @Hacl_Bignum_Lib_bn_get_top_index_u64(i32 noundef, ptr noundef) local_unnamed_addr #4

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

declare i64 @Hacl_Bignum_ModInvLimb_mod_inv_uint64(i64 noundef) local_unnamed_addr #5

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @bn_slow_precomp(ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { 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 #3 = { noinline 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 = { 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 = { "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 = { 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}


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