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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @load_qelem_modq(ptr noundef, ptr noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @qinv(ptr noundef, ptr noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @qmul(ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @store_qelem(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local zeroext i1 @Hacl_K256_ECDSA_ecdsa_verify_hashed_msg(ptr noundef %0, ptr noundef %1, ptr noundef %2) #3 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca [35 x i64], align 16
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i8, align 1
  %16 = alloca i8, align 1
  %17 = alloca i8, align 1
  %18 = alloca i8, align 1
  %19 = alloca i32, align 4
  %20 = alloca [4 x i64], align 16
  %21 = alloca [15 x i64], align 16
  %22 = alloca [5 x i64], align 16
  %23 = alloca ptr, align 8
  %24 = alloca i8, align 1
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca [32 x i8], align 16
  %28 = alloca [5 x i64], align 16
  %29 = alloca [5 x i64], align 16
  %30 = alloca [5 x i64], align 16
  %31 = alloca i8, align 1
  %32 = alloca i8, align 1
  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
  call void @llvm.lifetime.start.p0(i64 280, ptr %8) #4
  call void @llvm.memset.p0.i64(ptr align 16 %8, i8 0, i64 280, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %33 = getelementptr inbounds [35 x i64], ptr %8, i64 0, i64 0
  store ptr %33, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %34 = getelementptr inbounds [35 x i64], ptr %8, i64 0, i64 0
  %35 = getelementptr inbounds i64, ptr %34, i64 15
  store ptr %35, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %36 = getelementptr inbounds [35 x i64], ptr %8, i64 0, i64 0
  %37 = getelementptr inbounds i64, ptr %36, i64 19
  store ptr %37, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %38 = getelementptr inbounds [35 x i64], ptr %8, i64 0, i64 0
  %39 = getelementptr inbounds i64, ptr %38, i64 23
  store ptr %39, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %40 = getelementptr inbounds [35 x i64], ptr %8, i64 0, i64 0
  %41 = getelementptr inbounds i64, ptr %40, i64 27
  store ptr %41, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %42 = getelementptr inbounds [35 x i64], ptr %8, i64 0, i64 0
  %43 = getelementptr inbounds i64, ptr %42, i64 31
  store ptr %43, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #4
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = call zeroext i1 @load_point_vartime(ptr noundef %44, ptr noundef %45)
  %47 = zext i1 %46 to i8
  store i8 %47, ptr %15, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #4
  %48 = load ptr, ptr %10, align 8, !tbaa !5
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = call zeroext i1 @load_qelem_vartime(ptr noundef %48, ptr noundef %49)
  %51 = zext i1 %50 to i8
  store i8 %51, ptr %16, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #4
  %52 = load ptr, ptr %11, align 8, !tbaa !5
  %53 = load ptr, ptr %7, align 8, !tbaa !5
  %54 = getelementptr inbounds i8, ptr %53, i64 32
  %55 = call zeroext i1 @load_qelem_vartime(ptr noundef %52, ptr noundef %54)
  %56 = zext i1 %55 to i8
  store i8 %56, ptr %17, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #4
  %57 = load i8, ptr %16, align 1, !tbaa !9, !range !11, !noundef !12
  %58 = trunc i8 %57 to i1
  br i1 %58, label %59, label %62

59:                                               ; preds = %3
  %60 = load i8, ptr %17, align 1, !tbaa !9, !range !11, !noundef !12
  %61 = trunc i8 %60 to i1
  br label %62

62:                                               ; preds = %59, %3
  %63 = phi i1 [ false, %3 ], [ %61, %59 ]
  %64 = zext i1 %63 to i8
  store i8 %64, ptr %18, align 1, !tbaa !9
  %65 = load ptr, ptr %14, align 8, !tbaa !5
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  call void @load_qelem_modq(ptr noundef %65, ptr noundef %66)
  %67 = load i8, ptr %15, align 1, !tbaa !9, !range !11, !noundef !12
  %68 = trunc i8 %67 to i1
  br i1 %68, label %69, label %72

69:                                               ; preds = %62
  %70 = load i8, ptr %18, align 1, !tbaa !9, !range !11, !noundef !12
  %71 = trunc i8 %70 to i1
  br i1 %71, label %73, label %72

72:                                               ; preds = %69, %62
  store i1 false, ptr %4, align 1
  store i32 1, ptr %19, align 4
  br label %137

73:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #4
  call void @llvm.memset.p0.i64(ptr align 16 %20, i8 0, i64 32, i1 false)
  %74 = getelementptr inbounds [4 x i64], ptr %20, i64 0, i64 0
  %75 = load ptr, ptr %11, align 8, !tbaa !5
  call void @qinv(ptr noundef %74, ptr noundef %75)
  %76 = load ptr, ptr %12, align 8, !tbaa !5
  %77 = load ptr, ptr %14, align 8, !tbaa !5
  %78 = getelementptr inbounds [4 x i64], ptr %20, i64 0, i64 0
  call void @qmul(ptr noundef %76, ptr noundef %77, ptr noundef %78)
  %79 = load ptr, ptr %13, align 8, !tbaa !5
  %80 = load ptr, ptr %10, align 8, !tbaa !5
  %81 = getelementptr inbounds [4 x i64], ptr %20, i64 0, i64 0
  call void @qmul(ptr noundef %79, ptr noundef %80, ptr noundef %81)
  call void @llvm.lifetime.start.p0(i64 120, ptr %21) #4
  call void @llvm.memset.p0.i64(ptr align 16 %21, i8 0, i64 120, i1 false)
  %82 = getelementptr inbounds [15 x i64], ptr %21, i64 0, i64 0
  %83 = load ptr, ptr %12, align 8, !tbaa !5
  %84 = load ptr, ptr %13, align 8, !tbaa !5
  %85 = load ptr, ptr %9, align 8, !tbaa !5
  call void @point_mul_g_double_split_lambda_vartime(ptr noundef %82, ptr noundef %83, ptr noundef %84, ptr noundef %85)
  call void @llvm.lifetime.start.p0(i64 40, ptr %22) #4
  call void @llvm.memset.p0.i64(ptr align 16 %22, i8 0, i64 40, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  %86 = getelementptr inbounds [15 x i64], ptr %21, i64 0, i64 0
  %87 = getelementptr inbounds i64, ptr %86, i64 10
  store ptr %87, ptr %23, align 8, !tbaa !5
  %88 = getelementptr inbounds [5 x i64], ptr %22, i64 0, i64 0
  %89 = load ptr, ptr %23, align 8, !tbaa !5
  call void @Hacl_K256_Field_fnormalize(ptr noundef %88, ptr noundef %89)
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #4
  %90 = getelementptr inbounds [5 x i64], ptr %22, i64 0, i64 0
  %91 = call zeroext i1 @Hacl_K256_Field_is_felem_zero_vartime(ptr noundef %90)
  %92 = zext i1 %91 to i8
  store i8 %92, ptr %24, align 1, !tbaa !9
  %93 = load i8, ptr %24, align 1, !tbaa !9, !range !11, !noundef !12
  %94 = trunc i8 %93 to i1
  br i1 %94, label %95, label %96

95:                                               ; preds = %73
  store i1 false, ptr %4, align 1
  store i32 1, ptr %19, align 4
  br label %136

96:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  %97 = getelementptr inbounds [15 x i64], ptr %21, i64 0, i64 0
  store ptr %97, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  %98 = getelementptr inbounds [15 x i64], ptr %21, i64 0, i64 0
  %99 = getelementptr inbounds i64, ptr %98, i64 10
  store ptr %99, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %27) #4
  call void @llvm.memset.p0.i64(ptr align 16 %27, i8 0, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 40, ptr %28) #4
  call void @llvm.memset.p0.i64(ptr align 16 %28, i8 0, i64 40, i1 false)
  call void @llvm.lifetime.start.p0(i64 40, ptr %29) #4
  call void @llvm.memset.p0.i64(ptr align 16 %29, i8 0, i64 40, i1 false)
  call void @llvm.lifetime.start.p0(i64 40, ptr %30) #4
  call void @llvm.memset.p0.i64(ptr align 16 %30, i8 0, i64 40, i1 false)
  %100 = getelementptr inbounds [32 x i8], ptr %27, i64 0, i64 0
  %101 = load ptr, ptr %10, align 8, !tbaa !5
  call void @store_qelem(ptr noundef %100, ptr noundef %101)
  %102 = getelementptr inbounds [5 x i64], ptr %28, i64 0, i64 0
  %103 = getelementptr inbounds [32 x i8], ptr %27, i64 0, i64 0
  call void @Hacl_K256_Field_load_felem(ptr noundef %102, ptr noundef %103)
  %104 = getelementptr inbounds [5 x i64], ptr %30, i64 0, i64 0
  %105 = load ptr, ptr %25, align 8, !tbaa !5
  call void @Hacl_K256_Field_fnormalize(ptr noundef %104, ptr noundef %105)
  call void @llvm.lifetime.start.p0(i64 1, ptr %31) #4
  %106 = getelementptr inbounds [5 x i64], ptr %28, i64 0, i64 0
  %107 = load ptr, ptr %26, align 8, !tbaa !5
  %108 = getelementptr inbounds [5 x i64], ptr %30, i64 0, i64 0
  %109 = call zeroext i1 @fmul_eq_vartime(ptr noundef %106, ptr noundef %107, ptr noundef %108)
  %110 = zext i1 %109 to i8
  store i8 %110, ptr %31, align 1, !tbaa !9
  %111 = load i8, ptr %31, align 1, !tbaa !9, !range !11, !noundef !12
  %112 = trunc i8 %111 to i1
  br i1 %112, label %134, label %113

113:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 1, ptr %32) #4
  %114 = getelementptr inbounds [5 x i64], ptr %28, i64 0, i64 0
  %115 = call zeroext i1 @Hacl_K256_Field_is_felem_lt_prime_minus_order_vartime(ptr noundef %114)
  %116 = zext i1 %115 to i8
  store i8 %116, ptr %32, align 1, !tbaa !9
  %117 = load i8, ptr %32, align 1, !tbaa !9, !range !11, !noundef !12
  %118 = trunc i8 %117 to i1
  br i1 %118, label %119, label %132

119:                                              ; preds = %113
  %120 = getelementptr inbounds [5 x i64], ptr %29, i64 0, i64 0
  store i64 666908835070273, ptr %120, align 16, !tbaa !13
  %121 = getelementptr inbounds [5 x i64], ptr %29, i64 0, i64 1
  store i64 4058248194014205, ptr %121, align 8, !tbaa !13
  %122 = getelementptr inbounds [5 x i64], ptr %29, i64 0, i64 2
  store i64 4503599606050524, ptr %122, align 16, !tbaa !13
  %123 = getelementptr inbounds [5 x i64], ptr %29, i64 0, i64 3
  store i64 4503599627370495, ptr %123, align 8, !tbaa !13
  %124 = getelementptr inbounds [5 x i64], ptr %29, i64 0, i64 4
  store i64 281474976710655, ptr %124, align 16, !tbaa !13
  %125 = getelementptr inbounds [5 x i64], ptr %29, i64 0, i64 0
  %126 = getelementptr inbounds [5 x i64], ptr %28, i64 0, i64 0
  %127 = getelementptr inbounds [5 x i64], ptr %29, i64 0, i64 0
  call void @Hacl_K256_Field_fadd(ptr noundef %125, ptr noundef %126, ptr noundef %127)
  %128 = getelementptr inbounds [5 x i64], ptr %29, i64 0, i64 0
  %129 = load ptr, ptr %26, align 8, !tbaa !5
  %130 = getelementptr inbounds [5 x i64], ptr %30, i64 0, i64 0
  %131 = call zeroext i1 @fmul_eq_vartime(ptr noundef %128, ptr noundef %129, ptr noundef %130)
  store i1 %131, ptr %4, align 1
  store i32 1, ptr %19, align 4
  br label %133

132:                                              ; preds = %113
  store i1 false, ptr %4, align 1
  store i32 1, ptr %19, align 4
  br label %133

133:                                              ; preds = %132, %119
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #4
  br label %135

134:                                              ; preds = %96
  store i1 true, ptr %4, align 1
  store i32 1, ptr %19, align 4
  br label %135

135:                                              ; preds = %134, %133
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 32, 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
  br label %136

136:                                              ; preds = %135, %95
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 120, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #4
  br label %137

137:                                              ; preds = %136, %72
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 1, 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.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 280, ptr %8) #4
  %138 = load i1, ptr %4, align 1
  ret i1 %138
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @load_point_vartime(ptr noundef, ptr noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @load_qelem_vartime(ptr noundef, ptr noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @point_mul_g_double_split_lambda_vartime(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @Hacl_K256_Field_fnormalize(ptr noundef, ptr noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @Hacl_K256_Field_is_felem_zero_vartime(ptr noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @Hacl_K256_Field_load_felem(ptr noundef, ptr noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @fmul_eq_vartime(ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @Hacl_K256_Field_is_felem_lt_prime_minus_order_vartime(ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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" }
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 = !{!"_Bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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 void @Hacl_K256_Field_fadd(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local zeroext i1 @Hacl_K256_ECDSA_ecdsa_verify_hashed_msg(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #3 {
  %4 = alloca [35 x i64], align 16
  %5 = alloca [4 x i64], align 16
  %6 = alloca [15 x i64], align 16
  %7 = alloca [5 x i64], align 16
  %8 = alloca [32 x i8], align 16
  %9 = alloca [5 x i64], align 16
  %10 = alloca [5 x i64], align 16
  %11 = alloca [5 x i64], align 16
  call void @llvm.lifetime.start.p0(i64 280, ptr nonnull %4) #4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(280) %4, i8 0, i64 280, i1 false)
  %12 = getelementptr inbounds i8, ptr %4, i64 120
  %13 = getelementptr inbounds i8, ptr %4, i64 152
  %14 = getelementptr inbounds i8, ptr %4, i64 248
  %15 = call zeroext i1 @load_point_vartime(ptr noundef nonnull %4, ptr noundef %1)
  %16 = call zeroext i1 @load_qelem_vartime(ptr noundef nonnull %12, ptr noundef %2)
  %17 = getelementptr inbounds i8, ptr %2, i64 32
  %18 = call zeroext i1 @load_qelem_vartime(ptr noundef nonnull %13, ptr noundef nonnull %17)
  call void @load_qelem_modq(ptr noundef nonnull %14, ptr noundef %0)
  %19 = select i1 %15, i1 %16, i1 false
  %or.cond = select i1 %19, i1 %18, i1 false
  br i1 %or.cond, label %20, label %37

20:                                               ; preds = %3
  %21 = getelementptr inbounds i8, ptr %4, i64 216
  %22 = getelementptr inbounds i8, ptr %4, i64 184
  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)
  call void @qinv(ptr noundef nonnull %5, ptr noundef nonnull %13)
  call void @qmul(ptr noundef nonnull %22, ptr noundef nonnull %14, ptr noundef nonnull %5)
  call void @qmul(ptr noundef nonnull %21, ptr noundef nonnull %12, ptr noundef nonnull %5)
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %6) #4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(120) %6, i8 0, i64 120, i1 false)
  call void @point_mul_g_double_split_lambda_vartime(ptr noundef nonnull %6, ptr noundef nonnull %22, ptr noundef nonnull %21, ptr noundef nonnull %4)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %7) #4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(40) %7, i8 0, i64 40, i1 false)
  %23 = getelementptr inbounds i8, ptr %6, i64 80
  call void @Hacl_K256_Field_fnormalize(ptr noundef nonnull %7, ptr noundef nonnull %23)
  %24 = call zeroext i1 @Hacl_K256_Field_is_felem_zero_vartime(ptr noundef nonnull %7)
  br i1 %24, label %36, label %25

25:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %8, i8 0, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %9) #4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(40) %9, i8 0, i64 40, i1 false)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %11) #4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(40) %11, i8 0, i64 40, i1 false)
  call void @store_qelem(ptr noundef nonnull %8, ptr noundef nonnull %12)
  call void @Hacl_K256_Field_load_felem(ptr noundef nonnull %9, ptr noundef nonnull %8)
  call void @Hacl_K256_Field_fnormalize(ptr noundef nonnull %11, ptr noundef nonnull %6)
  %26 = call zeroext i1 @fmul_eq_vartime(ptr noundef nonnull %9, ptr noundef nonnull %23, ptr noundef nonnull %11)
  br i1 %26, label %35, label %27

27:                                               ; preds = %25
  %28 = call zeroext i1 @Hacl_K256_Field_is_felem_lt_prime_minus_order_vartime(ptr noundef nonnull %9)
  br i1 %28, label %29, label %35

29:                                               ; preds = %27
  store i64 666908835070273, ptr %10, align 16, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %10, i64 8
  store i64 4058248194014205, ptr %30, align 8, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %10, i64 16
  store i64 4503599606050524, ptr %31, align 16, !tbaa !5
  %32 = getelementptr inbounds i8, ptr %10, i64 24
  store i64 4503599627370495, ptr %32, align 8, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %10, i64 32
  store i64 281474976710655, ptr %33, align 16, !tbaa !5
  call void @Hacl_K256_Field_fadd(ptr noundef nonnull %10, ptr noundef nonnull %9, ptr noundef nonnull %10)
  %34 = call zeroext i1 @fmul_eq_vartime(ptr noundef nonnull %10, ptr noundef nonnull %23, ptr noundef nonnull %11)
  br label %35

35:                                               ; preds = %25, %29, %27
  %.1 = phi i1 [ %34, %29 ], [ false, %27 ], [ true, %25 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #4
  br label %36

36:                                               ; preds = %20, %35
  %.2 = phi i1 [ %.1, %35 ], [ false, %20 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #4
  br label %37

37:                                               ; preds = %3, %36
  %.3 = phi i1 [ %.2, %36 ], [ false, %3 ]
  call void @llvm.lifetime.end.p0(i64 280, ptr nonnull %4) #4
  ret i1 %.3
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @load_point_vartime(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @load_qelem_vartime(ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @Hacl_K256_Field_is_felem_zero_vartime(ptr noundef) local_unnamed_addr #2

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @fmul_eq_vartime(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @Hacl_K256_Field_is_felem_lt_prime_minus_order_vartime(ptr noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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" }
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: DSEPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass