; LLVM IR from guanzhi/GmSSL :: src (sm2_z256)

; 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.SM2_Z256_POINT = type { [4 x i64], [4 x i64], [4 x i64] }

@SM2_Z256_MODP_MONT_ONE = external dso_local global ptr, align 8

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

; Function Attrs: nounwind uwtable
declare dso_local void @sm2_z256_point_dbl(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @sm2_z256_point_add(ptr noundef, ptr noundef, ptr noundef) #1

; 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) #2

; Function Attrs: nounwind uwtable
define dso_local void @sm2_z256_point_mul_pre_compute(ptr noundef %0, ptr noundef %1) #1 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %6 = load ptr, ptr %4, align 8, !tbaa !5
  %7 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %6, i64 0
  %8 = load ptr, ptr %3, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %7, ptr align 8 %8, i64 96, i1 false)
  %9 = load ptr, ptr %3, align 8, !tbaa !5
  %10 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %9, i32 0, i32 2
  %11 = getelementptr inbounds [4 x i64], ptr %10, i64 0, i64 0
  %12 = load ptr, ptr @SM2_Z256_MODP_MONT_ONE, align 8, !tbaa !5
  %13 = call i64 @sm2_z256_equ(ptr noundef %11, ptr noundef %12)
  %14 = icmp eq i64 %13, 1
  br i1 %14, label %15, label %84

15:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  store ptr %16, ptr %5, align 8, !tbaa !5
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %17, i64 1
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %19, i64 0
  call void @sm2_z256_point_dbl(ptr noundef %18, ptr noundef %20)
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %21, i64 2
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %23, i64 1
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  call void @sm2_z256_point_add_affine(ptr noundef %22, ptr noundef %24, ptr noundef %25)
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %26, i64 3
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %28, i64 1
  call void @sm2_z256_point_dbl(ptr noundef %27, ptr noundef %29)
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %30, i64 4
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %32, i64 3
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  call void @sm2_z256_point_add_affine(ptr noundef %31, ptr noundef %33, ptr noundef %34)
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %35, i64 5
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %37, i64 2
  call void @sm2_z256_point_dbl(ptr noundef %36, ptr noundef %38)
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %39, i64 6
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %41, i64 5
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  call void @sm2_z256_point_add_affine(ptr noundef %40, ptr noundef %42, ptr noundef %43)
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %44, i64 7
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %46, i64 3
  call void @sm2_z256_point_dbl(ptr noundef %45, ptr noundef %47)
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %48, i64 8
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %50, i64 7
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  call void @sm2_z256_point_add_affine(ptr noundef %49, ptr noundef %51, ptr noundef %52)
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %53, i64 9
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %55, i64 4
  call void @sm2_z256_point_dbl(ptr noundef %54, ptr noundef %56)
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %57, i64 10
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %59, i64 9
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  call void @sm2_z256_point_add_affine(ptr noundef %58, ptr noundef %60, ptr noundef %61)
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %62, i64 11
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %64, i64 5
  call void @sm2_z256_point_dbl(ptr noundef %63, ptr noundef %65)
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %66, i64 12
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %68, i64 11
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  call void @sm2_z256_point_add_affine(ptr noundef %67, ptr noundef %69, ptr noundef %70)
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %71, i64 13
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %73, i64 6
  call void @sm2_z256_point_dbl(ptr noundef %72, ptr noundef %74)
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %75, i64 14
  %77 = load ptr, ptr %4, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %77, i64 13
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  call void @sm2_z256_point_add_affine(ptr noundef %76, ptr noundef %78, ptr noundef %79)
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %80, i64 15
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %82, i64 7
  call void @sm2_z256_point_dbl(ptr noundef %81, ptr noundef %83)
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  br label %158

84:                                               ; preds = %2
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %85, i64 1
  %87 = load ptr, ptr %4, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %87, i64 0
  call void @sm2_z256_point_dbl(ptr noundef %86, ptr noundef %88)
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %89, i64 3
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %91, i64 1
  call void @sm2_z256_point_dbl(ptr noundef %90, ptr noundef %92)
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %93, i64 7
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %95, i64 3
  call void @sm2_z256_point_dbl(ptr noundef %94, ptr noundef %96)
  %97 = load ptr, ptr %4, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %97, i64 15
  %99 = load ptr, ptr %4, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %99, i64 7
  call void @sm2_z256_point_dbl(ptr noundef %98, ptr noundef %100)
  %101 = load ptr, ptr %4, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %101, i64 2
  %103 = load ptr, ptr %4, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %103, i64 1
  %105 = load ptr, ptr %3, align 8, !tbaa !5
  call void @sm2_z256_point_add(ptr noundef %102, ptr noundef %104, ptr noundef %105)
  %106 = load ptr, ptr %4, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %106, i64 5
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %108, i64 2
  call void @sm2_z256_point_dbl(ptr noundef %107, ptr noundef %109)
  %110 = load ptr, ptr %4, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %110, i64 11
  %112 = load ptr, ptr %4, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %112, i64 5
  call void @sm2_z256_point_dbl(ptr noundef %111, ptr noundef %113)
  %114 = load ptr, ptr %4, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %114, i64 4
  %116 = load ptr, ptr %4, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %116, i64 2
  %118 = load ptr, ptr %4, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %118, i64 1
  call void @sm2_z256_point_add(ptr noundef %115, ptr noundef %117, ptr noundef %119)
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %120, i64 9
  %122 = load ptr, ptr %4, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %122, i64 4
  call void @sm2_z256_point_dbl(ptr noundef %121, ptr noundef %123)
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %124, i64 6
  %126 = load ptr, ptr %4, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %126, i64 3
  %128 = load ptr, ptr %4, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %128, i64 2
  call void @sm2_z256_point_add(ptr noundef %125, ptr noundef %127, ptr noundef %129)
  %130 = load ptr, ptr %4, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %130, i64 13
  %132 = load ptr, ptr %4, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %132, i64 6
  call void @sm2_z256_point_dbl(ptr noundef %131, ptr noundef %133)
  %134 = load ptr, ptr %4, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %134, i64 8
  %136 = load ptr, ptr %4, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %136, i64 3
  %138 = load ptr, ptr %4, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %138, i64 4
  call void @sm2_z256_point_add(ptr noundef %135, ptr noundef %137, ptr noundef %139)
  %140 = load ptr, ptr %4, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %140, i64 10
  %142 = load ptr, ptr %4, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %142, i64 5
  %144 = load ptr, ptr %4, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %144, i64 4
  call void @sm2_z256_point_add(ptr noundef %141, ptr noundef %143, ptr noundef %145)
  %146 = load ptr, ptr %4, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %146, i64 12
  %148 = load ptr, ptr %4, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %148, i64 6
  %150 = load ptr, ptr %4, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %150, i64 5
  call void @sm2_z256_point_add(ptr noundef %147, ptr noundef %149, ptr noundef %151)
  %152 = load ptr, ptr %4, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %152, i64 14
  %154 = load ptr, ptr %4, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %154, i64 7
  %156 = load ptr, ptr %4, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.SM2_Z256_POINT, ptr %156, i64 6
  call void @sm2_z256_point_add(ptr noundef %153, ptr noundef %155, ptr noundef %157)
  br label %158

158:                                              ; preds = %84, %15
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local void @sm2_z256_point_add_affine(ptr noundef, ptr noundef, ptr noundef) #1

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


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

@SM2_Z256_MODP_MONT_ONE = external dso_local local_unnamed_addr global ptr, align 8

; Function Attrs: nounwind uwtable
declare dso_local i64 @sm2_z256_equ(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @sm2_z256_point_dbl(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @sm2_z256_point_add(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; 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) #1

; Function Attrs: nounwind uwtable
define dso_local void @sm2_z256_point_mul_pre_compute(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(96) %1, ptr noundef nonnull align 8 dereferenceable(96) %0, i64 96, i1 false)
  %3 = getelementptr inbounds i8, ptr %0, i64 64
  %4 = load ptr, ptr @SM2_Z256_MODP_MONT_ONE, align 8, !tbaa !5
  %5 = tail call i64 @sm2_z256_equ(ptr noundef nonnull %3, ptr noundef %4)
  %6 = icmp eq i64 %5, 1
  %7 = getelementptr inbounds i8, ptr %1, i64 96
  tail call void @sm2_z256_point_dbl(ptr noundef nonnull %7, ptr noundef nonnull %1)
  %8 = getelementptr inbounds i8, ptr %1, i64 864
  br i1 %6, label %9, label %23

9:                                                ; preds = %2
  %10 = getelementptr inbounds i8, ptr %1, i64 192
  tail call void @sm2_z256_point_add_affine(ptr noundef nonnull %10, ptr noundef nonnull %7, ptr noundef nonnull %0)
  %11 = getelementptr inbounds i8, ptr %1, i64 288
  tail call void @sm2_z256_point_dbl(ptr noundef nonnull %11, ptr noundef nonnull %7)
  %12 = getelementptr inbounds i8, ptr %1, i64 384
  tail call void @sm2_z256_point_add_affine(ptr noundef nonnull %12, ptr noundef nonnull %11, ptr noundef nonnull %0)
  %13 = getelementptr inbounds i8, ptr %1, i64 480
  tail call void @sm2_z256_point_dbl(ptr noundef nonnull %13, ptr noundef nonnull %10)
  %14 = getelementptr inbounds i8, ptr %1, i64 576
  tail call void @sm2_z256_point_add_affine(ptr noundef nonnull %14, ptr noundef nonnull %13, ptr noundef nonnull %0)
  %15 = getelementptr inbounds i8, ptr %1, i64 672
  tail call void @sm2_z256_point_dbl(ptr noundef nonnull %15, ptr noundef nonnull %11)
  %16 = getelementptr inbounds i8, ptr %1, i64 768
  tail call void @sm2_z256_point_add_affine(ptr noundef nonnull %16, ptr noundef nonnull %15, ptr noundef nonnull %0)
  tail call void @sm2_z256_point_dbl(ptr noundef nonnull %8, ptr noundef nonnull %12)
  %17 = getelementptr inbounds i8, ptr %1, i64 960
  tail call void @sm2_z256_point_add_affine(ptr noundef nonnull %17, ptr noundef nonnull %8, ptr noundef nonnull %0)
  %18 = getelementptr inbounds i8, ptr %1, i64 1056
  tail call void @sm2_z256_point_dbl(ptr noundef nonnull %18, ptr noundef nonnull %13)
  %19 = getelementptr inbounds i8, ptr %1, i64 1152
  tail call void @sm2_z256_point_add_affine(ptr noundef nonnull %19, ptr noundef nonnull %18, ptr noundef nonnull %0)
  %20 = getelementptr inbounds i8, ptr %1, i64 1248
  tail call void @sm2_z256_point_dbl(ptr noundef nonnull %20, ptr noundef nonnull %14)
  %21 = getelementptr inbounds i8, ptr %1, i64 1344
  tail call void @sm2_z256_point_add_affine(ptr noundef nonnull %21, ptr noundef nonnull %20, ptr noundef nonnull %0)
  %22 = getelementptr inbounds i8, ptr %1, i64 1440
  tail call void @sm2_z256_point_dbl(ptr noundef nonnull %22, ptr noundef nonnull %15)
  br label %37

23:                                               ; preds = %2
  %24 = getelementptr inbounds i8, ptr %1, i64 288
  tail call void @sm2_z256_point_dbl(ptr noundef nonnull %24, ptr noundef nonnull %7)
  %25 = getelementptr inbounds i8, ptr %1, i64 672
  tail call void @sm2_z256_point_dbl(ptr noundef nonnull %25, ptr noundef nonnull %24)
  %26 = getelementptr inbounds i8, ptr %1, i64 1440
  tail call void @sm2_z256_point_dbl(ptr noundef nonnull %26, ptr noundef nonnull %25)
  %27 = getelementptr inbounds i8, ptr %1, i64 192
  tail call void @sm2_z256_point_add(ptr noundef nonnull %27, ptr noundef nonnull %7, ptr noundef nonnull %0)
  %28 = getelementptr inbounds i8, ptr %1, i64 480
  tail call void @sm2_z256_point_dbl(ptr noundef nonnull %28, ptr noundef nonnull %27)
  %29 = getelementptr inbounds i8, ptr %1, i64 1056
  tail call void @sm2_z256_point_dbl(ptr noundef nonnull %29, ptr noundef nonnull %28)
  %30 = getelementptr inbounds i8, ptr %1, i64 384
  tail call void @sm2_z256_point_add(ptr noundef nonnull %30, ptr noundef nonnull %27, ptr noundef nonnull %7)
  tail call void @sm2_z256_point_dbl(ptr noundef nonnull %8, ptr noundef nonnull %30)
  %31 = getelementptr inbounds i8, ptr %1, i64 576
  tail call void @sm2_z256_point_add(ptr noundef nonnull %31, ptr noundef nonnull %24, ptr noundef nonnull %27)
  %32 = getelementptr inbounds i8, ptr %1, i64 1248
  tail call void @sm2_z256_point_dbl(ptr noundef nonnull %32, ptr noundef nonnull %31)
  %33 = getelementptr inbounds i8, ptr %1, i64 768
  tail call void @sm2_z256_point_add(ptr noundef nonnull %33, ptr noundef nonnull %24, ptr noundef nonnull %30)
  %34 = getelementptr inbounds i8, ptr %1, i64 960
  tail call void @sm2_z256_point_add(ptr noundef nonnull %34, ptr noundef nonnull %28, ptr noundef nonnull %30)
  %35 = getelementptr inbounds i8, ptr %1, i64 1152
  tail call void @sm2_z256_point_add(ptr noundef nonnull %35, ptr noundef nonnull %31, ptr noundef nonnull %28)
  %36 = getelementptr inbounds i8, ptr %1, i64 1344
  tail call void @sm2_z256_point_add(ptr noundef nonnull %36, ptr noundef nonnull %25, ptr noundef nonnull %31)
  br label %37

37:                                               ; preds = %23, %9
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local void @sm2_z256_point_add_affine(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

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 nounwind willreturn memory(argmem: readwrite) }

!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"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass