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

; 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 void @Hacl_Curve25519_51_scalarmult(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 [10 x i64], align 16
  %8 = alloca [4 x i64], align 16
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  %29 = alloca i64, align 8
  %30 = alloca i64, align 8
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca i64, align 8
  %34 = alloca i64, align 8
  %35 = alloca i64, align 8
  %36 = alloca i64, align 8
  %37 = alloca i64, align 8
  %38 = alloca i64, align 8
  %39 = alloca i64, align 8
  %40 = 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 80, ptr %7) #4
  call void @llvm.memset.p0.i64(ptr align 16 %7, i8 0, i64 80, i1 false)
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #4
  call void @llvm.memset.p0.i64(ptr align 16 %8, i8 0, i64 32, i1 false)
  br label %41

41:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %42 = getelementptr inbounds [4 x i64], ptr %8, i64 0, i64 0
  store ptr %42, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = load i32, ptr %9, align 4, !tbaa !9
  %45 = mul i32 %44, 8
  %46 = zext i32 %45 to i64
  %47 = getelementptr inbounds i8, ptr %43, i64 %46
  store ptr %47, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %48 = load ptr, ptr %11, align 8, !tbaa !5
  %49 = call i64 @load64(ptr noundef %48)
  %50 = call i64 @__uint64_identity(i64 noundef %49)
  store i64 %50, ptr %12, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %51 = load i64, ptr %12, align 8, !tbaa !11
  store i64 %51, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %52 = load i64, ptr %13, align 8, !tbaa !11
  store i64 %52, ptr %14, align 8, !tbaa !11
  %53 = load i64, ptr %14, align 8, !tbaa !11
  %54 = load ptr, ptr %10, align 8, !tbaa !5
  %55 = load i32, ptr %9, align 4, !tbaa !9
  %56 = zext i32 %55 to i64
  %57 = getelementptr inbounds i64, ptr %54, i64 %56
  store i64 %53, ptr %57, align 8, !tbaa !11
  %58 = load i32, ptr %9, align 4, !tbaa !9
  %59 = add i32 %58, 1
  store i32 %59, ptr %9, align 4, !tbaa !9
  %60 = load i32, ptr %9, align 4, !tbaa !9
  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 %15) #4
  %61 = getelementptr inbounds [4 x i64], ptr %8, i64 0, i64 0
  store ptr %61, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %62 = load ptr, ptr %6, align 8, !tbaa !5
  %63 = load i32, ptr %9, align 4, !tbaa !9
  %64 = mul i32 %63, 8
  %65 = zext i32 %64 to i64
  %66 = getelementptr inbounds i8, ptr %62, i64 %65
  store ptr %66, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %67 = load ptr, ptr %16, align 8, !tbaa !5
  %68 = call i64 @load64(ptr noundef %67)
  %69 = call i64 @__uint64_identity(i64 noundef %68)
  store i64 %69, ptr %17, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %70 = load i64, ptr %17, align 8, !tbaa !11
  store i64 %70, ptr %18, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %71 = load i64, ptr %18, align 8, !tbaa !11
  store i64 %71, ptr %19, align 8, !tbaa !11
  %72 = load i64, ptr %19, align 8, !tbaa !11
  %73 = load ptr, ptr %15, align 8, !tbaa !5
  %74 = load i32, ptr %9, align 4, !tbaa !9
  %75 = zext i32 %74 to i64
  %76 = getelementptr inbounds i64, ptr %73, i64 %75
  store i64 %72, ptr %76, align 8, !tbaa !11
  %77 = load i32, ptr %9, align 4, !tbaa !9
  %78 = add i32 %77, 1
  store i32 %78, ptr %9, align 4, !tbaa !9
  %79 = load i32, ptr %9, align 4, !tbaa !9
  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.start.p0(i64 8, ptr %20) #4
  %80 = getelementptr inbounds [4 x i64], ptr %8, i64 0, i64 0
  store ptr %80, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  %82 = load i32, ptr %9, align 4, !tbaa !9
  %83 = mul i32 %82, 8
  %84 = zext i32 %83 to i64
  %85 = getelementptr inbounds i8, ptr %81, i64 %84
  store ptr %85, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  %86 = load ptr, ptr %21, align 8, !tbaa !5
  %87 = call i64 @load64(ptr noundef %86)
  %88 = call i64 @__uint64_identity(i64 noundef %87)
  store i64 %88, ptr %22, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  %89 = load i64, ptr %22, align 8, !tbaa !11
  store i64 %89, ptr %23, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  %90 = load i64, ptr %23, align 8, !tbaa !11
  store i64 %90, ptr %24, align 8, !tbaa !11
  %91 = load i64, ptr %24, align 8, !tbaa !11
  %92 = load ptr, ptr %20, align 8, !tbaa !5
  %93 = load i32, ptr %9, align 4, !tbaa !9
  %94 = zext i32 %93 to i64
  %95 = getelementptr inbounds i64, ptr %92, i64 %94
  store i64 %91, ptr %95, align 8, !tbaa !11
  %96 = load i32, ptr %9, align 4, !tbaa !9
  %97 = add i32 %96, 1
  store i32 %97, ptr %9, align 4, !tbaa !9
  %98 = load i32, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  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.start.p0(i64 8, ptr %25) #4
  %99 = getelementptr inbounds [4 x i64], ptr %8, i64 0, i64 0
  store ptr %99, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  %100 = load ptr, ptr %6, align 8, !tbaa !5
  %101 = load i32, ptr %9, align 4, !tbaa !9
  %102 = mul i32 %101, 8
  %103 = zext i32 %102 to i64
  %104 = getelementptr inbounds i8, ptr %100, i64 %103
  store ptr %104, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  %105 = load ptr, ptr %26, align 8, !tbaa !5
  %106 = call i64 @load64(ptr noundef %105)
  %107 = call i64 @__uint64_identity(i64 noundef %106)
  store i64 %107, ptr %27, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #4
  %108 = load i64, ptr %27, align 8, !tbaa !11
  store i64 %108, ptr %28, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #4
  %109 = load i64, ptr %28, align 8, !tbaa !11
  store i64 %109, ptr %29, align 8, !tbaa !11
  %110 = load i64, ptr %29, align 8, !tbaa !11
  %111 = load ptr, ptr %25, align 8, !tbaa !5
  %112 = load i32, ptr %9, align 4, !tbaa !9
  %113 = zext i32 %112 to i64
  %114 = getelementptr inbounds i64, ptr %111, i64 %113
  store i64 %110, ptr %114, align 8, !tbaa !11
  %115 = load i32, ptr %9, align 4, !tbaa !9
  %116 = add i32 %115, 1
  store i32 %116, ptr %9, align 4, !tbaa !9
  %117 = load i32, ptr %9, align 4, !tbaa !9
  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.end.p0(i64 4, ptr %9) #4
  br label %118

118:                                              ; preds = %41
  br label %119

119:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #4
  %120 = getelementptr inbounds [4 x i64], ptr %8, i64 0, i64 3
  %121 = load i64, ptr %120, align 8, !tbaa !11
  store i64 %121, ptr %30, align 8, !tbaa !11
  %122 = load i64, ptr %30, align 8, !tbaa !11
  %123 = and i64 %122, 9223372036854775807
  %124 = getelementptr inbounds [4 x i64], ptr %8, i64 0, i64 3
  store i64 %123, ptr %124, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #4
  %125 = getelementptr inbounds [10 x i64], ptr %7, i64 0, i64 0
  store ptr %125, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #4
  %126 = getelementptr inbounds [10 x i64], ptr %7, i64 0, i64 0
  %127 = getelementptr inbounds i64, ptr %126, i64 5
  store ptr %127, ptr %32, align 8, !tbaa !5
  %128 = load ptr, ptr %32, align 8, !tbaa !5
  %129 = getelementptr inbounds i64, ptr %128, i64 0
  store i64 1, ptr %129, align 8, !tbaa !11
  %130 = load ptr, ptr %32, align 8, !tbaa !5
  %131 = getelementptr inbounds i64, ptr %130, i64 1
  store i64 0, ptr %131, align 8, !tbaa !11
  %132 = load ptr, ptr %32, align 8, !tbaa !5
  %133 = getelementptr inbounds i64, ptr %132, i64 2
  store i64 0, ptr %133, align 8, !tbaa !11
  %134 = load ptr, ptr %32, align 8, !tbaa !5
  %135 = getelementptr inbounds i64, ptr %134, i64 3
  store i64 0, ptr %135, align 8, !tbaa !11
  %136 = load ptr, ptr %32, align 8, !tbaa !5
  %137 = getelementptr inbounds i64, ptr %136, i64 4
  store i64 0, ptr %137, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #4
  %138 = getelementptr inbounds [4 x i64], ptr %8, i64 0, i64 0
  %139 = load i64, ptr %138, align 16, !tbaa !11
  %140 = and i64 %139, 2251799813685247
  store i64 %140, ptr %33, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #4
  %141 = getelementptr inbounds [4 x i64], ptr %8, i64 0, i64 0
  %142 = load i64, ptr %141, align 16, !tbaa !11
  %143 = lshr i64 %142, 51
  store i64 %143, ptr %34, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #4
  %144 = getelementptr inbounds [4 x i64], ptr %8, i64 0, i64 1
  %145 = load i64, ptr %144, align 8, !tbaa !11
  %146 = and i64 %145, 274877906943
  %147 = shl i64 %146, 13
  store i64 %147, ptr %35, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #4
  %148 = getelementptr inbounds [4 x i64], ptr %8, i64 0, i64 1
  %149 = load i64, ptr %148, align 8, !tbaa !11
  %150 = lshr i64 %149, 38
  store i64 %150, ptr %36, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #4
  %151 = getelementptr inbounds [4 x i64], ptr %8, i64 0, i64 2
  %152 = load i64, ptr %151, align 16, !tbaa !11
  %153 = and i64 %152, 33554431
  %154 = shl i64 %153, 26
  store i64 %154, ptr %37, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #4
  %155 = getelementptr inbounds [4 x i64], ptr %8, i64 0, i64 2
  %156 = load i64, ptr %155, align 16, !tbaa !11
  %157 = lshr i64 %156, 25
  store i64 %157, ptr %38, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #4
  %158 = getelementptr inbounds [4 x i64], ptr %8, i64 0, i64 3
  %159 = load i64, ptr %158, align 8, !tbaa !11
  %160 = and i64 %159, 4095
  %161 = shl i64 %160, 39
  store i64 %161, ptr %39, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #4
  %162 = getelementptr inbounds [4 x i64], ptr %8, i64 0, i64 3
  %163 = load i64, ptr %162, align 8, !tbaa !11
  %164 = lshr i64 %163, 12
  store i64 %164, ptr %40, align 8, !tbaa !11
  %165 = load i64, ptr %33, align 8, !tbaa !11
  %166 = load ptr, ptr %31, align 8, !tbaa !5
  %167 = getelementptr inbounds i64, ptr %166, i64 0
  store i64 %165, ptr %167, align 8, !tbaa !11
  %168 = load i64, ptr %34, align 8, !tbaa !11
  %169 = load i64, ptr %35, align 8, !tbaa !11
  %170 = or i64 %168, %169
  %171 = load ptr, ptr %31, align 8, !tbaa !5
  %172 = getelementptr inbounds i64, ptr %171, i64 1
  store i64 %170, ptr %172, align 8, !tbaa !11
  %173 = load i64, ptr %36, align 8, !tbaa !11
  %174 = load i64, ptr %37, align 8, !tbaa !11
  %175 = or i64 %173, %174
  %176 = load ptr, ptr %31, align 8, !tbaa !5
  %177 = getelementptr inbounds i64, ptr %176, i64 2
  store i64 %175, ptr %177, align 8, !tbaa !11
  %178 = load i64, ptr %38, align 8, !tbaa !11
  %179 = load i64, ptr %39, align 8, !tbaa !11
  %180 = or i64 %178, %179
  %181 = load ptr, ptr %31, align 8, !tbaa !5
  %182 = getelementptr inbounds i64, ptr %181, i64 3
  store i64 %180, ptr %182, align 8, !tbaa !11
  %183 = load i64, ptr %40, align 8, !tbaa !11
  %184 = load ptr, ptr %31, align 8, !tbaa !5
  %185 = getelementptr inbounds i64, ptr %184, i64 4
  store i64 %183, ptr %185, align 8, !tbaa !11
  %186 = getelementptr inbounds [10 x i64], ptr %7, i64 0, i64 0
  %187 = load ptr, ptr %5, align 8, !tbaa !5
  %188 = getelementptr inbounds [10 x i64], ptr %7, i64 0, i64 0
  call void @montgomery_ladder(ptr noundef %186, ptr noundef %187, ptr noundef %188)
  %189 = load ptr, ptr %4, align 8, !tbaa !5
  %190 = getelementptr inbounds [10 x i64], ptr %7, i64 0, i64 0
  call void @encode_point(ptr noundef %189, ptr noundef %190)
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #4
  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 %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 32, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %7) #4
  ret void
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @__uint64_identity(i64 noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @load64(ptr noundef) #3

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

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

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 = { 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 #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 = !{!12, !12, i64 0}
!12 = !{!"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 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 void @Hacl_Curve25519_51_scalarmult(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #2 {
  %4 = alloca [10 x i64], align 16
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %4) #4
  %5 = tail call i64 @load64(ptr noundef %2)
  %6 = tail call i64 @__uint64_identity(i64 noundef %5)
  %7 = getelementptr inbounds i8, ptr %2, i64 8
  %8 = tail call i64 @load64(ptr noundef nonnull %7)
  %9 = tail call i64 @__uint64_identity(i64 noundef %8)
  %10 = getelementptr inbounds i8, ptr %2, i64 16
  %11 = tail call i64 @load64(ptr noundef nonnull %10)
  %12 = tail call i64 @__uint64_identity(i64 noundef %11)
  %13 = getelementptr inbounds i8, ptr %2, i64 24
  %14 = tail call i64 @load64(ptr noundef nonnull %13)
  %15 = tail call i64 @__uint64_identity(i64 noundef %14)
  %16 = getelementptr inbounds i8, ptr %4, i64 40
  store i64 1, ptr %16, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %4, i64 48
  %18 = and i64 %6, 2251799813685247
  %19 = lshr i64 %6, 51
  %20 = shl i64 %9, 13
  %21 = and i64 %20, 2251799813677056
  %22 = lshr i64 %9, 38
  %23 = shl i64 %12, 26
  %24 = and i64 %23, 2251799746576384
  %25 = lshr i64 %12, 25
  %26 = shl i64 %15, 39
  %27 = and i64 %26, 2251250057871360
  %28 = lshr i64 %15, 12
  %29 = and i64 %28, 2251799813685247
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %17, i8 0, i64 32, i1 false)
  store i64 %18, ptr %4, align 16, !tbaa !5
  %30 = or disjoint i64 %21, %19
  %31 = getelementptr inbounds i8, ptr %4, i64 8
  store i64 %30, ptr %31, align 8, !tbaa !5
  %32 = or disjoint i64 %24, %22
  %33 = getelementptr inbounds i8, ptr %4, i64 16
  store i64 %32, ptr %33, align 16, !tbaa !5
  %34 = or disjoint i64 %27, %25
  %35 = getelementptr inbounds i8, ptr %4, i64 24
  store i64 %34, ptr %35, align 8, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %4, i64 32
  store i64 %29, ptr %36, align 16, !tbaa !5
  call void @montgomery_ladder(ptr noundef nonnull %4, ptr noundef %1, ptr noundef nonnull %4)
  call void @encode_point(ptr noundef %0, ptr noundef nonnull %4)
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %4) #4
  ret void
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @__uint64_identity(i64 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @load64(ptr noundef) local_unnamed_addr #3

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

; Function Attrs: nounwind uwtable
declare hidden void @encode_point(ptr noundef, 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 = { 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 = { 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 #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,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass