; LLVM IR from specinfo-ua/UAPKI :: library/common/pkix (dstu4145-params)

; 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.DSTUEllipticCurve = type { i32, %union.DSTUEllipticCurve_u, %struct.asn_struct_ctx_s }
%union.DSTUEllipticCurve_u = type { %struct.ECBinary }
%struct.ECBinary = type { ptr, %struct.BinaryField, i64, %struct.OCTET_STRING, %struct.ASN__PRIMITIVE_TYPE_s, %struct.OCTET_STRING, %struct.asn_struct_ctx_s }
%struct.BinaryField = type { %struct.ASN__PRIMITIVE_TYPE_s, ptr, %struct.asn_struct_ctx_s }
%struct.ASN__PRIMITIVE_TYPE_s = type { ptr, i32 }
%struct.OCTET_STRING = type { ptr, i32, %struct.asn_struct_ctx_s }
%struct.asn_struct_ctx_s = type { i16, i16, i32, ptr, i64 }

@.str = external hidden unnamed_addr constant [30 x i8], align 1
@DSTU4145_M257_PB_LE = external hidden constant [119 x i8], align 16
@DSTU4145_M257_PB_BE = external hidden constant [119 x i8], align 16
@OID_DSTU4145_PARAM_M257_PB = external global ptr, align 8
@DSTU4145_M431_PB_LE = external hidden constant [191 x i8], align 16
@DSTU4145_M431_PB_BE = external hidden constant [191 x i8], align 16
@OID_DSTU4145_PARAM_M431_PB = external global ptr, align 8
@DSTU4145_M163_PB_LE = external hidden constant [91 x i8], align 16
@DSTU4145_M163_PB_BE = external hidden constant [91 x i8], align 16
@OID_DSTU4145_PARAM_M163_PB = external global ptr, align 8
@DSTU4145_M167_PB_LE = external hidden constant [83 x i8], align 16
@DSTU4145_M167_PB_BE = external hidden constant [83 x i8], align 16
@OID_DSTU4145_PARAM_M167_PB = external global ptr, align 8
@DSTU4145_M173_PB_LE = external hidden constant [94 x i8], align 16
@DSTU4145_M173_PB_BE = external hidden constant [94 x i8], align 16
@OID_DSTU4145_PARAM_M173_PB = external global ptr, align 8
@DSTU4145_M179_PB_LE = external hidden constant [97 x i8], align 16
@DSTU4145_M179_PB_BE = external hidden constant [97 x i8], align 16
@OID_DSTU4145_PARAM_M179_PB = external global ptr, align 8
@DSTU4145_M191_PB_LE = external hidden constant [92 x i8], align 16
@DSTU4145_M191_PB_BE = external hidden constant [92 x i8], align 16
@OID_DSTU4145_PARAM_M191_PB = external global ptr, align 8
@DSTU4145_M233_PB_LE = external hidden constant [118 x i8], align 16
@DSTU4145_M233_PB_BE = external hidden constant [118 x i8], align 16
@OID_DSTU4145_PARAM_M233_PB = external global ptr, align 8
@DSTU4145_M307_PB_LE = external hidden constant [146 x i8], align 16
@DSTU4145_M307_PB_BE = external hidden constant [146 x i8], align 16
@OID_DSTU4145_PARAM_M307_PB = external global ptr, align 8
@DSTU4145_M367_PB_LE = external hidden constant [159 x i8], align 16
@DSTU4145_M367_PB_BE = external hidden constant [159 x i8], align 16
@OID_DSTU4145_PARAM_M367_PB = external global ptr, align 8
@DSTU4145_M173_ONB_LE = external hidden constant [94 x i8], align 16
@DSTU4145_M173_ONB_BE = external hidden constant [94 x i8], align 16
@OID_DSTU4145_PARAM_M173_ONB = external global ptr, align 8
@DSTU4145_M179_ONB_LE = external hidden constant [97 x i8], align 16
@DSTU4145_M179_ONB_BE = external hidden constant [97 x i8], align 16
@OID_DSTU4145_PARAM_M179_ONB = external global ptr, align 8
@DSTU4145_M191_ONB_LE = external hidden constant [92 x i8], align 16
@DSTU4145_M191_ONB_BE = external hidden constant [92 x i8], align 16
@OID_DSTU4145_PARAM_M191_ONB = external global ptr, align 8
@DSTU4145_M233_ONB_LE = external hidden constant [118 x i8], align 16
@DSTU4145_M233_ONB_BE = external hidden constant [118 x i8], align 16
@OID_DSTU4145_PARAM_M233_ONB = external global ptr, align 8
@DSTU4145_M431_ONB_LE = external hidden constant [191 x i8], align 16
@DSTU4145_M431_ONB_BE = external hidden constant [191 x i8], align 16
@OID_DSTU4145_PARAM_M431_ONB = external global ptr, align 8

; Function Attrs: nounwind uwtable
define dso_local i32 @dstu4145_params_get_std_oid(ptr noundef %0, ptr noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  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 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  store ptr null, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %8

8:                                                ; preds = %2
  %9 = load ptr, ptr %3, align 8, !tbaa !5
  %10 = icmp ne ptr %9, null
  br i1 %10, label %13, label %11

11:                                               ; preds = %8
  store i32 2, ptr %5, align 4, !tbaa !9
  %12 = load i32, ptr %5, align 4, !tbaa !9
  call void @stacktrace_create(ptr noundef @.str, i64 noundef 389, i32 noundef %12, ptr noundef null)
  br label %375

13:                                               ; preds = %8
  br label %14

14:                                               ; preds = %13
  br label %15

15:                                               ; preds = %14
  br label %16

16:                                               ; preds = %15
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = icmp ne ptr %17, null
  br i1 %18, label %21, label %19

19:                                               ; preds = %16
  store i32 2, ptr %5, align 4, !tbaa !9
  %20 = load i32, ptr %5, align 4, !tbaa !9
  call void @stacktrace_create(ptr noundef @.str, i64 noundef 390, i32 noundef %20, ptr noundef null)
  br label %375

21:                                               ; preds = %16
  br label %22

22:                                               ; preds = %21
  br label %23

23:                                               ; preds = %22
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr null, ptr %24, align 8, !tbaa !5
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.DSTUEllipticCurve, ptr %25, i32 0, i32 0
  %27 = load i32, ptr %26, align 8, !tbaa !13
  %28 = icmp eq i32 %27, 2
  br i1 %28, label %29, label %42

29:                                               ; preds = %23
  br label %30

30:                                               ; preds = %29
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.DSTUEllipticCurve, ptr %31, i32 0, i32 1
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = call i32 @asn_oid_to_text(ptr noundef %32, ptr noundef %33)
  store i32 %34, ptr %5, align 4, !tbaa !9
  %35 = load i32, ptr %5, align 4, !tbaa !9
  %36 = icmp ne i32 %35, 0
  br i1 %36, label %37, label %39

37:                                               ; preds = %30
  %38 = load i32, ptr %5, align 4, !tbaa !9
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 395, i32 noundef %38)
  br label %375

39:                                               ; preds = %30
  br label %40

40:                                               ; preds = %39
  br label %41

41:                                               ; preds = %40
  br label %374

42:                                               ; preds = %23
  %43 = load ptr, ptr %3, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.DSTUEllipticCurve, ptr %43, i32 0, i32 0
  %45 = load i32, ptr %44, align 8, !tbaa !13
  %46 = icmp eq i32 %45, 1
  br i1 %46, label %47, label %373

47:                                               ; preds = %42
  br label %48

48:                                               ; preds = %47
  %49 = call ptr @get_DSTUEllipticCurve_desc()
  %50 = load ptr, ptr %3, align 8, !tbaa !5
  %51 = call i32 @asn_encode(ptr noundef %49, ptr noundef %50, ptr noundef %6, ptr noundef %7)
  store i32 %51, ptr %5, align 4, !tbaa !9
  %52 = load i32, ptr %5, align 4, !tbaa !9
  %53 = icmp ne i32 %52, 0
  br i1 %53, label %54, label %56

54:                                               ; preds = %48
  %55 = load i32, ptr %5, align 4, !tbaa !9
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 398, i32 noundef %55)
  br label %375

56:                                               ; preds = %48
  br label %57

57:                                               ; preds = %56
  br label %58

58:                                               ; preds = %57
  %59 = load i64, ptr %7, align 8, !tbaa !11
  %60 = icmp eq i64 %59, 119
  br i1 %60, label %61, label %66

61:                                               ; preds = %58
  %62 = load ptr, ptr %6, align 8, !tbaa !5
  %63 = load i64, ptr %7, align 8, !tbaa !11
  %64 = call i32 @memcmp(ptr noundef %62, ptr noundef @DSTU4145_M257_PB_LE, i64 noundef %63) #6
  %65 = icmp eq i32 %64, 0
  br i1 %65, label %74, label %66

66:                                               ; preds = %61, %58
  %67 = load i64, ptr %7, align 8, !tbaa !11
  %68 = icmp eq i64 %67, 119
  br i1 %68, label %69, label %78

69:                                               ; preds = %66
  %70 = load ptr, ptr %6, align 8, !tbaa !5
  %71 = load i64, ptr %7, align 8, !tbaa !11
  %72 = call i32 @memcmp(ptr noundef %70, ptr noundef @DSTU4145_M257_PB_BE, i64 noundef %71) #6
  %73 = icmp eq i32 %72, 0
  br i1 %73, label %74, label %78

74:                                               ; preds = %69, %61
  %75 = load ptr, ptr @OID_DSTU4145_PARAM_M257_PB, align 8, !tbaa !5
  %76 = call noalias ptr @strdup(ptr noundef %75) #5
  %77 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %76, ptr %77, align 8, !tbaa !5
  br label %372

78:                                               ; preds = %69, %66
  %79 = load i64, ptr %7, align 8, !tbaa !11
  %80 = icmp eq i64 %79, 191
  br i1 %80, label %81, label %86

81:                                               ; preds = %78
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = load i64, ptr %7, align 8, !tbaa !11
  %84 = call i32 @memcmp(ptr noundef %82, ptr noundef @DSTU4145_M431_PB_LE, i64 noundef %83) #6
  %85 = icmp eq i32 %84, 0
  br i1 %85, label %94, label %86

86:                                               ; preds = %81, %78
  %87 = load i64, ptr %7, align 8, !tbaa !11
  %88 = icmp eq i64 %87, 191
  br i1 %88, label %89, label %98

89:                                               ; preds = %86
  %90 = load ptr, ptr %6, align 8, !tbaa !5
  %91 = load i64, ptr %7, align 8, !tbaa !11
  %92 = call i32 @memcmp(ptr noundef %90, ptr noundef @DSTU4145_M431_PB_BE, i64 noundef %91) #6
  %93 = icmp eq i32 %92, 0
  br i1 %93, label %94, label %98

94:                                               ; preds = %89, %81
  %95 = load ptr, ptr @OID_DSTU4145_PARAM_M431_PB, align 8, !tbaa !5
  %96 = call noalias ptr @strdup(ptr noundef %95) #5
  %97 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %96, ptr %97, align 8, !tbaa !5
  br label %371

98:                                               ; preds = %89, %86
  %99 = load i64, ptr %7, align 8, !tbaa !11
  %100 = icmp eq i64 %99, 91
  br i1 %100, label %101, label %106

101:                                              ; preds = %98
  %102 = load ptr, ptr %6, align 8, !tbaa !5
  %103 = load i64, ptr %7, align 8, !tbaa !11
  %104 = call i32 @memcmp(ptr noundef %102, ptr noundef @DSTU4145_M163_PB_LE, i64 noundef %103) #6
  %105 = icmp eq i32 %104, 0
  br i1 %105, label %114, label %106

106:                                              ; preds = %101, %98
  %107 = load i64, ptr %7, align 8, !tbaa !11
  %108 = icmp eq i64 %107, 91
  br i1 %108, label %109, label %118

109:                                              ; preds = %106
  %110 = load ptr, ptr %6, align 8, !tbaa !5
  %111 = load i64, ptr %7, align 8, !tbaa !11
  %112 = call i32 @memcmp(ptr noundef %110, ptr noundef @DSTU4145_M163_PB_BE, i64 noundef %111) #6
  %113 = icmp eq i32 %112, 0
  br i1 %113, label %114, label %118

114:                                              ; preds = %109, %101
  %115 = load ptr, ptr @OID_DSTU4145_PARAM_M163_PB, align 8, !tbaa !5
  %116 = call noalias ptr @strdup(ptr noundef %115) #5
  %117 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %116, ptr %117, align 8, !tbaa !5
  br label %370

118:                                              ; preds = %109, %106
  %119 = load i64, ptr %7, align 8, !tbaa !11
  %120 = icmp eq i64 %119, 83
  br i1 %120, label %121, label %126

121:                                              ; preds = %118
  %122 = load ptr, ptr %6, align 8, !tbaa !5
  %123 = load i64, ptr %7, align 8, !tbaa !11
  %124 = call i32 @memcmp(ptr noundef %122, ptr noundef @DSTU4145_M167_PB_LE, i64 noundef %123) #6
  %125 = icmp eq i32 %124, 0
  br i1 %125, label %134, label %126

126:                                              ; preds = %121, %118
  %127 = load i64, ptr %7, align 8, !tbaa !11
  %128 = icmp eq i64 %127, 83
  br i1 %128, label %129, label %138

129:                                              ; preds = %126
  %130 = load ptr, ptr %6, align 8, !tbaa !5
  %131 = load i64, ptr %7, align 8, !tbaa !11
  %132 = call i32 @memcmp(ptr noundef %130, ptr noundef @DSTU4145_M167_PB_BE, i64 noundef %131) #6
  %133 = icmp eq i32 %132, 0
  br i1 %133, label %134, label %138

134:                                              ; preds = %129, %121
  %135 = load ptr, ptr @OID_DSTU4145_PARAM_M167_PB, align 8, !tbaa !5
  %136 = call noalias ptr @strdup(ptr noundef %135) #5
  %137 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %136, ptr %137, align 8, !tbaa !5
  br label %369

138:                                              ; preds = %129, %126
  %139 = load i64, ptr %7, align 8, !tbaa !11
  %140 = icmp eq i64 %139, 94
  br i1 %140, label %141, label %146

141:                                              ; preds = %138
  %142 = load ptr, ptr %6, align 8, !tbaa !5
  %143 = load i64, ptr %7, align 8, !tbaa !11
  %144 = call i32 @memcmp(ptr noundef %142, ptr noundef @DSTU4145_M173_PB_LE, i64 noundef %143) #6
  %145 = icmp eq i32 %144, 0
  br i1 %145, label %154, label %146

146:                                              ; preds = %141, %138
  %147 = load i64, ptr %7, align 8, !tbaa !11
  %148 = icmp eq i64 %147, 94
  br i1 %148, label %149, label %158

149:                                              ; preds = %146
  %150 = load ptr, ptr %6, align 8, !tbaa !5
  %151 = load i64, ptr %7, align 8, !tbaa !11
  %152 = call i32 @memcmp(ptr noundef %150, ptr noundef @DSTU4145_M173_PB_BE, i64 noundef %151) #6
  %153 = icmp eq i32 %152, 0
  br i1 %153, label %154, label %158

154:                                              ; preds = %149, %141
  %155 = load ptr, ptr @OID_DSTU4145_PARAM_M173_PB, align 8, !tbaa !5
  %156 = call noalias ptr @strdup(ptr noundef %155) #5
  %157 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %156, ptr %157, align 8, !tbaa !5
  br label %368

158:                                              ; preds = %149, %146
  %159 = load i64, ptr %7, align 8, !tbaa !11
  %160 = icmp eq i64 %159, 97
  br i1 %160, label %161, label %166

161:                                              ; preds = %158
  %162 = load ptr, ptr %6, align 8, !tbaa !5
  %163 = load i64, ptr %7, align 8, !tbaa !11
  %164 = call i32 @memcmp(ptr noundef %162, ptr noundef @DSTU4145_M179_PB_LE, i64 noundef %163) #6
  %165 = icmp eq i32 %164, 0
  br i1 %165, label %174, label %166

166:                                              ; preds = %161, %158
  %167 = load i64, ptr %7, align 8, !tbaa !11
  %168 = icmp eq i64 %167, 97
  br i1 %168, label %169, label %178

169:                                              ; preds = %166
  %170 = load ptr, ptr %6, align 8, !tbaa !5
  %171 = load i64, ptr %7, align 8, !tbaa !11
  %172 = call i32 @memcmp(ptr noundef %170, ptr noundef @DSTU4145_M179_PB_BE, i64 noundef %171) #6
  %173 = icmp eq i32 %172, 0
  br i1 %173, label %174, label %178

174:                                              ; preds = %169, %161
  %175 = load ptr, ptr @OID_DSTU4145_PARAM_M179_PB, align 8, !tbaa !5
  %176 = call noalias ptr @strdup(ptr noundef %175) #5
  %177 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %176, ptr %177, align 8, !tbaa !5
  br label %367

178:                                              ; preds = %169, %166
  %179 = load i64, ptr %7, align 8, !tbaa !11
  %180 = icmp eq i64 %179, 92
  br i1 %180, label %181, label %186

181:                                              ; preds = %178
  %182 = load ptr, ptr %6, align 8, !tbaa !5
  %183 = load i64, ptr %7, align 8, !tbaa !11
  %184 = call i32 @memcmp(ptr noundef %182, ptr noundef @DSTU4145_M191_PB_LE, i64 noundef %183) #6
  %185 = icmp eq i32 %184, 0
  br i1 %185, label %194, label %186

186:                                              ; preds = %181, %178
  %187 = load i64, ptr %7, align 8, !tbaa !11
  %188 = icmp eq i64 %187, 92
  br i1 %188, label %189, label %198

189:                                              ; preds = %186
  %190 = load ptr, ptr %6, align 8, !tbaa !5
  %191 = load i64, ptr %7, align 8, !tbaa !11
  %192 = call i32 @memcmp(ptr noundef %190, ptr noundef @DSTU4145_M191_PB_BE, i64 noundef %191) #6
  %193 = icmp eq i32 %192, 0
  br i1 %193, label %194, label %198

194:                                              ; preds = %189, %181
  %195 = load ptr, ptr @OID_DSTU4145_PARAM_M191_PB, align 8, !tbaa !5
  %196 = call noalias ptr @strdup(ptr noundef %195) #5
  %197 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %196, ptr %197, align 8, !tbaa !5
  br label %366

198:                                              ; preds = %189, %186
  %199 = load i64, ptr %7, align 8, !tbaa !11
  %200 = icmp eq i64 %199, 118
  br i1 %200, label %201, label %206

201:                                              ; preds = %198
  %202 = load ptr, ptr %6, align 8, !tbaa !5
  %203 = load i64, ptr %7, align 8, !tbaa !11
  %204 = call i32 @memcmp(ptr noundef %202, ptr noundef @DSTU4145_M233_PB_LE, i64 noundef %203) #6
  %205 = icmp eq i32 %204, 0
  br i1 %205, label %214, label %206

206:                                              ; preds = %201, %198
  %207 = load i64, ptr %7, align 8, !tbaa !11
  %208 = icmp eq i64 %207, 118
  br i1 %208, label %209, label %218

209:                                              ; preds = %206
  %210 = load ptr, ptr %6, align 8, !tbaa !5
  %211 = load i64, ptr %7, align 8, !tbaa !11
  %212 = call i32 @memcmp(ptr noundef %210, ptr noundef @DSTU4145_M233_PB_BE, i64 noundef %211) #6
  %213 = icmp eq i32 %212, 0
  br i1 %213, label %214, label %218

214:                                              ; preds = %209, %201
  %215 = load ptr, ptr @OID_DSTU4145_PARAM_M233_PB, align 8, !tbaa !5
  %216 = call noalias ptr @strdup(ptr noundef %215) #5
  %217 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %216, ptr %217, align 8, !tbaa !5
  br label %365

218:                                              ; preds = %209, %206
  %219 = load i64, ptr %7, align 8, !tbaa !11
  %220 = icmp eq i64 %219, 146
  br i1 %220, label %221, label %226

221:                                              ; preds = %218
  %222 = load ptr, ptr %6, align 8, !tbaa !5
  %223 = load i64, ptr %7, align 8, !tbaa !11
  %224 = call i32 @memcmp(ptr noundef %222, ptr noundef @DSTU4145_M307_PB_LE, i64 noundef %223) #6
  %225 = icmp eq i32 %224, 0
  br i1 %225, label %234, label %226

226:                                              ; preds = %221, %218
  %227 = load i64, ptr %7, align 8, !tbaa !11
  %228 = icmp eq i64 %227, 146
  br i1 %228, label %229, label %238

229:                                              ; preds = %226
  %230 = load ptr, ptr %6, align 8, !tbaa !5
  %231 = load i64, ptr %7, align 8, !tbaa !11
  %232 = call i32 @memcmp(ptr noundef %230, ptr noundef @DSTU4145_M307_PB_BE, i64 noundef %231) #6
  %233 = icmp eq i32 %232, 0
  br i1 %233, label %234, label %238

234:                                              ; preds = %229, %221
  %235 = load ptr, ptr @OID_DSTU4145_PARAM_M307_PB, align 8, !tbaa !5
  %236 = call noalias ptr @strdup(ptr noundef %235) #5
  %237 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %236, ptr %237, align 8, !tbaa !5
  br label %364

238:                                              ; preds = %229, %226
  %239 = load i64, ptr %7, align 8, !tbaa !11
  %240 = icmp eq i64 %239, 159
  br i1 %240, label %241, label %246

241:                                              ; preds = %238
  %242 = load ptr, ptr %6, align 8, !tbaa !5
  %243 = load i64, ptr %7, align 8, !tbaa !11
  %244 = call i32 @memcmp(ptr noundef %242, ptr noundef @DSTU4145_M367_PB_LE, i64 noundef %243) #6
  %245 = icmp eq i32 %244, 0
  br i1 %245, label %254, label %246

246:                                              ; preds = %241, %238
  %247 = load i64, ptr %7, align 8, !tbaa !11
  %248 = icmp eq i64 %247, 159
  br i1 %248, label %249, label %258

249:                                              ; preds = %246
  %250 = load ptr, ptr %6, align 8, !tbaa !5
  %251 = load i64, ptr %7, align 8, !tbaa !11
  %252 = call i32 @memcmp(ptr noundef %250, ptr noundef @DSTU4145_M367_PB_BE, i64 noundef %251) #6
  %253 = icmp eq i32 %252, 0
  br i1 %253, label %254, label %258

254:                                              ; preds = %249, %241
  %255 = load ptr, ptr @OID_DSTU4145_PARAM_M367_PB, align 8, !tbaa !5
  %256 = call noalias ptr @strdup(ptr noundef %255) #5
  %257 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %256, ptr %257, align 8, !tbaa !5
  br label %363

258:                                              ; preds = %249, %246
  %259 = load i64, ptr %7, align 8, !tbaa !11
  %260 = icmp eq i64 %259, 94
  br i1 %260, label %261, label %266

261:                                              ; preds = %258
  %262 = load ptr, ptr %6, align 8, !tbaa !5
  %263 = load i64, ptr %7, align 8, !tbaa !11
  %264 = call i32 @memcmp(ptr noundef %262, ptr noundef @DSTU4145_M173_ONB_LE, i64 noundef %263) #6
  %265 = icmp eq i32 %264, 0
  br i1 %265, label %274, label %266

266:                                              ; preds = %261, %258
  %267 = load i64, ptr %7, align 8, !tbaa !11
  %268 = icmp eq i64 %267, 94
  br i1 %268, label %269, label %278

269:                                              ; preds = %266
  %270 = load ptr, ptr %6, align 8, !tbaa !5
  %271 = load i64, ptr %7, align 8, !tbaa !11
  %272 = call i32 @memcmp(ptr noundef %270, ptr noundef @DSTU4145_M173_ONB_BE, i64 noundef %271) #6
  %273 = icmp eq i32 %272, 0
  br i1 %273, label %274, label %278

274:                                              ; preds = %269, %261
  %275 = load ptr, ptr @OID_DSTU4145_PARAM_M173_ONB, align 8, !tbaa !5
  %276 = call noalias ptr @strdup(ptr noundef %275) #5
  %277 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %276, ptr %277, align 8, !tbaa !5
  br label %362

278:                                              ; preds = %269, %266
  %279 = load i64, ptr %7, align 8, !tbaa !11
  %280 = icmp eq i64 %279, 97
  br i1 %280, label %281, label %286

281:                                              ; preds = %278
  %282 = load ptr, ptr %6, align 8, !tbaa !5
  %283 = load i64, ptr %7, align 8, !tbaa !11
  %284 = call i32 @memcmp(ptr noundef %282, ptr noundef @DSTU4145_M179_ONB_LE, i64 noundef %283) #6
  %285 = icmp eq i32 %284, 0
  br i1 %285, label %294, label %286

286:                                              ; preds = %281, %278
  %287 = load i64, ptr %7, align 8, !tbaa !11
  %288 = icmp eq i64 %287, 97
  br i1 %288, label %289, label %298

289:                                              ; preds = %286
  %290 = load ptr, ptr %6, align 8, !tbaa !5
  %291 = load i64, ptr %7, align 8, !tbaa !11
  %292 = call i32 @memcmp(ptr noundef %290, ptr noundef @DSTU4145_M179_ONB_BE, i64 noundef %291) #6
  %293 = icmp eq i32 %292, 0
  br i1 %293, label %294, label %298

294:                                              ; preds = %289, %281
  %295 = load ptr, ptr @OID_DSTU4145_PARAM_M179_ONB, align 8, !tbaa !5
  %296 = call noalias ptr @strdup(ptr noundef %295) #5
  %297 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %296, ptr %297, align 8, !tbaa !5
  br label %361

298:                                              ; preds = %289, %286
  %299 = load i64, ptr %7, align 8, !tbaa !11
  %300 = icmp eq i64 %299, 92
  br i1 %300, label %301, label %306

301:                                              ; preds = %298
  %302 = load ptr, ptr %6, align 8, !tbaa !5
  %303 = load i64, ptr %7, align 8, !tbaa !11
  %304 = call i32 @memcmp(ptr noundef %302, ptr noundef @DSTU4145_M191_ONB_LE, i64 noundef %303) #6
  %305 = icmp eq i32 %304, 0
  br i1 %305, label %314, label %306

306:                                              ; preds = %301, %298
  %307 = load i64, ptr %7, align 8, !tbaa !11
  %308 = icmp eq i64 %307, 92
  br i1 %308, label %309, label %318

309:                                              ; preds = %306
  %310 = load ptr, ptr %6, align 8, !tbaa !5
  %311 = load i64, ptr %7, align 8, !tbaa !11
  %312 = call i32 @memcmp(ptr noundef %310, ptr noundef @DSTU4145_M191_ONB_BE, i64 noundef %311) #6
  %313 = icmp eq i32 %312, 0
  br i1 %313, label %314, label %318

314:                                              ; preds = %309, %301
  %315 = load ptr, ptr @OID_DSTU4145_PARAM_M191_ONB, align 8, !tbaa !5
  %316 = call noalias ptr @strdup(ptr noundef %315) #5
  %317 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %316, ptr %317, align 8, !tbaa !5
  br label %360

318:                                              ; preds = %309, %306
  %319 = load i64, ptr %7, align 8, !tbaa !11
  %320 = icmp eq i64 %319, 118
  br i1 %320, label %321, label %326

321:                                              ; preds = %318
  %322 = load ptr, ptr %6, align 8, !tbaa !5
  %323 = load i64, ptr %7, align 8, !tbaa !11
  %324 = call i32 @memcmp(ptr noundef %322, ptr noundef @DSTU4145_M233_ONB_LE, i64 noundef %323) #6
  %325 = icmp eq i32 %324, 0
  br i1 %325, label %334, label %326

326:                                              ; preds = %321, %318
  %327 = load i64, ptr %7, align 8, !tbaa !11
  %328 = icmp eq i64 %327, 118
  br i1 %328, label %329, label %338

329:                                              ; preds = %326
  %330 = load ptr, ptr %6, align 8, !tbaa !5
  %331 = load i64, ptr %7, align 8, !tbaa !11
  %332 = call i32 @memcmp(ptr noundef %330, ptr noundef @DSTU4145_M233_ONB_BE, i64 noundef %331) #6
  %333 = icmp eq i32 %332, 0
  br i1 %333, label %334, label %338

334:                                              ; preds = %329, %321
  %335 = load ptr, ptr @OID_DSTU4145_PARAM_M233_ONB, align 8, !tbaa !5
  %336 = call noalias ptr @strdup(ptr noundef %335) #5
  %337 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %336, ptr %337, align 8, !tbaa !5
  br label %359

338:                                              ; preds = %329, %326
  %339 = load i64, ptr %7, align 8, !tbaa !11
  %340 = icmp eq i64 %339, 191
  br i1 %340, label %341, label %346

341:                                              ; preds = %338
  %342 = load ptr, ptr %6, align 8, !tbaa !5
  %343 = load i64, ptr %7, align 8, !tbaa !11
  %344 = call i32 @memcmp(ptr noundef %342, ptr noundef @DSTU4145_M431_ONB_LE, i64 noundef %343) #6
  %345 = icmp eq i32 %344, 0
  br i1 %345, label %354, label %346

346:                                              ; preds = %341, %338
  %347 = load i64, ptr %7, align 8, !tbaa !11
  %348 = icmp eq i64 %347, 191
  br i1 %348, label %349, label %358

349:                                              ; preds = %346
  %350 = load ptr, ptr %6, align 8, !tbaa !5
  %351 = load i64, ptr %7, align 8, !tbaa !11
  %352 = call i32 @memcmp(ptr noundef %350, ptr noundef @DSTU4145_M431_ONB_BE, i64 noundef %351) #6
  %353 = icmp eq i32 %352, 0
  br i1 %353, label %354, label %358

354:                                              ; preds = %349, %341
  %355 = load ptr, ptr @OID_DSTU4145_PARAM_M431_ONB, align 8, !tbaa !5
  %356 = call noalias ptr @strdup(ptr noundef %355) #5
  %357 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %356, ptr %357, align 8, !tbaa !5
  br label %358

358:                                              ; preds = %354, %349, %346
  br label %359

359:                                              ; preds = %358, %334
  br label %360

360:                                              ; preds = %359, %314
  br label %361

361:                                              ; preds = %360, %294
  br label %362

362:                                              ; preds = %361, %274
  br label %363

363:                                              ; preds = %362, %254
  br label %364

364:                                              ; preds = %363, %234
  br label %365

365:                                              ; preds = %364, %214
  br label %366

366:                                              ; preds = %365, %194
  br label %367

367:                                              ; preds = %366, %174
  br label %368

368:                                              ; preds = %367, %154
  br label %369

369:                                              ; preds = %368, %134
  br label %370

370:                                              ; preds = %369, %114
  br label %371

371:                                              ; preds = %370, %94
  br label %372

372:                                              ; preds = %371, %74
  br label %373

373:                                              ; preds = %372, %42
  br label %374

374:                                              ; preds = %373, %41
  br label %375

375:                                              ; preds = %374, %54, %37, %19, %11
  %376 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %376) #5
  %377 = load i32, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  ret i32 %377
}

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

declare void @stacktrace_create(ptr noundef, i64 noundef, i32 noundef, ptr noundef) #2

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

declare void @stacktrace_add(ptr noundef, i64 noundef, i32 noundef) #2

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

declare ptr @get_DSTUEllipticCurve_desc() #2

; Function Attrs: nounwind willreturn memory(read)
declare i32 @memcmp(ptr noundef, ptr noundef, i64 noundef) #3

; Function Attrs: nounwind
declare noalias ptr @strdup(ptr noundef) #4

; Function Attrs: nounwind
declare void @free(ptr noundef) #4

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"DSTUEllipticCurve", !10, i64 0, !7, i64 8, !15, i64 192}
!15 = !{!"asn_struct_ctx_s", !16, i64 0, !16, i64 2, !10, i64 4, !6, i64 8, !12, i64 16}
!16 = !{!"short", !7, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [30 x i8], align 1
@DSTU4145_M257_PB_LE = external hidden constant [119 x i8], align 16
@DSTU4145_M257_PB_BE = external hidden constant [119 x i8], align 16
@OID_DSTU4145_PARAM_M257_PB = external local_unnamed_addr global ptr, align 8
@DSTU4145_M431_PB_LE = external hidden constant [191 x i8], align 16
@DSTU4145_M431_PB_BE = external hidden constant [191 x i8], align 16
@OID_DSTU4145_PARAM_M431_PB = external local_unnamed_addr global ptr, align 8
@DSTU4145_M163_PB_LE = external hidden constant [91 x i8], align 16
@DSTU4145_M163_PB_BE = external hidden constant [91 x i8], align 16
@OID_DSTU4145_PARAM_M163_PB = external local_unnamed_addr global ptr, align 8
@DSTU4145_M167_PB_LE = external hidden constant [83 x i8], align 16
@DSTU4145_M167_PB_BE = external hidden constant [83 x i8], align 16
@OID_DSTU4145_PARAM_M167_PB = external local_unnamed_addr global ptr, align 8
@DSTU4145_M173_PB_LE = external hidden constant [94 x i8], align 16
@DSTU4145_M173_PB_BE = external hidden constant [94 x i8], align 16
@OID_DSTU4145_PARAM_M173_PB = external local_unnamed_addr global ptr, align 8
@DSTU4145_M179_PB_LE = external hidden constant [97 x i8], align 16
@DSTU4145_M179_PB_BE = external hidden constant [97 x i8], align 16
@OID_DSTU4145_PARAM_M179_PB = external local_unnamed_addr global ptr, align 8
@DSTU4145_M191_PB_LE = external hidden constant [92 x i8], align 16
@DSTU4145_M191_PB_BE = external hidden constant [92 x i8], align 16
@OID_DSTU4145_PARAM_M191_PB = external local_unnamed_addr global ptr, align 8
@DSTU4145_M233_PB_LE = external hidden constant [118 x i8], align 16
@DSTU4145_M233_PB_BE = external hidden constant [118 x i8], align 16
@OID_DSTU4145_PARAM_M233_PB = external local_unnamed_addr global ptr, align 8
@DSTU4145_M307_PB_LE = external hidden constant [146 x i8], align 16
@DSTU4145_M307_PB_BE = external hidden constant [146 x i8], align 16
@OID_DSTU4145_PARAM_M307_PB = external local_unnamed_addr global ptr, align 8
@DSTU4145_M367_PB_LE = external hidden constant [159 x i8], align 16
@DSTU4145_M367_PB_BE = external hidden constant [159 x i8], align 16
@OID_DSTU4145_PARAM_M367_PB = external local_unnamed_addr global ptr, align 8
@DSTU4145_M173_ONB_LE = external hidden constant [94 x i8], align 16
@DSTU4145_M173_ONB_BE = external hidden constant [94 x i8], align 16
@OID_DSTU4145_PARAM_M173_ONB = external local_unnamed_addr global ptr, align 8
@DSTU4145_M179_ONB_LE = external hidden constant [97 x i8], align 16
@DSTU4145_M179_ONB_BE = external hidden constant [97 x i8], align 16
@OID_DSTU4145_PARAM_M179_ONB = external local_unnamed_addr global ptr, align 8
@DSTU4145_M191_ONB_LE = external hidden constant [92 x i8], align 16
@DSTU4145_M191_ONB_BE = external hidden constant [92 x i8], align 16
@OID_DSTU4145_PARAM_M191_ONB = external local_unnamed_addr global ptr, align 8
@DSTU4145_M233_ONB_LE = external hidden constant [118 x i8], align 16
@DSTU4145_M233_ONB_BE = external hidden constant [118 x i8], align 16
@OID_DSTU4145_PARAM_M233_ONB = external local_unnamed_addr global ptr, align 8
@DSTU4145_M431_ONB_LE = external hidden constant [191 x i8], align 16
@DSTU4145_M431_ONB_BE = external hidden constant [191 x i8], align 16
@OID_DSTU4145_PARAM_M431_ONB = external local_unnamed_addr global ptr, align 8

; Function Attrs: nounwind uwtable
define dso_local i32 @dstu4145_params_get_std_oid(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  store ptr null, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  store i64 0, ptr %4, align 8, !tbaa !9
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %5, label %6

5:                                                ; preds = %2
  tail call void @stacktrace_create(ptr noundef nonnull @.str, i64 noundef 389, i32 noundef 2, ptr noundef null) #6
  br label %.thread144

6:                                                ; preds = %2
  %.not65 = icmp eq ptr %1, null
  br i1 %.not65, label %7, label %8

7:                                                ; preds = %6
  tail call void @stacktrace_create(ptr noundef nonnull @.str, i64 noundef 390, i32 noundef 2, ptr noundef null) #6
  br label %.thread144

8:                                                ; preds = %6
  store ptr null, ptr %1, align 8, !tbaa !5
  %9 = load i32, ptr %0, align 8, !tbaa !11
  switch i32 %9, label %.thread144 [
    i32 2, label %10
    i32 1, label %14
  ]

10:                                               ; preds = %8
  %11 = getelementptr inbounds i8, ptr %0, i64 8
  %12 = tail call i32 @asn_oid_to_text(ptr noundef nonnull %11, ptr noundef nonnull %1) #6
  %.not96 = icmp eq i32 %12, 0
  br i1 %.not96, label %.thread144, label %13

13:                                               ; preds = %10
  tail call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 395, i32 noundef %12) #6
  br label %.thread144

14:                                               ; preds = %8
  %15 = tail call ptr @get_DSTUEllipticCurve_desc() #6
  %16 = call i32 @asn_encode(ptr noundef %15, ptr noundef nonnull %0, ptr noundef nonnull %3, ptr noundef nonnull %4) #6
  %.not66 = icmp eq i32 %16, 0
  br i1 %.not66, label %18, label %17

17:                                               ; preds = %14
  call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 398, i32 noundef %16) #6
  br label %.thread144

18:                                               ; preds = %14
  %19 = load i64, ptr %4, align 8, !tbaa !9
  switch i64 %19, label %.thread144 [
    i64 119, label %20
    i64 191, label %28
    i64 91, label %36
    i64 83, label %44
    i64 94, label %52
    i64 97, label %60
    i64 92, label %68
    i64 118, label %76
    i64 146, label %84
    i64 159, label %92
  ]

20:                                               ; preds = %18
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %bcmp = call i32 @bcmp(ptr noundef nonnull dereferenceable(119) %21, ptr noundef nonnull dereferenceable(119) @DSTU4145_M257_PB_LE, i64 119)
  %22 = icmp eq i32 %bcmp, 0
  br i1 %22, label %25, label %23

23:                                               ; preds = %20
  %bcmp67 = call i32 @bcmp(ptr noundef nonnull dereferenceable(119) %21, ptr noundef nonnull dereferenceable(119) @DSTU4145_M257_PB_BE, i64 119)
  %24 = icmp eq i32 %bcmp67, 0
  br i1 %24, label %25, label %.thread144

25:                                               ; preds = %23, %20
  %26 = load ptr, ptr @OID_DSTU4145_PARAM_M257_PB, align 8, !tbaa !5
  %27 = call noalias ptr @strdup(ptr noundef %26) #6
  store ptr %27, ptr %1, align 8, !tbaa !5
  br label %.thread144

28:                                               ; preds = %18
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %bcmp68 = call i32 @bcmp(ptr noundef nonnull dereferenceable(191) %29, ptr noundef nonnull dereferenceable(191) @DSTU4145_M431_PB_LE, i64 191)
  %30 = icmp eq i32 %bcmp68, 0
  br i1 %30, label %33, label %31

31:                                               ; preds = %28
  %bcmp69 = call i32 @bcmp(ptr noundef nonnull dereferenceable(191) %29, ptr noundef nonnull dereferenceable(191) @DSTU4145_M431_PB_BE, i64 191)
  %32 = icmp eq i32 %bcmp69, 0
  br i1 %32, label %33, label %128

33:                                               ; preds = %31, %28
  %34 = load ptr, ptr @OID_DSTU4145_PARAM_M431_PB, align 8, !tbaa !5
  %35 = call noalias ptr @strdup(ptr noundef %34) #6
  store ptr %35, ptr %1, align 8, !tbaa !5
  br label %.thread144

36:                                               ; preds = %18
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %bcmp70 = call i32 @bcmp(ptr noundef nonnull dereferenceable(91) %37, ptr noundef nonnull dereferenceable(91) @DSTU4145_M163_PB_LE, i64 91)
  %38 = icmp eq i32 %bcmp70, 0
  br i1 %38, label %41, label %39

39:                                               ; preds = %36
  %bcmp71 = call i32 @bcmp(ptr noundef nonnull dereferenceable(91) %37, ptr noundef nonnull dereferenceable(91) @DSTU4145_M163_PB_BE, i64 91)
  %40 = icmp eq i32 %bcmp71, 0
  br i1 %40, label %41, label %.thread144

41:                                               ; preds = %39, %36
  %42 = load ptr, ptr @OID_DSTU4145_PARAM_M163_PB, align 8, !tbaa !5
  %43 = call noalias ptr @strdup(ptr noundef %42) #6
  store ptr %43, ptr %1, align 8, !tbaa !5
  br label %.thread144

44:                                               ; preds = %18
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %bcmp72 = call i32 @bcmp(ptr noundef nonnull dereferenceable(83) %45, ptr noundef nonnull dereferenceable(83) @DSTU4145_M167_PB_LE, i64 83)
  %46 = icmp eq i32 %bcmp72, 0
  br i1 %46, label %49, label %47

47:                                               ; preds = %44
  %bcmp73 = call i32 @bcmp(ptr noundef nonnull dereferenceable(83) %45, ptr noundef nonnull dereferenceable(83) @DSTU4145_M167_PB_BE, i64 83)
  %48 = icmp eq i32 %bcmp73, 0
  br i1 %48, label %49, label %.thread144

49:                                               ; preds = %47, %44
  %50 = load ptr, ptr @OID_DSTU4145_PARAM_M167_PB, align 8, !tbaa !5
  %51 = call noalias ptr @strdup(ptr noundef %50) #6
  store ptr %51, ptr %1, align 8, !tbaa !5
  br label %.thread144

52:                                               ; preds = %18
  %53 = load ptr, ptr %3, align 8, !tbaa !5
  %bcmp74 = call i32 @bcmp(ptr noundef nonnull dereferenceable(94) %53, ptr noundef nonnull dereferenceable(94) @DSTU4145_M173_PB_LE, i64 94)
  %54 = icmp eq i32 %bcmp74, 0
  br i1 %54, label %57, label %55

55:                                               ; preds = %52
  %bcmp75 = call i32 @bcmp(ptr noundef nonnull dereferenceable(94) %53, ptr noundef nonnull dereferenceable(94) @DSTU4145_M173_PB_BE, i64 94)
  %56 = icmp eq i32 %bcmp75, 0
  br i1 %56, label %57, label %100

57:                                               ; preds = %55, %52
  %58 = load ptr, ptr @OID_DSTU4145_PARAM_M173_PB, align 8, !tbaa !5
  %59 = call noalias ptr @strdup(ptr noundef %58) #6
  store ptr %59, ptr %1, align 8, !tbaa !5
  br label %.thread144

60:                                               ; preds = %18
  %61 = load ptr, ptr %3, align 8, !tbaa !5
  %bcmp76 = call i32 @bcmp(ptr noundef nonnull dereferenceable(97) %61, ptr noundef nonnull dereferenceable(97) @DSTU4145_M179_PB_LE, i64 97)
  %62 = icmp eq i32 %bcmp76, 0
  br i1 %62, label %65, label %63

63:                                               ; preds = %60
  %bcmp77 = call i32 @bcmp(ptr noundef nonnull dereferenceable(97) %61, ptr noundef nonnull dereferenceable(97) @DSTU4145_M179_PB_BE, i64 97)
  %64 = icmp eq i32 %bcmp77, 0
  br i1 %64, label %65, label %107

65:                                               ; preds = %63, %60
  %66 = load ptr, ptr @OID_DSTU4145_PARAM_M179_PB, align 8, !tbaa !5
  %67 = call noalias ptr @strdup(ptr noundef %66) #6
  store ptr %67, ptr %1, align 8, !tbaa !5
  br label %.thread144

68:                                               ; preds = %18
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %bcmp78 = call i32 @bcmp(ptr noundef nonnull dereferenceable(92) %69, ptr noundef nonnull dereferenceable(92) @DSTU4145_M191_PB_LE, i64 92)
  %70 = icmp eq i32 %bcmp78, 0
  br i1 %70, label %73, label %71

71:                                               ; preds = %68
  %bcmp79 = call i32 @bcmp(ptr noundef nonnull dereferenceable(92) %69, ptr noundef nonnull dereferenceable(92) @DSTU4145_M191_PB_BE, i64 92)
  %72 = icmp eq i32 %bcmp79, 0
  br i1 %72, label %73, label %114

73:                                               ; preds = %71, %68
  %74 = load ptr, ptr @OID_DSTU4145_PARAM_M191_PB, align 8, !tbaa !5
  %75 = call noalias ptr @strdup(ptr noundef %74) #6
  store ptr %75, ptr %1, align 8, !tbaa !5
  br label %.thread144

76:                                               ; preds = %18
  %77 = load ptr, ptr %3, align 8, !tbaa !5
  %bcmp80 = call i32 @bcmp(ptr noundef nonnull dereferenceable(118) %77, ptr noundef nonnull dereferenceable(118) @DSTU4145_M233_PB_LE, i64 118)
  %78 = icmp eq i32 %bcmp80, 0
  br i1 %78, label %81, label %79

79:                                               ; preds = %76
  %bcmp81 = call i32 @bcmp(ptr noundef nonnull dereferenceable(118) %77, ptr noundef nonnull dereferenceable(118) @DSTU4145_M233_PB_BE, i64 118)
  %80 = icmp eq i32 %bcmp81, 0
  br i1 %80, label %81, label %121

81:                                               ; preds = %79, %76
  %82 = load ptr, ptr @OID_DSTU4145_PARAM_M233_PB, align 8, !tbaa !5
  %83 = call noalias ptr @strdup(ptr noundef %82) #6
  store ptr %83, ptr %1, align 8, !tbaa !5
  br label %.thread144

84:                                               ; preds = %18
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  %bcmp82 = call i32 @bcmp(ptr noundef nonnull dereferenceable(146) %85, ptr noundef nonnull dereferenceable(146) @DSTU4145_M307_PB_LE, i64 146)
  %86 = icmp eq i32 %bcmp82, 0
  br i1 %86, label %89, label %87

87:                                               ; preds = %84
  %bcmp83 = call i32 @bcmp(ptr noundef nonnull dereferenceable(146) %85, ptr noundef nonnull dereferenceable(146) @DSTU4145_M307_PB_BE, i64 146)
  %88 = icmp eq i32 %bcmp83, 0
  br i1 %88, label %89, label %.thread144

89:                                               ; preds = %87, %84
  %90 = load ptr, ptr @OID_DSTU4145_PARAM_M307_PB, align 8, !tbaa !5
  %91 = call noalias ptr @strdup(ptr noundef %90) #6
  store ptr %91, ptr %1, align 8, !tbaa !5
  br label %.thread144

92:                                               ; preds = %18
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  %bcmp84 = call i32 @bcmp(ptr noundef nonnull dereferenceable(159) %93, ptr noundef nonnull dereferenceable(159) @DSTU4145_M367_PB_LE, i64 159)
  %94 = icmp eq i32 %bcmp84, 0
  br i1 %94, label %97, label %95

95:                                               ; preds = %92
  %bcmp85 = call i32 @bcmp(ptr noundef nonnull dereferenceable(159) %93, ptr noundef nonnull dereferenceable(159) @DSTU4145_M367_PB_BE, i64 159)
  %96 = icmp eq i32 %bcmp85, 0
  br i1 %96, label %97, label %.thread144

97:                                               ; preds = %95, %92
  %98 = load ptr, ptr @OID_DSTU4145_PARAM_M367_PB, align 8, !tbaa !5
  %99 = call noalias ptr @strdup(ptr noundef %98) #6
  store ptr %99, ptr %1, align 8, !tbaa !5
  br label %.thread144

100:                                              ; preds = %55
  %bcmp86 = call i32 @bcmp(ptr noundef nonnull dereferenceable(94) %53, ptr noundef nonnull dereferenceable(94) @DSTU4145_M173_ONB_LE, i64 94)
  %101 = icmp eq i32 %bcmp86, 0
  br i1 %101, label %104, label %102

102:                                              ; preds = %100
  %bcmp87 = call i32 @bcmp(ptr noundef nonnull dereferenceable(94) %53, ptr noundef nonnull dereferenceable(94) @DSTU4145_M173_ONB_BE, i64 94)
  %103 = icmp eq i32 %bcmp87, 0
  br i1 %103, label %104, label %.thread144

104:                                              ; preds = %102, %100
  %105 = load ptr, ptr @OID_DSTU4145_PARAM_M173_ONB, align 8, !tbaa !5
  %106 = call noalias ptr @strdup(ptr noundef %105) #6
  store ptr %106, ptr %1, align 8, !tbaa !5
  br label %.thread144

107:                                              ; preds = %63
  %bcmp88 = call i32 @bcmp(ptr noundef nonnull dereferenceable(97) %61, ptr noundef nonnull dereferenceable(97) @DSTU4145_M179_ONB_LE, i64 97)
  %108 = icmp eq i32 %bcmp88, 0
  br i1 %108, label %111, label %109

109:                                              ; preds = %107
  %bcmp89 = call i32 @bcmp(ptr noundef nonnull dereferenceable(97) %61, ptr noundef nonnull dereferenceable(97) @DSTU4145_M179_ONB_BE, i64 97)
  %110 = icmp eq i32 %bcmp89, 0
  br i1 %110, label %111, label %.thread144

111:                                              ; preds = %109, %107
  %112 = load ptr, ptr @OID_DSTU4145_PARAM_M179_ONB, align 8, !tbaa !5
  %113 = call noalias ptr @strdup(ptr noundef %112) #6
  store ptr %113, ptr %1, align 8, !tbaa !5
  br label %.thread144

114:                                              ; preds = %71
  %bcmp90 = call i32 @bcmp(ptr noundef nonnull dereferenceable(92) %69, ptr noundef nonnull dereferenceable(92) @DSTU4145_M191_ONB_LE, i64 92)
  %115 = icmp eq i32 %bcmp90, 0
  br i1 %115, label %118, label %116

116:                                              ; preds = %114
  %bcmp91 = call i32 @bcmp(ptr noundef nonnull dereferenceable(92) %69, ptr noundef nonnull dereferenceable(92) @DSTU4145_M191_ONB_BE, i64 92)
  %117 = icmp eq i32 %bcmp91, 0
  br i1 %117, label %118, label %.thread144

118:                                              ; preds = %116, %114
  %119 = load ptr, ptr @OID_DSTU4145_PARAM_M191_ONB, align 8, !tbaa !5
  %120 = call noalias ptr @strdup(ptr noundef %119) #6
  store ptr %120, ptr %1, align 8, !tbaa !5
  br label %.thread144

121:                                              ; preds = %79
  %bcmp92 = call i32 @bcmp(ptr noundef nonnull dereferenceable(118) %77, ptr noundef nonnull dereferenceable(118) @DSTU4145_M233_ONB_LE, i64 118)
  %122 = icmp eq i32 %bcmp92, 0
  br i1 %122, label %125, label %123

123:                                              ; preds = %121
  %bcmp93 = call i32 @bcmp(ptr noundef nonnull dereferenceable(118) %77, ptr noundef nonnull dereferenceable(118) @DSTU4145_M233_ONB_BE, i64 118)
  %124 = icmp eq i32 %bcmp93, 0
  br i1 %124, label %125, label %.thread144

125:                                              ; preds = %123, %121
  %126 = load ptr, ptr @OID_DSTU4145_PARAM_M233_ONB, align 8, !tbaa !5
  %127 = call noalias ptr @strdup(ptr noundef %126) #6
  store ptr %127, ptr %1, align 8, !tbaa !5
  br label %.thread144

128:                                              ; preds = %31
  %bcmp94 = call i32 @bcmp(ptr noundef nonnull dereferenceable(191) %29, ptr noundef nonnull dereferenceable(191) @DSTU4145_M431_ONB_LE, i64 191)
  %129 = icmp eq i32 %bcmp94, 0
  br i1 %129, label %132, label %130

130:                                              ; preds = %128
  %bcmp95 = call i32 @bcmp(ptr noundef nonnull dereferenceable(191) %29, ptr noundef nonnull dereferenceable(191) @DSTU4145_M431_ONB_BE, i64 191)
  %131 = icmp eq i32 %bcmp95, 0
  br i1 %131, label %132, label %.thread144

132:                                              ; preds = %130, %128
  %133 = load ptr, ptr @OID_DSTU4145_PARAM_M431_ONB, align 8, !tbaa !5
  %134 = call noalias ptr @strdup(ptr noundef %133) #6
  store ptr %134, ptr %1, align 8, !tbaa !5
  br label %.thread144

.thread144:                                       ; preds = %18, %116, %102, %87, %39, %23, %47, %95, %109, %123, %8, %10, %25, %41, %57, %73, %89, %104, %118, %130, %132, %125, %111, %97, %81, %65, %49, %33, %17, %13, %7, %5
  %.0 = phi i32 [ %12, %13 ], [ 0, %10 ], [ %16, %17 ], [ 0, %25 ], [ 0, %33 ], [ 0, %41 ], [ 0, %49 ], [ 0, %57 ], [ 0, %65 ], [ 0, %73 ], [ 0, %81 ], [ 0, %89 ], [ 0, %97 ], [ 0, %104 ], [ 0, %111 ], [ 0, %118 ], [ 0, %125 ], [ 0, %132 ], [ 0, %130 ], [ 2, %7 ], [ 2, %5 ], [ 0, %8 ], [ 0, %123 ], [ 0, %109 ], [ 0, %95 ], [ 0, %47 ], [ 0, %23 ], [ 0, %39 ], [ 0, %87 ], [ 0, %102 ], [ 0, %116 ], [ 0, %18 ]
  %135 = load ptr, ptr %3, align 8, !tbaa !5
  call void @free(ptr noundef %135) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  ret i32 %.0
}

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

declare void @stacktrace_create(ptr noundef, i64 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

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

declare void @stacktrace_add(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #2

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

declare ptr @get_DSTUEllipticCurve_desc() local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias ptr @strdup(ptr nocapture noundef readonly) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #4

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

; Function Attrs: nofree nounwind willreturn memory(argmem: read)
declare i32 @bcmp(ptr nocapture, ptr nocapture, i64) local_unnamed_addr #5

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nofree nounwind willreturn memory(argmem: read) }
attributes #6 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"DSTUEllipticCurve", !13, i64 0, !7, i64 8, !14, i64 192}
!13 = !{!"int", !7, i64 0}
!14 = !{!"asn_struct_ctx_s", !15, i64 0, !15, i64 2, !13, i64 4, !6, i64 8, !10, i64 16}
!15 = !{!"short", !7, i64 0}


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