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

; 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 void @sm2_z256_modp_mont_mul(ptr noundef, ptr noundef, ptr noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local void @sm2_z256_modp_mont_inv(ptr noundef %0, ptr noundef %1) #1 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca [4 x i64], align 16
  %6 = alloca [4 x i64], align 16
  %7 = alloca [4 x i64], align 16
  %8 = alloca [4 x i64], align 16
  %9 = alloca [4 x i64], align 16
  %10 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #2
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #2
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #2
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #2
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #2
  %11 = getelementptr inbounds [4 x i64], ptr %5, i64 0, i64 0
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  call void @sm2_z256_modp_mont_sqr(ptr noundef %11, ptr noundef %12)
  %13 = getelementptr inbounds [4 x i64], ptr %6, i64 0, i64 0
  %14 = getelementptr inbounds [4 x i64], ptr %5, i64 0, i64 0
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  call void @sm2_z256_modp_mont_mul(ptr noundef %13, ptr noundef %14, ptr noundef %15)
  %16 = getelementptr inbounds [4 x i64], ptr %7, i64 0, i64 0
  %17 = getelementptr inbounds [4 x i64], ptr %6, i64 0, i64 0
  call void @sm2_z256_modp_mont_sqr(ptr noundef %16, ptr noundef %17)
  %18 = getelementptr inbounds [4 x i64], ptr %7, i64 0, i64 0
  %19 = getelementptr inbounds [4 x i64], ptr %7, i64 0, i64 0
  call void @sm2_z256_modp_mont_sqr(ptr noundef %18, ptr noundef %19)
  %20 = getelementptr inbounds [4 x i64], ptr %7, i64 0, i64 0
  %21 = getelementptr inbounds [4 x i64], ptr %7, i64 0, i64 0
  %22 = getelementptr inbounds [4 x i64], ptr %6, i64 0, i64 0
  call void @sm2_z256_modp_mont_mul(ptr noundef %20, ptr noundef %21, ptr noundef %22)
  %23 = getelementptr inbounds [4 x i64], ptr %8, i64 0, i64 0
  %24 = getelementptr inbounds [4 x i64], ptr %7, i64 0, i64 0
  call void @sm2_z256_modp_mont_sqr(ptr noundef %23, ptr noundef %24)
  %25 = getelementptr inbounds [4 x i64], ptr %8, i64 0, i64 0
  %26 = getelementptr inbounds [4 x i64], ptr %8, i64 0, i64 0
  call void @sm2_z256_modp_mont_sqr(ptr noundef %25, ptr noundef %26)
  %27 = getelementptr inbounds [4 x i64], ptr %8, i64 0, i64 0
  %28 = getelementptr inbounds [4 x i64], ptr %8, i64 0, i64 0
  call void @sm2_z256_modp_mont_sqr(ptr noundef %27, ptr noundef %28)
  %29 = getelementptr inbounds [4 x i64], ptr %8, i64 0, i64 0
  %30 = getelementptr inbounds [4 x i64], ptr %8, i64 0, i64 0
  call void @sm2_z256_modp_mont_sqr(ptr noundef %29, ptr noundef %30)
  %31 = getelementptr inbounds [4 x i64], ptr %8, i64 0, i64 0
  %32 = getelementptr inbounds [4 x i64], ptr %8, i64 0, i64 0
  %33 = getelementptr inbounds [4 x i64], ptr %7, i64 0, i64 0
  call void @sm2_z256_modp_mont_mul(ptr noundef %31, ptr noundef %32, ptr noundef %33)
  %34 = getelementptr inbounds [4 x i64], ptr %9, i64 0, i64 0
  %35 = getelementptr inbounds [4 x i64], ptr %8, i64 0, i64 0
  call void @sm2_z256_modp_mont_sqr(ptr noundef %34, ptr noundef %35)
  store i32 1, ptr %10, align 4, !tbaa !9
  br label %36

36:                                               ; preds = %42, %2
  %37 = load i32, ptr %10, align 4, !tbaa !9
  %38 = icmp slt i32 %37, 8
  br i1 %38, label %39, label %45

39:                                               ; preds = %36
  %40 = getelementptr inbounds [4 x i64], ptr %9, i64 0, i64 0
  %41 = getelementptr inbounds [4 x i64], ptr %9, i64 0, i64 0
  call void @sm2_z256_modp_mont_sqr(ptr noundef %40, ptr noundef %41)
  br label %42

42:                                               ; preds = %39
  %43 = load i32, ptr %10, align 4, !tbaa !9
  %44 = add nsw i32 %43, 1
  store i32 %44, ptr %10, align 4, !tbaa !9
  br label %36, !llvm.loop !11

45:                                               ; preds = %36
  %46 = getelementptr inbounds [4 x i64], ptr %9, i64 0, i64 0
  %47 = getelementptr inbounds [4 x i64], ptr %9, i64 0, i64 0
  %48 = getelementptr inbounds [4 x i64], ptr %8, i64 0, i64 0
  call void @sm2_z256_modp_mont_mul(ptr noundef %46, ptr noundef %47, ptr noundef %48)
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %49

49:                                               ; preds = %55, %45
  %50 = load i32, ptr %10, align 4, !tbaa !9
  %51 = icmp slt i32 %50, 8
  br i1 %51, label %52, label %58

52:                                               ; preds = %49
  %53 = getelementptr inbounds [4 x i64], ptr %9, i64 0, i64 0
  %54 = getelementptr inbounds [4 x i64], ptr %9, i64 0, i64 0
  call void @sm2_z256_modp_mont_sqr(ptr noundef %53, ptr noundef %54)
  br label %55

55:                                               ; preds = %52
  %56 = load i32, ptr %10, align 4, !tbaa !9
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %10, align 4, !tbaa !9
  br label %49, !llvm.loop !13

58:                                               ; preds = %49
  %59 = getelementptr inbounds [4 x i64], ptr %9, i64 0, i64 0
  %60 = getelementptr inbounds [4 x i64], ptr %9, i64 0, i64 0
  %61 = getelementptr inbounds [4 x i64], ptr %8, i64 0, i64 0
  call void @sm2_z256_modp_mont_mul(ptr noundef %59, ptr noundef %60, ptr noundef %61)
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %62

62:                                               ; preds = %68, %58
  %63 = load i32, ptr %10, align 4, !tbaa !9
  %64 = icmp slt i32 %63, 4
  br i1 %64, label %65, label %71

65:                                               ; preds = %62
  %66 = getelementptr inbounds [4 x i64], ptr %9, i64 0, i64 0
  %67 = getelementptr inbounds [4 x i64], ptr %9, i64 0, i64 0
  call void @sm2_z256_modp_mont_sqr(ptr noundef %66, ptr noundef %67)
  br label %68

68:                                               ; preds = %65
  %69 = load i32, ptr %10, align 4, !tbaa !9
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr %10, align 4, !tbaa !9
  br label %62, !llvm.loop !14

71:                                               ; preds = %62
  %72 = getelementptr inbounds [4 x i64], ptr %9, i64 0, i64 0
  %73 = getelementptr inbounds [4 x i64], ptr %9, i64 0, i64 0
  %74 = getelementptr inbounds [4 x i64], ptr %7, i64 0, i64 0
  call void @sm2_z256_modp_mont_mul(ptr noundef %72, ptr noundef %73, ptr noundef %74)
  %75 = getelementptr inbounds [4 x i64], ptr %9, i64 0, i64 0
  %76 = getelementptr inbounds [4 x i64], ptr %9, i64 0, i64 0
  call void @sm2_z256_modp_mont_sqr(ptr noundef %75, ptr noundef %76)
  %77 = getelementptr inbounds [4 x i64], ptr %9, i64 0, i64 0
  %78 = getelementptr inbounds [4 x i64], ptr %9, i64 0, i64 0
  call void @sm2_z256_modp_mont_sqr(ptr noundef %77, ptr noundef %78)
  %79 = getelementptr inbounds [4 x i64], ptr %9, i64 0, i64 0
  %80 = getelementptr inbounds [4 x i64], ptr %9, i64 0, i64 0
  %81 = getelementptr inbounds [4 x i64], ptr %6, i64 0, i64 0
  call void @sm2_z256_modp_mont_mul(ptr noundef %79, ptr noundef %80, ptr noundef %81)
  %82 = getelementptr inbounds [4 x i64], ptr %9, i64 0, i64 0
  %83 = getelementptr inbounds [4 x i64], ptr %9, i64 0, i64 0
  call void @sm2_z256_modp_mont_sqr(ptr noundef %82, ptr noundef %83)
  %84 = getelementptr inbounds [4 x i64], ptr %9, i64 0, i64 0
  %85 = getelementptr inbounds [4 x i64], ptr %9, i64 0, i64 0
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  call void @sm2_z256_modp_mont_mul(ptr noundef %84, ptr noundef %85, ptr noundef %86)
  %87 = getelementptr inbounds [4 x i64], ptr %8, i64 0, i64 0
  %88 = getelementptr inbounds [4 x i64], ptr %9, i64 0, i64 0
  call void @sm2_z256_modp_mont_sqr(ptr noundef %87, ptr noundef %88)
  %89 = getelementptr inbounds [4 x i64], ptr %7, i64 0, i64 0
  %90 = getelementptr inbounds [4 x i64], ptr %8, i64 0, i64 0
  %91 = getelementptr inbounds [4 x i64], ptr %5, i64 0, i64 0
  call void @sm2_z256_modp_mont_mul(ptr noundef %89, ptr noundef %90, ptr noundef %91)
  %92 = getelementptr inbounds [4 x i64], ptr %9, i64 0, i64 0
  %93 = getelementptr inbounds [4 x i64], ptr %8, i64 0, i64 0
  call void @sm2_z256_modp_mont_sqr(ptr noundef %92, ptr noundef %93)
  store i32 1, ptr %10, align 4, !tbaa !9
  br label %94

94:                                               ; preds = %100, %71
  %95 = load i32, ptr %10, align 4, !tbaa !9
  %96 = icmp slt i32 %95, 31
  br i1 %96, label %97, label %103

97:                                               ; preds = %94
  %98 = getelementptr inbounds [4 x i64], ptr %9, i64 0, i64 0
  %99 = getelementptr inbounds [4 x i64], ptr %9, i64 0, i64 0
  call void @sm2_z256_modp_mont_sqr(ptr noundef %98, ptr noundef %99)
  br label %100

100:                                              ; preds = %97
  %101 = load i32, ptr %10, align 4, !tbaa !9
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %10, align 4, !tbaa !9
  br label %94, !llvm.loop !15

103:                                              ; preds = %94
  %104 = getelementptr inbounds [4 x i64], ptr %8, i64 0, i64 0
  %105 = getelementptr inbounds [4 x i64], ptr %9, i64 0, i64 0
  %106 = getelementptr inbounds [4 x i64], ptr %8, i64 0, i64 0
  call void @sm2_z256_modp_mont_mul(ptr noundef %104, ptr noundef %105, ptr noundef %106)
  %107 = getelementptr inbounds [4 x i64], ptr %8, i64 0, i64 0
  %108 = getelementptr inbounds [4 x i64], ptr %8, i64 0, i64 0
  call void @sm2_z256_modp_mont_sqr(ptr noundef %107, ptr noundef %108)
  %109 = getelementptr inbounds [4 x i64], ptr %8, i64 0, i64 0
  %110 = getelementptr inbounds [4 x i64], ptr %8, i64 0, i64 0
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  call void @sm2_z256_modp_mont_mul(ptr noundef %109, ptr noundef %110, ptr noundef %111)
  %112 = getelementptr inbounds [4 x i64], ptr %7, i64 0, i64 0
  %113 = getelementptr inbounds [4 x i64], ptr %8, i64 0, i64 0
  %114 = getelementptr inbounds [4 x i64], ptr %6, i64 0, i64 0
  call void @sm2_z256_modp_mont_mul(ptr noundef %112, ptr noundef %113, ptr noundef %114)
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %115

115:                                              ; preds = %121, %103
  %116 = load i32, ptr %10, align 4, !tbaa !9
  %117 = icmp slt i32 %116, 33
  br i1 %117, label %118, label %124

118:                                              ; preds = %115
  %119 = getelementptr inbounds [4 x i64], ptr %9, i64 0, i64 0
  %120 = getelementptr inbounds [4 x i64], ptr %9, i64 0, i64 0
  call void @sm2_z256_modp_mont_sqr(ptr noundef %119, ptr noundef %120)
  br label %121

121:                                              ; preds = %118
  %122 = load i32, ptr %10, align 4, !tbaa !9
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr %10, align 4, !tbaa !9
  br label %115, !llvm.loop !16

124:                                              ; preds = %115
  %125 = getelementptr inbounds [4 x i64], ptr %6, i64 0, i64 0
  %126 = getelementptr inbounds [4 x i64], ptr %9, i64 0, i64 0
  %127 = getelementptr inbounds [4 x i64], ptr %7, i64 0, i64 0
  call void @sm2_z256_modp_mont_mul(ptr noundef %125, ptr noundef %126, ptr noundef %127)
  %128 = getelementptr inbounds [4 x i64], ptr %7, i64 0, i64 0
  %129 = getelementptr inbounds [4 x i64], ptr %6, i64 0, i64 0
  %130 = getelementptr inbounds [4 x i64], ptr %7, i64 0, i64 0
  call void @sm2_z256_modp_mont_mul(ptr noundef %128, ptr noundef %129, ptr noundef %130)
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %131

131:                                              ; preds = %137, %124
  %132 = load i32, ptr %10, align 4, !tbaa !9
  %133 = icmp slt i32 %132, 32
  br i1 %133, label %134, label %140

134:                                              ; preds = %131
  %135 = getelementptr inbounds [4 x i64], ptr %9, i64 0, i64 0
  %136 = getelementptr inbounds [4 x i64], ptr %9, i64 0, i64 0
  call void @sm2_z256_modp_mont_sqr(ptr noundef %135, ptr noundef %136)
  br label %137

137:                                              ; preds = %134
  %138 = load i32, ptr %10, align 4, !tbaa !9
  %139 = add nsw i32 %138, 1
  store i32 %139, ptr %10, align 4, !tbaa !9
  br label %131, !llvm.loop !17

140:                                              ; preds = %131
  %141 = getelementptr inbounds [4 x i64], ptr %6, i64 0, i64 0
  %142 = getelementptr inbounds [4 x i64], ptr %9, i64 0, i64 0
  %143 = getelementptr inbounds [4 x i64], ptr %7, i64 0, i64 0
  call void @sm2_z256_modp_mont_mul(ptr noundef %141, ptr noundef %142, ptr noundef %143)
  %144 = getelementptr inbounds [4 x i64], ptr %7, i64 0, i64 0
  %145 = getelementptr inbounds [4 x i64], ptr %6, i64 0, i64 0
  %146 = getelementptr inbounds [4 x i64], ptr %7, i64 0, i64 0
  call void @sm2_z256_modp_mont_mul(ptr noundef %144, ptr noundef %145, ptr noundef %146)
  %147 = getelementptr inbounds [4 x i64], ptr %8, i64 0, i64 0
  %148 = getelementptr inbounds [4 x i64], ptr %6, i64 0, i64 0
  %149 = getelementptr inbounds [4 x i64], ptr %8, i64 0, i64 0
  call void @sm2_z256_modp_mont_mul(ptr noundef %147, ptr noundef %148, ptr noundef %149)
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %150

150:                                              ; preds = %156, %140
  %151 = load i32, ptr %10, align 4, !tbaa !9
  %152 = icmp slt i32 %151, 32
  br i1 %152, label %153, label %159

153:                                              ; preds = %150
  %154 = getelementptr inbounds [4 x i64], ptr %9, i64 0, i64 0
  %155 = getelementptr inbounds [4 x i64], ptr %9, i64 0, i64 0
  call void @sm2_z256_modp_mont_sqr(ptr noundef %154, ptr noundef %155)
  br label %156

156:                                              ; preds = %153
  %157 = load i32, ptr %10, align 4, !tbaa !9
  %158 = add nsw i32 %157, 1
  store i32 %158, ptr %10, align 4, !tbaa !9
  br label %150, !llvm.loop !18

159:                                              ; preds = %150
  %160 = getelementptr inbounds [4 x i64], ptr %6, i64 0, i64 0
  %161 = getelementptr inbounds [4 x i64], ptr %9, i64 0, i64 0
  %162 = getelementptr inbounds [4 x i64], ptr %7, i64 0, i64 0
  call void @sm2_z256_modp_mont_mul(ptr noundef %160, ptr noundef %161, ptr noundef %162)
  %163 = getelementptr inbounds [4 x i64], ptr %7, i64 0, i64 0
  %164 = getelementptr inbounds [4 x i64], ptr %6, i64 0, i64 0
  %165 = getelementptr inbounds [4 x i64], ptr %7, i64 0, i64 0
  call void @sm2_z256_modp_mont_mul(ptr noundef %163, ptr noundef %164, ptr noundef %165)
  %166 = getelementptr inbounds [4 x i64], ptr %8, i64 0, i64 0
  %167 = getelementptr inbounds [4 x i64], ptr %6, i64 0, i64 0
  %168 = getelementptr inbounds [4 x i64], ptr %8, i64 0, i64 0
  call void @sm2_z256_modp_mont_mul(ptr noundef %166, ptr noundef %167, ptr noundef %168)
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %169

169:                                              ; preds = %175, %159
  %170 = load i32, ptr %10, align 4, !tbaa !9
  %171 = icmp slt i32 %170, 32
  br i1 %171, label %172, label %178

172:                                              ; preds = %169
  %173 = getelementptr inbounds [4 x i64], ptr %9, i64 0, i64 0
  %174 = getelementptr inbounds [4 x i64], ptr %9, i64 0, i64 0
  call void @sm2_z256_modp_mont_sqr(ptr noundef %173, ptr noundef %174)
  br label %175

175:                                              ; preds = %172
  %176 = load i32, ptr %10, align 4, !tbaa !9
  %177 = add nsw i32 %176, 1
  store i32 %177, ptr %10, align 4, !tbaa !9
  br label %169, !llvm.loop !19

178:                                              ; preds = %169
  %179 = getelementptr inbounds [4 x i64], ptr %6, i64 0, i64 0
  %180 = getelementptr inbounds [4 x i64], ptr %9, i64 0, i64 0
  %181 = getelementptr inbounds [4 x i64], ptr %7, i64 0, i64 0
  call void @sm2_z256_modp_mont_mul(ptr noundef %179, ptr noundef %180, ptr noundef %181)
  %182 = getelementptr inbounds [4 x i64], ptr %7, i64 0, i64 0
  %183 = getelementptr inbounds [4 x i64], ptr %6, i64 0, i64 0
  %184 = getelementptr inbounds [4 x i64], ptr %7, i64 0, i64 0
  call void @sm2_z256_modp_mont_mul(ptr noundef %182, ptr noundef %183, ptr noundef %184)
  %185 = getelementptr inbounds [4 x i64], ptr %8, i64 0, i64 0
  %186 = getelementptr inbounds [4 x i64], ptr %6, i64 0, i64 0
  %187 = getelementptr inbounds [4 x i64], ptr %8, i64 0, i64 0
  call void @sm2_z256_modp_mont_mul(ptr noundef %185, ptr noundef %186, ptr noundef %187)
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %188

188:                                              ; preds = %194, %178
  %189 = load i32, ptr %10, align 4, !tbaa !9
  %190 = icmp slt i32 %189, 32
  br i1 %190, label %191, label %197

191:                                              ; preds = %188
  %192 = getelementptr inbounds [4 x i64], ptr %9, i64 0, i64 0
  %193 = getelementptr inbounds [4 x i64], ptr %9, i64 0, i64 0
  call void @sm2_z256_modp_mont_sqr(ptr noundef %192, ptr noundef %193)
  br label %194

194:                                              ; preds = %191
  %195 = load i32, ptr %10, align 4, !tbaa !9
  %196 = add nsw i32 %195, 1
  store i32 %196, ptr %10, align 4, !tbaa !9
  br label %188, !llvm.loop !20

197:                                              ; preds = %188
  %198 = getelementptr inbounds [4 x i64], ptr %6, i64 0, i64 0
  %199 = getelementptr inbounds [4 x i64], ptr %9, i64 0, i64 0
  %200 = getelementptr inbounds [4 x i64], ptr %7, i64 0, i64 0
  call void @sm2_z256_modp_mont_mul(ptr noundef %198, ptr noundef %199, ptr noundef %200)
  %201 = getelementptr inbounds [4 x i64], ptr %7, i64 0, i64 0
  %202 = getelementptr inbounds [4 x i64], ptr %6, i64 0, i64 0
  %203 = getelementptr inbounds [4 x i64], ptr %7, i64 0, i64 0
  call void @sm2_z256_modp_mont_mul(ptr noundef %201, ptr noundef %202, ptr noundef %203)
  %204 = getelementptr inbounds [4 x i64], ptr %8, i64 0, i64 0
  %205 = getelementptr inbounds [4 x i64], ptr %6, i64 0, i64 0
  %206 = getelementptr inbounds [4 x i64], ptr %8, i64 0, i64 0
  call void @sm2_z256_modp_mont_mul(ptr noundef %204, ptr noundef %205, ptr noundef %206)
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %207

207:                                              ; preds = %213, %197
  %208 = load i32, ptr %10, align 4, !tbaa !9
  %209 = icmp slt i32 %208, 32
  br i1 %209, label %210, label %216

210:                                              ; preds = %207
  %211 = getelementptr inbounds [4 x i64], ptr %9, i64 0, i64 0
  %212 = getelementptr inbounds [4 x i64], ptr %9, i64 0, i64 0
  call void @sm2_z256_modp_mont_sqr(ptr noundef %211, ptr noundef %212)
  br label %213

213:                                              ; preds = %210
  %214 = load i32, ptr %10, align 4, !tbaa !9
  %215 = add nsw i32 %214, 1
  store i32 %215, ptr %10, align 4, !tbaa !9
  br label %207, !llvm.loop !21

216:                                              ; preds = %207
  %217 = load ptr, ptr %3, align 8, !tbaa !5
  %218 = getelementptr inbounds [4 x i64], ptr %8, i64 0, i64 0
  %219 = getelementptr inbounds [4 x i64], ptr %9, i64 0, i64 0
  call void @sm2_z256_modp_mont_mul(ptr noundef %217, ptr noundef %218, ptr noundef %219)
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #2
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #2
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #2
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #2
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #2
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #2
  ret void
}

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 = { 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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}


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

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

; Function Attrs: nounwind uwtable
define dso_local void @sm2_z256_modp_mont_inv(ptr noundef %0, ptr noundef %1) local_unnamed_addr #1 {
  %3 = alloca [4 x i64], align 16
  %4 = alloca [4 x i64], align 16
  %5 = alloca [4 x i64], align 16
  %6 = alloca [4 x i64], align 16
  %7 = alloca [4 x i64], align 16
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #2
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #2
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #2
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #2
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #2
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %3, ptr noundef %1)
  call void @sm2_z256_modp_mont_mul(ptr noundef nonnull %4, ptr noundef nonnull %3, ptr noundef %1)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %5, ptr noundef nonnull %4)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %5, ptr noundef nonnull %5)
  call void @sm2_z256_modp_mont_mul(ptr noundef nonnull %5, ptr noundef nonnull %5, ptr noundef nonnull %4)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %6, ptr noundef nonnull %5)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %6, ptr noundef nonnull %6)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %6, ptr noundef nonnull %6)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %6, ptr noundef nonnull %6)
  call void @sm2_z256_modp_mont_mul(ptr noundef nonnull %6, ptr noundef nonnull %6, ptr noundef nonnull %5)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %6)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_mul(ptr noundef nonnull %7, ptr noundef nonnull %7, ptr noundef nonnull %6)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_mul(ptr noundef nonnull %7, ptr noundef nonnull %7, ptr noundef nonnull %6)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_mul(ptr noundef nonnull %7, ptr noundef nonnull %7, ptr noundef nonnull %5)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_mul(ptr noundef nonnull %7, ptr noundef nonnull %7, ptr noundef nonnull %4)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_mul(ptr noundef nonnull %7, ptr noundef nonnull %7, ptr noundef %1)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %6, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_mul(ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %3)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %6)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_mul(ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %6)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %6, ptr noundef nonnull %6)
  call void @sm2_z256_modp_mont_mul(ptr noundef nonnull %6, ptr noundef nonnull %6, ptr noundef %1)
  call void @sm2_z256_modp_mont_mul(ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %4)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_mul(ptr noundef nonnull %4, ptr noundef nonnull %7, ptr noundef nonnull %5)
  call void @sm2_z256_modp_mont_mul(ptr noundef nonnull %5, ptr noundef nonnull %4, ptr noundef nonnull %5)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_mul(ptr noundef nonnull %4, ptr noundef nonnull %7, ptr noundef nonnull %5)
  call void @sm2_z256_modp_mont_mul(ptr noundef nonnull %5, ptr noundef nonnull %4, ptr noundef nonnull %5)
  call void @sm2_z256_modp_mont_mul(ptr noundef nonnull %6, ptr noundef nonnull %4, ptr noundef nonnull %6)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_mul(ptr noundef nonnull %4, ptr noundef nonnull %7, ptr noundef nonnull %5)
  call void @sm2_z256_modp_mont_mul(ptr noundef nonnull %5, ptr noundef nonnull %4, ptr noundef nonnull %5)
  call void @sm2_z256_modp_mont_mul(ptr noundef nonnull %6, ptr noundef nonnull %4, ptr noundef nonnull %6)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_mul(ptr noundef nonnull %4, ptr noundef nonnull %7, ptr noundef nonnull %5)
  call void @sm2_z256_modp_mont_mul(ptr noundef nonnull %5, ptr noundef nonnull %4, ptr noundef nonnull %5)
  call void @sm2_z256_modp_mont_mul(ptr noundef nonnull %6, ptr noundef nonnull %4, ptr noundef nonnull %6)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_mul(ptr noundef nonnull %4, ptr noundef nonnull %7, ptr noundef nonnull %5)
  call void @sm2_z256_modp_mont_mul(ptr noundef nonnull %5, ptr noundef nonnull %4, ptr noundef nonnull %5)
  call void @sm2_z256_modp_mont_mul(ptr noundef nonnull %6, ptr noundef nonnull %4, ptr noundef nonnull %6)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_sqr(ptr noundef nonnull %7, ptr noundef nonnull %7)
  call void @sm2_z256_modp_mont_mul(ptr noundef %0, ptr noundef nonnull %6, ptr noundef nonnull %7)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #2
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #2
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #2
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #2
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #2
  ret void
}

attributes #0 = { mustprogress 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 = { 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)"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,SROAPass,SimplifyCFGPass