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

; 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 i64 @Hacl_IntTypes_Intrinsics_sub_borrow_u64(i64 noundef, i64 noundef, i64 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: nounwind uwtable
define dso_local void @Hacl_Bignum256_sub_mod(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #3 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca ptr, align 8
  %22 = alloca i64, align 8
  %23 = alloca [4 x i64], align 16
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca ptr, align 8
  %28 = alloca i64, align 8
  %29 = alloca i64, align 8
  %30 = alloca ptr, align 8
  %31 = alloca i64, align 8
  %32 = alloca i64, align 8
  %33 = alloca ptr, align 8
  %34 = alloca i64, align 8
  %35 = alloca i64, align 8
  %36 = alloca ptr, align 8
  %37 = alloca i64, align 8
  %38 = alloca i64, align 8
  %39 = alloca i32, align 4
  %40 = alloca ptr, align 8
  %41 = alloca i64, align 8
  %42 = alloca ptr, align 8
  %43 = alloca i64, align 8
  %44 = alloca ptr, align 8
  %45 = alloca i64, align 8
  %46 = alloca ptr, align 8
  %47 = alloca i64, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  store i64 0, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = getelementptr inbounds i64, ptr %48, i64 0
  %50 = load i64, ptr %49, align 8, !tbaa !9
  store i64 %50, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  %52 = getelementptr inbounds i64, ptr %51, i64 0
  %53 = load i64, ptr %52, align 8, !tbaa !9
  store i64 %53, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %54 = load ptr, ptr %8, align 8, !tbaa !5
  %55 = getelementptr inbounds i64, ptr %54, i64 0
  store ptr %55, ptr %12, align 8, !tbaa !5
  %56 = load i64, ptr %9, align 8, !tbaa !9
  %57 = load i64, ptr %10, align 8, !tbaa !9
  %58 = load i64, ptr %11, align 8, !tbaa !9
  %59 = load ptr, ptr %12, align 8, !tbaa !5
  %60 = call i64 @Hacl_IntTypes_Intrinsics_sub_borrow_u64(i64 noundef %56, i64 noundef %57, i64 noundef %58, ptr noundef %59)
  store i64 %60, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = getelementptr inbounds i64, ptr %61, i64 1
  %63 = load i64, ptr %62, align 8, !tbaa !9
  store i64 %63, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  %65 = getelementptr inbounds i64, ptr %64, i64 1
  %66 = load i64, ptr %65, align 8, !tbaa !9
  store i64 %66, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  %68 = getelementptr inbounds i64, ptr %67, i64 0
  %69 = getelementptr inbounds i64, ptr %68, i64 1
  store ptr %69, ptr %15, align 8, !tbaa !5
  %70 = load i64, ptr %9, align 8, !tbaa !9
  %71 = load i64, ptr %13, align 8, !tbaa !9
  %72 = load i64, ptr %14, align 8, !tbaa !9
  %73 = load ptr, ptr %15, align 8, !tbaa !5
  %74 = call i64 @Hacl_IntTypes_Intrinsics_sub_borrow_u64(i64 noundef %70, i64 noundef %71, i64 noundef %72, ptr noundef %73)
  store i64 %74, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  %76 = getelementptr inbounds i64, ptr %75, i64 2
  %77 = load i64, ptr %76, align 8, !tbaa !9
  store i64 %77, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %78 = load ptr, ptr %7, align 8, !tbaa !5
  %79 = getelementptr inbounds i64, ptr %78, i64 2
  %80 = load i64, ptr %79, align 8, !tbaa !9
  store i64 %80, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %81 = load ptr, ptr %8, align 8, !tbaa !5
  %82 = getelementptr inbounds i64, ptr %81, i64 0
  %83 = getelementptr inbounds i64, ptr %82, i64 2
  store ptr %83, ptr %18, align 8, !tbaa !5
  %84 = load i64, ptr %9, align 8, !tbaa !9
  %85 = load i64, ptr %16, align 8, !tbaa !9
  %86 = load i64, ptr %17, align 8, !tbaa !9
  %87 = load ptr, ptr %18, align 8, !tbaa !5
  %88 = call i64 @Hacl_IntTypes_Intrinsics_sub_borrow_u64(i64 noundef %84, i64 noundef %85, i64 noundef %86, ptr noundef %87)
  store i64 %88, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %89 = load ptr, ptr %6, align 8, !tbaa !5
  %90 = getelementptr inbounds i64, ptr %89, i64 3
  %91 = load i64, ptr %90, align 8, !tbaa !9
  store i64 %91, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %92 = load ptr, ptr %7, align 8, !tbaa !5
  %93 = getelementptr inbounds i64, ptr %92, i64 3
  %94 = load i64, ptr %93, align 8, !tbaa !9
  store i64 %94, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %95 = load ptr, ptr %8, align 8, !tbaa !5
  %96 = getelementptr inbounds i64, ptr %95, i64 0
  %97 = getelementptr inbounds i64, ptr %96, i64 3
  store ptr %97, ptr %21, align 8, !tbaa !5
  %98 = load i64, ptr %9, align 8, !tbaa !9
  %99 = load i64, ptr %19, align 8, !tbaa !9
  %100 = load i64, ptr %20, align 8, !tbaa !9
  %101 = load ptr, ptr %21, align 8, !tbaa !5
  %102 = call i64 @Hacl_IntTypes_Intrinsics_sub_borrow_u64(i64 noundef %98, i64 noundef %99, i64 noundef %100, ptr noundef %101)
  store i64 %102, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  %103 = load i64, ptr %9, align 8, !tbaa !9
  store i64 %103, ptr %22, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %23) #4
  call void @llvm.memset.p0.i64(ptr align 16 %23, i8 0, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  store i64 0, ptr %24, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  %104 = load ptr, ptr %8, align 8, !tbaa !5
  %105 = getelementptr inbounds i64, ptr %104, i64 0
  %106 = load i64, ptr %105, align 8, !tbaa !9
  store i64 %106, ptr %25, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = getelementptr inbounds i64, ptr %107, i64 0
  %109 = load i64, ptr %108, align 8, !tbaa !9
  store i64 %109, ptr %26, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  %110 = getelementptr inbounds [4 x i64], ptr %23, i64 0, i64 0
  %111 = getelementptr inbounds i64, ptr %110, i64 0
  store ptr %111, ptr %27, align 8, !tbaa !5
  %112 = load i64, ptr %24, align 8, !tbaa !9
  %113 = load i64, ptr %25, align 8, !tbaa !9
  %114 = load i64, ptr %26, align 8, !tbaa !9
  %115 = load ptr, ptr %27, align 8, !tbaa !5
  %116 = call i64 @Hacl_IntTypes_Intrinsics_add_carry_u64(i64 noundef %112, i64 noundef %113, i64 noundef %114, ptr noundef %115)
  store i64 %116, ptr %24, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #4
  %117 = load ptr, ptr %8, align 8, !tbaa !5
  %118 = getelementptr inbounds i64, ptr %117, i64 1
  %119 = load i64, ptr %118, align 8, !tbaa !9
  store i64 %119, ptr %28, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #4
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  %121 = getelementptr inbounds i64, ptr %120, i64 1
  %122 = load i64, ptr %121, align 8, !tbaa !9
  store i64 %122, ptr %29, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #4
  %123 = getelementptr inbounds [4 x i64], ptr %23, i64 0, i64 0
  %124 = getelementptr inbounds i64, ptr %123, i64 0
  %125 = getelementptr inbounds i64, ptr %124, i64 1
  store ptr %125, ptr %30, align 8, !tbaa !5
  %126 = load i64, ptr %24, align 8, !tbaa !9
  %127 = load i64, ptr %28, align 8, !tbaa !9
  %128 = load i64, ptr %29, align 8, !tbaa !9
  %129 = load ptr, ptr %30, align 8, !tbaa !5
  %130 = call i64 @Hacl_IntTypes_Intrinsics_add_carry_u64(i64 noundef %126, i64 noundef %127, i64 noundef %128, ptr noundef %129)
  store i64 %130, ptr %24, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #4
  %131 = load ptr, ptr %8, align 8, !tbaa !5
  %132 = getelementptr inbounds i64, ptr %131, i64 2
  %133 = load i64, ptr %132, align 8, !tbaa !9
  store i64 %133, ptr %31, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #4
  %134 = load ptr, ptr %5, align 8, !tbaa !5
  %135 = getelementptr inbounds i64, ptr %134, i64 2
  %136 = load i64, ptr %135, align 8, !tbaa !9
  store i64 %136, ptr %32, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #4
  %137 = getelementptr inbounds [4 x i64], ptr %23, i64 0, i64 0
  %138 = getelementptr inbounds i64, ptr %137, i64 0
  %139 = getelementptr inbounds i64, ptr %138, i64 2
  store ptr %139, ptr %33, align 8, !tbaa !5
  %140 = load i64, ptr %24, align 8, !tbaa !9
  %141 = load i64, ptr %31, align 8, !tbaa !9
  %142 = load i64, ptr %32, align 8, !tbaa !9
  %143 = load ptr, ptr %33, align 8, !tbaa !5
  %144 = call i64 @Hacl_IntTypes_Intrinsics_add_carry_u64(i64 noundef %140, i64 noundef %141, i64 noundef %142, ptr noundef %143)
  store i64 %144, ptr %24, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #4
  %145 = load ptr, ptr %8, align 8, !tbaa !5
  %146 = getelementptr inbounds i64, ptr %145, i64 3
  %147 = load i64, ptr %146, align 8, !tbaa !9
  store i64 %147, ptr %34, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #4
  %148 = load ptr, ptr %5, align 8, !tbaa !5
  %149 = getelementptr inbounds i64, ptr %148, i64 3
  %150 = load i64, ptr %149, align 8, !tbaa !9
  store i64 %150, ptr %35, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #4
  %151 = getelementptr inbounds [4 x i64], ptr %23, i64 0, i64 0
  %152 = getelementptr inbounds i64, ptr %151, i64 0
  %153 = getelementptr inbounds i64, ptr %152, i64 3
  store ptr %153, ptr %36, align 8, !tbaa !5
  %154 = load i64, ptr %24, align 8, !tbaa !9
  %155 = load i64, ptr %34, align 8, !tbaa !9
  %156 = load i64, ptr %35, align 8, !tbaa !9
  %157 = load ptr, ptr %36, align 8, !tbaa !5
  %158 = call i64 @Hacl_IntTypes_Intrinsics_add_carry_u64(i64 noundef %154, i64 noundef %155, i64 noundef %156, ptr noundef %157)
  store i64 %158, ptr %24, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #4
  %159 = load i64, ptr %24, align 8, !tbaa !9
  store i64 %159, ptr %37, align 8, !tbaa !9
  %160 = load i64, ptr %37, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #4
  %161 = load i64, ptr %22, align 8, !tbaa !9
  %162 = sub i64 0, %161
  store i64 %162, ptr %38, align 8, !tbaa !9
  br label %163

163:                                              ; preds = %4
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #4
  store i32 0, ptr %39, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #4
  %164 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %164, ptr %40, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #4
  %165 = load i64, ptr %38, align 8, !tbaa !9
  %166 = load i32, ptr %39, align 4, !tbaa !11
  %167 = zext i32 %166 to i64
  %168 = getelementptr inbounds [4 x i64], ptr %23, i64 0, i64 %167
  %169 = load i64, ptr %168, align 8, !tbaa !9
  %170 = and i64 %165, %169
  %171 = load i64, ptr %38, align 8, !tbaa !9
  %172 = xor i64 %171, -1
  %173 = load ptr, ptr %8, align 8, !tbaa !5
  %174 = load i32, ptr %39, align 4, !tbaa !11
  %175 = zext i32 %174 to i64
  %176 = getelementptr inbounds i64, ptr %173, i64 %175
  %177 = load i64, ptr %176, align 8, !tbaa !9
  %178 = and i64 %172, %177
  %179 = or i64 %170, %178
  store i64 %179, ptr %41, align 8, !tbaa !9
  %180 = load i64, ptr %41, align 8, !tbaa !9
  %181 = load ptr, ptr %40, align 8, !tbaa !5
  %182 = load i32, ptr %39, align 4, !tbaa !11
  %183 = zext i32 %182 to i64
  %184 = getelementptr inbounds i64, ptr %181, i64 %183
  store i64 %180, ptr %184, align 8, !tbaa !9
  %185 = load i32, ptr %39, align 4, !tbaa !11
  %186 = add i32 %185, 1
  store i32 %186, ptr %39, align 4, !tbaa !11
  %187 = load i32, ptr %39, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #4
  %188 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %188, ptr %42, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #4
  %189 = load i64, ptr %38, align 8, !tbaa !9
  %190 = load i32, ptr %39, align 4, !tbaa !11
  %191 = zext i32 %190 to i64
  %192 = getelementptr inbounds [4 x i64], ptr %23, i64 0, i64 %191
  %193 = load i64, ptr %192, align 8, !tbaa !9
  %194 = and i64 %189, %193
  %195 = load i64, ptr %38, align 8, !tbaa !9
  %196 = xor i64 %195, -1
  %197 = load ptr, ptr %8, align 8, !tbaa !5
  %198 = load i32, ptr %39, align 4, !tbaa !11
  %199 = zext i32 %198 to i64
  %200 = getelementptr inbounds i64, ptr %197, i64 %199
  %201 = load i64, ptr %200, align 8, !tbaa !9
  %202 = and i64 %196, %201
  %203 = or i64 %194, %202
  store i64 %203, ptr %43, align 8, !tbaa !9
  %204 = load i64, ptr %43, align 8, !tbaa !9
  %205 = load ptr, ptr %42, align 8, !tbaa !5
  %206 = load i32, ptr %39, align 4, !tbaa !11
  %207 = zext i32 %206 to i64
  %208 = getelementptr inbounds i64, ptr %205, i64 %207
  store i64 %204, ptr %208, align 8, !tbaa !9
  %209 = load i32, ptr %39, align 4, !tbaa !11
  %210 = add i32 %209, 1
  store i32 %210, ptr %39, align 4, !tbaa !11
  %211 = load i32, ptr %39, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #4
  %212 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %212, ptr %44, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #4
  %213 = load i64, ptr %38, align 8, !tbaa !9
  %214 = load i32, ptr %39, align 4, !tbaa !11
  %215 = zext i32 %214 to i64
  %216 = getelementptr inbounds [4 x i64], ptr %23, i64 0, i64 %215
  %217 = load i64, ptr %216, align 8, !tbaa !9
  %218 = and i64 %213, %217
  %219 = load i64, ptr %38, align 8, !tbaa !9
  %220 = xor i64 %219, -1
  %221 = load ptr, ptr %8, align 8, !tbaa !5
  %222 = load i32, ptr %39, align 4, !tbaa !11
  %223 = zext i32 %222 to i64
  %224 = getelementptr inbounds i64, ptr %221, i64 %223
  %225 = load i64, ptr %224, align 8, !tbaa !9
  %226 = and i64 %220, %225
  %227 = or i64 %218, %226
  store i64 %227, ptr %45, align 8, !tbaa !9
  %228 = load i64, ptr %45, align 8, !tbaa !9
  %229 = load ptr, ptr %44, align 8, !tbaa !5
  %230 = load i32, ptr %39, align 4, !tbaa !11
  %231 = zext i32 %230 to i64
  %232 = getelementptr inbounds i64, ptr %229, i64 %231
  store i64 %228, ptr %232, align 8, !tbaa !9
  %233 = load i32, ptr %39, align 4, !tbaa !11
  %234 = add i32 %233, 1
  store i32 %234, ptr %39, align 4, !tbaa !11
  %235 = load i32, ptr %39, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #4
  %236 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %236, ptr %46, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #4
  %237 = load i64, ptr %38, align 8, !tbaa !9
  %238 = load i32, ptr %39, align 4, !tbaa !11
  %239 = zext i32 %238 to i64
  %240 = getelementptr inbounds [4 x i64], ptr %23, i64 0, i64 %239
  %241 = load i64, ptr %240, align 8, !tbaa !9
  %242 = and i64 %237, %241
  %243 = load i64, ptr %38, align 8, !tbaa !9
  %244 = xor i64 %243, -1
  %245 = load ptr, ptr %8, align 8, !tbaa !5
  %246 = load i32, ptr %39, align 4, !tbaa !11
  %247 = zext i32 %246 to i64
  %248 = getelementptr inbounds i64, ptr %245, i64 %247
  %249 = load i64, ptr %248, align 8, !tbaa !9
  %250 = and i64 %244, %249
  %251 = or i64 %242, %250
  store i64 %251, ptr %47, align 8, !tbaa !9
  %252 = load i64, ptr %47, align 8, !tbaa !9
  %253 = load ptr, ptr %46, align 8, !tbaa !5
  %254 = load i32, ptr %39, align 4, !tbaa !11
  %255 = zext i32 %254 to i64
  %256 = getelementptr inbounds i64, ptr %253, i64 %255
  store i64 %252, ptr %256, align 8, !tbaa !9
  %257 = load i32, ptr %39, align 4, !tbaa !11
  %258 = add i32 %257, 1
  store i32 %258, ptr %39, align 4, !tbaa !11
  %259 = load i32, ptr %39, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #4
  br label %260

260:                                              ; preds = %163
  br label %261

261:                                              ; preds = %260
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  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 = { 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 = !{!"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: inlinehint nounwind uwtable
declare hidden i64 @Hacl_IntTypes_Intrinsics_add_carry_u64(i64 noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

; 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 i64 @Hacl_IntTypes_Intrinsics_sub_borrow_u64(i64 noundef, i64 noundef, i64 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: nounwind uwtable
define dso_local void @Hacl_Bignum256_sub_mod(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, ptr noundef %3) local_unnamed_addr #3 {
  %5 = alloca [4 x i64], align 16
  %6 = load i64, ptr %1, align 8, !tbaa !5
  %7 = load i64, ptr %2, align 8, !tbaa !5
  %8 = tail call i64 @Hacl_IntTypes_Intrinsics_sub_borrow_u64(i64 noundef 0, i64 noundef %6, i64 noundef %7, ptr noundef %3)
  %9 = getelementptr inbounds i8, ptr %1, i64 8
  %10 = load i64, ptr %9, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %2, i64 8
  %12 = load i64, ptr %11, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %3, i64 8
  %14 = tail call i64 @Hacl_IntTypes_Intrinsics_sub_borrow_u64(i64 noundef %8, i64 noundef %10, i64 noundef %12, ptr noundef nonnull %13)
  %15 = getelementptr inbounds i8, ptr %1, i64 16
  %16 = load i64, ptr %15, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %2, i64 16
  %18 = load i64, ptr %17, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %3, i64 16
  %20 = tail call i64 @Hacl_IntTypes_Intrinsics_sub_borrow_u64(i64 noundef %14, i64 noundef %16, i64 noundef %18, ptr noundef nonnull %19)
  %21 = getelementptr inbounds i8, ptr %1, i64 24
  %22 = load i64, ptr %21, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %2, i64 24
  %24 = load i64, ptr %23, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %3, i64 24
  %26 = tail call i64 @Hacl_IntTypes_Intrinsics_sub_borrow_u64(i64 noundef %20, i64 noundef %22, i64 noundef %24, ptr noundef nonnull %25)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %5, i8 0, i64 32, i1 false)
  %27 = load i64, ptr %3, align 8, !tbaa !5
  %28 = load i64, ptr %0, align 8, !tbaa !5
  %29 = call i64 @Hacl_IntTypes_Intrinsics_add_carry_u64(i64 noundef 0, i64 noundef %27, i64 noundef %28, ptr noundef nonnull %5)
  %30 = load i64, ptr %13, align 8, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %0, i64 8
  %32 = load i64, ptr %31, align 8, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %5, i64 8
  %34 = call i64 @Hacl_IntTypes_Intrinsics_add_carry_u64(i64 noundef %29, i64 noundef %30, i64 noundef %32, ptr noundef nonnull %33)
  %35 = load i64, ptr %19, align 8, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %0, i64 16
  %37 = load i64, ptr %36, align 8, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %5, i64 16
  %39 = call i64 @Hacl_IntTypes_Intrinsics_add_carry_u64(i64 noundef %34, i64 noundef %35, i64 noundef %37, ptr noundef nonnull %38)
  %40 = load i64, ptr %25, align 8, !tbaa !5
  %41 = getelementptr inbounds i8, ptr %0, i64 24
  %42 = load i64, ptr %41, align 8, !tbaa !5
  %43 = getelementptr inbounds i8, ptr %5, i64 24
  %44 = call i64 @Hacl_IntTypes_Intrinsics_add_carry_u64(i64 noundef %39, i64 noundef %40, i64 noundef %42, ptr noundef nonnull %43)
  %45 = sub i64 0, %26
  %46 = add i64 %26, -1
  %47 = load <2 x i64>, ptr %5, align 16, !tbaa !5
  %48 = insertelement <2 x i64> poison, i64 %45, i64 0
  %49 = shufflevector <2 x i64> %48, <2 x i64> poison, <2 x i32> zeroinitializer
  %50 = and <2 x i64> %47, %49
  %51 = load <2 x i64>, ptr %3, align 8, !tbaa !5
  %52 = insertelement <2 x i64> poison, i64 %46, i64 0
  %53 = shufflevector <2 x i64> %52, <2 x i64> poison, <2 x i32> zeroinitializer
  %54 = and <2 x i64> %51, %53
  %55 = or <2 x i64> %54, %50
  store <2 x i64> %55, ptr %3, align 8, !tbaa !5
  %56 = load <2 x i64>, ptr %38, align 16, !tbaa !5
  %57 = and <2 x i64> %56, %49
  %58 = load <2 x i64>, ptr %19, align 8, !tbaa !5
  %59 = and <2 x i64> %58, %53
  %60 = or <2 x i64> %59, %57
  store <2 x i64> %60, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #4
  ret void
}

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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}


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