; LLVM IR from intel/cryptography-primitives :: sources/ippcp/gfpec/sm2 (sm2_user_id_hash)

; 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._cpGFpEC = type { i32, i32, ptr, i32, i32, i32, ptr, ptr, ptr, ptr, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct._cpGFp = type { i32, i32, ptr }
%struct._gsModEngine = type { ptr, i32, i32, i32, i32, i32, ptr, ptr, ptr, i64, ptr, ptr, ptr, ptr, i32, i32, ptr }
%struct._cpGFpECPoint = type { i32, i32, i32, ptr }
%struct._gsModMethod = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

; Function Attrs: nounwind uwtable
define dso_local i32 @ippsGFpECUserIDHashSM2(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 {
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store i32 %2, ptr %10, align 4, !tbaa !9
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  %27 = load ptr, ptr %12, align 8, !tbaa !5
  %28 = icmp eq ptr null, %27
  br i1 %28, label %29, label %30

29:                                               ; preds = %6
  store i32 -8, ptr %7, align 4
  br label %236

30:                                               ; preds = %6
  %31 = load ptr, ptr %13, align 8, !tbaa !5
  %32 = icmp eq ptr null, %31
  br i1 %32, label %33, label %34

33:                                               ; preds = %30
  store i32 -8, ptr %7, align 4
  br label %236

34:                                               ; preds = %30
  %35 = load ptr, ptr %12, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct._cpGFpEC, ptr %35, i32 0, i32 0
  %37 = load i32, ptr %36, align 8, !tbaa !11
  %38 = load ptr, ptr %12, align 8, !tbaa !5
  %39 = call i64 @IPP_UINT_PTR(ptr noundef %38)
  %40 = trunc i64 %39 to i32
  %41 = xor i32 %37, %40
  %42 = icmp eq i32 %41, 1129136461
  br i1 %42, label %44, label %43

43:                                               ; preds = %34
  store i32 -13, ptr %7, align 4
  br label %236

44:                                               ; preds = %34
  %45 = load ptr, ptr %12, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct._cpGFpEC, ptr %45, i32 0, i32 3
  %47 = load i32, ptr %46, align 8, !tbaa !13
  %48 = icmp ne i32 %47, 0
  br i1 %48, label %50, label %49

49:                                               ; preds = %44
  store i32 -13, ptr %7, align 4
  br label %236

50:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %51 = load ptr, ptr %12, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct._cpGFpEC, ptr %51, i32 0, i32 2
  %53 = load ptr, ptr %52, align 8, !tbaa !14
  %54 = getelementptr inbounds %struct._cpGFp, ptr %53, i32 0, i32 2
  %55 = load ptr, ptr %54, align 8, !tbaa !15
  store ptr %55, ptr %14, align 8, !tbaa !5
  %56 = load ptr, ptr %14, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct._gsModEngine, ptr %56, i32 0, i32 1
  %58 = load i32, ptr %57, align 8, !tbaa !17
  %59 = icmp slt i32 1, %58
  br i1 %59, label %60, label %61

60:                                               ; preds = %50
  store i32 -14, ptr %7, align 4
  store i32 1, ptr %15, align 4
  br label %235

61:                                               ; preds = %50
  %62 = load ptr, ptr %8, align 8, !tbaa !5
  %63 = icmp eq ptr null, %62
  br i1 %63, label %64, label %65

64:                                               ; preds = %61
  store i32 -8, ptr %7, align 4
  store i32 1, ptr %15, align 4
  br label %235

65:                                               ; preds = %61
  %66 = load ptr, ptr %9, align 8, !tbaa !5
  %67 = icmp eq ptr null, %66
  br i1 %67, label %68, label %69

68:                                               ; preds = %65
  store i32 -8, ptr %7, align 4
  store i32 1, ptr %15, align 4
  br label %235

69:                                               ; preds = %65
  %70 = load i32, ptr %10, align 4, !tbaa !9
  %71 = icmp sgt i32 %70, 0
  br i1 %71, label %73, label %72

72:                                               ; preds = %69
  store i32 -11, ptr %7, align 4
  store i32 1, ptr %15, align 4
  br label %235

73:                                               ; preds = %69
  %74 = load ptr, ptr %11, align 8, !tbaa !5
  %75 = icmp eq ptr null, %74
  br i1 %75, label %76, label %77

76:                                               ; preds = %73
  store i32 -8, ptr %7, align 4
  store i32 1, ptr %15, align 4
  br label %235

77:                                               ; preds = %73
  %78 = load ptr, ptr %11, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct._cpGFpECPoint, ptr %78, i32 0, i32 0
  %80 = load i32, ptr %79, align 8, !tbaa !20
  %81 = load ptr, ptr %11, align 8, !tbaa !5
  %82 = call i64 @IPP_UINT_PTR(ptr noundef %81)
  %83 = trunc i64 %82 to i32
  %84 = xor i32 %80, %83
  %85 = icmp eq i32 %84, 1129136462
  br i1 %85, label %87, label %86

86:                                               ; preds = %77
  store i32 -13, ptr %7, align 4
  store i32 1, ptr %15, align 4
  br label %235

87:                                               ; preds = %77
  %88 = load ptr, ptr %11, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct._cpGFpECPoint, ptr %88, i32 0, i32 2
  %90 = load i32, ptr %89, align 8, !tbaa !22
  %91 = load ptr, ptr %14, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct._gsModEngine, ptr %91, i32 0, i32 3
  %93 = load i32, ptr %92, align 8, !tbaa !23
  %94 = icmp ne i32 %90, %93
  br i1 %94, label %95, label %96

95:                                               ; preds = %87
  store i32 -11, ptr %7, align 4
  store i32 1, ptr %15, align 4
  br label %235

96:                                               ; preds = %87
  %97 = load ptr, ptr %11, align 8, !tbaa !5
  %98 = load ptr, ptr %12, align 8, !tbaa !5
  %99 = call i32 @gfec_IsPointOnCurve(ptr noundef %97, ptr noundef %98)
  %100 = icmp eq i32 0, %99
  br i1 %100, label %101, label %102

101:                                              ; preds = %96
  store i32 -1017, ptr %7, align 4
  store i32 1, ptr %15, align 4
  br label %235

102:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  store i32 0, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %103 = load ptr, ptr %14, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct._gsModEngine, ptr %103, i32 0, i32 2
  %105 = load i32, ptr %104, align 4, !tbaa !24
  store i32 %105, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %106 = load i32, ptr %17, align 4, !tbaa !9
  %107 = add nsw i32 %106, 7
  %108 = sdiv i32 %107, 8
  store i32 %108, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %109 = load ptr, ptr %14, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct._gsModEngine, ptr %109, i32 0, i32 3
  %111 = load i32, ptr %110, align 8, !tbaa !23
  store i32 %111, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %112 = load ptr, ptr %14, align 8, !tbaa !5
  %113 = call ptr @gsModPoolAlloc(ptr noundef %112, i32 noundef 6)
  store ptr %113, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %114 = load ptr, ptr %20, align 8, !tbaa !5
  store ptr %114, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  %115 = load ptr, ptr %20, align 8, !tbaa !5
  %116 = load i32, ptr %19, align 4, !tbaa !9
  %117 = mul nsw i32 1, %116
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds i64, ptr %115, i64 %118
  store ptr %119, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  %120 = load ptr, ptr %20, align 8, !tbaa !5
  %121 = load i32, ptr %19, align 4, !tbaa !9
  %122 = mul nsw i32 2, %121
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds i64, ptr %120, i64 %123
  store ptr %124, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  %125 = load ptr, ptr %20, align 8, !tbaa !5
  %126 = load i32, ptr %19, align 4, !tbaa !9
  %127 = mul nsw i32 3, %126
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds i64, ptr %125, i64 %128
  store ptr %129, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  %130 = load ptr, ptr %20, align 8, !tbaa !5
  %131 = load i32, ptr %19, align 4, !tbaa !9
  %132 = mul nsw i32 4, %131
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds i64, ptr %130, i64 %133
  store ptr %134, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  %135 = load ptr, ptr %20, align 8, !tbaa !5
  %136 = load i32, ptr %19, align 4, !tbaa !9
  %137 = mul nsw i32 5, %136
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds i64, ptr %135, i64 %138
  store ptr %139, ptr %26, align 8, !tbaa !5
  %140 = load ptr, ptr %25, align 8, !tbaa !5
  %141 = load ptr, ptr %26, align 8, !tbaa !5
  %142 = load ptr, ptr %11, align 8, !tbaa !5
  %143 = load ptr, ptr %12, align 8, !tbaa !5
  %144 = call i32 @gfec_GetPoint(ptr noundef %140, ptr noundef %141, ptr noundef %142, ptr noundef %143)
  %145 = load ptr, ptr %14, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct._gsModEngine, ptr %145, i32 0, i32 6
  %147 = load ptr, ptr %146, align 8, !tbaa !25
  %148 = getelementptr inbounds %struct._gsModMethod, ptr %147, i32 0, i32 1
  %149 = load ptr, ptr %148, align 8, !tbaa !26
  %150 = load ptr, ptr %25, align 8, !tbaa !5
  %151 = load ptr, ptr %25, align 8, !tbaa !5
  %152 = load ptr, ptr %14, align 8, !tbaa !5
  %153 = call ptr %149(ptr noundef %150, ptr noundef %151, ptr noundef %152)
  %154 = load ptr, ptr %14, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct._gsModEngine, ptr %154, i32 0, i32 6
  %156 = load ptr, ptr %155, align 8, !tbaa !25
  %157 = getelementptr inbounds %struct._gsModMethod, ptr %156, i32 0, i32 1
  %158 = load ptr, ptr %157, align 8, !tbaa !26
  %159 = load ptr, ptr %26, align 8, !tbaa !5
  %160 = load ptr, ptr %26, align 8, !tbaa !5
  %161 = load ptr, ptr %14, align 8, !tbaa !5
  %162 = call ptr %158(ptr noundef %159, ptr noundef %160, ptr noundef %161)
  %163 = load ptr, ptr %14, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct._gsModEngine, ptr %163, i32 0, i32 6
  %165 = load ptr, ptr %164, align 8, !tbaa !25
  %166 = getelementptr inbounds %struct._gsModMethod, ptr %165, i32 0, i32 1
  %167 = load ptr, ptr %166, align 8, !tbaa !26
  %168 = load ptr, ptr %21, align 8, !tbaa !5
  %169 = load ptr, ptr %12, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct._cpGFpEC, ptr %169, i32 0, i32 6
  %171 = load ptr, ptr %170, align 8, !tbaa !28
  %172 = load ptr, ptr %14, align 8, !tbaa !5
  %173 = call ptr %167(ptr noundef %168, ptr noundef %171, ptr noundef %172)
  %174 = load ptr, ptr %14, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct._gsModEngine, ptr %174, i32 0, i32 6
  %176 = load ptr, ptr %175, align 8, !tbaa !25
  %177 = getelementptr inbounds %struct._gsModMethod, ptr %176, i32 0, i32 1
  %178 = load ptr, ptr %177, align 8, !tbaa !26
  %179 = load ptr, ptr %22, align 8, !tbaa !5
  %180 = load ptr, ptr %12, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct._cpGFpEC, ptr %180, i32 0, i32 7
  %182 = load ptr, ptr %181, align 8, !tbaa !29
  %183 = load ptr, ptr %14, align 8, !tbaa !5
  %184 = call ptr %178(ptr noundef %179, ptr noundef %182, ptr noundef %183)
  %185 = load ptr, ptr %14, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct._gsModEngine, ptr %185, i32 0, i32 6
  %187 = load ptr, ptr %186, align 8, !tbaa !25
  %188 = getelementptr inbounds %struct._gsModMethod, ptr %187, i32 0, i32 1
  %189 = load ptr, ptr %188, align 8, !tbaa !26
  %190 = load ptr, ptr %23, align 8, !tbaa !5
  %191 = load ptr, ptr %12, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct._cpGFpEC, ptr %191, i32 0, i32 8
  %193 = load ptr, ptr %192, align 8, !tbaa !30
  %194 = load ptr, ptr %14, align 8, !tbaa !5
  %195 = call ptr %189(ptr noundef %190, ptr noundef %193, ptr noundef %194)
  %196 = load ptr, ptr %14, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct._gsModEngine, ptr %196, i32 0, i32 6
  %198 = load ptr, ptr %197, align 8, !tbaa !25
  %199 = getelementptr inbounds %struct._gsModMethod, ptr %198, i32 0, i32 1
  %200 = load ptr, ptr %199, align 8, !tbaa !26
  %201 = load ptr, ptr %24, align 8, !tbaa !5
  %202 = load ptr, ptr %12, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct._cpGFpEC, ptr %202, i32 0, i32 8
  %204 = load ptr, ptr %203, align 8, !tbaa !30
  %205 = load i32, ptr %19, align 4, !tbaa !9
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds i64, ptr %204, i64 %206
  %208 = load ptr, ptr %14, align 8, !tbaa !5
  %209 = call ptr %200(ptr noundef %201, ptr noundef %207, ptr noundef %208)
  %210 = load ptr, ptr %25, align 8, !tbaa !5
  %211 = load i32, ptr %18, align 4, !tbaa !9
  call void @cpSM2KE_reverse_inplace(ptr noundef %210, i32 noundef %211)
  %212 = load ptr, ptr %26, align 8, !tbaa !5
  %213 = load i32, ptr %18, align 4, !tbaa !9
  call void @cpSM2KE_reverse_inplace(ptr noundef %212, i32 noundef %213)
  %214 = load ptr, ptr %21, align 8, !tbaa !5
  %215 = load i32, ptr %18, align 4, !tbaa !9
  call void @cpSM2KE_reverse_inplace(ptr noundef %214, i32 noundef %215)
  %216 = load ptr, ptr %22, align 8, !tbaa !5
  %217 = load i32, ptr %18, align 4, !tbaa !9
  call void @cpSM2KE_reverse_inplace(ptr noundef %216, i32 noundef %217)
  %218 = load ptr, ptr %23, align 8, !tbaa !5
  %219 = load i32, ptr %18, align 4, !tbaa !9
  call void @cpSM2KE_reverse_inplace(ptr noundef %218, i32 noundef %219)
  %220 = load ptr, ptr %24, align 8, !tbaa !5
  %221 = load i32, ptr %18, align 4, !tbaa !9
  call void @cpSM2KE_reverse_inplace(ptr noundef %220, i32 noundef %221)
  %222 = load ptr, ptr %8, align 8, !tbaa !5
  %223 = load ptr, ptr %9, align 8, !tbaa !5
  %224 = load i32, ptr %10, align 4, !tbaa !9
  %225 = load i32, ptr %18, align 4, !tbaa !9
  %226 = load ptr, ptr %21, align 8, !tbaa !5
  %227 = load ptr, ptr %22, align 8, !tbaa !5
  %228 = load ptr, ptr %23, align 8, !tbaa !5
  %229 = load ptr, ptr %24, align 8, !tbaa !5
  %230 = load ptr, ptr %25, align 8, !tbaa !5
  %231 = load ptr, ptr %26, align 8, !tbaa !5
  %232 = call i32 @computeZa_user_id_hash_sm2(ptr noundef %222, ptr noundef %223, i32 noundef %224, i32 noundef %225, ptr noundef %226, ptr noundef %227, ptr noundef %228, ptr noundef %229, ptr noundef %230, ptr noundef %231)
  store i32 %232, ptr %16, align 4, !tbaa !9
  %233 = load ptr, ptr %14, align 8, !tbaa !5
  call void @gsModPoolFree(ptr noundef %233, i32 noundef 6)
  %234 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %234, ptr %7, align 4
  store i32 1, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br label %235

235:                                              ; preds = %102, %101, %95, %86, %76, %72, %68, %64, %60
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  br label %236

236:                                              ; preds = %235, %49, %43, %33, %29
  %237 = load i32, ptr %7, align 4
  ret i32 %237
}

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

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

declare i32 @gfec_IsPointOnCurve(ptr noundef, ptr noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @gsModPoolAlloc(ptr noundef, i32 noundef) #1

declare i32 @gfec_GetPoint(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @cpSM2KE_reverse_inplace(ptr noundef, i32 noundef) #1

declare i32 @computeZa_user_id_hash_sm2(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @gsModPoolFree(ptr noundef, i32 noundef) #1

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

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 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_cpGFpEC", !10, i64 0, !10, i64 4, !6, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !10, i64 64, !10, i64 68, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128}
!13 = !{!12, !10, i64 16}
!14 = !{!12, !6, i64 8}
!15 = !{!16, !6, i64 8}
!16 = !{!"_cpGFp", !10, i64 0, !10, i64 4, !6, i64 8}
!17 = !{!18, !10, i64 8}
!18 = !{!"_gsModEngine", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !19, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !10, i64 96, !10, i64 100, !6, i64 104}
!19 = !{!"long long", !7, i64 0}
!20 = !{!21, !10, i64 0}
!21 = !{!"_cpGFpECPoint", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16}
!22 = !{!21, !10, i64 8}
!23 = !{!18, !10, i64 16}
!24 = !{!18, !10, i64 12}
!25 = !{!18, !6, i64 32}
!26 = !{!27, !6, i64 8}
!27 = !{!"_gsModMethod", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80}
!28 = !{!12, !6, i64 32}
!29 = !{!12, !6, i64 40}
!30 = !{!12, !6, i64 48}


; 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: nounwind uwtable
define dso_local i32 @ippsGFpECUserIDHashSM2(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef readnone %5) local_unnamed_addr #0 {
  %7 = icmp eq ptr %4, null
  %8 = icmp eq ptr %5, null
  %or.cond = or i1 %7, %8
  br i1 %or.cond, label %103, label %9

9:                                                ; preds = %6
  %10 = load i32, ptr %4, align 8, !tbaa !5
  %11 = tail call i64 @IPP_UINT_PTR(ptr noundef nonnull %4)
  %12 = trunc i64 %11 to i32
  %13 = xor i32 %10, %12
  %14 = icmp eq i32 %13, 1129136461
  br i1 %14, label %15, label %103

15:                                               ; preds = %9
  %16 = getelementptr inbounds i8, ptr %4, i64 16
  %17 = load i32, ptr %16, align 8, !tbaa !11
  %.not = icmp eq i32 %17, 0
  br i1 %.not, label %103, label %18

18:                                               ; preds = %15
  %19 = getelementptr inbounds i8, ptr %4, i64 8
  %20 = load ptr, ptr %19, align 8, !tbaa !12
  %21 = getelementptr inbounds i8, ptr %20, i64 8
  %22 = load ptr, ptr %21, align 8, !tbaa !13
  %23 = getelementptr inbounds i8, ptr %22, i64 8
  %24 = load i32, ptr %23, align 8, !tbaa !15
  %25 = icmp sgt i32 %24, 1
  br i1 %25, label %103, label %26

26:                                               ; preds = %18
  %27 = icmp eq ptr %0, null
  %28 = icmp eq ptr %1, null
  %or.cond91 = or i1 %27, %28
  br i1 %or.cond91, label %103, label %29

29:                                               ; preds = %26
  %30 = icmp sgt i32 %2, 0
  br i1 %30, label %31, label %103

31:                                               ; preds = %29
  %32 = icmp eq ptr %3, null
  br i1 %32, label %103, label %33

33:                                               ; preds = %31
  %34 = load i32, ptr %3, align 8, !tbaa !18
  %35 = tail call i64 @IPP_UINT_PTR(ptr noundef nonnull %3)
  %36 = trunc i64 %35 to i32
  %37 = xor i32 %34, %36
  %38 = icmp eq i32 %37, 1129136462
  br i1 %38, label %39, label %103

39:                                               ; preds = %33
  %40 = getelementptr inbounds i8, ptr %3, i64 8
  %41 = load i32, ptr %40, align 8, !tbaa !20
  %42 = getelementptr inbounds i8, ptr %22, i64 16
  %43 = load i32, ptr %42, align 8, !tbaa !21
  %.not90 = icmp eq i32 %41, %43
  br i1 %.not90, label %44, label %103

44:                                               ; preds = %39
  %45 = tail call i32 @gfec_IsPointOnCurve(ptr noundef nonnull %3, ptr noundef nonnull %4) #3
  %46 = icmp eq i32 %45, 0
  br i1 %46, label %103, label %47

47:                                               ; preds = %44
  %48 = getelementptr inbounds i8, ptr %22, i64 12
  %49 = load i32, ptr %48, align 4, !tbaa !22
  %50 = add nsw i32 %49, 7
  %51 = sdiv i32 %50, 8
  %52 = load i32, ptr %42, align 8, !tbaa !21
  %53 = tail call ptr @gsModPoolAlloc(ptr noundef nonnull %22, i32 noundef 6)
  %54 = sext i32 %52 to i64
  %55 = getelementptr inbounds i64, ptr %53, i64 %54
  %56 = shl nsw i32 %52, 1
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds i64, ptr %53, i64 %57
  %59 = mul nsw i32 %52, 3
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds i64, ptr %53, i64 %60
  %62 = shl nsw i32 %52, 2
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds i64, ptr %53, i64 %63
  %65 = mul nsw i32 %52, 5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds i64, ptr %53, i64 %66
  %68 = tail call i32 @gfec_GetPoint(ptr noundef %64, ptr noundef %67, ptr noundef nonnull %3, ptr noundef nonnull %4) #3
  %69 = getelementptr inbounds i8, ptr %22, i64 32
  %70 = load ptr, ptr %69, align 8, !tbaa !23
  %71 = getelementptr inbounds i8, ptr %70, i64 8
  %72 = load ptr, ptr %71, align 8, !tbaa !24
  %73 = tail call ptr %72(ptr noundef %64, ptr noundef %64, ptr noundef nonnull %22) #3
  %74 = load ptr, ptr %69, align 8, !tbaa !23
  %75 = getelementptr inbounds i8, ptr %74, i64 8
  %76 = load ptr, ptr %75, align 8, !tbaa !24
  %77 = tail call ptr %76(ptr noundef %67, ptr noundef %67, ptr noundef nonnull %22) #3
  %78 = load ptr, ptr %69, align 8, !tbaa !23
  %79 = getelementptr inbounds i8, ptr %78, i64 8
  %80 = load ptr, ptr %79, align 8, !tbaa !24
  %81 = getelementptr inbounds i8, ptr %4, i64 32
  %82 = load ptr, ptr %81, align 8, !tbaa !26
  %83 = tail call ptr %80(ptr noundef %53, ptr noundef %82, ptr noundef nonnull %22) #3
  %84 = load ptr, ptr %69, align 8, !tbaa !23
  %85 = getelementptr inbounds i8, ptr %84, i64 8
  %86 = load ptr, ptr %85, align 8, !tbaa !24
  %87 = getelementptr inbounds i8, ptr %4, i64 40
  %88 = load ptr, ptr %87, align 8, !tbaa !27
  %89 = tail call ptr %86(ptr noundef %55, ptr noundef %88, ptr noundef nonnull %22) #3
  %90 = load ptr, ptr %69, align 8, !tbaa !23
  %91 = getelementptr inbounds i8, ptr %90, i64 8
  %92 = load ptr, ptr %91, align 8, !tbaa !24
  %93 = getelementptr inbounds i8, ptr %4, i64 48
  %94 = load ptr, ptr %93, align 8, !tbaa !28
  %95 = tail call ptr %92(ptr noundef %58, ptr noundef %94, ptr noundef nonnull %22) #3
  %96 = load ptr, ptr %69, align 8, !tbaa !23
  %97 = getelementptr inbounds i8, ptr %96, i64 8
  %98 = load ptr, ptr %97, align 8, !tbaa !24
  %99 = load ptr, ptr %93, align 8, !tbaa !28
  %100 = getelementptr inbounds i64, ptr %99, i64 %54
  %101 = tail call ptr %98(ptr noundef %61, ptr noundef %100, ptr noundef nonnull %22) #3
  tail call void @cpSM2KE_reverse_inplace(ptr noundef %64, i32 noundef %51)
  tail call void @cpSM2KE_reverse_inplace(ptr noundef %67, i32 noundef %51)
  tail call void @cpSM2KE_reverse_inplace(ptr noundef %53, i32 noundef %51)
  tail call void @cpSM2KE_reverse_inplace(ptr noundef %55, i32 noundef %51)
  tail call void @cpSM2KE_reverse_inplace(ptr noundef %58, i32 noundef %51)
  tail call void @cpSM2KE_reverse_inplace(ptr noundef %61, i32 noundef %51)
  %102 = tail call i32 @computeZa_user_id_hash_sm2(ptr noundef nonnull %0, ptr noundef nonnull %1, i32 noundef %2, i32 noundef %51, ptr noundef %53, ptr noundef %55, ptr noundef %58, ptr noundef %61, ptr noundef %64, ptr noundef %67) #3
  tail call void @gsModPoolFree(ptr noundef nonnull %22, i32 noundef 6)
  br label %103

103:                                              ; preds = %47, %18, %26, %29, %31, %33, %39, %44, %15, %9, %6
  %.1 = phi i32 [ -8, %6 ], [ -13, %9 ], [ -13, %15 ], [ %102, %47 ], [ -14, %18 ], [ -8, %26 ], [ -11, %29 ], [ -8, %31 ], [ -13, %33 ], [ -11, %39 ], [ -1017, %44 ]
  ret i32 %.1
}

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

declare i32 @gfec_IsPointOnCurve(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @gsModPoolAlloc(ptr noundef, i32 noundef) local_unnamed_addr #1

declare i32 @gfec_GetPoint(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @cpSM2KE_reverse_inplace(ptr noundef, i32 noundef) local_unnamed_addr #1

declare i32 @computeZa_user_id_hash_sm2(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @gsModPoolFree(ptr noundef, i32 noundef) local_unnamed_addr #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 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { 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, !7, i64 0}
!6 = !{!"_cpGFpEC", !7, i64 0, !7, i64 4, !10, i64 8, !7, i64 16, !7, i64 20, !7, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !7, i64 64, !7, i64 68, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 16}
!12 = !{!6, !10, i64 8}
!13 = !{!14, !10, i64 8}
!14 = !{!"_cpGFp", !7, i64 0, !7, i64 4, !10, i64 8}
!15 = !{!16, !7, i64 8}
!16 = !{!"_gsModEngine", !10, i64 0, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !17, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !7, i64 96, !7, i64 100, !10, i64 104}
!17 = !{!"long long", !8, i64 0}
!18 = !{!19, !7, i64 0}
!19 = !{!"_cpGFpECPoint", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16}
!20 = !{!19, !7, i64 8}
!21 = !{!16, !7, i64 16}
!22 = !{!16, !7, i64 12}
!23 = !{!16, !10, i64 32}
!24 = !{!25, !10, i64 8}
!25 = !{!"_gsModMethod", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80}
!26 = !{!6, !10, i64 32}
!27 = !{!6, !10, i64 40}
!28 = !{!6, !10, i64 48}


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