; LLVM IR from guanzhi/GmSSL :: tools (ghash)

; 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.GHASH_CTX = type { [2 x i64], [2 x i64], i64, i64, [16 x i8], i64 }

@stdin = external global ptr, align 8
@stdout = external global ptr, align 8
@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [20 x i8], align 1
@usage = external hidden global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@help = external hidden global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@stderr = external global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @ghash_main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca [16 x i8], align 16
  %16 = alloca i64, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca %struct.GHASH_CTX, align 8
  %20 = alloca [16 x i8], align 16
  %21 = alloca i32, align 4
  %22 = alloca [4096 x i8], align 16
  %23 = alloca i64, align 8
  store i32 %0, ptr %3, align 4, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  store i32 1, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %24 = load ptr, ptr %4, align 8, !tbaa !9
  %25 = getelementptr inbounds ptr, ptr %24, i64 0
  %26 = load ptr, ptr %25, align 8, !tbaa !9
  store ptr %26, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  store ptr null, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  store ptr null, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  store ptr null, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  store i64 0, ptr %10, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  store ptr null, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  store ptr null, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  store i32 0, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  store ptr null, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %27 = load ptr, ptr @stdin, align 8, !tbaa !9
  store ptr %27, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %28 = load ptr, ptr @stdout, align 8, !tbaa !9
  store ptr %28, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 72, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  %29 = load i32, ptr %3, align 4, !tbaa !5
  %30 = add nsw i32 %29, -1
  store i32 %30, ptr %3, align 4, !tbaa !5
  %31 = load ptr, ptr %4, align 8, !tbaa !9
  %32 = getelementptr inbounds ptr, ptr %31, i32 1
  store ptr %32, ptr %4, align 8, !tbaa !9
  br label %33

33:                                               ; preds = %273, %2
  %34 = load i32, ptr %3, align 4, !tbaa !5
  %35 = icmp sgt i32 %34, 0
  br i1 %35, label %36, label %278

36:                                               ; preds = %33
  %37 = load ptr, ptr %4, align 8, !tbaa !9
  %38 = load ptr, ptr %37, align 8, !tbaa !9
  %39 = call i32 @strcmp(ptr noundef %38, ptr noundef @.str) #9
  %40 = icmp ne i32 %39, 0
  br i1 %40, label %47, label %41

41:                                               ; preds = %36
  %42 = load ptr, ptr %6, align 8, !tbaa !9
  %43 = load ptr, ptr @usage, align 8, !tbaa !9
  %44 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %42, ptr noundef %43)
  %45 = load ptr, ptr @help, align 8, !tbaa !9
  %46 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %45)
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %336

47:                                               ; preds = %36
  %48 = load ptr, ptr %4, align 8, !tbaa !9
  %49 = load ptr, ptr %48, align 8, !tbaa !9
  %50 = call i32 @strcmp(ptr noundef %49, ptr noundef @.str.3) #9
  %51 = icmp ne i32 %50, 0
  br i1 %51, label %80, label %52

52:                                               ; preds = %47
  %53 = load i32, ptr %3, align 4, !tbaa !5
  %54 = add nsw i32 %53, -1
  store i32 %54, ptr %3, align 4, !tbaa !5
  %55 = icmp slt i32 %54, 1
  br i1 %55, label %56, label %57

56:                                               ; preds = %52
  br label %259

57:                                               ; preds = %52
  %58 = load ptr, ptr %4, align 8, !tbaa !9
  %59 = getelementptr inbounds ptr, ptr %58, i32 1
  store ptr %59, ptr %4, align 8, !tbaa !9
  %60 = load ptr, ptr %59, align 8, !tbaa !9
  store ptr %60, ptr %7, align 8, !tbaa !9
  %61 = load ptr, ptr %7, align 8, !tbaa !9
  %62 = call i64 @strlen(ptr noundef %61) #9
  %63 = icmp ne i64 %62, 32
  br i1 %63, label %64, label %68

64:                                               ; preds = %57
  %65 = load ptr, ptr @stderr, align 8, !tbaa !9
  %66 = load ptr, ptr %6, align 8, !tbaa !9
  %67 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %65, ptr noundef @.str.4, ptr noundef %66) #8
  br label %336

68:                                               ; preds = %57
  %69 = load ptr, ptr %7, align 8, !tbaa !9
  %70 = load ptr, ptr %7, align 8, !tbaa !9
  %71 = call i64 @strlen(ptr noundef %70) #9
  %72 = getelementptr inbounds [16 x i8], ptr %15, i64 0, i64 0
  %73 = call i32 @hex_to_bytes(ptr noundef %69, i64 noundef %71, ptr noundef %72, ptr noundef %16)
  %74 = icmp ne i32 %73, 1
  br i1 %74, label %75, label %79

75:                                               ; preds = %68
  %76 = load ptr, ptr @stderr, align 8, !tbaa !9
  %77 = load ptr, ptr %6, align 8, !tbaa !9
  %78 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %76, ptr noundef @.str.5, ptr noundef %77) #8
  br label %336

79:                                               ; preds = %68
  br label %272

80:                                               ; preds = %47
  %81 = load ptr, ptr %4, align 8, !tbaa !9
  %82 = load ptr, ptr %81, align 8, !tbaa !9
  %83 = call i32 @strcmp(ptr noundef %82, ptr noundef @.str.6) #9
  %84 = icmp ne i32 %83, 0
  br i1 %84, label %103, label %85

85:                                               ; preds = %80
  %86 = load i32, ptr %3, align 4, !tbaa !5
  %87 = add nsw i32 %86, -1
  store i32 %87, ptr %3, align 4, !tbaa !5
  %88 = icmp slt i32 %87, 1
  br i1 %88, label %89, label %90

89:                                               ; preds = %85
  br label %259

90:                                               ; preds = %85
  %91 = load ptr, ptr %8, align 8, !tbaa !9
  %92 = icmp ne ptr %91, null
  br i1 %92, label %93, label %97

93:                                               ; preds = %90
  %94 = load ptr, ptr @stderr, align 8, !tbaa !9
  %95 = load ptr, ptr %6, align 8, !tbaa !9
  %96 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %94, ptr noundef @.str.7, ptr noundef %95) #8
  br label %259

97:                                               ; preds = %90
  %98 = load ptr, ptr %4, align 8, !tbaa !9
  %99 = getelementptr inbounds ptr, ptr %98, i32 1
  store ptr %99, ptr %4, align 8, !tbaa !9
  %100 = load ptr, ptr %99, align 8, !tbaa !9
  store ptr %100, ptr %8, align 8, !tbaa !9
  %101 = load ptr, ptr %8, align 8, !tbaa !9
  %102 = call i64 @strlen(ptr noundef %101) #9
  store i64 %102, ptr %10, align 8, !tbaa !11
  br label %271

103:                                              ; preds = %80
  %104 = load ptr, ptr %4, align 8, !tbaa !9
  %105 = load ptr, ptr %104, align 8, !tbaa !9
  %106 = call i32 @strcmp(ptr noundef %105, ptr noundef @.str.8) #9
  %107 = icmp ne i32 %106, 0
  br i1 %107, label %147, label %108

108:                                              ; preds = %103
  %109 = load i32, ptr %3, align 4, !tbaa !5
  %110 = add nsw i32 %109, -1
  store i32 %110, ptr %3, align 4, !tbaa !5
  %111 = icmp slt i32 %110, 1
  br i1 %111, label %112, label %113

112:                                              ; preds = %108
  br label %259

113:                                              ; preds = %108
  %114 = load ptr, ptr %8, align 8, !tbaa !9
  %115 = icmp ne ptr %114, null
  br i1 %115, label %116, label %120

116:                                              ; preds = %113
  %117 = load ptr, ptr @stderr, align 8, !tbaa !9
  %118 = load ptr, ptr %6, align 8, !tbaa !9
  %119 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %117, ptr noundef @.str.7, ptr noundef %118) #8
  br label %259

120:                                              ; preds = %113
  %121 = load ptr, ptr %4, align 8, !tbaa !9
  %122 = getelementptr inbounds ptr, ptr %121, i32 1
  store ptr %122, ptr %4, align 8, !tbaa !9
  %123 = load ptr, ptr %122, align 8, !tbaa !9
  store ptr %123, ptr %8, align 8, !tbaa !9
  %124 = load ptr, ptr %8, align 8, !tbaa !9
  %125 = call i64 @strlen(ptr noundef %124) #9
  %126 = udiv i64 %125, 2
  %127 = add i64 %126, 1
  %128 = call noalias ptr @malloc(i64 noundef %127) #10
  store ptr %128, ptr %9, align 8, !tbaa !9
  %129 = icmp ne ptr %128, null
  br i1 %129, label %134, label %130

130:                                              ; preds = %120
  %131 = load ptr, ptr @stderr, align 8, !tbaa !9
  %132 = load ptr, ptr %6, align 8, !tbaa !9
  %133 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef @.str.9, ptr noundef %132) #8
  br label %336

134:                                              ; preds = %120
  %135 = load ptr, ptr %8, align 8, !tbaa !9
  %136 = load ptr, ptr %8, align 8, !tbaa !9
  %137 = call i64 @strlen(ptr noundef %136) #9
  %138 = load ptr, ptr %9, align 8, !tbaa !9
  %139 = call i32 @hex_to_bytes(ptr noundef %135, i64 noundef %137, ptr noundef %138, ptr noundef %10)
  %140 = icmp ne i32 %139, 1
  br i1 %140, label %141, label %145

141:                                              ; preds = %134
  %142 = load ptr, ptr @stderr, align 8, !tbaa !9
  %143 = load ptr, ptr %6, align 8, !tbaa !9
  %144 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %142, ptr noundef @.str.10, ptr noundef %143) #8
  br label %336

145:                                              ; preds = %134
  %146 = load ptr, ptr %9, align 8, !tbaa !9
  store ptr %146, ptr %8, align 8, !tbaa !9
  br label %270

147:                                              ; preds = %103
  %148 = load ptr, ptr %4, align 8, !tbaa !9
  %149 = load ptr, ptr %148, align 8, !tbaa !9
  %150 = call i32 @strcmp(ptr noundef %149, ptr noundef @.str.11) #9
  %151 = icmp ne i32 %150, 0
  br i1 %151, label %168, label %152

152:                                              ; preds = %147
  %153 = load ptr, ptr %12, align 8, !tbaa !9
  %154 = icmp ne ptr %153, null
  br i1 %154, label %155, label %159

155:                                              ; preds = %152
  %156 = load ptr, ptr @stderr, align 8, !tbaa !9
  %157 = load ptr, ptr %6, align 8, !tbaa !9
  %158 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %156, ptr noundef @.str.12, ptr noundef %157) #8
  br label %336

159:                                              ; preds = %152
  %160 = load i32, ptr %3, align 4, !tbaa !5
  %161 = add nsw i32 %160, -1
  store i32 %161, ptr %3, align 4, !tbaa !5
  %162 = icmp slt i32 %161, 1
  br i1 %162, label %163, label %164

163:                                              ; preds = %159
  br label %259

164:                                              ; preds = %159
  %165 = load ptr, ptr %4, align 8, !tbaa !9
  %166 = getelementptr inbounds ptr, ptr %165, i32 1
  store ptr %166, ptr %4, align 8, !tbaa !9
  %167 = load ptr, ptr %166, align 8, !tbaa !9
  store ptr %167, ptr %11, align 8, !tbaa !9
  br label %269

168:                                              ; preds = %147
  %169 = load ptr, ptr %4, align 8, !tbaa !9
  %170 = load ptr, ptr %169, align 8, !tbaa !9
  %171 = call i32 @strcmp(ptr noundef %170, ptr noundef @.str.13) #9
  %172 = icmp ne i32 %171, 0
  br i1 %172, label %201, label %173

173:                                              ; preds = %168
  %174 = load ptr, ptr %11, align 8, !tbaa !9
  %175 = icmp ne ptr %174, null
  br i1 %175, label %176, label %180

176:                                              ; preds = %173
  %177 = load ptr, ptr @stderr, align 8, !tbaa !9
  %178 = load ptr, ptr %6, align 8, !tbaa !9
  %179 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %177, ptr noundef @.str.12, ptr noundef %178) #8
  br label %336

180:                                              ; preds = %173
  %181 = load i32, ptr %3, align 4, !tbaa !5
  %182 = add nsw i32 %181, -1
  store i32 %182, ptr %3, align 4, !tbaa !5
  %183 = icmp slt i32 %182, 1
  br i1 %183, label %184, label %185

184:                                              ; preds = %180
  br label %259

185:                                              ; preds = %180
  %186 = load ptr, ptr %4, align 8, !tbaa !9
  %187 = getelementptr inbounds ptr, ptr %186, i32 1
  store ptr %187, ptr %4, align 8, !tbaa !9
  %188 = load ptr, ptr %187, align 8, !tbaa !9
  store ptr %188, ptr %12, align 8, !tbaa !9
  %189 = load ptr, ptr %12, align 8, !tbaa !9
  %190 = call noalias ptr @fopen(ptr noundef %189, ptr noundef @.str.14)
  store ptr %190, ptr %17, align 8, !tbaa !9
  %191 = icmp ne ptr %190, null
  br i1 %191, label %200, label %192

192:                                              ; preds = %185
  %193 = load ptr, ptr @stderr, align 8, !tbaa !9
  %194 = load ptr, ptr %6, align 8, !tbaa !9
  %195 = load ptr, ptr %12, align 8, !tbaa !9
  %196 = call ptr @__errno_location() #11
  %197 = load i32, ptr %196, align 4, !tbaa !5
  %198 = call ptr @strerror(i32 noundef %197) #8
  %199 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %193, ptr noundef @.str.15, ptr noundef %194, ptr noundef %195, ptr noundef %198) #8
  br label %336

200:                                              ; preds = %185
  br label %268

201:                                              ; preds = %168
  %202 = load ptr, ptr %4, align 8, !tbaa !9
  %203 = load ptr, ptr %202, align 8, !tbaa !9
  %204 = call i32 @strcmp(ptr noundef %203, ptr noundef @.str.16) #9
  %205 = icmp ne i32 %204, 0
  br i1 %205, label %214, label %206

206:                                              ; preds = %201
  %207 = load i32, ptr %13, align 4, !tbaa !5
  %208 = icmp sgt i32 %207, 0
  br i1 %208, label %209, label %213

209:                                              ; preds = %206
  %210 = load ptr, ptr @stderr, align 8, !tbaa !9
  %211 = load ptr, ptr %6, align 8, !tbaa !9
  %212 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %210, ptr noundef @.str.17, ptr noundef %211) #8
  br label %336

213:                                              ; preds = %206
  store i32 1, ptr %13, align 4, !tbaa !5
  br label %267

214:                                              ; preds = %201
  %215 = load ptr, ptr %4, align 8, !tbaa !9
  %216 = load ptr, ptr %215, align 8, !tbaa !9
  %217 = call i32 @strcmp(ptr noundef %216, ptr noundef @.str.18) #9
  %218 = icmp ne i32 %217, 0
  br i1 %218, label %227, label %219

219:                                              ; preds = %214
  %220 = load i32, ptr %13, align 4, !tbaa !5
  %221 = icmp sgt i32 %220, 0
  br i1 %221, label %222, label %226

222:                                              ; preds = %219
  %223 = load ptr, ptr @stderr, align 8, !tbaa !9
  %224 = load ptr, ptr %6, align 8, !tbaa !9
  %225 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %223, ptr noundef @.str.17, ptr noundef %224) #8
  br label %336

226:                                              ; preds = %219
  store i32 2, ptr %13, align 4, !tbaa !5
  br label %266

227:                                              ; preds = %214
  %228 = load ptr, ptr %4, align 8, !tbaa !9
  %229 = load ptr, ptr %228, align 8, !tbaa !9
  %230 = call i32 @strcmp(ptr noundef %229, ptr noundef @.str.19) #9
  %231 = icmp ne i32 %230, 0
  br i1 %231, label %253, label %232

232:                                              ; preds = %227
  %233 = load i32, ptr %3, align 4, !tbaa !5
  %234 = add nsw i32 %233, -1
  store i32 %234, ptr %3, align 4, !tbaa !5
  %235 = icmp slt i32 %234, 1
  br i1 %235, label %236, label %237

236:                                              ; preds = %232
  br label %259

237:                                              ; preds = %232
  %238 = load ptr, ptr %4, align 8, !tbaa !9
  %239 = getelementptr inbounds ptr, ptr %238, i32 1
  store ptr %239, ptr %4, align 8, !tbaa !9
  %240 = load ptr, ptr %239, align 8, !tbaa !9
  store ptr %240, ptr %14, align 8, !tbaa !9
  %241 = load ptr, ptr %14, align 8, !tbaa !9
  %242 = call noalias ptr @fopen(ptr noundef %241, ptr noundef @.str.20)
  store ptr %242, ptr %18, align 8, !tbaa !9
  %243 = icmp ne ptr %242, null
  br i1 %243, label %252, label %244

244:                                              ; preds = %237
  %245 = load ptr, ptr @stderr, align 8, !tbaa !9
  %246 = load ptr, ptr %6, align 8, !tbaa !9
  %247 = load ptr, ptr %14, align 8, !tbaa !9
  %248 = call ptr @__errno_location() #11
  %249 = load i32, ptr %248, align 4, !tbaa !5
  %250 = call ptr @strerror(i32 noundef %249) #8
  %251 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %245, ptr noundef @.str.21, ptr noundef %246, ptr noundef %247, ptr noundef %250) #8
  br label %336

252:                                              ; preds = %237
  br label %265

253:                                              ; preds = %227
  %254 = load ptr, ptr @stderr, align 8, !tbaa !9
  %255 = load ptr, ptr %6, align 8, !tbaa !9
  %256 = load ptr, ptr %4, align 8, !tbaa !9
  %257 = load ptr, ptr %256, align 8, !tbaa !9
  %258 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %254, ptr noundef @.str.22, ptr noundef %255, ptr noundef %257) #8
  br label %336

259:                                              ; preds = %236, %184, %163, %116, %112, %93, %89, %56
  %260 = load ptr, ptr @stderr, align 8, !tbaa !9
  %261 = load ptr, ptr %6, align 8, !tbaa !9
  %262 = load ptr, ptr %4, align 8, !tbaa !9
  %263 = load ptr, ptr %262, align 8, !tbaa !9
  %264 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %260, ptr noundef @.str.23, ptr noundef %261, ptr noundef %263) #8
  br label %336

265:                                              ; preds = %252
  br label %266

266:                                              ; preds = %265, %226
  br label %267

267:                                              ; preds = %266, %213
  br label %268

268:                                              ; preds = %267, %200
  br label %269

269:                                              ; preds = %268, %164
  br label %270

270:                                              ; preds = %269, %145
  br label %271

271:                                              ; preds = %270, %97
  br label %272

272:                                              ; preds = %271, %79
  br label %273

273:                                              ; preds = %272
  %274 = load i32, ptr %3, align 4, !tbaa !5
  %275 = add nsw i32 %274, -1
  store i32 %275, ptr %3, align 4, !tbaa !5
  %276 = load ptr, ptr %4, align 8, !tbaa !9
  %277 = getelementptr inbounds ptr, ptr %276, i32 1
  store ptr %277, ptr %4, align 8, !tbaa !9
  br label %33, !llvm.loop !13

278:                                              ; preds = %33
  %279 = getelementptr inbounds [16 x i8], ptr %15, i64 0, i64 0
  %280 = load ptr, ptr %8, align 8, !tbaa !9
  %281 = load i64, ptr %10, align 8, !tbaa !11
  call void @ghash_init(ptr noundef %19, ptr noundef %279, ptr noundef %280, i64 noundef %281)
  %282 = load ptr, ptr %11, align 8, !tbaa !9
  %283 = icmp ne ptr %282, null
  br i1 %283, label %284, label %288

284:                                              ; preds = %278
  %285 = load ptr, ptr %11, align 8, !tbaa !9
  %286 = load ptr, ptr %11, align 8, !tbaa !9
  %287 = call i64 @strlen(ptr noundef %286) #9
  call void @ghash_update(ptr noundef %19, ptr noundef %285, i64 noundef %287)
  br label %299

288:                                              ; preds = %278
  call void @llvm.lifetime.start.p0(i64 4096, ptr %22) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  br label %289

289:                                              ; preds = %294, %288
  %290 = getelementptr inbounds [4096 x i8], ptr %22, i64 0, i64 0
  %291 = load ptr, ptr %17, align 8, !tbaa !9
  %292 = call i64 @fread(ptr noundef %290, i64 noundef 1, i64 noundef 4096, ptr noundef %291)
  store i64 %292, ptr %23, align 8, !tbaa !11
  %293 = icmp ugt i64 %292, 0
  br i1 %293, label %294, label %297

294:                                              ; preds = %289
  %295 = getelementptr inbounds [4096 x i8], ptr %22, i64 0, i64 0
  %296 = load i64, ptr %23, align 8, !tbaa !11
  call void @ghash_update(ptr noundef %19, ptr noundef %295, i64 noundef %296)
  br label %289, !llvm.loop !15

297:                                              ; preds = %289
  %298 = getelementptr inbounds [4096 x i8], ptr %22, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %298, i8 0, i64 4096, i1 false)
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 4096, ptr %22) #8
  br label %299

299:                                              ; preds = %297, %284
  %300 = getelementptr inbounds [16 x i8], ptr %20, i64 0, i64 0
  call void @ghash_finish(ptr noundef %19, ptr noundef %300)
  call void @llvm.memset.p0.i64(ptr align 8 %19, i8 0, i64 72, i1 false)
  %301 = load i32, ptr %13, align 4, !tbaa !5
  %302 = icmp sgt i32 %301, 1
  br i1 %302, label %303, label %316

303:                                              ; preds = %299
  %304 = getelementptr inbounds [16 x i8], ptr %20, i64 0, i64 0
  %305 = load ptr, ptr %18, align 8, !tbaa !9
  %306 = call i64 @fwrite(ptr noundef %304, i64 noundef 1, i64 noundef 16, ptr noundef %305)
  %307 = icmp ne i64 %306, 16
  br i1 %307, label %308, label %315

308:                                              ; preds = %303
  %309 = load ptr, ptr @stderr, align 8, !tbaa !9
  %310 = load ptr, ptr %6, align 8, !tbaa !9
  %311 = call ptr @__errno_location() #11
  %312 = load i32, ptr %311, align 4, !tbaa !5
  %313 = call ptr @strerror(i32 noundef %312) #8
  %314 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %309, ptr noundef @.str.24, ptr noundef %310, ptr noundef %313) #8
  br label %336

315:                                              ; preds = %303
  br label %335

316:                                              ; preds = %299
  store i32 0, ptr %21, align 4, !tbaa !5
  br label %317

317:                                              ; preds = %329, %316
  %318 = load i32, ptr %21, align 4, !tbaa !5
  %319 = sext i32 %318 to i64
  %320 = icmp ult i64 %319, 16
  br i1 %320, label %321, label %332

321:                                              ; preds = %317
  %322 = load ptr, ptr %18, align 8, !tbaa !9
  %323 = load i32, ptr %21, align 4, !tbaa !5
  %324 = sext i32 %323 to i64
  %325 = getelementptr inbounds [16 x i8], ptr %20, i64 0, i64 %324
  %326 = load i8, ptr %325, align 1, !tbaa !16
  %327 = zext i8 %326 to i32
  %328 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %322, ptr noundef @.str.25, i32 noundef %327) #8
  br label %329

329:                                              ; preds = %321
  %330 = load i32, ptr %21, align 4, !tbaa !5
  %331 = add nsw i32 %330, 1
  store i32 %331, ptr %21, align 4, !tbaa !5
  br label %317, !llvm.loop !17

332:                                              ; preds = %317
  %333 = load ptr, ptr %18, align 8, !tbaa !9
  %334 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %333, ptr noundef @.str.26) #8
  br label %335

335:                                              ; preds = %332, %315
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %336

336:                                              ; preds = %335, %308, %259, %253, %244, %222, %209, %192, %176, %155, %141, %130, %75, %64, %41
  %337 = load ptr, ptr %12, align 8, !tbaa !9
  %338 = icmp ne ptr %337, null
  br i1 %338, label %339, label %345

339:                                              ; preds = %336
  %340 = load ptr, ptr %17, align 8, !tbaa !9
  %341 = icmp ne ptr %340, null
  br i1 %341, label %342, label %345

342:                                              ; preds = %339
  %343 = load ptr, ptr %17, align 8, !tbaa !9
  %344 = call i32 @fclose(ptr noundef %343)
  br label %345

345:                                              ; preds = %342, %339, %336
  %346 = load ptr, ptr %14, align 8, !tbaa !9
  %347 = icmp ne ptr %346, null
  br i1 %347, label %348, label %354

348:                                              ; preds = %345
  %349 = load ptr, ptr %18, align 8, !tbaa !9
  %350 = icmp ne ptr %349, null
  br i1 %350, label %351, label %354

351:                                              ; preds = %348
  %352 = load ptr, ptr %18, align 8, !tbaa !9
  %353 = call i32 @fclose(ptr noundef %352)
  br label %354

354:                                              ; preds = %351, %348, %345
  %355 = load i32, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  ret i32 %355
}

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

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #2

declare i32 @printf(ptr noundef, ...) #3

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

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #4

declare i32 @hex_to_bytes(ptr noundef, i64 noundef, ptr noundef, ptr noundef) #3

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #5

declare noalias ptr @fopen(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind
declare ptr @strerror(i32 noundef) #4

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__errno_location() #6

declare void @ghash_init(ptr noundef, ptr noundef, ptr noundef, i64 noundef) #3

declare void @ghash_update(ptr noundef, ptr noundef, i64 noundef) #3

declare i64 @fread(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #7

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

declare void @ghash_finish(ptr noundef, ptr noundef) #3

declare i64 @fwrite(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #3

declare i32 @fclose(ptr noundef) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind allocsize(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 = { nounwind willreturn memory(none) "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 #7 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { nounwind }
attributes #9 = { nounwind willreturn memory(read) }
attributes #10 = { nounwind allocsize(0) }
attributes #11 = { nounwind willreturn memory(none) }

!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, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = !{!7, !7, i64 0}
!17 = distinct !{!17, !14}


; 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.GHASH_CTX = type { [2 x i64], [2 x i64], i64, i64, [16 x i8], i64 }

@stdin = external local_unnamed_addr global ptr, align 8
@stdout = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [20 x i8], align 1
@usage = external hidden local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@help = external hidden local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @ghash_main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = alloca i64, align 8
  %4 = alloca [16 x i8], align 16
  %5 = alloca i64, align 8
  %6 = alloca %struct.GHASH_CTX, align 8
  %7 = alloca [16 x i8], align 16
  %8 = alloca [4096 x i8], align 16
  %9 = load ptr, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #9
  store i64 0, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #9
  %10 = load ptr, ptr @stdin, align 8, !tbaa !5
  %11 = load ptr, ptr @stdout, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %6) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #9
  %12 = icmp sgt i32 %0, 1
  br i1 %12, label %.lr.ph, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %2
  call void @ghash_init(ptr noundef nonnull %6, ptr noundef nonnull %4, ptr noundef null, i64 noundef 0) #9
  br label %138

.lr.ph:                                           ; preds = %2, %135
  %.0.in304 = phi i32 [ %.1, %135 ], [ %0, %2 ]
  %.087303 = phi ptr [ %.188, %135 ], [ %11, %2 ]
  %.089302 = phi ptr [ %.190, %135 ], [ %10, %2 ]
  %.092301 = phi ptr [ %.193, %135 ], [ null, %2 ]
  %.095300 = phi i32 [ %.196, %135 ], [ 0, %2 ]
  %.097299 = phi ptr [ %.198, %135 ], [ null, %2 ]
  %.0100298 = phi ptr [ %.1101, %135 ], [ null, %2 ]
  %.0102297 = phi ptr [ %.1103, %135 ], [ null, %2 ]
  %.pn296 = phi ptr [ %.1105, %135 ], [ %1, %2 ]
  %.0104305 = getelementptr inbounds i8, ptr %.pn296, i64 8
  %.0306 = add nsw i32 %.0.in304, -1
  %13 = load ptr, ptr %.0104305, align 8, !tbaa !5
  %14 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %13, ptr noundef nonnull dereferenceable(1) @.str) #10
  %.not123 = icmp eq i32 %14, 0
  br i1 %.not123, label %15, label %20

15:                                               ; preds = %.lr.ph
  %16 = load ptr, ptr @usage, align 8, !tbaa !5
  %17 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %9, ptr noundef %16)
  %18 = load ptr, ptr @help, align 8, !tbaa !5
  %19 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %18)
  br label %216

20:                                               ; preds = %.lr.ph
  %21 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %13, ptr noundef nonnull dereferenceable(1) @.str.3) #10
  %.not124 = icmp eq i32 %21, 0
  br i1 %.not124, label %22, label %37

22:                                               ; preds = %20
  %23 = add nsw i32 %.0.in304, -2
  %24 = icmp eq i32 %.0.in304, 2
  br i1 %24, label %.loopexit, label %25

25:                                               ; preds = %22
  %26 = getelementptr inbounds i8, ptr %.pn296, i64 16
  %27 = load ptr, ptr %26, align 8, !tbaa !5
  %28 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %27) #10
  %.not125 = icmp eq i64 %28, 32
  br i1 %.not125, label %32, label %29

29:                                               ; preds = %25
  %30 = load ptr, ptr @stderr, align 8, !tbaa !5
  %31 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %30, ptr noundef nonnull @.str.4, ptr noundef %9) #11
  br label %216

32:                                               ; preds = %25
  %33 = call i32 @hex_to_bytes(ptr noundef %27, i64 noundef 32, ptr noundef nonnull %4, ptr noundef nonnull %5) #9
  %.not126 = icmp eq i32 %33, 1
  br i1 %.not126, label %135, label %34

34:                                               ; preds = %32
  %35 = load ptr, ptr @stderr, align 8, !tbaa !5
  %36 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %35, ptr noundef nonnull @.str.5, ptr noundef %9) #11
  br label %216

37:                                               ; preds = %20
  %38 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %13, ptr noundef nonnull dereferenceable(1) @.str.6) #10
  %.not127 = icmp eq i32 %38, 0
  br i1 %.not127, label %39, label %47

39:                                               ; preds = %37
  %40 = add nsw i32 %.0.in304, -2
  %41 = icmp eq i32 %.0.in304, 2
  br i1 %41, label %.loopexit, label %42

42:                                               ; preds = %39
  %.not128 = icmp eq ptr %.0102297, null
  br i1 %.not128, label %43, label %.loopexit.sink.split

43:                                               ; preds = %42
  %44 = getelementptr inbounds i8, ptr %.pn296, i64 16
  %45 = load ptr, ptr %44, align 8, !tbaa !5
  %46 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %45) #10
  store i64 %46, ptr %3, align 8, !tbaa !9
  br label %135

47:                                               ; preds = %37
  %48 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %13, ptr noundef nonnull dereferenceable(1) @.str.8) #10
  %.not129 = icmp eq i32 %48, 0
  br i1 %.not129, label %49, label %68

49:                                               ; preds = %47
  %50 = add nsw i32 %.0.in304, -2
  %51 = icmp eq i32 %.0.in304, 2
  br i1 %51, label %.loopexit, label %52

52:                                               ; preds = %49
  %.not130 = icmp eq ptr %.0102297, null
  br i1 %.not130, label %53, label %.loopexit.sink.split

53:                                               ; preds = %52
  %54 = getelementptr inbounds i8, ptr %.pn296, i64 16
  %55 = load ptr, ptr %54, align 8, !tbaa !5
  %56 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %55) #10
  %57 = lshr i64 %56, 1
  %58 = add nuw i64 %57, 1
  %59 = call noalias ptr @malloc(i64 noundef %58) #12
  %.not131 = icmp eq ptr %59, null
  br i1 %.not131, label %60, label %63

60:                                               ; preds = %53
  %61 = load ptr, ptr @stderr, align 8, !tbaa !5
  %62 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %61, ptr noundef nonnull @.str.9, ptr noundef %9) #11
  br label %216

63:                                               ; preds = %53
  %64 = call i32 @hex_to_bytes(ptr noundef %55, i64 noundef %56, ptr noundef nonnull %59, ptr noundef nonnull %3) #9
  %.not132 = icmp eq i32 %64, 1
  br i1 %.not132, label %135, label %65

65:                                               ; preds = %63
  %66 = load ptr, ptr @stderr, align 8, !tbaa !5
  %67 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %66, ptr noundef nonnull @.str.10, ptr noundef %9) #11
  br label %216

68:                                               ; preds = %47
  %69 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %13, ptr noundef nonnull dereferenceable(1) @.str.11) #10
  %.not133 = icmp eq i32 %69, 0
  br i1 %.not133, label %70, label %80

70:                                               ; preds = %68
  %.not134 = icmp eq ptr %.097299, null
  br i1 %.not134, label %74, label %71

71:                                               ; preds = %70
  %72 = load ptr, ptr @stderr, align 8, !tbaa !5
  %73 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %72, ptr noundef nonnull @.str.12, ptr noundef %9) #11
  br label %216

74:                                               ; preds = %70
  %75 = icmp eq i32 %.0.in304, 2
  br i1 %75, label %.loopexit, label %76

76:                                               ; preds = %74
  %77 = add nsw i32 %.0.in304, -2
  %78 = getelementptr inbounds i8, ptr %.pn296, i64 16
  %79 = load ptr, ptr %78, align 8, !tbaa !5
  br label %135

80:                                               ; preds = %68
  %81 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %13, ptr noundef nonnull dereferenceable(1) @.str.13) #10
  %.not135 = icmp eq i32 %81, 0
  br i1 %.not135, label %82, label %98

82:                                               ; preds = %80
  %.not136 = icmp eq ptr %.0100298, null
  br i1 %.not136, label %86, label %83

83:                                               ; preds = %82
  %84 = load ptr, ptr @stderr, align 8, !tbaa !5
  %85 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %84, ptr noundef nonnull @.str.12, ptr noundef %9) #11
  br label %216

86:                                               ; preds = %82
  %87 = icmp eq i32 %.0.in304, 2
  br i1 %87, label %.loopexit, label %88

88:                                               ; preds = %86
  %89 = add nsw i32 %.0.in304, -2
  %90 = getelementptr inbounds i8, ptr %.pn296, i64 16
  %91 = load ptr, ptr %90, align 8, !tbaa !5
  %92 = call noalias ptr @fopen(ptr noundef %91, ptr noundef nonnull @.str.14)
  %.not137 = icmp eq ptr %92, null
  br i1 %.not137, label %.thread, label %135

.thread:                                          ; preds = %88
  %93 = load ptr, ptr @stderr, align 8, !tbaa !5
  %94 = tail call ptr @__errno_location() #13
  %95 = load i32, ptr %94, align 4, !tbaa !11
  %96 = call ptr @strerror(i32 noundef %95) #9
  %97 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef nonnull @.str.15, ptr noundef %9, ptr noundef %91, ptr noundef %96) #11
  br label %221

98:                                               ; preds = %80
  %99 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %13, ptr noundef nonnull dereferenceable(1) @.str.16) #10
  %.not138 = icmp eq i32 %99, 0
  br i1 %.not138, label %100, label %105

100:                                              ; preds = %98
  %101 = icmp sgt i32 %.095300, 0
  br i1 %101, label %102, label %135

102:                                              ; preds = %100
  %103 = load ptr, ptr @stderr, align 8, !tbaa !5
  %104 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %103, ptr noundef nonnull @.str.17, ptr noundef %9) #11
  br label %216

105:                                              ; preds = %98
  %106 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %13, ptr noundef nonnull dereferenceable(1) @.str.18) #10
  %.not139 = icmp eq i32 %106, 0
  br i1 %.not139, label %107, label %112

107:                                              ; preds = %105
  %108 = icmp sgt i32 %.095300, 0
  br i1 %108, label %109, label %135

109:                                              ; preds = %107
  %110 = load ptr, ptr @stderr, align 8, !tbaa !5
  %111 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %110, ptr noundef nonnull @.str.17, ptr noundef %9) #11
  br label %216

112:                                              ; preds = %105
  %113 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %13, ptr noundef nonnull dereferenceable(1) @.str.19) #10
  %.not140 = icmp eq i32 %113, 0
  br i1 %.not140, label %114, label %127

114:                                              ; preds = %112
  %115 = icmp eq i32 %.0.in304, 2
  br i1 %115, label %.loopexit, label %116

116:                                              ; preds = %114
  %117 = add nsw i32 %.0.in304, -2
  %118 = getelementptr inbounds i8, ptr %.pn296, i64 16
  %119 = load ptr, ptr %118, align 8, !tbaa !5
  %120 = call noalias ptr @fopen(ptr noundef %119, ptr noundef nonnull @.str.20)
  %.not141 = icmp eq ptr %120, null
  br i1 %.not141, label %121, label %135

121:                                              ; preds = %116
  %122 = load ptr, ptr @stderr, align 8, !tbaa !5
  %123 = tail call ptr @__errno_location() #13
  %124 = load i32, ptr %123, align 4, !tbaa !11
  %125 = call ptr @strerror(i32 noundef %124) #9
  %126 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.21, ptr noundef %9, ptr noundef %119, ptr noundef %125) #11
  br label %216

127:                                              ; preds = %112
  %128 = load ptr, ptr @stderr, align 8, !tbaa !5
  %129 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %128, ptr noundef nonnull @.str.22, ptr noundef %9, ptr noundef %13) #11
  br label %216

.loopexit.sink.split:                             ; preds = %52, %42
  %130 = load ptr, ptr @stderr, align 8, !tbaa !5
  %131 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %130, ptr noundef nonnull @.str.7, ptr noundef %9) #11
  br label %.loopexit

.loopexit:                                        ; preds = %114, %86, %74, %49, %39, %22, %.loopexit.sink.split
  %.097299366 = phi ptr [ %.097299, %.loopexit.sink.split ], [ %.097299, %114 ], [ %.097299, %86 ], [ null, %74 ], [ %.097299, %49 ], [ %.097299, %39 ], [ %.097299, %22 ]
  %132 = load ptr, ptr @stderr, align 8, !tbaa !5
  %133 = load ptr, ptr %.0104305, align 8, !tbaa !5
  %134 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %132, ptr noundef nonnull @.str.23, ptr noundef %9, ptr noundef %133) #11
  br label %216

135:                                              ; preds = %107, %100, %63, %32, %88, %116, %76, %43
  %.1105 = phi ptr [ %118, %116 ], [ %90, %88 ], [ %78, %76 ], [ %44, %43 ], [ %26, %32 ], [ %54, %63 ], [ %.0104305, %100 ], [ %.0104305, %107 ]
  %.1103 = phi ptr [ %.0102297, %116 ], [ %.0102297, %88 ], [ %.0102297, %76 ], [ %45, %43 ], [ %.0102297, %32 ], [ %59, %63 ], [ %.0102297, %100 ], [ %.0102297, %107 ]
  %.1101 = phi ptr [ %.0100298, %116 ], [ null, %88 ], [ %79, %76 ], [ %.0100298, %43 ], [ %.0100298, %32 ], [ %.0100298, %63 ], [ %.0100298, %100 ], [ %.0100298, %107 ]
  %.198 = phi ptr [ %.097299, %116 ], [ %91, %88 ], [ null, %76 ], [ %.097299, %43 ], [ %.097299, %32 ], [ %.097299, %63 ], [ %.097299, %100 ], [ %.097299, %107 ]
  %.196 = phi i32 [ %.095300, %116 ], [ %.095300, %88 ], [ %.095300, %76 ], [ %.095300, %43 ], [ %.095300, %32 ], [ %.095300, %63 ], [ 1, %100 ], [ 2, %107 ]
  %.193 = phi ptr [ %119, %116 ], [ %.092301, %88 ], [ %.092301, %76 ], [ %.092301, %43 ], [ %.092301, %32 ], [ %.092301, %63 ], [ %.092301, %100 ], [ %.092301, %107 ]
  %.190 = phi ptr [ %.089302, %116 ], [ %92, %88 ], [ %.089302, %76 ], [ %.089302, %43 ], [ %.089302, %32 ], [ %.089302, %63 ], [ %.089302, %100 ], [ %.089302, %107 ]
  %.188 = phi ptr [ %120, %116 ], [ %.087303, %88 ], [ %.087303, %76 ], [ %.087303, %43 ], [ %.087303, %32 ], [ %.087303, %63 ], [ %.087303, %100 ], [ %.087303, %107 ]
  %.1 = phi i32 [ %117, %116 ], [ %89, %88 ], [ %77, %76 ], [ %40, %43 ], [ %23, %32 ], [ %50, %63 ], [ %.0306, %100 ], [ %.0306, %107 ]
  %136 = icmp sgt i32 %.1, 1
  br i1 %136, label %.lr.ph, label %._crit_edge, !llvm.loop !13

._crit_edge:                                      ; preds = %135
  %.pre = load i64, ptr %3, align 8, !tbaa !9
  %137 = icmp sgt i32 %.196, 1
  call void @ghash_init(ptr noundef nonnull %6, ptr noundef nonnull %4, ptr noundef %.1103, i64 noundef %.pre) #9
  %.not = icmp eq ptr %.1101, null
  br i1 %.not, label %138, label %142

138:                                              ; preds = %._crit_edge.thread, %._crit_edge
  %.087.lcssa433 = phi ptr [ %11, %._crit_edge.thread ], [ %.188, %._crit_edge ]
  %.089.lcssa431 = phi ptr [ %10, %._crit_edge.thread ], [ %.190, %._crit_edge ]
  %.092.lcssa429 = phi ptr [ null, %._crit_edge.thread ], [ %.193, %._crit_edge ]
  %.095.lcssa427 = phi i1 [ false, %._crit_edge.thread ], [ %137, %._crit_edge ]
  %.097.lcssa425 = phi ptr [ null, %._crit_edge.thread ], [ %.198, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %8) #9
  %139 = call i64 @fread(ptr noundef nonnull %8, i64 noundef 1, i64 noundef 4096, ptr noundef %.089.lcssa431)
  %.not121313 = icmp eq i64 %139, 0
  br i1 %.not121313, label %._crit_edge316, label %.lr.ph315

.lr.ph315:                                        ; preds = %138, %.lr.ph315
  %140 = phi i64 [ %141, %.lr.ph315 ], [ %139, %138 ]
  call void @ghash_update(ptr noundef nonnull %6, ptr noundef nonnull %8, i64 noundef %140) #9
  %141 = call i64 @fread(ptr noundef nonnull %8, i64 noundef 1, i64 noundef 4096, ptr noundef %.089.lcssa431)
  %.not121 = icmp eq i64 %141, 0
  br i1 %.not121, label %._crit_edge316, label %.lr.ph315, !llvm.loop !15

._crit_edge316:                                   ; preds = %.lr.ph315, %138
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %8) #9
  call void @ghash_finish(ptr noundef nonnull %6, ptr noundef nonnull %7) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(72) %6, i8 0, i64 72, i1 false)
  br i1 %.095.lcssa427, label %208, label %.preheader.preheader

142:                                              ; preds = %._crit_edge
  %143 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %.1101) #10
  call void @ghash_update(ptr noundef nonnull %6, ptr noundef nonnull %.1101, i64 noundef %143) #9
  call void @ghash_finish(ptr noundef nonnull %6, ptr noundef nonnull %7) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(72) %6, i8 0, i64 72, i1 false)
  br i1 %137, label %208, label %.preheader.preheader

.preheader.preheader:                             ; preds = %._crit_edge316, %142
  %.097.lcssa424441 = phi ptr [ %.097.lcssa425, %._crit_edge316 ], [ %.198, %142 ]
  %.092.lcssa428438 = phi ptr [ %.092.lcssa429, %._crit_edge316 ], [ %.193, %142 ]
  %.089.lcssa430437 = phi ptr [ %.089.lcssa431, %._crit_edge316 ], [ %.190, %142 ]
  %.087.lcssa432434 = phi ptr [ %.087.lcssa433, %._crit_edge316 ], [ %.188, %142 ]
  %144 = load i8, ptr %7, align 16, !tbaa !16
  %145 = zext i8 %144 to i32
  %146 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.087.lcssa432434, ptr noundef nonnull @.str.25, i32 noundef %145) #9
  %147 = getelementptr inbounds i8, ptr %7, i64 1
  %148 = load i8, ptr %147, align 1, !tbaa !16
  %149 = zext i8 %148 to i32
  %150 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.087.lcssa432434, ptr noundef nonnull @.str.25, i32 noundef %149) #9
  %151 = getelementptr inbounds i8, ptr %7, i64 2
  %152 = load i8, ptr %151, align 2, !tbaa !16
  %153 = zext i8 %152 to i32
  %154 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.087.lcssa432434, ptr noundef nonnull @.str.25, i32 noundef %153) #9
  %155 = getelementptr inbounds i8, ptr %7, i64 3
  %156 = load i8, ptr %155, align 1, !tbaa !16
  %157 = zext i8 %156 to i32
  %158 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.087.lcssa432434, ptr noundef nonnull @.str.25, i32 noundef %157) #9
  %159 = getelementptr inbounds i8, ptr %7, i64 4
  %160 = load i8, ptr %159, align 4, !tbaa !16
  %161 = zext i8 %160 to i32
  %162 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.087.lcssa432434, ptr noundef nonnull @.str.25, i32 noundef %161) #9
  %163 = getelementptr inbounds i8, ptr %7, i64 5
  %164 = load i8, ptr %163, align 1, !tbaa !16
  %165 = zext i8 %164 to i32
  %166 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.087.lcssa432434, ptr noundef nonnull @.str.25, i32 noundef %165) #9
  %167 = getelementptr inbounds i8, ptr %7, i64 6
  %168 = load i8, ptr %167, align 2, !tbaa !16
  %169 = zext i8 %168 to i32
  %170 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.087.lcssa432434, ptr noundef nonnull @.str.25, i32 noundef %169) #9
  %171 = getelementptr inbounds i8, ptr %7, i64 7
  %172 = load i8, ptr %171, align 1, !tbaa !16
  %173 = zext i8 %172 to i32
  %174 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.087.lcssa432434, ptr noundef nonnull @.str.25, i32 noundef %173) #9
  %175 = getelementptr inbounds i8, ptr %7, i64 8
  %176 = load i8, ptr %175, align 8, !tbaa !16
  %177 = zext i8 %176 to i32
  %178 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.087.lcssa432434, ptr noundef nonnull @.str.25, i32 noundef %177) #9
  %179 = getelementptr inbounds i8, ptr %7, i64 9
  %180 = load i8, ptr %179, align 1, !tbaa !16
  %181 = zext i8 %180 to i32
  %182 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.087.lcssa432434, ptr noundef nonnull @.str.25, i32 noundef %181) #9
  %183 = getelementptr inbounds i8, ptr %7, i64 10
  %184 = load i8, ptr %183, align 2, !tbaa !16
  %185 = zext i8 %184 to i32
  %186 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.087.lcssa432434, ptr noundef nonnull @.str.25, i32 noundef %185) #9
  %187 = getelementptr inbounds i8, ptr %7, i64 11
  %188 = load i8, ptr %187, align 1, !tbaa !16
  %189 = zext i8 %188 to i32
  %190 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.087.lcssa432434, ptr noundef nonnull @.str.25, i32 noundef %189) #9
  %191 = getelementptr inbounds i8, ptr %7, i64 12
  %192 = load i8, ptr %191, align 4, !tbaa !16
  %193 = zext i8 %192 to i32
  %194 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.087.lcssa432434, ptr noundef nonnull @.str.25, i32 noundef %193) #9
  %195 = getelementptr inbounds i8, ptr %7, i64 13
  %196 = load i8, ptr %195, align 1, !tbaa !16
  %197 = zext i8 %196 to i32
  %198 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.087.lcssa432434, ptr noundef nonnull @.str.25, i32 noundef %197) #9
  %199 = getelementptr inbounds i8, ptr %7, i64 14
  %200 = load i8, ptr %199, align 2, !tbaa !16
  %201 = zext i8 %200 to i32
  %202 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.087.lcssa432434, ptr noundef nonnull @.str.25, i32 noundef %201) #9
  %203 = getelementptr inbounds i8, ptr %7, i64 15
  %204 = load i8, ptr %203, align 1, !tbaa !16
  %205 = zext i8 %204 to i32
  %206 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.087.lcssa432434, ptr noundef nonnull @.str.25, i32 noundef %205) #9
  %207 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.087.lcssa432434, ptr noundef nonnull @.str.26) #9
  br label %216

208:                                              ; preds = %._crit_edge316, %142
  %.097.lcssa424440 = phi ptr [ %.097.lcssa425, %._crit_edge316 ], [ %.198, %142 ]
  %.092.lcssa428439 = phi ptr [ %.092.lcssa429, %._crit_edge316 ], [ %.193, %142 ]
  %.089.lcssa430436 = phi ptr [ %.089.lcssa431, %._crit_edge316 ], [ %.190, %142 ]
  %.087.lcssa432435 = phi ptr [ %.087.lcssa433, %._crit_edge316 ], [ %.188, %142 ]
  %209 = call i64 @fwrite(ptr noundef nonnull %7, i64 noundef 1, i64 noundef 16, ptr noundef %.087.lcssa432435)
  %.not122 = icmp eq i64 %209, 16
  br i1 %.not122, label %216, label %210

210:                                              ; preds = %208
  %211 = load ptr, ptr @stderr, align 8, !tbaa !5
  %212 = tail call ptr @__errno_location() #13
  %213 = load i32, ptr %212, align 4, !tbaa !11
  %214 = call ptr @strerror(i32 noundef %213) #9
  %215 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %211, ptr noundef nonnull @.str.24, ptr noundef %9, ptr noundef %214) #11
  br label %216

216:                                              ; preds = %.preheader.preheader, %208, %210, %.loopexit, %127, %121, %109, %102, %83, %71, %65, %60, %34, %29, %15
  %.097247 = phi ptr [ %.097299, %127 ], [ %.097299366, %.loopexit ], [ %.097299, %121 ], [ %.097299, %109 ], [ %.097299, %102 ], [ %.097299, %83 ], [ %.097299, %71 ], [ %.097299, %65 ], [ %.097299, %60 ], [ %.097299, %29 ], [ %.097299, %34 ], [ %.097299, %15 ], [ %.097.lcssa424440, %210 ], [ %.097.lcssa424440, %208 ], [ %.097.lcssa424441, %.preheader.preheader ]
  %.089199 = phi ptr [ %.089302, %127 ], [ %.089302, %.loopexit ], [ %.089302, %121 ], [ %.089302, %109 ], [ %.089302, %102 ], [ %.089302, %83 ], [ %.089302, %71 ], [ %.089302, %65 ], [ %.089302, %60 ], [ %.089302, %29 ], [ %.089302, %34 ], [ %.089302, %15 ], [ %.089.lcssa430436, %210 ], [ %.089.lcssa430436, %208 ], [ %.089.lcssa430437, %.preheader.preheader ]
  %.0106 = phi i32 [ 1, %127 ], [ 1, %.loopexit ], [ 1, %121 ], [ 1, %109 ], [ 1, %102 ], [ 1, %83 ], [ 1, %71 ], [ 1, %65 ], [ 1, %60 ], [ 1, %29 ], [ 1, %34 ], [ 0, %15 ], [ 1, %210 ], [ 0, %208 ], [ 0, %.preheader.preheader ]
  %.294 = phi ptr [ %.092301, %127 ], [ %.092301, %.loopexit ], [ %119, %121 ], [ %.092301, %109 ], [ %.092301, %102 ], [ %.092301, %83 ], [ %.092301, %71 ], [ %.092301, %65 ], [ %.092301, %60 ], [ %.092301, %29 ], [ %.092301, %34 ], [ %.092301, %15 ], [ %.092.lcssa428439, %210 ], [ %.092.lcssa428439, %208 ], [ %.092.lcssa428438, %.preheader.preheader ]
  %.2 = phi ptr [ %.087303, %127 ], [ %.087303, %.loopexit ], [ null, %121 ], [ %.087303, %109 ], [ %.087303, %102 ], [ %.087303, %83 ], [ %.087303, %71 ], [ %.087303, %65 ], [ %.087303, %60 ], [ %.087303, %29 ], [ %.087303, %34 ], [ %.087303, %15 ], [ %.087.lcssa432435, %210 ], [ %.087.lcssa432435, %208 ], [ %.087.lcssa432434, %.preheader.preheader ]
  %217 = icmp ne ptr %.097247, null
  %218 = icmp ne ptr %.089199, null
  %or.cond = select i1 %217, i1 %218, i1 false
  br i1 %or.cond, label %219, label %221

219:                                              ; preds = %216
  %220 = call i32 @fclose(ptr noundef nonnull %.089199)
  br label %221

221:                                              ; preds = %.thread, %219, %216
  %.2150 = phi ptr [ %.087303, %.thread ], [ %.2, %219 ], [ %.2, %216 ]
  %.294149 = phi ptr [ %.092301, %.thread ], [ %.294, %219 ], [ %.294, %216 ]
  %.0106148 = phi i32 [ 1, %.thread ], [ %.0106, %219 ], [ %.0106, %216 ]
  %222 = icmp ne ptr %.294149, null
  %223 = icmp ne ptr %.2150, null
  %or.cond3 = select i1 %222, i1 %223, i1 false
  br i1 %or.cond3, label %224, label %226

224:                                              ; preds = %221
  %225 = call i32 @fclose(ptr noundef nonnull %.2150)
  br label %226

226:                                              ; preds = %224, %221
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #9
  ret i32 %.0106148
}

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

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

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #3

declare i32 @hex_to_bytes(ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #5

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #3

; Function Attrs: nounwind
declare ptr @strerror(i32 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__errno_location() local_unnamed_addr #7

declare void @ghash_init(ptr noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #4

declare void @ghash_update(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noundef i64 @fread(ptr nocapture noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #8

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

declare void @ghash_finish(ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noundef i64 @fwrite(ptr nocapture noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { "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 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) 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 #6 = { 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 #7 = { mustprogress nofree nosync nounwind willreturn memory(none) "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 #8 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #9 = { nounwind }
attributes #10 = { nounwind willreturn memory(read) }
attributes #11 = { cold nounwind }
attributes #12 = { nounwind allocsize(0) }
attributes #13 = { nounwind willreturn memory(none) }

!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"}
!15 = distinct !{!15, !14}
!16 = !{!7, !7, i64 0}


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