; LLVM IR from ARMmbed/mbed-crypto :: library (pkparse)

; 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.mbedtls_pem_context = type { ptr, i64, ptr }

@.str.2 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [36 x i8], align 1

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

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #1

declare void @mbedtls_platform_zeroize(ptr noundef, i64 noundef) #2

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

; 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
define dso_local i32 @mbedtls_pk_parse_key(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %4) #4 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca %struct.mbedtls_pem_context, align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i64 %2, ptr %9, align 8, !tbaa !9
  store ptr %3, ptr %10, align 8, !tbaa !5
  store i64 %4, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 -110, ptr %12, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #7
  br label %18

18:                                               ; preds = %5
  br label %19

19:                                               ; preds = %18
  br label %20

20:                                               ; preds = %19
  %21 = load i64, ptr %9, align 8, !tbaa !9
  %22 = icmp eq i64 %21, 0
  br i1 %22, label %23, label %24

23:                                               ; preds = %20
  store i32 -15616, ptr %6, align 4
  store i32 1, ptr %16, align 4
  br label %287

24:                                               ; preds = %20
  br label %25

25:                                               ; preds = %24
  br label %26

26:                                               ; preds = %25
  br label %27

27:                                               ; preds = %26
  call void @mbedtls_pem_init(ptr noundef %15)
  %28 = load ptr, ptr %8, align 8, !tbaa !5
  %29 = load i64, ptr %9, align 8, !tbaa !9
  %30 = sub i64 %29, 1
  %31 = getelementptr inbounds i8, ptr %28, i64 %30
  %32 = load i8, ptr %31, align 1, !tbaa !13
  %33 = zext i8 %32 to i32
  %34 = icmp ne i32 %33, 0
  br i1 %34, label %35, label %36

35:                                               ; preds = %27
  store i32 -4224, ptr %12, align 4, !tbaa !11
  br label %41

36:                                               ; preds = %27
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  %38 = load ptr, ptr %10, align 8, !tbaa !5
  %39 = load i64, ptr %11, align 8, !tbaa !9
  %40 = call i32 @mbedtls_pem_read_buffer(ptr noundef %15, ptr noundef @.str.2, ptr noundef @.str.3, ptr noundef %37, ptr noundef %38, i64 noundef %39, ptr noundef %14)
  store i32 %40, ptr %12, align 4, !tbaa !11
  br label %41

41:                                               ; preds = %36, %35
  %42 = load i32, ptr %12, align 4, !tbaa !11
  %43 = icmp eq i32 %42, 0
  br i1 %43, label %44, label %67

44:                                               ; preds = %41
  %45 = call ptr @mbedtls_pk_info_from_type(i32 noundef 1)
  store ptr %45, ptr %13, align 8, !tbaa !5
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = load ptr, ptr %13, align 8, !tbaa !5
  %48 = call i32 @mbedtls_pk_setup(ptr noundef %46, ptr noundef %47)
  store i32 %48, ptr %12, align 4, !tbaa !11
  %49 = icmp ne i32 %48, 0
  br i1 %49, label %63, label %50

50:                                               ; preds = %44
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  %52 = getelementptr inbounds { ptr, ptr }, ptr %51, i32 0, i32 0
  %53 = load ptr, ptr %52, align 8
  %54 = getelementptr inbounds { ptr, ptr }, ptr %51, i32 0, i32 1
  %55 = load ptr, ptr %54, align 8
  %56 = call ptr @mbedtls_pk_rsa(ptr %53, ptr %55)
  %57 = getelementptr inbounds %struct.mbedtls_pem_context, ptr %15, i32 0, i32 0
  %58 = load ptr, ptr %57, align 8, !tbaa !14
  %59 = getelementptr inbounds %struct.mbedtls_pem_context, ptr %15, i32 0, i32 1
  %60 = load i64, ptr %59, align 8, !tbaa !16
  %61 = call i32 @pk_parse_key_pkcs1_der(ptr noundef %56, ptr noundef %58, i64 noundef %60)
  store i32 %61, ptr %12, align 4, !tbaa !11
  %62 = icmp ne i32 %61, 0
  br i1 %62, label %63, label %65

63:                                               ; preds = %50, %44
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  call void @mbedtls_pk_free(ptr noundef %64)
  br label %65

65:                                               ; preds = %63, %50
  call void @mbedtls_pem_free(ptr noundef %15)
  %66 = load i32, ptr %12, align 4, !tbaa !11
  store i32 %66, ptr %6, align 4
  store i32 1, ptr %16, align 4
  br label %287

67:                                               ; preds = %41
  %68 = load i32, ptr %12, align 4, !tbaa !11
  %69 = icmp eq i32 %68, -4992
  br i1 %69, label %70, label %71

70:                                               ; preds = %67
  store i32 -15232, ptr %6, align 4
  store i32 1, ptr %16, align 4
  br label %287

71:                                               ; preds = %67
  %72 = load i32, ptr %12, align 4, !tbaa !11
  %73 = icmp eq i32 %72, -4864
  br i1 %73, label %74, label %75

74:                                               ; preds = %71
  store i32 -15360, ptr %6, align 4
  store i32 1, ptr %16, align 4
  br label %287

75:                                               ; preds = %71
  %76 = load i32, ptr %12, align 4, !tbaa !11
  %77 = icmp ne i32 %76, -4224
  br i1 %77, label %78, label %80

78:                                               ; preds = %75
  %79 = load i32, ptr %12, align 4, !tbaa !11
  store i32 %79, ptr %6, align 4
  store i32 1, ptr %16, align 4
  br label %287

80:                                               ; preds = %75
  br label %81

81:                                               ; preds = %80
  br label %82

82:                                               ; preds = %81
  br label %83

83:                                               ; preds = %82
  %84 = load ptr, ptr %8, align 8, !tbaa !5
  %85 = load i64, ptr %9, align 8, !tbaa !9
  %86 = sub i64 %85, 1
  %87 = getelementptr inbounds i8, ptr %84, i64 %86
  %88 = load i8, ptr %87, align 1, !tbaa !13
  %89 = zext i8 %88 to i32
  %90 = icmp ne i32 %89, 0
  br i1 %90, label %91, label %92

91:                                               ; preds = %83
  store i32 -4224, ptr %12, align 4, !tbaa !11
  br label %97

92:                                               ; preds = %83
  %93 = load ptr, ptr %8, align 8, !tbaa !5
  %94 = load ptr, ptr %10, align 8, !tbaa !5
  %95 = load i64, ptr %11, align 8, !tbaa !9
  %96 = call i32 @mbedtls_pem_read_buffer(ptr noundef %15, ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef %93, ptr noundef %94, i64 noundef %95, ptr noundef %14)
  store i32 %96, ptr %12, align 4, !tbaa !11
  br label %97

97:                                               ; preds = %92, %91
  %98 = load i32, ptr %12, align 4, !tbaa !11
  %99 = icmp eq i32 %98, 0
  br i1 %99, label %100, label %123

100:                                              ; preds = %97
  %101 = call ptr @mbedtls_pk_info_from_type(i32 noundef 2)
  store ptr %101, ptr %13, align 8, !tbaa !5
  %102 = load ptr, ptr %7, align 8, !tbaa !5
  %103 = load ptr, ptr %13, align 8, !tbaa !5
  %104 = call i32 @mbedtls_pk_setup(ptr noundef %102, ptr noundef %103)
  store i32 %104, ptr %12, align 4, !tbaa !11
  %105 = icmp ne i32 %104, 0
  br i1 %105, label %119, label %106

106:                                              ; preds = %100
  %107 = load ptr, ptr %7, align 8, !tbaa !5
  %108 = getelementptr inbounds { ptr, ptr }, ptr %107, i32 0, i32 0
  %109 = load ptr, ptr %108, align 8
  %110 = getelementptr inbounds { ptr, ptr }, ptr %107, i32 0, i32 1
  %111 = load ptr, ptr %110, align 8
  %112 = call ptr @mbedtls_pk_ec(ptr %109, ptr %111)
  %113 = getelementptr inbounds %struct.mbedtls_pem_context, ptr %15, i32 0, i32 0
  %114 = load ptr, ptr %113, align 8, !tbaa !14
  %115 = getelementptr inbounds %struct.mbedtls_pem_context, ptr %15, i32 0, i32 1
  %116 = load i64, ptr %115, align 8, !tbaa !16
  %117 = call i32 @pk_parse_key_sec1_der(ptr noundef %112, ptr noundef %114, i64 noundef %116)
  store i32 %117, ptr %12, align 4, !tbaa !11
  %118 = icmp ne i32 %117, 0
  br i1 %118, label %119, label %121

119:                                              ; preds = %106, %100
  %120 = load ptr, ptr %7, align 8, !tbaa !5
  call void @mbedtls_pk_free(ptr noundef %120)
  br label %121

121:                                              ; preds = %119, %106
  call void @mbedtls_pem_free(ptr noundef %15)
  %122 = load i32, ptr %12, align 4, !tbaa !11
  store i32 %122, ptr %6, align 4
  store i32 1, ptr %16, align 4
  br label %287

123:                                              ; preds = %97
  %124 = load i32, ptr %12, align 4, !tbaa !11
  %125 = icmp eq i32 %124, -4992
  br i1 %125, label %126, label %127

126:                                              ; preds = %123
  store i32 -15232, ptr %6, align 4
  store i32 1, ptr %16, align 4
  br label %287

127:                                              ; preds = %123
  %128 = load i32, ptr %12, align 4, !tbaa !11
  %129 = icmp eq i32 %128, -4864
  br i1 %129, label %130, label %131

130:                                              ; preds = %127
  store i32 -15360, ptr %6, align 4
  store i32 1, ptr %16, align 4
  br label %287

131:                                              ; preds = %127
  %132 = load i32, ptr %12, align 4, !tbaa !11
  %133 = icmp ne i32 %132, -4224
  br i1 %133, label %134, label %136

134:                                              ; preds = %131
  %135 = load i32, ptr %12, align 4, !tbaa !11
  store i32 %135, ptr %6, align 4
  store i32 1, ptr %16, align 4
  br label %287

136:                                              ; preds = %131
  br label %137

137:                                              ; preds = %136
  br label %138

138:                                              ; preds = %137
  br label %139

139:                                              ; preds = %138
  %140 = load ptr, ptr %8, align 8, !tbaa !5
  %141 = load i64, ptr %9, align 8, !tbaa !9
  %142 = sub i64 %141, 1
  %143 = getelementptr inbounds i8, ptr %140, i64 %142
  %144 = load i8, ptr %143, align 1, !tbaa !13
  %145 = zext i8 %144 to i32
  %146 = icmp ne i32 %145, 0
  br i1 %146, label %147, label %148

147:                                              ; preds = %139
  store i32 -4224, ptr %12, align 4, !tbaa !11
  br label %151

148:                                              ; preds = %139
  %149 = load ptr, ptr %8, align 8, !tbaa !5
  %150 = call i32 @mbedtls_pem_read_buffer(ptr noundef %15, ptr noundef @.str.6, ptr noundef @.str.7, ptr noundef %149, ptr noundef null, i64 noundef 0, ptr noundef %14)
  store i32 %150, ptr %12, align 4, !tbaa !11
  br label %151

151:                                              ; preds = %148, %147
  %152 = load i32, ptr %12, align 4, !tbaa !11
  %153 = icmp eq i32 %152, 0
  br i1 %153, label %154, label %166

154:                                              ; preds = %151
  %155 = load ptr, ptr %7, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.mbedtls_pem_context, ptr %15, i32 0, i32 0
  %157 = load ptr, ptr %156, align 8, !tbaa !14
  %158 = getelementptr inbounds %struct.mbedtls_pem_context, ptr %15, i32 0, i32 1
  %159 = load i64, ptr %158, align 8, !tbaa !16
  %160 = call i32 @pk_parse_key_pkcs8_unencrypted_der(ptr noundef %155, ptr noundef %157, i64 noundef %159)
  store i32 %160, ptr %12, align 4, !tbaa !11
  %161 = icmp ne i32 %160, 0
  br i1 %161, label %162, label %164

162:                                              ; preds = %154
  %163 = load ptr, ptr %7, align 8, !tbaa !5
  call void @mbedtls_pk_free(ptr noundef %163)
  br label %164

164:                                              ; preds = %162, %154
  call void @mbedtls_pem_free(ptr noundef %15)
  %165 = load i32, ptr %12, align 4, !tbaa !11
  store i32 %165, ptr %6, align 4
  store i32 1, ptr %16, align 4
  br label %287

166:                                              ; preds = %151
  %167 = load i32, ptr %12, align 4, !tbaa !11
  %168 = icmp ne i32 %167, -4224
  br i1 %168, label %169, label %171

169:                                              ; preds = %166
  %170 = load i32, ptr %12, align 4, !tbaa !11
  store i32 %170, ptr %6, align 4
  store i32 1, ptr %16, align 4
  br label %287

171:                                              ; preds = %166
  br label %172

172:                                              ; preds = %171
  %173 = load ptr, ptr %8, align 8, !tbaa !5
  %174 = load i64, ptr %9, align 8, !tbaa !9
  %175 = sub i64 %174, 1
  %176 = getelementptr inbounds i8, ptr %173, i64 %175
  %177 = load i8, ptr %176, align 1, !tbaa !13
  %178 = zext i8 %177 to i32
  %179 = icmp ne i32 %178, 0
  br i1 %179, label %180, label %181

180:                                              ; preds = %172
  store i32 -4224, ptr %12, align 4, !tbaa !11
  br label %184

181:                                              ; preds = %172
  %182 = load ptr, ptr %8, align 8, !tbaa !5
  %183 = call i32 @mbedtls_pem_read_buffer(ptr noundef %15, ptr noundef @.str.8, ptr noundef @.str.9, ptr noundef %182, ptr noundef null, i64 noundef 0, ptr noundef %14)
  store i32 %183, ptr %12, align 4, !tbaa !11
  br label %184

184:                                              ; preds = %181, %180
  %185 = load i32, ptr %12, align 4, !tbaa !11
  %186 = icmp eq i32 %185, 0
  br i1 %186, label %187, label %201

187:                                              ; preds = %184
  %188 = load ptr, ptr %7, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.mbedtls_pem_context, ptr %15, i32 0, i32 0
  %190 = load ptr, ptr %189, align 8, !tbaa !14
  %191 = getelementptr inbounds %struct.mbedtls_pem_context, ptr %15, i32 0, i32 1
  %192 = load i64, ptr %191, align 8, !tbaa !16
  %193 = load ptr, ptr %10, align 8, !tbaa !5
  %194 = load i64, ptr %11, align 8, !tbaa !9
  %195 = call i32 @pk_parse_key_pkcs8_encrypted_der(ptr noundef %188, ptr noundef %190, i64 noundef %192, ptr noundef %193, i64 noundef %194)
  store i32 %195, ptr %12, align 4, !tbaa !11
  %196 = icmp ne i32 %195, 0
  br i1 %196, label %197, label %199

197:                                              ; preds = %187
  %198 = load ptr, ptr %7, align 8, !tbaa !5
  call void @mbedtls_pk_free(ptr noundef %198)
  br label %199

199:                                              ; preds = %197, %187
  call void @mbedtls_pem_free(ptr noundef %15)
  %200 = load i32, ptr %12, align 4, !tbaa !11
  store i32 %200, ptr %6, align 4
  store i32 1, ptr %16, align 4
  br label %287

201:                                              ; preds = %184
  %202 = load i32, ptr %12, align 4, !tbaa !11
  %203 = icmp ne i32 %202, -4224
  br i1 %203, label %204, label %206

204:                                              ; preds = %201
  %205 = load i32, ptr %12, align 4, !tbaa !11
  store i32 %205, ptr %6, align 4
  store i32 1, ptr %16, align 4
  br label %287

206:                                              ; preds = %201
  br label %207

207:                                              ; preds = %206
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %208 = load i64, ptr %9, align 8, !tbaa !9
  %209 = call noalias ptr @calloc(i64 noundef 1, i64 noundef %208) #8
  store ptr %209, ptr %17, align 8, !tbaa !5
  %210 = icmp eq ptr %209, null
  br i1 %210, label %211, label %212

211:                                              ; preds = %207
  store i32 -16256, ptr %6, align 4
  store i32 1, ptr %16, align 4
  br label %225

212:                                              ; preds = %207
  %213 = load ptr, ptr %17, align 8, !tbaa !5
  %214 = load ptr, ptr %8, align 8, !tbaa !5
  %215 = load i64, ptr %9, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %213, ptr align 1 %214, i64 %215, i1 false)
  %216 = load ptr, ptr %7, align 8, !tbaa !5
  %217 = load ptr, ptr %17, align 8, !tbaa !5
  %218 = load i64, ptr %9, align 8, !tbaa !9
  %219 = load ptr, ptr %10, align 8, !tbaa !5
  %220 = load i64, ptr %11, align 8, !tbaa !9
  %221 = call i32 @pk_parse_key_pkcs8_encrypted_der(ptr noundef %216, ptr noundef %217, i64 noundef %218, ptr noundef %219, i64 noundef %220)
  store i32 %221, ptr %12, align 4, !tbaa !11
  %222 = load ptr, ptr %17, align 8, !tbaa !5
  %223 = load i64, ptr %9, align 8, !tbaa !9
  call void @mbedtls_platform_zeroize(ptr noundef %222, i64 noundef %223)
  %224 = load ptr, ptr %17, align 8, !tbaa !5
  call void @free(ptr noundef %224) #7
  store i32 0, ptr %16, align 4
  br label %225

225:                                              ; preds = %212, %211
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  %226 = load i32, ptr %16, align 4
  switch i32 %226, label %287 [
    i32 0, label %227
  ]

227:                                              ; preds = %225
  %228 = load i32, ptr %12, align 4, !tbaa !11
  %229 = icmp eq i32 %228, 0
  br i1 %229, label %230, label %231

230:                                              ; preds = %227
  store i32 0, ptr %6, align 4
  store i32 1, ptr %16, align 4
  br label %287

231:                                              ; preds = %227
  %232 = load ptr, ptr %7, align 8, !tbaa !5
  call void @mbedtls_pk_free(ptr noundef %232)
  %233 = load ptr, ptr %7, align 8, !tbaa !5
  call void @mbedtls_pk_init(ptr noundef %233)
  %234 = load i32, ptr %12, align 4, !tbaa !11
  %235 = icmp eq i32 %234, -15232
  br i1 %235, label %236, label %238

236:                                              ; preds = %231
  %237 = load i32, ptr %12, align 4, !tbaa !11
  store i32 %237, ptr %6, align 4
  store i32 1, ptr %16, align 4
  br label %287

238:                                              ; preds = %231
  %239 = load ptr, ptr %7, align 8, !tbaa !5
  %240 = load ptr, ptr %8, align 8, !tbaa !5
  %241 = load i64, ptr %9, align 8, !tbaa !9
  %242 = call i32 @pk_parse_key_pkcs8_unencrypted_der(ptr noundef %239, ptr noundef %240, i64 noundef %241)
  store i32 %242, ptr %12, align 4, !tbaa !11
  %243 = icmp eq i32 %242, 0
  br i1 %243, label %244, label %245

244:                                              ; preds = %238
  store i32 0, ptr %6, align 4
  store i32 1, ptr %16, align 4
  br label %287

245:                                              ; preds = %238
  %246 = load ptr, ptr %7, align 8, !tbaa !5
  call void @mbedtls_pk_free(ptr noundef %246)
  %247 = load ptr, ptr %7, align 8, !tbaa !5
  call void @mbedtls_pk_init(ptr noundef %247)
  %248 = call ptr @mbedtls_pk_info_from_type(i32 noundef 1)
  store ptr %248, ptr %13, align 8, !tbaa !5
  %249 = load ptr, ptr %7, align 8, !tbaa !5
  %250 = load ptr, ptr %13, align 8, !tbaa !5
  %251 = call i32 @mbedtls_pk_setup(ptr noundef %249, ptr noundef %250)
  %252 = icmp eq i32 %251, 0
  br i1 %252, label %253, label %265

253:                                              ; preds = %245
  %254 = load ptr, ptr %7, align 8, !tbaa !5
  %255 = getelementptr inbounds { ptr, ptr }, ptr %254, i32 0, i32 0
  %256 = load ptr, ptr %255, align 8
  %257 = getelementptr inbounds { ptr, ptr }, ptr %254, i32 0, i32 1
  %258 = load ptr, ptr %257, align 8
  %259 = call ptr @mbedtls_pk_rsa(ptr %256, ptr %258)
  %260 = load ptr, ptr %8, align 8, !tbaa !5
  %261 = load i64, ptr %9, align 8, !tbaa !9
  %262 = call i32 @pk_parse_key_pkcs1_der(ptr noundef %259, ptr noundef %260, i64 noundef %261)
  %263 = icmp eq i32 %262, 0
  br i1 %263, label %264, label %265

264:                                              ; preds = %253
  store i32 0, ptr %6, align 4
  store i32 1, ptr %16, align 4
  br label %287

265:                                              ; preds = %253, %245
  %266 = load ptr, ptr %7, align 8, !tbaa !5
  call void @mbedtls_pk_free(ptr noundef %266)
  %267 = load ptr, ptr %7, align 8, !tbaa !5
  call void @mbedtls_pk_init(ptr noundef %267)
  %268 = call ptr @mbedtls_pk_info_from_type(i32 noundef 2)
  store ptr %268, ptr %13, align 8, !tbaa !5
  %269 = load ptr, ptr %7, align 8, !tbaa !5
  %270 = load ptr, ptr %13, align 8, !tbaa !5
  %271 = call i32 @mbedtls_pk_setup(ptr noundef %269, ptr noundef %270)
  %272 = icmp eq i32 %271, 0
  br i1 %272, label %273, label %285

273:                                              ; preds = %265
  %274 = load ptr, ptr %7, align 8, !tbaa !5
  %275 = getelementptr inbounds { ptr, ptr }, ptr %274, i32 0, i32 0
  %276 = load ptr, ptr %275, align 8
  %277 = getelementptr inbounds { ptr, ptr }, ptr %274, i32 0, i32 1
  %278 = load ptr, ptr %277, align 8
  %279 = call ptr @mbedtls_pk_ec(ptr %276, ptr %278)
  %280 = load ptr, ptr %8, align 8, !tbaa !5
  %281 = load i64, ptr %9, align 8, !tbaa !9
  %282 = call i32 @pk_parse_key_sec1_der(ptr noundef %279, ptr noundef %280, i64 noundef %281)
  %283 = icmp eq i32 %282, 0
  br i1 %283, label %284, label %285

284:                                              ; preds = %273
  store i32 0, ptr %6, align 4
  store i32 1, ptr %16, align 4
  br label %287

285:                                              ; preds = %273, %265
  %286 = load ptr, ptr %7, align 8, !tbaa !5
  call void @mbedtls_pk_free(ptr noundef %286)
  store i32 -15616, ptr %6, align 4
  store i32 1, ptr %16, align 4
  br label %287

287:                                              ; preds = %285, %284, %264, %244, %236, %230, %225, %204, %199, %169, %164, %134, %130, %126, %121, %78, %74, %70, %65, %23
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  %288 = load i32, ptr %6, align 4
  ret i32 %288
}

declare ptr @mbedtls_pk_info_from_type(i32 noundef) #2

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @mbedtls_pk_rsa(ptr, ptr) #5

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @mbedtls_pk_ec(ptr, ptr) #5

declare void @mbedtls_pk_free(ptr noundef) #2

declare void @mbedtls_pem_init(ptr noundef) #2

declare i32 @mbedtls_pem_read_buffer(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden i32 @pk_parse_key_pkcs1_der(ptr noundef, ptr noundef, i64 noundef) #4

declare void @mbedtls_pem_free(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden i32 @pk_parse_key_sec1_der(ptr noundef, ptr noundef, i64 noundef) #4

; Function Attrs: nounwind uwtable
declare hidden i32 @pk_parse_key_pkcs8_unencrypted_der(ptr noundef, ptr noundef, i64 noundef) #4

; Function Attrs: nounwind uwtable
declare hidden i32 @pk_parse_key_pkcs8_encrypted_der(ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef) #4

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

declare void @mbedtls_pk_init(ptr noundef) #2

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

!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, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !6, i64 0}
!15 = !{!"mbedtls_pem_context", !6, i64 0, !10, i64 8, !6, i64 16}
!16 = !{!15, !10, i64 8}


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

%struct.mbedtls_pem_context = type { ptr, i64, ptr }

@.str.2 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [36 x i8], align 1

; 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 nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @mbedtls_pk_parse_key(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %4) local_unnamed_addr #4 {
  %6 = alloca i64, align 8
  %7 = alloca %struct.mbedtls_pem_context, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #7
  %8 = icmp eq i64 %2, 0
  br i1 %8, label %.thread125, label %9

9:                                                ; preds = %5
  call void @mbedtls_pem_init(ptr noundef nonnull %7) #7
  %10 = getelementptr i8, ptr %1, i64 %2
  %11 = getelementptr i8, ptr %10, i64 -1
  %12 = load i8, ptr %11, align 1, !tbaa !5
  %.not = icmp eq i8 %12, 0
  br i1 %.not, label %13, label %.thread123

13:                                               ; preds = %9
  %14 = call i32 @mbedtls_pem_read_buffer(ptr noundef nonnull %7, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, ptr noundef nonnull %1, ptr noundef %3, i64 noundef %4, ptr noundef nonnull %6) #7
  switch i32 %14, label %30 [
    i32 0, label %15
    i32 -4992, label %.thread125
    i32 -4864, label %29
    i32 -4224, label %31
  ]

15:                                               ; preds = %13
  %16 = call ptr @mbedtls_pk_info_from_type(i32 noundef 1) #7
  %17 = call i32 @mbedtls_pk_setup(ptr noundef %0, ptr noundef %16) #7
  %.not109 = icmp eq i32 %17, 0
  br i1 %.not109, label %18, label %27

18:                                               ; preds = %15
  %19 = load ptr, ptr %0, align 8
  %20 = getelementptr inbounds i8, ptr %0, i64 8
  %21 = load ptr, ptr %20, align 8
  %22 = call ptr @mbedtls_pk_rsa(ptr %19, ptr %21)
  %23 = load ptr, ptr %7, align 8, !tbaa !8
  %24 = getelementptr inbounds i8, ptr %7, i64 8
  %25 = load i64, ptr %24, align 8, !tbaa !12
  %26 = call i32 @pk_parse_key_pkcs1_der(ptr noundef %22, ptr noundef %23, i64 noundef %25)
  %.not110 = icmp eq i32 %26, 0
  br i1 %.not110, label %28, label %27

27:                                               ; preds = %18, %15
  %.189 = phi i32 [ %17, %15 ], [ %26, %18 ]
  call void @mbedtls_pk_free(ptr noundef %0) #7
  br label %28

28:                                               ; preds = %27, %18
  %.2 = phi i32 [ %.189, %27 ], [ 0, %18 ]
  call void @mbedtls_pem_free(ptr noundef nonnull %7) #7
  br label %.thread125

29:                                               ; preds = %13
  br label %.thread125

30:                                               ; preds = %13
  br label %.thread125

31:                                               ; preds = %13
  %.pr = load i8, ptr %11, align 1, !tbaa !5
  %.not98 = icmp eq i8 %.pr, 0
  br i1 %.not98, label %32, label %.thread123

32:                                               ; preds = %31
  %33 = call i32 @mbedtls_pem_read_buffer(ptr noundef nonnull %7, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, ptr noundef nonnull %1, ptr noundef %3, i64 noundef %4, ptr noundef nonnull %6) #7
  switch i32 %33, label %49 [
    i32 0, label %34
    i32 -4992, label %.thread125
    i32 -4864, label %48
    i32 -4224, label %.thread114
  ]

34:                                               ; preds = %32
  %35 = call ptr @mbedtls_pk_info_from_type(i32 noundef 2) #7
  %36 = call i32 @mbedtls_pk_setup(ptr noundef %0, ptr noundef %35) #7
  %.not107 = icmp eq i32 %36, 0
  br i1 %.not107, label %37, label %46

37:                                               ; preds = %34
  %38 = load ptr, ptr %0, align 8
  %39 = getelementptr inbounds i8, ptr %0, i64 8
  %40 = load ptr, ptr %39, align 8
  %41 = call ptr @mbedtls_pk_ec(ptr %38, ptr %40)
  %42 = load ptr, ptr %7, align 8, !tbaa !8
  %43 = getelementptr inbounds i8, ptr %7, i64 8
  %44 = load i64, ptr %43, align 8, !tbaa !12
  %45 = call i32 @pk_parse_key_sec1_der(ptr noundef %41, ptr noundef %42, i64 noundef %44)
  %.not108 = icmp eq i32 %45, 0
  br i1 %.not108, label %47, label %46

46:                                               ; preds = %37, %34
  %.4 = phi i32 [ %36, %34 ], [ %45, %37 ]
  call void @mbedtls_pk_free(ptr noundef %0) #7
  br label %47

47:                                               ; preds = %46, %37
  %.5 = phi i32 [ %.4, %46 ], [ 0, %37 ]
  call void @mbedtls_pem_free(ptr noundef nonnull %7) #7
  br label %.thread125

48:                                               ; preds = %32
  br label %.thread125

49:                                               ; preds = %32
  br label %.thread125

.thread114:                                       ; preds = %32
  %.pr127 = load i8, ptr %11, align 1, !tbaa !5
  %.not100 = icmp eq i8 %.pr127, 0
  br i1 %.not100, label %50, label %.thread123

50:                                               ; preds = %.thread114
  %51 = call i32 @mbedtls_pem_read_buffer(ptr noundef nonnull %7, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.7, ptr noundef nonnull %1, ptr noundef null, i64 noundef 0, ptr noundef nonnull %6) #7
  switch i32 %51, label %.thread125 [
    i32 0, label %52
    i32 -4224, label %59
  ]

52:                                               ; preds = %50
  %53 = load ptr, ptr %7, align 8, !tbaa !8
  %54 = getelementptr inbounds i8, ptr %7, i64 8
  %55 = load i64, ptr %54, align 8, !tbaa !12
  %56 = call i32 @pk_parse_key_pkcs8_unencrypted_der(ptr noundef %0, ptr noundef %53, i64 noundef %55)
  %.not106 = icmp eq i32 %56, 0
  br i1 %.not106, label %58, label %57

57:                                               ; preds = %52
  call void @mbedtls_pk_free(ptr noundef %0) #7
  br label %58

58:                                               ; preds = %57, %52
  call void @mbedtls_pem_free(ptr noundef nonnull %7) #7
  br label %.thread125

59:                                               ; preds = %50
  %.pr119 = load i8, ptr %11, align 1, !tbaa !5
  %.not102 = icmp eq i8 %.pr119, 0
  br i1 %.not102, label %60, label %.thread123

60:                                               ; preds = %59
  %61 = call i32 @mbedtls_pem_read_buffer(ptr noundef nonnull %7, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.9, ptr noundef nonnull %1, ptr noundef null, i64 noundef 0, ptr noundef nonnull %6) #7
  switch i32 %61, label %.thread125 [
    i32 0, label %62
    i32 -4224, label %.thread123
  ]

62:                                               ; preds = %60
  %63 = load ptr, ptr %7, align 8, !tbaa !8
  %64 = getelementptr inbounds i8, ptr %7, i64 8
  %65 = load i64, ptr %64, align 8, !tbaa !12
  %66 = call i32 @pk_parse_key_pkcs8_encrypted_der(ptr noundef %0, ptr noundef %63, i64 noundef %65, ptr noundef %3, i64 noundef %4)
  %.not105 = icmp eq i32 %66, 0
  br i1 %.not105, label %68, label %67

67:                                               ; preds = %62
  call void @mbedtls_pk_free(ptr noundef %0) #7
  br label %68

68:                                               ; preds = %67, %62
  call void @mbedtls_pem_free(ptr noundef nonnull %7) #7
  br label %.thread125

.thread123:                                       ; preds = %31, %9, %.thread114, %59, %60
  %69 = call noalias ptr @calloc(i64 noundef 1, i64 noundef %2) #8
  %.not104 = icmp eq ptr %69, null
  br i1 %.not104, label %.thread125, label %70

70:                                               ; preds = %.thread123
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 1 %69, ptr nonnull align 1 %1, i64 %2, i1 false)
  %71 = call i32 @pk_parse_key_pkcs8_encrypted_der(ptr noundef %0, ptr noundef nonnull %69, i64 noundef %2, ptr noundef %3, i64 noundef %4)
  call void @mbedtls_platform_zeroize(ptr noundef nonnull %69, i64 noundef %2) #7
  call void @free(ptr noundef nonnull %69) #7
  %72 = icmp eq i32 %71, 0
  br i1 %72, label %.thread125, label %73

73:                                               ; preds = %70
  call void @mbedtls_pk_free(ptr noundef %0) #7
  call void @mbedtls_pk_init(ptr noundef %0) #7
  %74 = icmp eq i32 %71, -15232
  br i1 %74, label %.thread125, label %75

75:                                               ; preds = %73
  %76 = call i32 @pk_parse_key_pkcs8_unencrypted_der(ptr noundef %0, ptr noundef nonnull %1, i64 noundef %2)
  %77 = icmp eq i32 %76, 0
  br i1 %77, label %.thread125, label %78

78:                                               ; preds = %75
  call void @mbedtls_pk_free(ptr noundef %0) #7
  call void @mbedtls_pk_init(ptr noundef %0) #7
  %79 = call ptr @mbedtls_pk_info_from_type(i32 noundef 1) #7
  %80 = call i32 @mbedtls_pk_setup(ptr noundef %0, ptr noundef %79) #7
  %81 = icmp eq i32 %80, 0
  br i1 %81, label %82, label %89

82:                                               ; preds = %78
  %83 = load ptr, ptr %0, align 8
  %84 = getelementptr inbounds i8, ptr %0, i64 8
  %85 = load ptr, ptr %84, align 8
  %86 = call ptr @mbedtls_pk_rsa(ptr %83, ptr %85)
  %87 = call i32 @pk_parse_key_pkcs1_der(ptr noundef %86, ptr noundef nonnull %1, i64 noundef %2)
  %88 = icmp eq i32 %87, 0
  br i1 %88, label %.thread125, label %89

89:                                               ; preds = %82, %78
  call void @mbedtls_pk_free(ptr noundef %0) #7
  call void @mbedtls_pk_init(ptr noundef %0) #7
  %90 = call ptr @mbedtls_pk_info_from_type(i32 noundef 2) #7
  %91 = call i32 @mbedtls_pk_setup(ptr noundef %0, ptr noundef %90) #7
  %92 = icmp eq i32 %91, 0
  br i1 %92, label %93, label %100

93:                                               ; preds = %89
  %94 = load ptr, ptr %0, align 8
  %95 = getelementptr inbounds i8, ptr %0, i64 8
  %96 = load ptr, ptr %95, align 8
  %97 = call ptr @mbedtls_pk_ec(ptr %94, ptr %96)
  %98 = call i32 @pk_parse_key_sec1_der(ptr noundef %97, ptr noundef nonnull %1, i64 noundef %2)
  %99 = icmp eq i32 %98, 0
  br i1 %99, label %.thread125, label %100

100:                                              ; preds = %93, %89
  call void @mbedtls_pk_free(ptr noundef %0) #7
  br label %.thread125

.thread125:                                       ; preds = %.thread123, %93, %82, %75, %73, %70, %60, %50, %32, %13, %5, %100, %68, %58, %49, %48, %47, %30, %29, %28
  %.1 = phi i32 [ %.2, %28 ], [ -15360, %29 ], [ %14, %30 ], [ %.5, %47 ], [ -15360, %48 ], [ %33, %49 ], [ %56, %58 ], [ %66, %68 ], [ -15616, %100 ], [ -15616, %5 ], [ -15232, %13 ], [ -15232, %32 ], [ %51, %50 ], [ %61, %60 ], [ 0, %70 ], [ -15232, %73 ], [ 0, %75 ], [ 0, %82 ], [ 0, %93 ], [ -16256, %.thread123 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  ret i32 %.1
}

declare ptr @mbedtls_pk_info_from_type(i32 noundef) local_unnamed_addr #2

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @mbedtls_pk_rsa(ptr, ptr) local_unnamed_addr #5

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @mbedtls_pk_ec(ptr, ptr) local_unnamed_addr #5

declare void @mbedtls_pk_free(ptr noundef) local_unnamed_addr #2

declare void @mbedtls_pem_init(ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
declare hidden i32 @pk_parse_key_pkcs1_der(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #4

declare void @mbedtls_pem_free(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden i32 @pk_parse_key_sec1_der(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare hidden i32 @pk_parse_key_pkcs8_unencrypted_der(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare hidden i32 @pk_parse_key_pkcs8_encrypted_der(ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef) local_unnamed_addr #4

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

declare void @mbedtls_pk_init(ptr noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(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 #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 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 #4 = { 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 #5 = { 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 #6 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { nounwind }
attributes #8 = { nounwind allocsize(0,1) }

!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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!9, !10, i64 0}
!9 = !{!"mbedtls_pem_context", !10, i64 0, !11, i64 8, !10, i64 16}
!10 = !{!"any pointer", !6, i64 0}
!11 = !{!"long", !6, i64 0}
!12 = !{!9, !11, i64 8}


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