; LLVM IR from tleonhardt/practical_cryptography_engineering :: mbedtls (x509_crt)

; 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_x509_crt = type { %struct.mbedtls_asn1_buf, %struct.mbedtls_asn1_buf, i32, %struct.mbedtls_asn1_buf, %struct.mbedtls_asn1_buf, %struct.mbedtls_asn1_buf, %struct.mbedtls_asn1_buf, %struct.mbedtls_asn1_named_data, %struct.mbedtls_asn1_named_data, %struct.mbedtls_x509_time, %struct.mbedtls_x509_time, %struct.mbedtls_pk_context, %struct.mbedtls_asn1_buf, %struct.mbedtls_asn1_buf, %struct.mbedtls_asn1_buf, %struct.mbedtls_asn1_sequence, i32, i32, i32, i32, %struct.mbedtls_asn1_sequence, i8, %struct.mbedtls_asn1_buf, i32, i32, ptr, ptr }
%struct.mbedtls_asn1_named_data = type { %struct.mbedtls_asn1_buf, %struct.mbedtls_asn1_buf, ptr, i8 }
%struct.mbedtls_x509_time = type { i32, i32, i32, i32, i32, i32 }
%struct.mbedtls_pk_context = type { ptr, ptr }
%struct.mbedtls_asn1_sequence = type { %struct.mbedtls_asn1_buf, ptr }
%struct.mbedtls_asn1_buf = type { i32, i64, ptr }

@.str.24 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [4 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

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

30:                                               ; preds = %8
  store i32 -10240, ptr %19, align 4, !tbaa !9
  br label %292

31:                                               ; preds = %8
  %32 = load ptr, ptr %14, align 8, !tbaa !5
  %33 = icmp ne ptr %32, null
  br i1 %33, label %34, label %175

34:                                               ; preds = %31
  %35 = load ptr, ptr %10, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.mbedtls_x509_crt, ptr %35, i32 0, i32 8
  store ptr %36, ptr %23, align 8, !tbaa !5
  %37 = load ptr, ptr %14, align 8, !tbaa !5
  %38 = call i64 @strlen(ptr noundef %37) #5
  store i64 %38, ptr %18, align 8, !tbaa !11
  %39 = load ptr, ptr %10, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.mbedtls_x509_crt, ptr %39, i32 0, i32 16
  %41 = load i32, ptr %40, align 8, !tbaa !13
  %42 = and i32 %41, 32
  %43 = icmp ne i32 %42, 0
  br i1 %43, label %44, label %99

44:                                               ; preds = %34
  %45 = load ptr, ptr %10, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.mbedtls_x509_crt, ptr %45, i32 0, i32 15
  store ptr %46, ptr %24, align 8, !tbaa !5
  br label %47

47:                                               ; preds = %87, %44
  %48 = load ptr, ptr %24, align 8, !tbaa !5
  %49 = icmp ne ptr %48, null
  br i1 %49, label %50, label %91

50:                                               ; preds = %47
  %51 = load ptr, ptr %24, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.mbedtls_asn1_sequence, ptr %51, i32 0, i32 0
  %53 = getelementptr inbounds %struct.mbedtls_asn1_buf, ptr %52, i32 0, i32 1
  %54 = load i64, ptr %53, align 8, !tbaa !20
  %55 = load i64, ptr %18, align 8, !tbaa !11
  %56 = icmp eq i64 %54, %55
  br i1 %56, label %57, label %67

57:                                               ; preds = %50
  %58 = load ptr, ptr %14, align 8, !tbaa !5
  %59 = load ptr, ptr %24, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.mbedtls_asn1_sequence, ptr %59, i32 0, i32 0
  %61 = getelementptr inbounds %struct.mbedtls_asn1_buf, ptr %60, i32 0, i32 2
  %62 = load ptr, ptr %61, align 8, !tbaa !21
  %63 = load i64, ptr %18, align 8, !tbaa !11
  %64 = call i32 @x509_memcasecmp(ptr noundef %58, ptr noundef %62, i64 noundef %63)
  %65 = icmp eq i32 %64, 0
  br i1 %65, label %66, label %67

66:                                               ; preds = %57
  br label %91

67:                                               ; preds = %57, %50
  %68 = load ptr, ptr %24, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.mbedtls_asn1_sequence, ptr %68, i32 0, i32 0
  %70 = getelementptr inbounds %struct.mbedtls_asn1_buf, ptr %69, i32 0, i32 1
  %71 = load i64, ptr %70, align 8, !tbaa !20
  %72 = icmp ugt i64 %71, 2
  br i1 %72, label %73, label %87

73:                                               ; preds = %67
  %74 = load ptr, ptr %24, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.mbedtls_asn1_sequence, ptr %74, i32 0, i32 0
  %76 = getelementptr inbounds %struct.mbedtls_asn1_buf, ptr %75, i32 0, i32 2
  %77 = load ptr, ptr %76, align 8, !tbaa !21
  %78 = call i32 @memcmp(ptr noundef %77, ptr noundef @.str.24, i64 noundef 2) #5
  %79 = icmp eq i32 %78, 0
  br i1 %79, label %80, label %87

80:                                               ; preds = %73
  %81 = load ptr, ptr %14, align 8, !tbaa !5
  %82 = load ptr, ptr %24, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.mbedtls_asn1_sequence, ptr %82, i32 0, i32 0
  %84 = call i32 @x509_check_wildcard(ptr noundef %81, ptr noundef %83)
  %85 = icmp eq i32 %84, 0
  br i1 %85, label %86, label %87

86:                                               ; preds = %80
  br label %91

87:                                               ; preds = %80, %73, %67
  %88 = load ptr, ptr %24, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.mbedtls_asn1_sequence, ptr %88, i32 0, i32 1
  %90 = load ptr, ptr %89, align 8, !tbaa !22
  store ptr %90, ptr %24, align 8, !tbaa !5
  br label %47, !llvm.loop !23

91:                                               ; preds = %86, %66, %47
  %92 = load ptr, ptr %24, align 8, !tbaa !5
  %93 = icmp eq ptr %92, null
  br i1 %93, label %94, label %98

94:                                               ; preds = %91
  %95 = load ptr, ptr %15, align 8, !tbaa !5
  %96 = load i32, ptr %95, align 4, !tbaa !9
  %97 = or i32 %96, 4
  store i32 %97, ptr %95, align 4, !tbaa !9
  br label %98

98:                                               ; preds = %94, %91
  br label %174

99:                                               ; preds = %34
  br label %100

100:                                              ; preds = %162, %99
  %101 = load ptr, ptr %23, align 8, !tbaa !5
  %102 = icmp ne ptr %101, null
  br i1 %102, label %103, label %166

103:                                              ; preds = %100
  %104 = load ptr, ptr %23, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.mbedtls_asn1_named_data, ptr %104, i32 0, i32 0
  %106 = getelementptr inbounds %struct.mbedtls_asn1_buf, ptr %105, i32 0, i32 1
  %107 = load i64, ptr %106, align 8, !tbaa !25
  %108 = icmp ne i64 3, %107
  br i1 %108, label %120, label %109

109:                                              ; preds = %103
  %110 = load ptr, ptr %23, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.mbedtls_asn1_named_data, ptr %110, i32 0, i32 0
  %112 = getelementptr inbounds %struct.mbedtls_asn1_buf, ptr %111, i32 0, i32 2
  %113 = load ptr, ptr %112, align 8, !tbaa !26
  %114 = load ptr, ptr %23, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.mbedtls_asn1_named_data, ptr %114, i32 0, i32 0
  %116 = getelementptr inbounds %struct.mbedtls_asn1_buf, ptr %115, i32 0, i32 1
  %117 = load i64, ptr %116, align 8, !tbaa !25
  %118 = call i32 @memcmp(ptr noundef @.str.25, ptr noundef %113, i64 noundef %117) #5
  %119 = icmp ne i32 %118, 0
  br label %120

120:                                              ; preds = %109, %103
  %121 = phi i1 [ true, %103 ], [ %119, %109 ]
  %122 = zext i1 %121 to i32
  %123 = icmp eq i32 %122, 0
  br i1 %123, label %124, label %162

124:                                              ; preds = %120
  %125 = load ptr, ptr %23, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.mbedtls_asn1_named_data, ptr %125, i32 0, i32 1
  %127 = getelementptr inbounds %struct.mbedtls_asn1_buf, ptr %126, i32 0, i32 1
  %128 = load i64, ptr %127, align 8, !tbaa !27
  %129 = load i64, ptr %18, align 8, !tbaa !11
  %130 = icmp eq i64 %128, %129
  br i1 %130, label %131, label %141

131:                                              ; preds = %124
  %132 = load ptr, ptr %23, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.mbedtls_asn1_named_data, ptr %132, i32 0, i32 1
  %134 = getelementptr inbounds %struct.mbedtls_asn1_buf, ptr %133, i32 0, i32 2
  %135 = load ptr, ptr %134, align 8, !tbaa !28
  %136 = load ptr, ptr %14, align 8, !tbaa !5
  %137 = load i64, ptr %18, align 8, !tbaa !11
  %138 = call i32 @x509_memcasecmp(ptr noundef %135, ptr noundef %136, i64 noundef %137)
  %139 = icmp eq i32 %138, 0
  br i1 %139, label %140, label %141

140:                                              ; preds = %131
  br label %166

141:                                              ; preds = %131, %124
  %142 = load ptr, ptr %23, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.mbedtls_asn1_named_data, ptr %142, i32 0, i32 1
  %144 = getelementptr inbounds %struct.mbedtls_asn1_buf, ptr %143, i32 0, i32 1
  %145 = load i64, ptr %144, align 8, !tbaa !27
  %146 = icmp ugt i64 %145, 2
  br i1 %146, label %147, label %161

147:                                              ; preds = %141
  %148 = load ptr, ptr %23, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.mbedtls_asn1_named_data, ptr %148, i32 0, i32 1
  %150 = getelementptr inbounds %struct.mbedtls_asn1_buf, ptr %149, i32 0, i32 2
  %151 = load ptr, ptr %150, align 8, !tbaa !28
  %152 = call i32 @memcmp(ptr noundef %151, ptr noundef @.str.24, i64 noundef 2) #5
  %153 = icmp eq i32 %152, 0
  br i1 %153, label %154, label %161

154:                                              ; preds = %147
  %155 = load ptr, ptr %14, align 8, !tbaa !5
  %156 = load ptr, ptr %23, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.mbedtls_asn1_named_data, ptr %156, i32 0, i32 1
  %158 = call i32 @x509_check_wildcard(ptr noundef %155, ptr noundef %157)
  %159 = icmp eq i32 %158, 0
  br i1 %159, label %160, label %161

160:                                              ; preds = %154
  br label %166

161:                                              ; preds = %154, %147, %141
  br label %162

162:                                              ; preds = %161, %120
  %163 = load ptr, ptr %23, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.mbedtls_asn1_named_data, ptr %163, i32 0, i32 2
  %165 = load ptr, ptr %164, align 8, !tbaa !29
  store ptr %165, ptr %23, align 8, !tbaa !5
  br label %100, !llvm.loop !30

166:                                              ; preds = %160, %140, %100
  %167 = load ptr, ptr %23, align 8, !tbaa !5
  %168 = icmp eq ptr %167, null
  br i1 %168, label %169, label %173

169:                                              ; preds = %166
  %170 = load ptr, ptr %15, align 8, !tbaa !5
  %171 = load i32, ptr %170, align 4, !tbaa !9
  %172 = or i32 %171, 4
  store i32 %172, ptr %170, align 4, !tbaa !9
  br label %173

173:                                              ; preds = %169, %166
  br label %174

174:                                              ; preds = %173, %98
  br label %175

175:                                              ; preds = %174, %31
  %176 = load ptr, ptr %10, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.mbedtls_x509_crt, ptr %176, i32 0, i32 11
  %178 = call i32 @mbedtls_pk_get_type(ptr noundef %177)
  store i32 %178, ptr %25, align 4, !tbaa !9
  %179 = load ptr, ptr %13, align 8, !tbaa !5
  %180 = load i32, ptr %25, align 4, !tbaa !9
  %181 = call i32 @x509_profile_check_pk_alg(ptr noundef %179, i32 noundef %180)
  %182 = icmp ne i32 %181, 0
  br i1 %182, label %183, label %187

183:                                              ; preds = %175
  %184 = load ptr, ptr %15, align 8, !tbaa !5
  %185 = load i32, ptr %184, align 4, !tbaa !9
  %186 = or i32 %185, 32768
  store i32 %186, ptr %184, align 4, !tbaa !9
  br label %187

187:                                              ; preds = %183, %175
  %188 = load ptr, ptr %13, align 8, !tbaa !5
  %189 = load i32, ptr %25, align 4, !tbaa !9
  %190 = load ptr, ptr %10, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.mbedtls_x509_crt, ptr %190, i32 0, i32 11
  %192 = call i32 @x509_profile_check_key(ptr noundef %188, i32 noundef %189, ptr noundef %191)
  %193 = icmp ne i32 %192, 0
  br i1 %193, label %194, label %198

194:                                              ; preds = %187
  %195 = load ptr, ptr %15, align 8, !tbaa !5
  %196 = load i32, ptr %195, align 4, !tbaa !9
  %197 = or i32 %196, 65536
  store i32 %197, ptr %195, align 4, !tbaa !9
  br label %198

198:                                              ; preds = %194, %187
  %199 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %199, ptr %22, align 8, !tbaa !5
  br label %200

200:                                              ; preds = %213, %198
  %201 = load ptr, ptr %22, align 8, !tbaa !5
  %202 = icmp ne ptr %201, null
  br i1 %202, label %203, label %217

203:                                              ; preds = %200
  %204 = load ptr, ptr %10, align 8, !tbaa !5
  %205 = load ptr, ptr %22, align 8, !tbaa !5
  %206 = load i32, ptr %20, align 4, !tbaa !9
  %207 = icmp eq i32 %206, 0
  %208 = zext i1 %207 to i32
  %209 = call i32 @x509_crt_check_parent(ptr noundef %204, ptr noundef %205, i32 noundef 0, i32 noundef %208)
  %210 = icmp eq i32 %209, 0
  br i1 %210, label %211, label %212

211:                                              ; preds = %203
  br label %217

212:                                              ; preds = %203
  br label %213

213:                                              ; preds = %212
  %214 = load ptr, ptr %22, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.mbedtls_x509_crt, ptr %214, i32 0, i32 26
  %216 = load ptr, ptr %215, align 8, !tbaa !31
  store ptr %216, ptr %22, align 8, !tbaa !5
  br label %200, !llvm.loop !32

217:                                              ; preds = %211, %200
  %218 = load ptr, ptr %22, align 8, !tbaa !5
  %219 = icmp ne ptr %218, null
  br i1 %219, label %220, label %235

220:                                              ; preds = %217
  %221 = load ptr, ptr %10, align 8, !tbaa !5
  %222 = load ptr, ptr %22, align 8, !tbaa !5
  %223 = load ptr, ptr %12, align 8, !tbaa !5
  %224 = load ptr, ptr %13, align 8, !tbaa !5
  %225 = load i32, ptr %20, align 4, !tbaa !9
  %226 = load i32, ptr %21, align 4, !tbaa !9
  %227 = load ptr, ptr %15, align 8, !tbaa !5
  %228 = load ptr, ptr %16, align 8, !tbaa !5
  %229 = load ptr, ptr %17, align 8, !tbaa !5
  %230 = call i32 @x509_crt_verify_top(ptr noundef %221, ptr noundef %222, ptr noundef %223, ptr noundef %224, i32 noundef %225, i32 noundef %226, ptr noundef %227, ptr noundef %228, ptr noundef %229)
  store i32 %230, ptr %19, align 4, !tbaa !9
  %231 = load i32, ptr %19, align 4, !tbaa !9
  %232 = icmp ne i32 %231, 0
  br i1 %232, label %233, label %234

233:                                              ; preds = %220
  br label %292

234:                                              ; preds = %220
  br label %291

235:                                              ; preds = %217
  %236 = load ptr, ptr %10, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.mbedtls_x509_crt, ptr %236, i32 0, i32 26
  %238 = load ptr, ptr %237, align 8, !tbaa !31
  store ptr %238, ptr %22, align 8, !tbaa !5
  br label %239

239:                                              ; preds = %252, %235
  %240 = load ptr, ptr %22, align 8, !tbaa !5
  %241 = icmp ne ptr %240, null
  br i1 %241, label %242, label %256

242:                                              ; preds = %239
  %243 = load ptr, ptr %10, align 8, !tbaa !5
  %244 = load ptr, ptr %22, align 8, !tbaa !5
  %245 = load i32, ptr %20, align 4, !tbaa !9
  %246 = icmp eq i32 %245, 0
  %247 = zext i1 %246 to i32
  %248 = call i32 @x509_crt_check_parent(ptr noundef %243, ptr noundef %244, i32 noundef 0, i32 noundef %247)
  %249 = icmp eq i32 %248, 0
  br i1 %249, label %250, label %251

250:                                              ; preds = %242
  br label %256

251:                                              ; preds = %242
  br label %252

252:                                              ; preds = %251
  %253 = load ptr, ptr %22, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.mbedtls_x509_crt, ptr %253, i32 0, i32 26
  %255 = load ptr, ptr %254, align 8, !tbaa !31
  store ptr %255, ptr %22, align 8, !tbaa !5
  br label %239, !llvm.loop !33

256:                                              ; preds = %250, %239
  %257 = load ptr, ptr %22, align 8, !tbaa !5
  %258 = icmp ne ptr %257, null
  br i1 %258, label %259, label %275

259:                                              ; preds = %256
  %260 = load ptr, ptr %10, align 8, !tbaa !5
  %261 = load ptr, ptr %22, align 8, !tbaa !5
  %262 = load ptr, ptr %11, align 8, !tbaa !5
  %263 = load ptr, ptr %12, align 8, !tbaa !5
  %264 = load ptr, ptr %13, align 8, !tbaa !5
  %265 = load i32, ptr %20, align 4, !tbaa !9
  %266 = load i32, ptr %21, align 4, !tbaa !9
  %267 = load ptr, ptr %15, align 8, !tbaa !5
  %268 = load ptr, ptr %16, align 8, !tbaa !5
  %269 = load ptr, ptr %17, align 8, !tbaa !5
  %270 = call i32 @x509_crt_verify_child(ptr noundef %260, ptr noundef %261, ptr noundef %262, ptr noundef %263, ptr noundef %264, i32 noundef %265, i32 noundef %266, ptr noundef %267, ptr noundef %268, ptr noundef %269)
  store i32 %270, ptr %19, align 4, !tbaa !9
  %271 = load i32, ptr %19, align 4, !tbaa !9
  %272 = icmp ne i32 %271, 0
  br i1 %272, label %273, label %274

273:                                              ; preds = %259
  br label %292

274:                                              ; preds = %259
  br label %290

275:                                              ; preds = %256
  %276 = load ptr, ptr %10, align 8, !tbaa !5
  %277 = load ptr, ptr %11, align 8, !tbaa !5
  %278 = load ptr, ptr %12, align 8, !tbaa !5
  %279 = load ptr, ptr %13, align 8, !tbaa !5
  %280 = load i32, ptr %20, align 4, !tbaa !9
  %281 = load i32, ptr %21, align 4, !tbaa !9
  %282 = load ptr, ptr %15, align 8, !tbaa !5
  %283 = load ptr, ptr %16, align 8, !tbaa !5
  %284 = load ptr, ptr %17, align 8, !tbaa !5
  %285 = call i32 @x509_crt_verify_top(ptr noundef %276, ptr noundef %277, ptr noundef %278, ptr noundef %279, i32 noundef %280, i32 noundef %281, ptr noundef %282, ptr noundef %283, ptr noundef %284)
  store i32 %285, ptr %19, align 4, !tbaa !9
  %286 = load i32, ptr %19, align 4, !tbaa !9
  %287 = icmp ne i32 %286, 0
  br i1 %287, label %288, label %289

288:                                              ; preds = %275
  br label %292

289:                                              ; preds = %275
  br label %290

290:                                              ; preds = %289, %274
  br label %291

291:                                              ; preds = %290, %234
  br label %292

292:                                              ; preds = %291, %288, %273, %233, %30
  %293 = load i32, ptr %19, align 4, !tbaa !9
  %294 = icmp eq i32 %293, -9984
  br i1 %294, label %295, label %296

295:                                              ; preds = %292
  store i32 -12288, ptr %19, align 4, !tbaa !9
  br label %296

296:                                              ; preds = %295, %292
  %297 = load i32, ptr %19, align 4, !tbaa !9
  %298 = icmp ne i32 %297, 0
  br i1 %298, label %299, label %302

299:                                              ; preds = %296
  %300 = load ptr, ptr %15, align 8, !tbaa !5
  store i32 -1, ptr %300, align 4, !tbaa !9
  %301 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %301, ptr %9, align 4
  store i32 1, ptr %26, align 4
  br label %308

302:                                              ; preds = %296
  %303 = load ptr, ptr %15, align 8, !tbaa !5
  %304 = load i32, ptr %303, align 4, !tbaa !9
  %305 = icmp ne i32 %304, 0
  br i1 %305, label %306, label %307

306:                                              ; preds = %302
  store i32 -9984, ptr %9, align 4
  store i32 1, ptr %26, align 4
  br label %308

307:                                              ; preds = %302
  store i32 0, ptr %9, align 4
  store i32 1, ptr %26, align 4
  br label %308

308:                                              ; preds = %307, %306, %299
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  %309 = load i32, ptr %9, align 4
  ret i32 %309
}

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #1

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

; Function Attrs: nounwind uwtable
declare hidden i32 @x509_check_wildcard(ptr noundef, ptr noundef) #2

declare i32 @mbedtls_pk_get_type(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare hidden i32 @x509_profile_check_pk_alg(ptr noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
declare hidden i32 @x509_profile_check_key(ptr noundef, i32 noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden i32 @x509_crt_check_parent(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
declare hidden i32 @x509_crt_verify_top(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden i32 @x509_crt_verify_child(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { 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 448}
!14 = !{!"mbedtls_x509_crt", !15, i64 0, !15, i64 24, !10, i64 48, !15, i64 56, !15, i64 80, !15, i64 104, !15, i64 128, !16, i64 152, !16, i64 216, !17, i64 280, !17, i64 304, !18, i64 328, !15, i64 344, !15, i64 368, !15, i64 392, !19, i64 416, !10, i64 448, !10, i64 452, !10, i64 456, !10, i64 460, !19, i64 464, !7, i64 496, !15, i64 504, !10, i64 528, !10, i64 532, !6, i64 536, !6, i64 544}
!15 = !{!"mbedtls_asn1_buf", !10, i64 0, !12, i64 8, !6, i64 16}
!16 = !{!"mbedtls_asn1_named_data", !15, i64 0, !15, i64 24, !6, i64 48, !7, i64 56}
!17 = !{!"mbedtls_x509_time", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20}
!18 = !{!"", !6, i64 0, !6, i64 8}
!19 = !{!"mbedtls_asn1_sequence", !15, i64 0, !6, i64 24}
!20 = !{!19, !12, i64 8}
!21 = !{!19, !6, i64 16}
!22 = !{!19, !6, i64 24}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!16, !12, i64 8}
!26 = !{!16, !6, i64 16}
!27 = !{!16, !12, i64 32}
!28 = !{!16, !6, i64 40}
!29 = !{!16, !6, i64 48}
!30 = distinct !{!30, !24}
!31 = !{!14, !6, i64 544}
!32 = distinct !{!32, !24}
!33 = distinct !{!33, !24}


; 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.24 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @mbedtls_x509_crt_verify_with_profile(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) local_unnamed_addr #0 {
  store i32 0, ptr %5, align 4, !tbaa !5
  %9 = icmp eq ptr %3, null
  br i1 %9, label %.thread122, label %10

10:                                               ; preds = %8
  %.not = icmp eq ptr %4, null
  br i1 %.not, label %.loopexit, label %11

11:                                               ; preds = %10
  %12 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %4) #4
  %13 = getelementptr inbounds i8, ptr %0, i64 448
  %14 = load i32, ptr %13, align 8, !tbaa !9
  %15 = and i32 %14, 32
  %.not100 = icmp eq i32 %15, 0
  br i1 %.not100, label %.preheader.preheader, label %17

.preheader.preheader:                             ; preds = %11
  %16 = getelementptr inbounds i8, ptr %0, i64 216
  br label %.preheader

17:                                               ; preds = %11
  %18 = getelementptr inbounds i8, ptr %0, i64 416
  br label %19

19:                                               ; preds = %17, %38
  %.091128 = phi ptr [ %18, %17 ], [ %40, %38 ]
  %20 = getelementptr inbounds i8, ptr %.091128, i64 8
  %21 = load i64, ptr %20, align 8, !tbaa !18
  %22 = icmp eq i64 %21, %12
  br i1 %22, label %23, label %28

23:                                               ; preds = %19
  %24 = getelementptr inbounds i8, ptr %.091128, i64 16
  %25 = load ptr, ptr %24, align 8, !tbaa !19
  %26 = tail call i32 @x509_memcasecmp(ptr noundef nonnull %4, ptr noundef %25, i64 noundef %12)
  %27 = icmp eq i32 %26, 0
  br i1 %27, label %.loopexit, label %thread-pre-split

thread-pre-split:                                 ; preds = %23
  %.pr = load i64, ptr %20, align 8, !tbaa !18
  br label %28

28:                                               ; preds = %thread-pre-split, %19
  %29 = phi i64 [ %.pr, %thread-pre-split ], [ %21, %19 ]
  %30 = icmp ugt i64 %29, 2
  br i1 %30, label %31, label %38

31:                                               ; preds = %28
  %32 = getelementptr inbounds i8, ptr %.091128, i64 16
  %33 = load ptr, ptr %32, align 8, !tbaa !19
  %bcmp105 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(2) %33, ptr noundef nonnull dereferenceable(2) @.str.24, i64 2)
  %34 = icmp eq i32 %bcmp105, 0
  br i1 %34, label %35, label %38

35:                                               ; preds = %31
  %36 = tail call i32 @x509_check_wildcard(ptr noundef nonnull %4, ptr noundef nonnull %.091128)
  %37 = icmp eq i32 %36, 0
  br i1 %37, label %.loopexit, label %38

38:                                               ; preds = %35, %31, %28
  %39 = getelementptr inbounds i8, ptr %.091128, i64 24
  %40 = load ptr, ptr %39, align 8, !tbaa !20
  %cond = icmp eq ptr %40, null
  br i1 %cond, label %.loopexit.sink.split, label %19, !llvm.loop !21

.preheader:                                       ; preds = %.preheader.preheader, %.critedge
  %.092129 = phi ptr [ %67, %.critedge ], [ %16, %.preheader.preheader ]
  %41 = getelementptr inbounds i8, ptr %.092129, i64 8
  %42 = load i64, ptr %41, align 8, !tbaa !23
  %.not102 = icmp eq i64 %42, 3
  br i1 %.not102, label %43, label %.critedge

43:                                               ; preds = %.preheader
  %44 = getelementptr inbounds i8, ptr %.092129, i64 16
  %45 = load ptr, ptr %44, align 8, !tbaa !24
  %bcmp = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(3) @.str.25, ptr noundef nonnull dereferenceable(3) %45, i64 3)
  %.not124 = icmp eq i32 %bcmp, 0
  br i1 %.not124, label %46, label %.critedge

46:                                               ; preds = %43
  %47 = getelementptr inbounds i8, ptr %.092129, i64 24
  %48 = getelementptr inbounds i8, ptr %.092129, i64 32
  %49 = load i64, ptr %48, align 8, !tbaa !25
  %50 = icmp eq i64 %49, %12
  br i1 %50, label %51, label %56

51:                                               ; preds = %46
  %52 = getelementptr inbounds i8, ptr %.092129, i64 40
  %53 = load ptr, ptr %52, align 8, !tbaa !26
  %54 = tail call i32 @x509_memcasecmp(ptr noundef %53, ptr noundef nonnull %4, i64 noundef %12)
  %55 = icmp eq i32 %54, 0
  br i1 %55, label %.loopexit, label %thread-pre-split118

thread-pre-split118:                              ; preds = %51
  %.pr119 = load i64, ptr %48, align 8, !tbaa !25
  br label %56

56:                                               ; preds = %thread-pre-split118, %46
  %57 = phi i64 [ %.pr119, %thread-pre-split118 ], [ %49, %46 ]
  %58 = icmp ugt i64 %57, 2
  br i1 %58, label %59, label %.critedge

59:                                               ; preds = %56
  %60 = getelementptr inbounds i8, ptr %.092129, i64 40
  %61 = load ptr, ptr %60, align 8, !tbaa !26
  %bcmp103 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(2) %61, ptr noundef nonnull dereferenceable(2) @.str.24, i64 2)
  %62 = icmp eq i32 %bcmp103, 0
  br i1 %62, label %63, label %.critedge

63:                                               ; preds = %59
  %64 = tail call i32 @x509_check_wildcard(ptr noundef nonnull %4, ptr noundef nonnull %47)
  %65 = icmp eq i32 %64, 0
  br i1 %65, label %.loopexit, label %.critedge

.critedge:                                        ; preds = %.preheader, %56, %59, %63, %43
  %66 = getelementptr inbounds i8, ptr %.092129, i64 48
  %67 = load ptr, ptr %66, align 8, !tbaa !27
  %cond117 = icmp eq ptr %67, null
  br i1 %cond117, label %.loopexit.sink.split, label %.preheader, !llvm.loop !28

.loopexit.sink.split:                             ; preds = %38, %.critedge
  %68 = load i32, ptr %5, align 4, !tbaa !5
  %69 = or i32 %68, 4
  store i32 %69, ptr %5, align 4, !tbaa !5
  br label %.loopexit

.loopexit:                                        ; preds = %23, %35, %51, %63, %.loopexit.sink.split, %10
  %70 = getelementptr inbounds i8, ptr %0, i64 328
  %71 = tail call i32 @mbedtls_pk_get_type(ptr noundef nonnull %70) #5
  %72 = tail call i32 @x509_profile_check_pk_alg(ptr noundef nonnull %3, i32 noundef %71)
  %.not106 = icmp eq i32 %72, 0
  br i1 %.not106, label %76, label %73

73:                                               ; preds = %.loopexit
  %74 = load i32, ptr %5, align 4, !tbaa !5
  %75 = or i32 %74, 32768
  store i32 %75, ptr %5, align 4, !tbaa !5
  br label %76

76:                                               ; preds = %73, %.loopexit
  %77 = tail call i32 @x509_profile_check_key(ptr noundef nonnull %3, i32 noundef %71, ptr noundef nonnull %70)
  %.not107 = icmp eq i32 %77, 0
  br i1 %.not107, label %81, label %78

78:                                               ; preds = %76
  %79 = load i32, ptr %5, align 4, !tbaa !5
  %80 = or i32 %79, 65536
  store i32 %80, ptr %5, align 4, !tbaa !5
  br label %81

81:                                               ; preds = %78, %76
  %.not108130 = icmp eq ptr %1, null
  br i1 %.not108130, label %.critedge114.preheader, label %.lr.ph

.critedge114.preheader:                           ; preds = %84, %81
  br label %.critedge114

.lr.ph:                                           ; preds = %81, %84
  %.093131 = phi ptr [ %86, %84 ], [ %1, %81 ]
  %82 = tail call i32 @x509_crt_check_parent(ptr noundef %0, ptr noundef nonnull %.093131, i32 noundef 0, i32 noundef 1)
  %83 = icmp eq i32 %82, 0
  br i1 %83, label %87, label %84

84:                                               ; preds = %.lr.ph
  %85 = getelementptr inbounds i8, ptr %.093131, i64 544
  %86 = load ptr, ptr %85, align 8, !tbaa !29
  %.not108 = icmp eq ptr %86, null
  br i1 %.not108, label %.critedge114.preheader, label %.lr.ph, !llvm.loop !30

87:                                               ; preds = %.lr.ph
  %88 = tail call i32 @x509_crt_verify_top(ptr noundef %0, ptr noundef nonnull %.093131, ptr noundef %2, ptr noundef nonnull %3, i32 noundef 0, i32 noundef 0, ptr noundef nonnull %5, ptr noundef %6, ptr noundef %7)
  br label %95

.critedge114:                                     ; preds = %.critedge114.preheader, %89
  %.pn = phi ptr [ %.1, %89 ], [ %0, %.critedge114.preheader ]
  %.1.in = getelementptr inbounds i8, ptr %.pn, i64 544
  %.1 = load ptr, ptr %.1.in, align 8, !tbaa !29
  %.not109 = icmp eq ptr %.1, null
  br i1 %.not109, label %.critedge116, label %89

89:                                               ; preds = %.critedge114
  %90 = tail call i32 @x509_crt_check_parent(ptr noundef %0, ptr noundef nonnull %.1, i32 noundef 0, i32 noundef 1)
  %91 = icmp eq i32 %90, 0
  br i1 %91, label %92, label %.critedge114, !llvm.loop !31

92:                                               ; preds = %89
  %93 = tail call i32 @x509_crt_verify_child(ptr noundef %0, ptr noundef nonnull %.1, ptr noundef %1, ptr noundef %2, ptr noundef nonnull %3, i32 noundef 0, i32 noundef 0, ptr noundef nonnull %5, ptr noundef %6, ptr noundef %7)
  br label %95

.critedge116:                                     ; preds = %.critedge114
  %94 = tail call i32 @x509_crt_verify_top(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef nonnull %3, i32 noundef 0, i32 noundef 0, ptr noundef nonnull %5, ptr noundef %6, ptr noundef %7)
  br label %95

95:                                               ; preds = %.critedge116, %92, %87
  %.094 = phi i32 [ %88, %87 ], [ %93, %92 ], [ %94, %.critedge116 ]
  %.094.fr = freeze i32 %.094
  switch i32 %.094.fr, label %.thread122.fold.split [
    i32 -9984, label %.thread122
    i32 0, label %97
  ]

.thread122.fold.split:                            ; preds = %95
  br label %.thread122

.thread122:                                       ; preds = %95, %.thread122.fold.split, %8
  %96 = phi i32 [ -10240, %8 ], [ -12288, %95 ], [ %.094.fr, %.thread122.fold.split ]
  store i32 -1, ptr %5, align 4, !tbaa !5
  br label %99

97:                                               ; preds = %95
  %98 = load i32, ptr %5, align 4, !tbaa !5
  %.not111 = icmp eq i32 %98, 0
  %. = select i1 %.not111, i32 0, i32 -9984
  br label %99

99:                                               ; preds = %97, %.thread122
  %.0 = phi i32 [ %96, %.thread122 ], [ %., %97 ]
  ret i32 %.0
}

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare hidden i32 @x509_check_wildcard(ptr noundef, ptr noundef) local_unnamed_addr #0

declare i32 @mbedtls_pk_get_type(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden i32 @x509_profile_check_pk_alg(ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @x509_profile_check_key(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @x509_crt_check_parent(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @x509_crt_verify_top(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @x509_crt_verify_child(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

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

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 nofree nounwind willreturn memory(argmem: 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 #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 = { nofree nounwind willreturn memory(argmem: read) }
attributes #4 = { nounwind willreturn memory(read) }
attributes #5 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 448}
!10 = !{!"mbedtls_x509_crt", !11, i64 0, !11, i64 24, !6, i64 48, !11, i64 56, !11, i64 80, !11, i64 104, !11, i64 128, !14, i64 152, !14, i64 216, !15, i64 280, !15, i64 304, !16, i64 328, !11, i64 344, !11, i64 368, !11, i64 392, !17, i64 416, !6, i64 448, !6, i64 452, !6, i64 456, !6, i64 460, !17, i64 464, !7, i64 496, !11, i64 504, !6, i64 528, !6, i64 532, !13, i64 536, !13, i64 544}
!11 = !{!"mbedtls_asn1_buf", !6, i64 0, !12, i64 8, !13, i64 16}
!12 = !{!"long", !7, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!"mbedtls_asn1_named_data", !11, i64 0, !11, i64 24, !13, i64 48, !7, i64 56}
!15 = !{!"mbedtls_x509_time", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20}
!16 = !{!"", !13, i64 0, !13, i64 8}
!17 = !{!"mbedtls_asn1_sequence", !11, i64 0, !13, i64 24}
!18 = !{!17, !12, i64 8}
!19 = !{!17, !13, i64 16}
!20 = !{!17, !13, i64 24}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!14, !12, i64 8}
!24 = !{!14, !13, i64 16}
!25 = !{!14, !12, i64 32}
!26 = !{!14, !13, i64 40}
!27 = !{!14, !13, i64 48}
!28 = distinct !{!28, !22}
!29 = !{!10, !13, i64 544}
!30 = distinct !{!30, !22}
!31 = distinct !{!31, !22}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass