; LLVM IR from guanzhi/GmSSL :: src (x509_cer)

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

@stderr = external global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [17 x i8], align 1
@__FUNCTION__.x509_certs_verify_tlcp = external hidden unnamed_addr constant [23 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
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1

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

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

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

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

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

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

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

30:                                               ; preds = %7
  store i32 0, ptr %16, align 4, !tbaa !11
  store i32 2, ptr %17, align 4, !tbaa !11
  br label %38

31:                                               ; preds = %7
  store i32 0, ptr %16, align 4, !tbaa !11
  store i32 2, ptr %17, align 4, !tbaa !11
  br label %38

32:                                               ; preds = %7
  br label %33

33:                                               ; preds = %32
  %34 = load ptr, ptr @stderr, align 8, !tbaa !5
  %35 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 1893, ptr noundef @__FUNCTION__.x509_certs_verify_tlcp) #3
  br label %36

36:                                               ; preds = %33
  br label %37

37:                                               ; preds = %36
  store i32 -1, ptr %8, align 4
  store i32 1, ptr %28, align 4
  br label %248

38:                                               ; preds = %31, %30
  %39 = call i32 @x509_cert_from_der(ptr noundef %18, ptr noundef %19, ptr noundef %9, ptr noundef %10)
  %40 = icmp ne i32 %39, 1
  br i1 %40, label %41, label %47

41:                                               ; preds = %38
  br label %42

42:                                               ; preds = %41
  %43 = load ptr, ptr @stderr, align 8, !tbaa !5
  %44 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %43, ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 1898, ptr noundef @__FUNCTION__.x509_certs_verify_tlcp) #3
  br label %45

45:                                               ; preds = %42
  br label %46

46:                                               ; preds = %45
  store i32 -1, ptr %8, align 4
  store i32 1, ptr %28, align 4
  br label %248

47:                                               ; preds = %38
  %48 = load ptr, ptr %18, align 8, !tbaa !5
  %49 = load i64, ptr %19, align 8, !tbaa !9
  %50 = load i32, ptr %16, align 4, !tbaa !11
  %51 = call i32 @x509_cert_check(ptr noundef %48, i64 noundef %49, i32 noundef %50, ptr noundef %27)
  %52 = icmp ne i32 %51, 1
  br i1 %52, label %53, label %59

53:                                               ; preds = %47
  br label %54

54:                                               ; preds = %53
  %55 = load ptr, ptr @stderr, align 8, !tbaa !5
  %56 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %55, ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 1902, ptr noundef @__FUNCTION__.x509_certs_verify_tlcp) #3
  br label %57

57:                                               ; preds = %54
  br label %58

58:                                               ; preds = %57
  store i32 -1, ptr %8, align 4
  store i32 1, ptr %28, align 4
  br label %248

59:                                               ; preds = %47
  %60 = call i32 @x509_cert_from_der(ptr noundef %20, ptr noundef %21, ptr noundef %9, ptr noundef %10)
  %61 = icmp ne i32 %60, 1
  br i1 %61, label %62, label %68

62:                                               ; preds = %59
  br label %63

63:                                               ; preds = %62
  %64 = load ptr, ptr @stderr, align 8, !tbaa !5
  %65 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %64, ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 1908, ptr noundef @__FUNCTION__.x509_certs_verify_tlcp) #3
  br label %66

66:                                               ; preds = %63
  br label %67

67:                                               ; preds = %66
  store i32 -1, ptr %8, align 4
  store i32 1, ptr %28, align 4
  br label %248

68:                                               ; preds = %59
  %69 = load ptr, ptr %20, align 8, !tbaa !5
  %70 = load i64, ptr %21, align 8, !tbaa !9
  %71 = load i32, ptr %17, align 4, !tbaa !11
  %72 = call i32 @x509_cert_check(ptr noundef %69, i64 noundef %70, i32 noundef %71, ptr noundef %27)
  %73 = icmp ne i32 %72, 1
  br i1 %73, label %74, label %80

74:                                               ; preds = %68
  br label %75

75:                                               ; preds = %74
  %76 = load ptr, ptr @stderr, align 8, !tbaa !5
  %77 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %76, ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 1912, ptr noundef @__FUNCTION__.x509_certs_verify_tlcp) #3
  br label %78

78:                                               ; preds = %75
  br label %79

79:                                               ; preds = %78
  store i32 -1, ptr %8, align 4
  store i32 1, ptr %28, align 4
  br label %248

80:                                               ; preds = %68
  br label %81

81:                                               ; preds = %160, %80
  %82 = load i64, ptr %10, align 8, !tbaa !9
  %83 = icmp ne i64 %82, 0
  br i1 %83, label %84, label %165

84:                                               ; preds = %81
  %85 = call i32 @x509_cert_from_der(ptr noundef %22, ptr noundef %23, ptr noundef %9, ptr noundef %10)
  %86 = icmp ne i32 %85, 1
  br i1 %86, label %87, label %93

87:                                               ; preds = %84
  br label %88

88:                                               ; preds = %87
  %89 = load ptr, ptr @stderr, align 8, !tbaa !5
  %90 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %89, ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 1919, ptr noundef @__FUNCTION__.x509_certs_verify_tlcp) #3
  br label %91

91:                                               ; preds = %88
  br label %92

92:                                               ; preds = %91
  store i32 -1, ptr %8, align 4
  store i32 1, ptr %28, align 4
  br label %248

93:                                               ; preds = %84
  %94 = load ptr, ptr %22, align 8, !tbaa !5
  %95 = load i64, ptr %23, align 8, !tbaa !9
  %96 = call i32 @x509_cert_check(ptr noundef %94, i64 noundef %95, i32 noundef 4, ptr noundef %27)
  %97 = icmp ne i32 %96, 1
  br i1 %97, label %98, label %104

98:                                               ; preds = %93
  br label %99

99:                                               ; preds = %98
  %100 = load ptr, ptr @stderr, align 8, !tbaa !5
  %101 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 1923, ptr noundef @__FUNCTION__.x509_certs_verify_tlcp) #3
  br label %102

102:                                              ; preds = %99
  br label %103

103:                                              ; preds = %102
  store i32 -1, ptr %8, align 4
  store i32 1, ptr %28, align 4
  br label %248

104:                                              ; preds = %93
  %105 = load i32, ptr %26, align 4, !tbaa !11
  %106 = icmp eq i32 %105, 0
  br i1 %106, label %107, label %130

107:                                              ; preds = %104
  %108 = load i32, ptr %27, align 4, !tbaa !11
  %109 = icmp ne i32 %108, 0
  br i1 %109, label %110, label %116

110:                                              ; preds = %107
  br label %111

111:                                              ; preds = %110
  %112 = load ptr, ptr @stderr, align 8, !tbaa !5
  %113 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %112, ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 1929, ptr noundef @__FUNCTION__.x509_certs_verify_tlcp) #3
  br label %114

114:                                              ; preds = %111
  br label %115

115:                                              ; preds = %114
  store i32 -1, ptr %8, align 4
  store i32 1, ptr %28, align 4
  br label %248

116:                                              ; preds = %107
  %117 = load ptr, ptr %20, align 8, !tbaa !5
  %118 = load i64, ptr %21, align 8, !tbaa !9
  %119 = load ptr, ptr %22, align 8, !tbaa !5
  %120 = load i64, ptr %23, align 8, !tbaa !9
  %121 = call i32 @x509_cert_verify_by_ca_cert(ptr noundef %117, i64 noundef %118, ptr noundef %119, i64 noundef %120, ptr noundef @.str.32, i64 noundef 16)
  %122 = icmp ne i32 %121, 1
  br i1 %122, label %123, label %129

123:                                              ; preds = %116
  br label %124

124:                                              ; preds = %123
  %125 = load ptr, ptr @stderr, align 8, !tbaa !5
  %126 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %125, ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 1936, ptr noundef @__FUNCTION__.x509_certs_verify_tlcp) #3
  br label %127

127:                                              ; preds = %124
  br label %128

128:                                              ; preds = %127
  store i32 -1, ptr %8, align 4
  store i32 1, ptr %28, align 4
  br label %248

129:                                              ; preds = %116
  br label %130

130:                                              ; preds = %129, %104
  %131 = load i32, ptr %27, align 4, !tbaa !11
  %132 = icmp sge i32 %131, 0
  br i1 %132, label %133, label %137

133:                                              ; preds = %130
  %134 = load i32, ptr %26, align 4, !tbaa !11
  %135 = load i32, ptr %27, align 4, !tbaa !11
  %136 = icmp sgt i32 %134, %135
  br i1 %136, label %141, label %137

137:                                              ; preds = %133, %130
  %138 = load i32, ptr %26, align 4, !tbaa !11
  %139 = load i32, ptr %14, align 4, !tbaa !11
  %140 = icmp sgt i32 %138, %139
  br i1 %140, label %141, label %147

141:                                              ; preds = %137, %133
  br label %142

142:                                              ; preds = %141
  %143 = load ptr, ptr @stderr, align 8, !tbaa !5
  %144 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %143, ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 1942, ptr noundef @__FUNCTION__.x509_certs_verify_tlcp) #3
  br label %145

145:                                              ; preds = %142
  br label %146

146:                                              ; preds = %145
  store i32 -1, ptr %8, align 4
  store i32 1, ptr %28, align 4
  br label %248

147:                                              ; preds = %137
  %148 = load ptr, ptr %18, align 8, !tbaa !5
  %149 = load i64, ptr %19, align 8, !tbaa !9
  %150 = load ptr, ptr %22, align 8, !tbaa !5
  %151 = load i64, ptr %23, align 8, !tbaa !9
  %152 = call i32 @x509_cert_verify_by_ca_cert(ptr noundef %148, i64 noundef %149, ptr noundef %150, i64 noundef %151, ptr noundef @.str.32, i64 noundef 16)
  %153 = icmp ne i32 %152, 1
  br i1 %153, label %154, label %160

154:                                              ; preds = %147
  br label %155

155:                                              ; preds = %154
  %156 = load ptr, ptr @stderr, align 8, !tbaa !5
  %157 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %156, ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 1948, ptr noundef @__FUNCTION__.x509_certs_verify_tlcp) #3
  br label %158

158:                                              ; preds = %155
  br label %159

159:                                              ; preds = %158
  store i32 -1, ptr %8, align 4
  store i32 1, ptr %28, align 4
  br label %248

160:                                              ; preds = %147
  %161 = load ptr, ptr %22, align 8, !tbaa !5
  store ptr %161, ptr %18, align 8, !tbaa !5
  %162 = load i64, ptr %23, align 8, !tbaa !9
  store i64 %162, ptr %19, align 8, !tbaa !9
  %163 = load i32, ptr %26, align 4, !tbaa !11
  %164 = add nsw i32 %163, 1
  store i32 %164, ptr %26, align 4, !tbaa !11
  br label %81, !llvm.loop !13

165:                                              ; preds = %81
  %166 = load ptr, ptr %18, align 8, !tbaa !5
  %167 = load i64, ptr %19, align 8, !tbaa !9
  %168 = call i32 @x509_cert_get_issuer(ptr noundef %166, i64 noundef %167, ptr noundef %24, ptr noundef %25)
  %169 = icmp ne i32 %168, 1
  br i1 %169, label %170, label %176

170:                                              ; preds = %165
  br label %171

171:                                              ; preds = %170
  %172 = load ptr, ptr @stderr, align 8, !tbaa !5
  %173 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %172, ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 1959, ptr noundef @__FUNCTION__.x509_certs_verify_tlcp) #3
  br label %174

174:                                              ; preds = %171
  br label %175

175:                                              ; preds = %174
  store i32 -1, ptr %8, align 4
  store i32 1, ptr %28, align 4
  br label %248

176:                                              ; preds = %165
  %177 = load ptr, ptr %12, align 8, !tbaa !5
  %178 = load i64, ptr %13, align 8, !tbaa !9
  %179 = load ptr, ptr %24, align 8, !tbaa !5
  %180 = load i64, ptr %25, align 8, !tbaa !9
  %181 = call i32 @x509_certs_get_cert_by_subject(ptr noundef %177, i64 noundef %178, ptr noundef %179, i64 noundef %180, ptr noundef %22, ptr noundef %23)
  %182 = icmp ne i32 %181, 1
  br i1 %182, label %183, label %189

183:                                              ; preds = %176
  br label %184

184:                                              ; preds = %183
  %185 = load ptr, ptr @stderr, align 8, !tbaa !5
  %186 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %185, ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 1963, ptr noundef @__FUNCTION__.x509_certs_verify_tlcp) #3
  br label %187

187:                                              ; preds = %184
  br label %188

188:                                              ; preds = %187
  store i32 -1, ptr %8, align 4
  store i32 1, ptr %28, align 4
  br label %248

189:                                              ; preds = %176
  %190 = load ptr, ptr %22, align 8, !tbaa !5
  %191 = load i64, ptr %23, align 8, !tbaa !9
  %192 = call i32 @x509_cert_check(ptr noundef %190, i64 noundef %191, i32 noundef 4, ptr noundef %27)
  %193 = icmp ne i32 %192, 1
  br i1 %193, label %194, label %200

194:                                              ; preds = %189
  br label %195

195:                                              ; preds = %194
  %196 = load ptr, ptr @stderr, align 8, !tbaa !5
  %197 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %196, ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 1967, ptr noundef @__FUNCTION__.x509_certs_verify_tlcp) #3
  br label %198

198:                                              ; preds = %195
  br label %199

199:                                              ; preds = %198
  store i32 -1, ptr %8, align 4
  store i32 1, ptr %28, align 4
  br label %248

200:                                              ; preds = %189
  %201 = load i32, ptr %27, align 4, !tbaa !11
  %202 = icmp sge i32 %201, 0
  br i1 %202, label %203, label %207

203:                                              ; preds = %200
  %204 = load i32, ptr %26, align 4, !tbaa !11
  %205 = load i32, ptr %27, align 4, !tbaa !11
  %206 = icmp sgt i32 %204, %205
  br i1 %206, label %211, label %207

207:                                              ; preds = %203, %200
  %208 = load i32, ptr %26, align 4, !tbaa !11
  %209 = load i32, ptr %14, align 4, !tbaa !11
  %210 = icmp sgt i32 %208, %209
  br i1 %210, label %211, label %217

211:                                              ; preds = %207, %203
  br label %212

212:                                              ; preds = %211
  %213 = load ptr, ptr @stderr, align 8, !tbaa !5
  %214 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %213, ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 1972, ptr noundef @__FUNCTION__.x509_certs_verify_tlcp) #3
  br label %215

215:                                              ; preds = %212
  br label %216

216:                                              ; preds = %215
  store i32 -1, ptr %8, align 4
  store i32 1, ptr %28, align 4
  br label %248

217:                                              ; preds = %207
  %218 = load i32, ptr %26, align 4, !tbaa !11
  %219 = icmp eq i32 %218, 0
  br i1 %219, label %220, label %234

220:                                              ; preds = %217
  %221 = load ptr, ptr %20, align 8, !tbaa !5
  %222 = load i64, ptr %21, align 8, !tbaa !9
  %223 = load ptr, ptr %22, align 8, !tbaa !5
  %224 = load i64, ptr %23, align 8, !tbaa !9
  %225 = call i32 @x509_cert_verify_by_ca_cert(ptr noundef %221, i64 noundef %222, ptr noundef %223, i64 noundef %224, ptr noundef @.str.32, i64 noundef 16)
  %226 = icmp ne i32 %225, 1
  br i1 %226, label %227, label %233

227:                                              ; preds = %220
  br label %228

228:                                              ; preds = %227
  %229 = load ptr, ptr @stderr, align 8, !tbaa !5
  %230 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %229, ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 1980, ptr noundef @__FUNCTION__.x509_certs_verify_tlcp) #3
  br label %231

231:                                              ; preds = %228
  br label %232

232:                                              ; preds = %231
  store i32 -1, ptr %8, align 4
  store i32 1, ptr %28, align 4
  br label %248

233:                                              ; preds = %220
  br label %234

234:                                              ; preds = %233, %217
  %235 = load ptr, ptr %18, align 8, !tbaa !5
  %236 = load i64, ptr %19, align 8, !tbaa !9
  %237 = load ptr, ptr %22, align 8, !tbaa !5
  %238 = load i64, ptr %23, align 8, !tbaa !9
  %239 = call i32 @x509_cert_verify_by_ca_cert(ptr noundef %235, i64 noundef %236, ptr noundef %237, i64 noundef %238, ptr noundef @.str.32, i64 noundef 16)
  %240 = icmp ne i32 %239, 1
  br i1 %240, label %241, label %247

241:                                              ; preds = %234
  br label %242

242:                                              ; preds = %241
  %243 = load ptr, ptr @stderr, align 8, !tbaa !5
  %244 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %243, ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 1987, ptr noundef @__FUNCTION__.x509_certs_verify_tlcp) #3
  br label %245

245:                                              ; preds = %242
  br label %246

246:                                              ; preds = %245
  store i32 -1, ptr %8, align 4
  store i32 1, ptr %28, align 4
  br label %248

247:                                              ; preds = %234
  store i32 1, ptr %8, align 4
  store i32 1, ptr %28, align 4
  br label %248

248:                                              ; preds = %247, %246, %232, %216, %199, %188, %175, %159, %146, %128, %115, %103, %92, %79, %67, %58, %46, %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  %249 = load i32, ptr %8, align 4
  ret i32 %249
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


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

@stderr = external local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [17 x i8], align 1
@__FUNCTION__.x509_certs_verify_tlcp = external hidden unnamed_addr constant [23 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: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @x509_cert_verify_by_ca_cert(ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @x509_cert_get_issuer(ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @x509_cert_from_der(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @x509_certs_get_cert_by_subject(ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @x509_cert_check(ptr noundef, i64 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 2) i32 @x509_certs_verify_tlcp(ptr noundef %0, i64 noundef %1, i32 noundef %2, ptr noundef %3, i64 noundef %4, i32 noundef %5, ptr nocapture noundef readnone %6) local_unnamed_addr #2 {
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i64, align 8
  %18 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i64 %1, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #3
  %switch = icmp ult i32 %2, 2
  br i1 %switch, label %22, label %19

19:                                               ; preds = %7
  %20 = load ptr, ptr @stderr, align 8, !tbaa !5
  %21 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, i32 noundef 1893, ptr noundef nonnull @__FUNCTION__.x509_certs_verify_tlcp) #4
  br label %152

22:                                               ; preds = %7
  %23 = call i32 @x509_cert_from_der(ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %8, ptr noundef nonnull %9)
  %.not = icmp eq i32 %23, 1
  br i1 %.not, label %27, label %24

24:                                               ; preds = %22
  %25 = load ptr, ptr @stderr, align 8, !tbaa !5
  %26 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, i32 noundef 1898, ptr noundef nonnull @__FUNCTION__.x509_certs_verify_tlcp) #4
  br label %152

27:                                               ; preds = %22
  %28 = load ptr, ptr %10, align 8, !tbaa !5
  %29 = load i64, ptr %11, align 8, !tbaa !9
  %30 = call i32 @x509_cert_check(ptr noundef %28, i64 noundef %29, i32 noundef 0, ptr noundef nonnull %18)
  %.not19 = icmp eq i32 %30, 1
  br i1 %.not19, label %34, label %31

31:                                               ; preds = %27
  %32 = load ptr, ptr @stderr, align 8, !tbaa !5
  %33 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, i32 noundef 1902, ptr noundef nonnull @__FUNCTION__.x509_certs_verify_tlcp) #4
  br label %152

34:                                               ; preds = %27
  %35 = call i32 @x509_cert_from_der(ptr noundef nonnull %12, ptr noundef nonnull %13, ptr noundef nonnull %8, ptr noundef nonnull %9)
  %.not20 = icmp eq i32 %35, 1
  br i1 %.not20, label %39, label %36

36:                                               ; preds = %34
  %37 = load ptr, ptr @stderr, align 8, !tbaa !5
  %38 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %37, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, i32 noundef 1908, ptr noundef nonnull @__FUNCTION__.x509_certs_verify_tlcp) #4
  br label %152

39:                                               ; preds = %34
  %40 = load ptr, ptr %12, align 8, !tbaa !5
  %41 = load i64, ptr %13, align 8, !tbaa !9
  %42 = call i32 @x509_cert_check(ptr noundef %40, i64 noundef %41, i32 noundef 2, ptr noundef nonnull %18)
  %.not21 = icmp eq i32 %42, 1
  br i1 %.not21, label %.preheader, label %69

.preheader:                                       ; preds = %39
  %43 = load i64, ptr %9, align 8, !tbaa !9
  %.not2242 = icmp eq i64 %43, 0
  br i1 %.not2242, label %.preheader.._crit_edge_crit_edge, label %.lr.ph.preheader

.preheader.._crit_edge_crit_edge:                 ; preds = %.preheader
  %.pre54 = load ptr, ptr %10, align 8, !tbaa !5
  %.pre55 = load i64, ptr %11, align 8, !tbaa !9
  br label %._crit_edge

.lr.ph.preheader:                                 ; preds = %.preheader
  %44 = call i32 @x509_cert_from_der(ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef nonnull %8, ptr noundef nonnull %9)
  %.not28.peel = icmp eq i32 %44, 1
  br i1 %.not28.peel, label %45, label %.loopexit

45:                                               ; preds = %.lr.ph.preheader
  %46 = load ptr, ptr %14, align 8, !tbaa !5
  %47 = load i64, ptr %15, align 8, !tbaa !9
  %48 = call i32 @x509_cert_check(ptr noundef %46, i64 noundef %47, i32 noundef 4, ptr noundef nonnull %18)
  %.not29.peel = icmp eq i32 %48, 1
  br i1 %.not29.peel, label %49, label %.loopexit45

49:                                               ; preds = %45
  %50 = load i32, ptr %18, align 4, !tbaa !11
  %.not30.peel = icmp eq i32 %50, 0
  br i1 %.not30.peel, label %51, label %81

51:                                               ; preds = %49
  %52 = load ptr, ptr %12, align 8, !tbaa !5
  %53 = load i64, ptr %13, align 8, !tbaa !9
  %54 = load ptr, ptr %14, align 8, !tbaa !5
  %55 = load i64, ptr %15, align 8, !tbaa !9
  %56 = call i32 @x509_cert_verify_by_ca_cert(ptr noundef %52, i64 noundef %53, ptr noundef %54, i64 noundef %55, ptr noundef nonnull @.str.32, i64 noundef 16)
  %.not31.peel = icmp eq i32 %56, 1
  br i1 %.not31.peel, label %57, label %._crit_edge52

57:                                               ; preds = %51
  %58 = icmp slt i32 %5, 0
  br i1 %58, label %.loopexit48, label %59

59:                                               ; preds = %57
  %60 = load ptr, ptr %10, align 8, !tbaa !5
  %61 = load i64, ptr %11, align 8, !tbaa !9
  %62 = load ptr, ptr %14, align 8, !tbaa !5
  %63 = load i64, ptr %15, align 8, !tbaa !9
  %64 = call i32 @x509_cert_verify_by_ca_cert(ptr noundef %60, i64 noundef %61, ptr noundef %62, i64 noundef %63, ptr noundef nonnull @.str.32, i64 noundef 16)
  %.not32.peel = icmp eq i32 %64, 1
  br i1 %.not32.peel, label %65, label %.loopexit49

65:                                               ; preds = %59
  %66 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %66, ptr %10, align 8, !tbaa !5
  %67 = load i64, ptr %15, align 8, !tbaa !9
  store i64 %67, ptr %11, align 8, !tbaa !9
  %68 = load i64, ptr %9, align 8, !tbaa !9
  %.not22.peel = icmp eq i64 %68, 0
  br i1 %.not22.peel, label %._crit_edge, label %.lr.ph

69:                                               ; preds = %39
  %70 = load ptr, ptr @stderr, align 8, !tbaa !5
  %71 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %70, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, i32 noundef 1912, ptr noundef nonnull @__FUNCTION__.x509_certs_verify_tlcp) #4
  br label %152

.lr.ph:                                           ; preds = %65, %99
  %.043 = phi i32 [ %102, %99 ], [ 1, %65 ]
  %72 = call i32 @x509_cert_from_der(ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef nonnull %8, ptr noundef nonnull %9)
  %.not28 = icmp eq i32 %72, 1
  br i1 %.not28, label %75, label %.loopexit

.loopexit:                                        ; preds = %.lr.ph, %.lr.ph.preheader
  %73 = load ptr, ptr @stderr, align 8, !tbaa !5
  %74 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %73, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, i32 noundef 1919, ptr noundef nonnull @__FUNCTION__.x509_certs_verify_tlcp) #4
  br label %152

75:                                               ; preds = %.lr.ph
  %76 = load ptr, ptr %14, align 8, !tbaa !5
  %77 = load i64, ptr %15, align 8, !tbaa !9
  %78 = call i32 @x509_cert_check(ptr noundef %76, i64 noundef %77, i32 noundef 4, ptr noundef nonnull %18)
  %.not29 = icmp eq i32 %78, 1
  br i1 %.not29, label %85, label %.loopexit45

.loopexit45:                                      ; preds = %75, %45
  %79 = load ptr, ptr @stderr, align 8, !tbaa !5
  %80 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %79, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, i32 noundef 1923, ptr noundef nonnull @__FUNCTION__.x509_certs_verify_tlcp) #4
  br label %152

81:                                               ; preds = %49
  %82 = load ptr, ptr @stderr, align 8, !tbaa !5
  %83 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %82, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, i32 noundef 1929, ptr noundef nonnull @__FUNCTION__.x509_certs_verify_tlcp) #4
  br label %152

._crit_edge52:                                    ; preds = %51
  %.pre = load ptr, ptr @stderr, align 8, !tbaa !5
  %84 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.pre, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, i32 noundef 1936, ptr noundef nonnull @__FUNCTION__.x509_certs_verify_tlcp) #4
  br label %152

85:                                               ; preds = %75
  %.pre53 = load i32, ptr %18, align 4, !tbaa !11
  %86 = icmp sgt i32 %.pre53, -1
  %87 = icmp sgt i32 %.043, %.pre53
  %or.cond = select i1 %86, i1 %87, i1 false
  %88 = icmp sgt i32 %.043, %5
  %or.cond33 = select i1 %or.cond, i1 true, i1 %88
  br i1 %or.cond33, label %.loopexit48, label %91

.loopexit48:                                      ; preds = %85, %57
  %89 = load ptr, ptr @stderr, align 8, !tbaa !5
  %90 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %89, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, i32 noundef 1942, ptr noundef nonnull @__FUNCTION__.x509_certs_verify_tlcp) #4
  br label %152

91:                                               ; preds = %85
  %92 = load ptr, ptr %10, align 8, !tbaa !5
  %93 = load i64, ptr %11, align 8, !tbaa !9
  %94 = load ptr, ptr %14, align 8, !tbaa !5
  %95 = load i64, ptr %15, align 8, !tbaa !9
  %96 = call i32 @x509_cert_verify_by_ca_cert(ptr noundef %92, i64 noundef %93, ptr noundef %94, i64 noundef %95, ptr noundef nonnull @.str.32, i64 noundef 16)
  %.not32 = icmp eq i32 %96, 1
  br i1 %.not32, label %99, label %.loopexit49

.loopexit49:                                      ; preds = %91, %59
  %97 = load ptr, ptr @stderr, align 8, !tbaa !5
  %98 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, i32 noundef 1948, ptr noundef nonnull @__FUNCTION__.x509_certs_verify_tlcp) #4
  br label %152

99:                                               ; preds = %91
  %100 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %100, ptr %10, align 8, !tbaa !5
  %101 = load i64, ptr %15, align 8, !tbaa !9
  store i64 %101, ptr %11, align 8, !tbaa !9
  %102 = add nuw nsw i32 %.043, 1
  %103 = load i64, ptr %9, align 8, !tbaa !9
  %.not22 = icmp eq i64 %103, 0
  br i1 %.not22, label %._crit_edge, label %.lr.ph, !llvm.loop !13

._crit_edge:                                      ; preds = %99, %65, %.preheader.._crit_edge_crit_edge
  %104 = phi i64 [ %.pre55, %.preheader.._crit_edge_crit_edge ], [ %67, %65 ], [ %101, %99 ]
  %105 = phi ptr [ %.pre54, %.preheader.._crit_edge_crit_edge ], [ %66, %65 ], [ %100, %99 ]
  %.0.lcssa = phi i32 [ 0, %.preheader.._crit_edge_crit_edge ], [ 1, %65 ], [ %102, %99 ]
  %106 = call i32 @x509_cert_get_issuer(ptr noundef %105, i64 noundef %104, ptr noundef nonnull %16, ptr noundef nonnull %17)
  %.not23 = icmp eq i32 %106, 1
  br i1 %.not23, label %110, label %107

107:                                              ; preds = %._crit_edge
  %108 = load ptr, ptr @stderr, align 8, !tbaa !5
  %109 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %108, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, i32 noundef 1959, ptr noundef nonnull @__FUNCTION__.x509_certs_verify_tlcp) #4
  br label %152

110:                                              ; preds = %._crit_edge
  %111 = load ptr, ptr %16, align 8, !tbaa !5
  %112 = load i64, ptr %17, align 8, !tbaa !9
  %113 = call i32 @x509_certs_get_cert_by_subject(ptr noundef %3, i64 noundef %4, ptr noundef %111, i64 noundef %112, ptr noundef nonnull %14, ptr noundef nonnull %15)
  %.not24 = icmp eq i32 %113, 1
  br i1 %.not24, label %117, label %114

114:                                              ; preds = %110
  %115 = load ptr, ptr @stderr, align 8, !tbaa !5
  %116 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %115, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, i32 noundef 1963, ptr noundef nonnull @__FUNCTION__.x509_certs_verify_tlcp) #4
  br label %152

117:                                              ; preds = %110
  %118 = load ptr, ptr %14, align 8, !tbaa !5
  %119 = load i64, ptr %15, align 8, !tbaa !9
  %120 = call i32 @x509_cert_check(ptr noundef %118, i64 noundef %119, i32 noundef 4, ptr noundef nonnull %18)
  %.not25 = icmp eq i32 %120, 1
  br i1 %.not25, label %124, label %121

121:                                              ; preds = %117
  %122 = load ptr, ptr @stderr, align 8, !tbaa !5
  %123 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, i32 noundef 1967, ptr noundef nonnull @__FUNCTION__.x509_certs_verify_tlcp) #4
  br label %152

124:                                              ; preds = %117
  %125 = load i32, ptr %18, align 4, !tbaa !11
  %126 = icmp sgt i32 %125, -1
  %127 = icmp sgt i32 %.0.lcssa, %125
  %or.cond34 = select i1 %126, i1 %127, i1 false
  %128 = icmp sgt i32 %.0.lcssa, %5
  %or.cond35 = select i1 %or.cond34, i1 true, i1 %128
  br i1 %or.cond35, label %129, label %132

129:                                              ; preds = %124
  %130 = load ptr, ptr @stderr, align 8, !tbaa !5
  %131 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %130, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, i32 noundef 1972, ptr noundef nonnull @__FUNCTION__.x509_certs_verify_tlcp) #4
  br label %152

132:                                              ; preds = %124
  %133 = icmp eq i32 %.0.lcssa, 0
  br i1 %133, label %134, label %143

134:                                              ; preds = %132
  %135 = load ptr, ptr %12, align 8, !tbaa !5
  %136 = load i64, ptr %13, align 8, !tbaa !9
  %137 = load ptr, ptr %14, align 8, !tbaa !5
  %138 = load i64, ptr %15, align 8, !tbaa !9
  %139 = call i32 @x509_cert_verify_by_ca_cert(ptr noundef %135, i64 noundef %136, ptr noundef %137, i64 noundef %138, ptr noundef nonnull @.str.32, i64 noundef 16)
  %.not26 = icmp eq i32 %139, 1
  br i1 %.not26, label %143, label %140

140:                                              ; preds = %134
  %141 = load ptr, ptr @stderr, align 8, !tbaa !5
  %142 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %141, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, i32 noundef 1980, ptr noundef nonnull @__FUNCTION__.x509_certs_verify_tlcp) #4
  br label %152

143:                                              ; preds = %134, %132
  %144 = load ptr, ptr %10, align 8, !tbaa !5
  %145 = load i64, ptr %11, align 8, !tbaa !9
  %146 = load ptr, ptr %14, align 8, !tbaa !5
  %147 = load i64, ptr %15, align 8, !tbaa !9
  %148 = call i32 @x509_cert_verify_by_ca_cert(ptr noundef %144, i64 noundef %145, ptr noundef %146, i64 noundef %147, ptr noundef nonnull @.str.32, i64 noundef 16)
  %.not27 = icmp eq i32 %148, 1
  br i1 %.not27, label %152, label %149

149:                                              ; preds = %143
  %150 = load ptr, ptr @stderr, align 8, !tbaa !5
  %151 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %150, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, i32 noundef 1987, ptr noundef nonnull @__FUNCTION__.x509_certs_verify_tlcp) #4
  br label %152

152:                                              ; preds = %143, %149, %140, %129, %121, %114, %107, %.loopexit49, %.loopexit48, %._crit_edge52, %81, %.loopexit45, %.loopexit, %69, %36, %31, %24, %19
  %.016 = phi i32 [ -1, %19 ], [ -1, %24 ], [ -1, %31 ], [ -1, %36 ], [ -1, %69 ], [ -1, %.loopexit ], [ -1, %.loopexit45 ], [ -1, %81 ], [ -1, %._crit_edge52 ], [ -1, %.loopexit48 ], [ -1, %.loopexit49 ], [ -1, %107 ], [ -1, %114 ], [ -1, %121 ], [ -1, %129 ], [ -1, %140 ], [ -1, %149 ], [ 1, %143 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #3
  ret i32 %.016
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nofree 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 #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 = { nounwind }
attributes #4 = { cold 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, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14, !15}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!"llvm.loop.peeled.count", i32 1}


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