; LLVM IR from trustwallet/wallet-core :: trezor-crypto/crypto/tools (mktable)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.curve_point = type { %struct.bignum256, %struct.bignum256 }
%struct.bignum256 = type { [9 x i32] }
%struct.curve_info = type { ptr, ptr, i32, i32, i32, i32 }
%struct.ecdsa_curve = type { %struct.bignum256, %struct.curve_point, %struct.bignum256, %struct.bignum256, i32, %struct.bignum256, [64 x [8 x %struct.curve_point]] }

@.str = external hidden unnamed_addr constant [22 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [94 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [23 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %struct.curve_point, align 4
  %14 = alloca %struct.curve_point, align 4
  %15 = alloca %struct.curve_point, align 4
  %16 = alloca %struct.bignum256, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %17 = load i32, ptr %4, align 4, !tbaa !5
  %18 = icmp ne i32 %17, 2
  br i1 %18, label %19, label %24

19:                                               ; preds = %2
  %20 = load ptr, ptr %5, align 8, !tbaa !9
  %21 = getelementptr inbounds ptr, ptr %20, i64 0
  %22 = load ptr, ptr %21, align 8, !tbaa !9
  %23 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %22)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %136

24:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %25 = load ptr, ptr %5, align 8, !tbaa !9
  %26 = getelementptr inbounds ptr, ptr %25, i64 1
  %27 = load ptr, ptr %26, align 8, !tbaa !9
  store ptr %27, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %28 = load ptr, ptr %10, align 8, !tbaa !9
  %29 = call ptr @get_curve_by_name(ptr noundef %28)
  store ptr %29, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %30 = load ptr, ptr %11, align 8, !tbaa !9
  %31 = getelementptr inbounds %struct.curve_info, ptr %30, i32 0, i32 1
  %32 = load ptr, ptr %31, align 8, !tbaa !11
  store ptr %32, ptr %12, align 8, !tbaa !9
  %33 = load ptr, ptr %12, align 8, !tbaa !9
  %34 = icmp eq ptr %33, null
  br i1 %34, label %35, label %38

35:                                               ; preds = %24
  %36 = load ptr, ptr %10, align 8, !tbaa !9
  %37 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %36)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %135

38:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 72, ptr %13) #5
  %39 = load ptr, ptr %12, align 8, !tbaa !9
  %40 = getelementptr inbounds %struct.ecdsa_curve, ptr %39, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 4 %40, i64 72, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.start.p0(i64 72, ptr %14) #5
  %41 = load ptr, ptr %12, align 8, !tbaa !9
  %42 = getelementptr inbounds %struct.ecdsa_curve, ptr %41, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 4 %42, i64 72, i1 false), !tbaa.struct !13
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %43

43:                                               ; preds = %131, %38
  %44 = load i32, ptr %6, align 4, !tbaa !5
  %45 = icmp slt i32 %44, 64
  br i1 %45, label %46, label %134

46:                                               ; preds = %43
  %47 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %48

48:                                               ; preds = %127, %46
  %49 = load i32, ptr %7, align 4, !tbaa !5
  %50 = icmp slt i32 %49, 8
  br i1 %50, label %51, label %130

51:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 72, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 36, ptr %16) #5
  call void @bn_zero(ptr noundef %16)
  %52 = load i32, ptr %7, align 4, !tbaa !5
  %53 = mul i32 2, %52
  %54 = add i32 %53, 1
  %55 = load i32, ptr %6, align 4, !tbaa !5
  %56 = mul nsw i32 4, %55
  %57 = srem i32 %56, 29
  %58 = shl i32 %54, %57
  %59 = getelementptr inbounds %struct.bignum256, ptr %16, i32 0, i32 0
  %60 = load i32, ptr %6, align 4, !tbaa !5
  %61 = mul nsw i32 4, %60
  %62 = sdiv i32 %61, 29
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [9 x i32], ptr %59, i64 0, i64 %63
  store i32 %58, ptr %64, align 4, !tbaa !5
  call void @bn_normalize(ptr noundef %16)
  %65 = load ptr, ptr %12, align 8, !tbaa !9
  %66 = load ptr, ptr %12, align 8, !tbaa !9
  %67 = getelementptr inbounds %struct.ecdsa_curve, ptr %66, i32 0, i32 1
  %68 = call i32 @point_multiply(ptr noundef %65, ptr noundef %16, ptr noundef %67, ptr noundef %15)
  %69 = call i32 @point_is_equal(ptr noundef %15, ptr noundef %13)
  %70 = icmp ne i32 %69, 0
  br i1 %70, label %71, label %72

71:                                               ; preds = %51
  br label %73

72:                                               ; preds = %51
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 46, ptr noundef @__PRETTY_FUNCTION__.main) #6
  unreachable

73:                                               ; preds = %71
  %74 = load i32, ptr %7, align 4, !tbaa !5
  %75 = mul nsw i32 2, %74
  %76 = add nsw i32 %75, 1
  %77 = load i32, ptr %6, align 4, !tbaa !5
  %78 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %76, i32 noundef %77)
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %79

79:                                               ; preds = %94, %73
  %80 = load i32, ptr %8, align 4, !tbaa !5
  %81 = icmp slt i32 %80, 9
  br i1 %81, label %82, label %97

82:                                               ; preds = %79
  %83 = load i32, ptr %8, align 4, !tbaa !5
  %84 = icmp slt i32 %83, 8
  %85 = zext i1 %84 to i64
  %86 = select i1 %84, ptr @.str.6, ptr @.str.7
  %87 = getelementptr inbounds %struct.curve_point, ptr %13, i32 0, i32 0
  %88 = getelementptr inbounds %struct.bignum256, ptr %87, i32 0, i32 0
  %89 = load i32, ptr %8, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [9 x i32], ptr %88, i64 0, i64 %90
  %92 = load i32, ptr %91, align 4, !tbaa !5
  %93 = call i32 (ptr, ...) @printf(ptr noundef %86, i32 noundef %92)
  br label %94

94:                                               ; preds = %82
  %95 = load i32, ptr %8, align 4, !tbaa !5
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %8, align 4, !tbaa !5
  br label %79, !llvm.loop !15

97:                                               ; preds = %79
  %98 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %99

99:                                               ; preds = %114, %97
  %100 = load i32, ptr %8, align 4, !tbaa !5
  %101 = icmp slt i32 %100, 9
  br i1 %101, label %102, label %117

102:                                              ; preds = %99
  %103 = load i32, ptr %8, align 4, !tbaa !5
  %104 = icmp slt i32 %103, 8
  %105 = zext i1 %104 to i64
  %106 = select i1 %104, ptr @.str.6, ptr @.str.7
  %107 = getelementptr inbounds %struct.curve_point, ptr %13, i32 0, i32 1
  %108 = getelementptr inbounds %struct.bignum256, ptr %107, i32 0, i32 0
  %109 = load i32, ptr %8, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [9 x i32], ptr %108, i64 0, i64 %110
  %112 = load i32, ptr %111, align 4, !tbaa !5
  %113 = call i32 (ptr, ...) @printf(ptr noundef %106, i32 noundef %112)
  br label %114

114:                                              ; preds = %102
  %115 = load i32, ptr %8, align 4, !tbaa !5
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %8, align 4, !tbaa !5
  br label %99, !llvm.loop !17

117:                                              ; preds = %99
  %118 = load i32, ptr %7, align 4, !tbaa !5
  %119 = icmp eq i32 %118, 7
  br i1 %119, label %120, label %122

120:                                              ; preds = %117
  %121 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  br label %125

122:                                              ; preds = %117
  %123 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  %124 = load ptr, ptr %12, align 8, !tbaa !9
  call void @point_add(ptr noundef %124, ptr noundef %14, ptr noundef %13)
  br label %125

125:                                              ; preds = %122, %120
  %126 = load ptr, ptr %12, align 8, !tbaa !9
  call void @point_add(ptr noundef %126, ptr noundef %14, ptr noundef %13)
  call void @llvm.lifetime.end.p0(i64 36, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr %15) #5
  br label %127

127:                                              ; preds = %125
  %128 = load i32, ptr %7, align 4, !tbaa !5
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %7, align 4, !tbaa !5
  br label %48, !llvm.loop !18

130:                                              ; preds = %48
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 4 %13, i64 72, i1 false), !tbaa.struct !13
  br label %131

131:                                              ; preds = %130
  %132 = load i32, ptr %6, align 4, !tbaa !5
  %133 = add nsw i32 %132, 1
  store i32 %133, ptr %6, align 4, !tbaa !5
  br label %43, !llvm.loop !19

134:                                              ; preds = %43
  store i32 0, ptr %3, align 4
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 72, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr %13) #5
  br label %135

135:                                              ; preds = %134, %35
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %136

136:                                              ; preds = %135, %19
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  %137 = load i32, ptr %3, align 4
  ret i32 %137
}

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

declare i32 @printf(ptr noundef, ...) #2

declare ptr @get_curve_by_name(ptr noundef) #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

declare void @bn_zero(ptr noundef) #2

declare void @bn_normalize(ptr noundef) #2

declare i32 @point_multiply(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare i32 @point_is_equal(ptr noundef, ptr noundef) #2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #4

declare void @point_add(ptr noundef, ptr noundef, ptr noundef) #2

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { noreturn 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"", !10, i64 0, !10, i64 8, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28}
!13 = !{i64 0, i64 36, !14, i64 36, i64 36, !14}
!14 = !{!7, !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}


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

%struct.curve_point = type { %struct.bignum256, %struct.bignum256 }
%struct.bignum256 = type { [9 x i32] }

@.str = external hidden unnamed_addr constant [22 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [94 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [23 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = alloca %struct.curve_point, align 4
  %4 = alloca %struct.curve_point, align 4
  %5 = alloca %struct.curve_point, align 4
  %6 = alloca %struct.bignum256, align 4
  %.not = icmp eq i32 %0, 2
  br i1 %.not, label %10, label %7

7:                                                ; preds = %2
  %8 = load ptr, ptr %1, align 8, !tbaa !5
  %9 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef %8)
  br label %99

10:                                               ; preds = %2
  %11 = getelementptr inbounds i8, ptr %1, i64 8
  %12 = load ptr, ptr %11, align 8, !tbaa !5
  %13 = tail call ptr @get_curve_by_name(ptr noundef %12) #6
  %14 = getelementptr inbounds i8, ptr %13, i64 8
  %15 = load ptr, ptr %14, align 8, !tbaa !9
  %16 = icmp eq ptr %15, null
  br i1 %16, label %17, label %19

17:                                               ; preds = %10
  %18 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %12)
  br label %99

19:                                               ; preds = %10
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %3) #6
  %20 = getelementptr inbounds i8, ptr %15, i64 36
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(72) %3, ptr noundef nonnull align 4 dereferenceable(72) %20, i64 72, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %4) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(72) %4, ptr noundef nonnull align 4 dereferenceable(72) %20, i64 72, i1 false), !tbaa.struct !12
  %21 = getelementptr inbounds i8, ptr %3, i64 36
  %22 = getelementptr inbounds i8, ptr %3, i64 4
  %23 = getelementptr inbounds i8, ptr %3, i64 8
  %24 = getelementptr inbounds i8, ptr %3, i64 12
  %25 = getelementptr inbounds i8, ptr %3, i64 16
  %26 = getelementptr inbounds i8, ptr %3, i64 20
  %27 = getelementptr inbounds i8, ptr %3, i64 24
  %28 = getelementptr inbounds i8, ptr %3, i64 28
  %29 = getelementptr inbounds i8, ptr %3, i64 32
  %30 = getelementptr inbounds i8, ptr %3, i64 40
  %31 = getelementptr inbounds i8, ptr %3, i64 44
  %32 = getelementptr inbounds i8, ptr %3, i64 48
  %33 = getelementptr inbounds i8, ptr %3, i64 52
  %34 = getelementptr inbounds i8, ptr %3, i64 56
  %35 = getelementptr inbounds i8, ptr %3, i64 60
  %36 = getelementptr inbounds i8, ptr %3, i64 64
  %37 = getelementptr inbounds i8, ptr %3, i64 68
  br label %38

38:                                               ; preds = %19, %95
  %.03142 = phi i32 [ 0, %19 ], [ %97, %95 ]
  %39 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %40 = shl nuw nsw i32 %.03142, 2
  %41 = urem i32 %40, 29
  %42 = udiv i32 %40, 29
  %43 = zext nneg i32 %42 to i64
  %44 = getelementptr inbounds [9 x i32], ptr %6, i64 0, i64 %43
  br label %45

45:                                               ; preds = %92, %38
  %.03241 = phi i32 [ 0, %38 ], [ %94, %92 ]
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %6) #6
  call void @bn_zero(ptr noundef nonnull %6) #6
  %46 = shl nuw nsw i32 %.03241, 1
  %47 = or disjoint i32 %46, 1
  %48 = shl nuw i32 %47, %41
  store i32 %48, ptr %44, align 4, !tbaa !14
  call void @bn_normalize(ptr noundef nonnull %6) #6
  %49 = call i32 @point_multiply(ptr noundef nonnull %15, ptr noundef nonnull %6, ptr noundef nonnull %20, ptr noundef nonnull %5) #6
  %50 = call i32 @point_is_equal(ptr noundef nonnull %5, ptr noundef nonnull %3) #6
  %.not36 = icmp eq i32 %50, 0
  br i1 %.not36, label %51, label %52

51:                                               ; preds = %45
  call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, i32 noundef 46, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #7
  unreachable

52:                                               ; preds = %45
  %53 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef %47, i32 noundef %.03142)
  %54 = load i32, ptr %3, align 4, !tbaa !14
  %55 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %54)
  %56 = load i32, ptr %22, align 4, !tbaa !14
  %57 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %56)
  %58 = load i32, ptr %23, align 4, !tbaa !14
  %59 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %58)
  %60 = load i32, ptr %24, align 4, !tbaa !14
  %61 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %60)
  %62 = load i32, ptr %25, align 4, !tbaa !14
  %63 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %62)
  %64 = load i32, ptr %26, align 4, !tbaa !14
  %65 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %64)
  %66 = load i32, ptr %27, align 4, !tbaa !14
  %67 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %66)
  %68 = load i32, ptr %28, align 4, !tbaa !14
  %69 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %68)
  %70 = load i32, ptr %29, align 4, !tbaa !14
  %71 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, i32 noundef %70)
  %72 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  %73 = load i32, ptr %21, align 4, !tbaa !14
  %74 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %73)
  %75 = load i32, ptr %30, align 4, !tbaa !14
  %76 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %75)
  %77 = load i32, ptr %31, align 4, !tbaa !14
  %78 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %77)
  %79 = load i32, ptr %32, align 4, !tbaa !14
  %80 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %79)
  %81 = load i32, ptr %33, align 4, !tbaa !14
  %82 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %81)
  %83 = load i32, ptr %34, align 4, !tbaa !14
  %84 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %83)
  %85 = load i32, ptr %35, align 4, !tbaa !14
  %86 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %85)
  %87 = load i32, ptr %36, align 4, !tbaa !14
  %88 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %87)
  %89 = load i32, ptr %37, align 4, !tbaa !14
  %90 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, i32 noundef %89)
  %91 = icmp eq i32 %.03241, 7
  br i1 %91, label %95, label %92

92:                                               ; preds = %52
  %93 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  call void @point_add(ptr noundef nonnull %15, ptr noundef nonnull %4, ptr noundef nonnull %3) #6
  call void @point_add(ptr noundef nonnull %15, ptr noundef nonnull %4, ptr noundef nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %5) #6
  %94 = add nuw nsw i32 %.03241, 1
  br label %45

95:                                               ; preds = %52
  %96 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  call void @point_add(ptr noundef nonnull %15, ptr noundef nonnull %4, ptr noundef nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %5) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(72) %4, ptr noundef nonnull align 4 dereferenceable(72) %3, i64 72, i1 false), !tbaa.struct !12
  %97 = add nuw nsw i32 %.03142, 1
  %exitcond45.not = icmp eq i32 %97, 64
  br i1 %exitcond45.not, label %98, label %38, !llvm.loop !15

98:                                               ; preds = %95
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %3) #6
  br label %99

99:                                               ; preds = %17, %98, %7
  %.1 = phi i32 [ 1, %7 ], [ 1, %17 ], [ 0, %98 ]
  ret i32 %.1
}

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

declare ptr @get_curve_by_name(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

declare void @bn_zero(ptr noundef) local_unnamed_addr #3

declare void @bn_normalize(ptr noundef) local_unnamed_addr #3

declare i32 @point_multiply(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @point_is_equal(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #5

declare void @point_add(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "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 = { "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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { noreturn nounwind "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 }
attributes #7 = { noreturn 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, !6, i64 8}
!10 = !{!"", !6, i64 0, !6, i64 8, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28}
!11 = !{!"int", !7, i64 0}
!12 = !{i64 0, i64 36, !13, i64 36, i64 36, !13}
!13 = !{!7, !7, i64 0}
!14 = !{!11, !11, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass