; LLVM IR from mkazhdan/DMG :: Util/TIFF (tif_open)

; 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.tiff = type { ptr, i32, i32, i32, i32, i32, ptr, i16, %struct.TIFFDirectory, %struct.TIFFHeader, ptr, ptr, i32, i16, i32, i32, i32, i16, i32, i32, i32, i32, i32, ptr, ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, i32, ptr, i32, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i64, ptr, %struct.TIFFTagMethods, ptr }
%struct.TIFFDirectory = type { [4 x i64], i32, i32, i32, i32, i32, i32, i32, i16, i16, i16, i16, i16, i16, i16, i16, i32, i16, i16, double, double, float, float, i16, i16, float, float, [2 x i16], [3 x ptr], [2 x i16], i16, ptr, i32, i32, ptr, ptr, i32, i16, ptr, [2 x i16], i16, [3 x ptr], i32, ptr, i32, ptr }
%struct.TIFFHeader = type { i16, i16, i32 }
%struct.TIFFTagMethods = type { ptr, ptr, ptr }

@TIFFClientOpen.module = external hidden constant [15 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [46 x i8], align 1

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

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

declare void @TIFFErrorExt(ptr noundef, ptr noundef, ptr noundef, ...) #2

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

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

30:                                               ; preds = %10
  br label %494

31:                                               ; preds = %10
  %32 = load ptr, ptr %12, align 8, !tbaa !5
  %33 = call i64 @strlen(ptr noundef %32) #6
  %34 = add i64 720, %33
  %35 = add i64 %34, 1
  %36 = trunc i64 %35 to i32
  %37 = call ptr @_TIFFmalloc(i32 noundef %36)
  store ptr %37, ptr %22, align 8, !tbaa !5
  %38 = load ptr, ptr %22, align 8, !tbaa !5
  %39 = icmp eq ptr %38, null
  br i1 %39, label %40, label %43

40:                                               ; preds = %31
  %41 = load ptr, ptr %14, align 8, !tbaa !5
  %42 = load ptr, ptr %12, align 8, !tbaa !5
  call void (ptr, ptr, ptr, ...) @TIFFErrorExt(ptr noundef %41, ptr noundef @TIFFClientOpen.module, ptr noundef @.str.1, ptr noundef %42)
  br label %494

43:                                               ; preds = %31
  %44 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_TIFFmemset(ptr noundef %44, i32 noundef 0, i32 noundef 720)
  %45 = load ptr, ptr %22, align 8, !tbaa !5
  %46 = getelementptr inbounds i8, ptr %45, i64 720
  %47 = load ptr, ptr %22, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.tiff, ptr %47, i32 0, i32 0
  store ptr %46, ptr %48, align 8, !tbaa !11
  %49 = load ptr, ptr %22, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.tiff, ptr %49, i32 0, i32 0
  %51 = load ptr, ptr %50, align 8, !tbaa !11
  %52 = load ptr, ptr %12, align 8, !tbaa !5
  %53 = call ptr @strcpy(ptr noundef %51, ptr noundef %52) #5
  %54 = load i32, ptr %23, align 4, !tbaa !9
  %55 = and i32 %54, -577
  %56 = load ptr, ptr %22, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.tiff, ptr %56, i32 0, i32 2
  store i32 %55, ptr %57, align 4, !tbaa !20
  %58 = load ptr, ptr %22, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.tiff, ptr %58, i32 0, i32 13
  store i16 -1, ptr %59, align 4, !tbaa !21
  %60 = load ptr, ptr %22, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.tiff, ptr %60, i32 0, i32 15
  store i32 0, ptr %61, align 4, !tbaa !22
  %62 = load ptr, ptr %22, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.tiff, ptr %62, i32 0, i32 14
  store i32 -1, ptr %63, align 8, !tbaa !23
  %64 = load ptr, ptr %22, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.tiff, ptr %64, i32 0, i32 12
  store i32 -1, ptr %65, align 8, !tbaa !24
  %66 = load ptr, ptr %14, align 8, !tbaa !5
  %67 = load ptr, ptr %22, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.tiff, ptr %67, i32 0, i32 51
  store ptr %66, ptr %68, align 8, !tbaa !25
  %69 = load ptr, ptr %15, align 8, !tbaa !5
  %70 = icmp ne ptr %69, null
  br i1 %70, label %71, label %83

71:                                               ; preds = %43
  %72 = load ptr, ptr %16, align 8, !tbaa !5
  %73 = icmp ne ptr %72, null
  br i1 %73, label %74, label %83

74:                                               ; preds = %71
  %75 = load ptr, ptr %17, align 8, !tbaa !5
  %76 = icmp ne ptr %75, null
  br i1 %76, label %77, label %83

77:                                               ; preds = %74
  %78 = load ptr, ptr %18, align 8, !tbaa !5
  %79 = icmp ne ptr %78, null
  br i1 %79, label %80, label %83

80:                                               ; preds = %77
  %81 = load ptr, ptr %19, align 8, !tbaa !5
  %82 = icmp ne ptr %81, null
  br i1 %82, label %85, label %83

83:                                               ; preds = %80, %77, %74, %71, %43
  %84 = load ptr, ptr %14, align 8, !tbaa !5
  call void (ptr, ptr, ptr, ...) @TIFFErrorExt(ptr noundef %84, ptr noundef @TIFFClientOpen.module, ptr noundef @.str.2)
  br label %494

85:                                               ; preds = %80
  %86 = load ptr, ptr %15, align 8, !tbaa !5
  %87 = load ptr, ptr %22, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.tiff, ptr %87, i32 0, i32 52
  store ptr %86, ptr %88, align 8, !tbaa !26
  %89 = load ptr, ptr %16, align 8, !tbaa !5
  %90 = load ptr, ptr %22, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.tiff, ptr %90, i32 0, i32 53
  store ptr %89, ptr %91, align 8, !tbaa !27
  %92 = load ptr, ptr %17, align 8, !tbaa !5
  %93 = load ptr, ptr %22, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.tiff, ptr %93, i32 0, i32 54
  store ptr %92, ptr %94, align 8, !tbaa !28
  %95 = load ptr, ptr %18, align 8, !tbaa !5
  %96 = load ptr, ptr %22, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.tiff, ptr %96, i32 0, i32 55
  store ptr %95, ptr %97, align 8, !tbaa !29
  %98 = load ptr, ptr %19, align 8, !tbaa !5
  %99 = load ptr, ptr %22, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.tiff, ptr %99, i32 0, i32 56
  store ptr %98, ptr %100, align 8, !tbaa !30
  %101 = load ptr, ptr %20, align 8, !tbaa !5
  %102 = icmp ne ptr %101, null
  br i1 %102, label %103, label %107

103:                                              ; preds = %85
  %104 = load ptr, ptr %20, align 8, !tbaa !5
  %105 = load ptr, ptr %22, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.tiff, ptr %105, i32 0, i32 49
  store ptr %104, ptr %106, align 8, !tbaa !31
  br label %110

107:                                              ; preds = %85
  %108 = load ptr, ptr %22, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.tiff, ptr %108, i32 0, i32 49
  store ptr @_tiffDummyMapProc, ptr %109, align 8, !tbaa !31
  br label %110

110:                                              ; preds = %107, %103
  %111 = load ptr, ptr %21, align 8, !tbaa !5
  %112 = icmp ne ptr %111, null
  br i1 %112, label %113, label %117

113:                                              ; preds = %110
  %114 = load ptr, ptr %21, align 8, !tbaa !5
  %115 = load ptr, ptr %22, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.tiff, ptr %115, i32 0, i32 50
  store ptr %114, ptr %116, align 8, !tbaa !32
  br label %120

117:                                              ; preds = %110
  %118 = load ptr, ptr %22, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.tiff, ptr %118, i32 0, i32 50
  store ptr @_tiffDummyUnmapProc, ptr %119, align 8, !tbaa !32
  br label %120

120:                                              ; preds = %117, %113
  %121 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_TIFFSetDefaultCompressionState(ptr noundef %121)
  %122 = load ptr, ptr %22, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.tiff, ptr %122, i32 0, i32 3
  store i32 1, ptr %123, align 8, !tbaa !33
  %124 = load i32, ptr %23, align 4, !tbaa !9
  %125 = icmp eq i32 %124, 0
  br i1 %125, label %126, label %131

126:                                              ; preds = %120
  %127 = load ptr, ptr %22, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.tiff, ptr %127, i32 0, i32 3
  %129 = load i32, ptr %128, align 8, !tbaa !33
  %130 = or i32 %129, 2048
  store i32 %130, ptr %128, align 8, !tbaa !33
  br label %131

131:                                              ; preds = %126, %120
  %132 = load i32, ptr %23, align 4, !tbaa !9
  %133 = icmp eq i32 %132, 0
  br i1 %133, label %137, label %134

134:                                              ; preds = %131
  %135 = load i32, ptr %23, align 4, !tbaa !9
  %136 = icmp eq i32 %135, 2
  br i1 %136, label %137, label %142

137:                                              ; preds = %134, %131
  %138 = load ptr, ptr %22, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.tiff, ptr %138, i32 0, i32 3
  %140 = load i32, ptr %139, align 8, !tbaa !33
  %141 = or i32 %140, 32768
  store i32 %141, ptr %139, align 8, !tbaa !33
  br label %142

142:                                              ; preds = %137, %134
  %143 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %143, ptr %24, align 8, !tbaa !5
  br label %144

144:                                              ; preds = %228, %142
  %145 = load ptr, ptr %24, align 8, !tbaa !5
  %146 = load i8, ptr %145, align 1, !tbaa !34
  %147 = icmp ne i8 %146, 0
  br i1 %147, label %148, label %231

148:                                              ; preds = %144
  %149 = load ptr, ptr %24, align 8, !tbaa !5
  %150 = load i8, ptr %149, align 1, !tbaa !34
  %151 = sext i8 %150 to i32
  switch i32 %151, label %227 [
    i32 98, label %152
    i32 108, label %227
    i32 66, label %162
    i32 76, label %170
    i32 72, label %178
    i32 77, label %186
    i32 109, label %195
    i32 67, label %204
    i32 99, label %213
    i32 104, label %222
  ]

152:                                              ; preds = %148
  %153 = load i32, ptr %23, align 4, !tbaa !9
  %154 = and i32 %153, 64
  %155 = icmp ne i32 %154, 0
  br i1 %155, label %156, label %161

156:                                              ; preds = %152
  %157 = load ptr, ptr %22, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.tiff, ptr %157, i32 0, i32 3
  %159 = load i32, ptr %158, align 8, !tbaa !33
  %160 = or i32 %159, 128
  store i32 %160, ptr %158, align 8, !tbaa !33
  br label %161

161:                                              ; preds = %156, %152
  br label %227

162:                                              ; preds = %148
  %163 = load ptr, ptr %22, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.tiff, ptr %163, i32 0, i32 3
  %165 = load i32, ptr %164, align 8, !tbaa !33
  %166 = and i32 %165, -4
  %167 = or i32 %166, 1
  %168 = load ptr, ptr %22, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.tiff, ptr %168, i32 0, i32 3
  store i32 %167, ptr %169, align 8, !tbaa !33
  br label %227

170:                                              ; preds = %148
  %171 = load ptr, ptr %22, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.tiff, ptr %171, i32 0, i32 3
  %173 = load i32, ptr %172, align 8, !tbaa !33
  %174 = and i32 %173, -4
  %175 = or i32 %174, 2
  %176 = load ptr, ptr %22, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.tiff, ptr %176, i32 0, i32 3
  store i32 %175, ptr %177, align 8, !tbaa !33
  br label %227

178:                                              ; preds = %148
  %179 = load ptr, ptr %22, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.tiff, ptr %179, i32 0, i32 3
  %181 = load i32, ptr %180, align 8, !tbaa !33
  %182 = and i32 %181, -4
  %183 = or i32 %182, 2
  %184 = load ptr, ptr %22, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.tiff, ptr %184, i32 0, i32 3
  store i32 %183, ptr %185, align 8, !tbaa !33
  br label %227

186:                                              ; preds = %148
  %187 = load i32, ptr %23, align 4, !tbaa !9
  %188 = icmp eq i32 %187, 0
  br i1 %188, label %189, label %194

189:                                              ; preds = %186
  %190 = load ptr, ptr %22, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.tiff, ptr %190, i32 0, i32 3
  %192 = load i32, ptr %191, align 8, !tbaa !33
  %193 = or i32 %192, 2048
  store i32 %193, ptr %191, align 8, !tbaa !33
  br label %194

194:                                              ; preds = %189, %186
  br label %227

195:                                              ; preds = %148
  %196 = load i32, ptr %23, align 4, !tbaa !9
  %197 = icmp eq i32 %196, 0
  br i1 %197, label %198, label %203

198:                                              ; preds = %195
  %199 = load ptr, ptr %22, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.tiff, ptr %199, i32 0, i32 3
  %201 = load i32, ptr %200, align 8, !tbaa !33
  %202 = and i32 %201, -2049
  store i32 %202, ptr %200, align 8, !tbaa !33
  br label %203

203:                                              ; preds = %198, %195
  br label %227

204:                                              ; preds = %148
  %205 = load i32, ptr %23, align 4, !tbaa !9
  %206 = icmp eq i32 %205, 0
  br i1 %206, label %207, label %212

207:                                              ; preds = %204
  %208 = load ptr, ptr %22, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.tiff, ptr %208, i32 0, i32 3
  %210 = load i32, ptr %209, align 8, !tbaa !33
  %211 = or i32 %210, 32768
  store i32 %211, ptr %209, align 8, !tbaa !33
  br label %212

212:                                              ; preds = %207, %204
  br label %227

213:                                              ; preds = %148
  %214 = load i32, ptr %23, align 4, !tbaa !9
  %215 = icmp eq i32 %214, 0
  br i1 %215, label %216, label %221

216:                                              ; preds = %213
  %217 = load ptr, ptr %22, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.tiff, ptr %217, i32 0, i32 3
  %219 = load i32, ptr %218, align 8, !tbaa !33
  %220 = and i32 %219, -32769
  store i32 %220, ptr %218, align 8, !tbaa !33
  br label %221

221:                                              ; preds = %216, %213
  br label %227

222:                                              ; preds = %148
  %223 = load ptr, ptr %22, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.tiff, ptr %223, i32 0, i32 3
  %225 = load i32, ptr %224, align 8, !tbaa !33
  %226 = or i32 %225, 65536
  store i32 %226, ptr %224, align 8, !tbaa !33
  br label %227

227:                                              ; preds = %222, %221, %212, %203, %194, %178, %170, %162, %161, %148, %148
  br label %228

228:                                              ; preds = %227
  %229 = load ptr, ptr %24, align 8, !tbaa !5
  %230 = getelementptr inbounds i8, ptr %229, i32 1
  store ptr %230, ptr %24, align 8, !tbaa !5
  br label %144, !llvm.loop !35

231:                                              ; preds = %144
  %232 = load ptr, ptr %22, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.tiff, ptr %232, i32 0, i32 2
  %234 = load i32, ptr %233, align 4, !tbaa !20
  %235 = and i32 %234, 512
  %236 = icmp ne i32 %235, 0
  br i1 %236, label %248, label %237

237:                                              ; preds = %231
  %238 = load ptr, ptr %22, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.tiff, ptr %238, i32 0, i32 52
  %240 = load ptr, ptr %239, align 8, !tbaa !26
  %241 = load ptr, ptr %22, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.tiff, ptr %241, i32 0, i32 51
  %243 = load ptr, ptr %242, align 8, !tbaa !25
  %244 = load ptr, ptr %22, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.tiff, ptr %244, i32 0, i32 9
  %246 = call i32 %240(ptr noundef %243, ptr noundef %245, i32 noundef 8)
  %247 = icmp eq i32 %246, 8
  br i1 %247, label %327, label %248

248:                                              ; preds = %237, %231
  %249 = load ptr, ptr %22, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.tiff, ptr %249, i32 0, i32 2
  %251 = load i32, ptr %250, align 4, !tbaa !20
  %252 = icmp eq i32 %251, 0
  br i1 %252, label %253, label %258

253:                                              ; preds = %248
  %254 = load ptr, ptr %22, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.tiff, ptr %254, i32 0, i32 51
  %256 = load ptr, ptr %255, align 8, !tbaa !25
  %257 = load ptr, ptr %12, align 8, !tbaa !5
  call void (ptr, ptr, ptr, ...) @TIFFErrorExt(ptr noundef %256, ptr noundef %257, ptr noundef @.str.3)
  br label %490

258:                                              ; preds = %248
  %259 = load ptr, ptr %22, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.tiff, ptr %259, i32 0, i32 3
  %261 = load i32, ptr %260, align 8, !tbaa !33
  %262 = and i32 %261, 128
  %263 = icmp ne i32 %262, 0
  %264 = zext i1 %263 to i64
  %265 = select i1 %263, i32 19789, i32 18761
  %266 = trunc i32 %265 to i16
  %267 = load ptr, ptr %22, align 8, !tbaa !5
  %268 = getelementptr inbounds %struct.tiff, ptr %267, i32 0, i32 9
  %269 = getelementptr inbounds %struct.TIFFHeader, ptr %268, i32 0, i32 0
  store i16 %266, ptr %269, align 8, !tbaa !37
  %270 = load ptr, ptr %22, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.tiff, ptr %270, i32 0, i32 9
  %272 = getelementptr inbounds %struct.TIFFHeader, ptr %271, i32 0, i32 1
  store i16 42, ptr %272, align 2, !tbaa !38
  %273 = load ptr, ptr %22, align 8, !tbaa !5
  %274 = getelementptr inbounds %struct.tiff, ptr %273, i32 0, i32 3
  %275 = load i32, ptr %274, align 8, !tbaa !33
  %276 = and i32 %275, 128
  %277 = icmp ne i32 %276, 0
  br i1 %277, label %278, label %282

278:                                              ; preds = %258
  %279 = load ptr, ptr %22, align 8, !tbaa !5
  %280 = getelementptr inbounds %struct.tiff, ptr %279, i32 0, i32 9
  %281 = getelementptr inbounds %struct.TIFFHeader, ptr %280, i32 0, i32 1
  call void @TIFFSwabShort(ptr noundef %281)
  br label %282

282:                                              ; preds = %278, %258
  %283 = load ptr, ptr %22, align 8, !tbaa !5
  %284 = getelementptr inbounds %struct.tiff, ptr %283, i32 0, i32 9
  %285 = getelementptr inbounds %struct.TIFFHeader, ptr %284, i32 0, i32 2
  store i32 0, ptr %285, align 4, !tbaa !39
  %286 = load ptr, ptr %22, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.tiff, ptr %286, i32 0, i32 54
  %288 = load ptr, ptr %287, align 8, !tbaa !28
  %289 = load ptr, ptr %22, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.tiff, ptr %289, i32 0, i32 51
  %291 = load ptr, ptr %290, align 8, !tbaa !25
  %292 = call i32 %288(ptr noundef %291, i32 noundef 0, i32 noundef 0)
  %293 = load ptr, ptr %22, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.tiff, ptr %293, i32 0, i32 53
  %295 = load ptr, ptr %294, align 8, !tbaa !27
  %296 = load ptr, ptr %22, align 8, !tbaa !5
  %297 = getelementptr inbounds %struct.tiff, ptr %296, i32 0, i32 51
  %298 = load ptr, ptr %297, align 8, !tbaa !25
  %299 = load ptr, ptr %22, align 8, !tbaa !5
  %300 = getelementptr inbounds %struct.tiff, ptr %299, i32 0, i32 9
  %301 = call i32 %295(ptr noundef %298, ptr noundef %300, i32 noundef 8)
  %302 = icmp eq i32 %301, 8
  br i1 %302, label %308, label %303

303:                                              ; preds = %282
  %304 = load ptr, ptr %22, align 8, !tbaa !5
  %305 = getelementptr inbounds %struct.tiff, ptr %304, i32 0, i32 51
  %306 = load ptr, ptr %305, align 8, !tbaa !25
  %307 = load ptr, ptr %12, align 8, !tbaa !5
  call void (ptr, ptr, ptr, ...) @TIFFErrorExt(ptr noundef %306, ptr noundef %307, ptr noundef @.str.4)
  br label %490

308:                                              ; preds = %282
  %309 = load ptr, ptr %22, align 8, !tbaa !5
  %310 = load ptr, ptr %22, align 8, !tbaa !5
  %311 = getelementptr inbounds %struct.tiff, ptr %310, i32 0, i32 9
  %312 = getelementptr inbounds %struct.TIFFHeader, ptr %311, i32 0, i32 0
  %313 = load i16, ptr %312, align 8, !tbaa !37
  %314 = zext i16 %313 to i32
  call void @TIFFInitOrder(ptr noundef %309, i32 noundef %314)
  %315 = load ptr, ptr %22, align 8, !tbaa !5
  %316 = call i32 @TIFFDefaultDirectory(ptr noundef %315)
  %317 = icmp ne i32 %316, 0
  br i1 %317, label %319, label %318

318:                                              ; preds = %308
  br label %490

319:                                              ; preds = %308
  %320 = load ptr, ptr %22, align 8, !tbaa !5
  %321 = getelementptr inbounds %struct.tiff, ptr %320, i32 0, i32 4
  store i32 0, ptr %321, align 4, !tbaa !40
  %322 = load ptr, ptr %22, align 8, !tbaa !5
  %323 = getelementptr inbounds %struct.tiff, ptr %322, i32 0, i32 6
  store ptr null, ptr %323, align 8, !tbaa !41
  %324 = load ptr, ptr %22, align 8, !tbaa !5
  %325 = getelementptr inbounds %struct.tiff, ptr %324, i32 0, i32 7
  store i16 0, ptr %325, align 8, !tbaa !42
  %326 = load ptr, ptr %22, align 8, !tbaa !5
  store ptr %326, ptr %11, align 8
  store i32 1, ptr %25, align 4
  br label %495

327:                                              ; preds = %237
  %328 = load ptr, ptr %22, align 8, !tbaa !5
  %329 = getelementptr inbounds %struct.tiff, ptr %328, i32 0, i32 9
  %330 = getelementptr inbounds %struct.TIFFHeader, ptr %329, i32 0, i32 0
  %331 = load i16, ptr %330, align 8, !tbaa !37
  %332 = zext i16 %331 to i32
  %333 = icmp ne i32 %332, 19789
  br i1 %333, label %334, label %363

334:                                              ; preds = %327
  %335 = load ptr, ptr %22, align 8, !tbaa !5
  %336 = getelementptr inbounds %struct.tiff, ptr %335, i32 0, i32 9
  %337 = getelementptr inbounds %struct.TIFFHeader, ptr %336, i32 0, i32 0
  %338 = load i16, ptr %337, align 8, !tbaa !37
  %339 = zext i16 %338 to i32
  %340 = icmp ne i32 %339, 18761
  br i1 %340, label %341, label %363

341:                                              ; preds = %334
  %342 = load ptr, ptr %22, align 8, !tbaa !5
  %343 = getelementptr inbounds %struct.tiff, ptr %342, i32 0, i32 9
  %344 = getelementptr inbounds %struct.TIFFHeader, ptr %343, i32 0, i32 0
  %345 = load i16, ptr %344, align 8, !tbaa !37
  %346 = zext i16 %345 to i32
  %347 = icmp ne i32 %346, 20549
  br i1 %347, label %348, label %363

348:                                              ; preds = %341
  %349 = load ptr, ptr %22, align 8, !tbaa !5
  %350 = getelementptr inbounds %struct.tiff, ptr %349, i32 0, i32 51
  %351 = load ptr, ptr %350, align 8, !tbaa !25
  %352 = load ptr, ptr %12, align 8, !tbaa !5
  %353 = load ptr, ptr %22, align 8, !tbaa !5
  %354 = getelementptr inbounds %struct.tiff, ptr %353, i32 0, i32 9
  %355 = getelementptr inbounds %struct.TIFFHeader, ptr %354, i32 0, i32 0
  %356 = load i16, ptr %355, align 8, !tbaa !37
  %357 = zext i16 %356 to i32
  %358 = load ptr, ptr %22, align 8, !tbaa !5
  %359 = getelementptr inbounds %struct.tiff, ptr %358, i32 0, i32 9
  %360 = getelementptr inbounds %struct.TIFFHeader, ptr %359, i32 0, i32 0
  %361 = load i16, ptr %360, align 8, !tbaa !37
  %362 = zext i16 %361 to i32
  call void (ptr, ptr, ptr, ...) @TIFFErrorExt(ptr noundef %351, ptr noundef %352, ptr noundef @.str.5, i32 noundef %357, i32 noundef %362)
  br label %490

363:                                              ; preds = %341, %334, %327
  %364 = load ptr, ptr %22, align 8, !tbaa !5
  %365 = load ptr, ptr %22, align 8, !tbaa !5
  %366 = getelementptr inbounds %struct.tiff, ptr %365, i32 0, i32 9
  %367 = getelementptr inbounds %struct.TIFFHeader, ptr %366, i32 0, i32 0
  %368 = load i16, ptr %367, align 8, !tbaa !37
  %369 = zext i16 %368 to i32
  call void @TIFFInitOrder(ptr noundef %364, i32 noundef %369)
  %370 = load ptr, ptr %22, align 8, !tbaa !5
  %371 = getelementptr inbounds %struct.tiff, ptr %370, i32 0, i32 3
  %372 = load i32, ptr %371, align 8, !tbaa !33
  %373 = and i32 %372, 128
  %374 = icmp ne i32 %373, 0
  br i1 %374, label %375, label %382

375:                                              ; preds = %363
  %376 = load ptr, ptr %22, align 8, !tbaa !5
  %377 = getelementptr inbounds %struct.tiff, ptr %376, i32 0, i32 9
  %378 = getelementptr inbounds %struct.TIFFHeader, ptr %377, i32 0, i32 1
  call void @TIFFSwabShort(ptr noundef %378)
  %379 = load ptr, ptr %22, align 8, !tbaa !5
  %380 = getelementptr inbounds %struct.tiff, ptr %379, i32 0, i32 9
  %381 = getelementptr inbounds %struct.TIFFHeader, ptr %380, i32 0, i32 2
  call void @TIFFSwabLong(ptr noundef %381)
  br label %382

382:                                              ; preds = %375, %363
  %383 = load ptr, ptr %22, align 8, !tbaa !5
  %384 = getelementptr inbounds %struct.tiff, ptr %383, i32 0, i32 9
  %385 = getelementptr inbounds %struct.TIFFHeader, ptr %384, i32 0, i32 1
  %386 = load i16, ptr %385, align 2, !tbaa !38
  %387 = zext i16 %386 to i32
  %388 = icmp eq i32 %387, 43
  br i1 %388, label %389, label %394

389:                                              ; preds = %382
  %390 = load ptr, ptr %22, align 8, !tbaa !5
  %391 = getelementptr inbounds %struct.tiff, ptr %390, i32 0, i32 51
  %392 = load ptr, ptr %391, align 8, !tbaa !25
  %393 = load ptr, ptr %12, align 8, !tbaa !5
  call void (ptr, ptr, ptr, ...) @TIFFErrorExt(ptr noundef %392, ptr noundef %393, ptr noundef @.str.6)
  br label %490

394:                                              ; preds = %382
  %395 = load ptr, ptr %22, align 8, !tbaa !5
  %396 = getelementptr inbounds %struct.tiff, ptr %395, i32 0, i32 9
  %397 = getelementptr inbounds %struct.TIFFHeader, ptr %396, i32 0, i32 1
  %398 = load i16, ptr %397, align 2, !tbaa !38
  %399 = zext i16 %398 to i32
  %400 = icmp ne i32 %399, 42
  br i1 %400, label %401, label %416

401:                                              ; preds = %394
  %402 = load ptr, ptr %22, align 8, !tbaa !5
  %403 = getelementptr inbounds %struct.tiff, ptr %402, i32 0, i32 51
  %404 = load ptr, ptr %403, align 8, !tbaa !25
  %405 = load ptr, ptr %12, align 8, !tbaa !5
  %406 = load ptr, ptr %22, align 8, !tbaa !5
  %407 = getelementptr inbounds %struct.tiff, ptr %406, i32 0, i32 9
  %408 = getelementptr inbounds %struct.TIFFHeader, ptr %407, i32 0, i32 1
  %409 = load i16, ptr %408, align 2, !tbaa !38
  %410 = zext i16 %409 to i32
  %411 = load ptr, ptr %22, align 8, !tbaa !5
  %412 = getelementptr inbounds %struct.tiff, ptr %411, i32 0, i32 9
  %413 = getelementptr inbounds %struct.TIFFHeader, ptr %412, i32 0, i32 1
  %414 = load i16, ptr %413, align 2, !tbaa !38
  %415 = zext i16 %414 to i32
  call void (ptr, ptr, ptr, ...) @TIFFErrorExt(ptr noundef %404, ptr noundef %405, ptr noundef @.str.7, i32 noundef %410, i32 noundef %415)
  br label %490

416:                                              ; preds = %394
  %417 = load ptr, ptr %22, align 8, !tbaa !5
  %418 = getelementptr inbounds %struct.tiff, ptr %417, i32 0, i32 3
  %419 = load i32, ptr %418, align 8, !tbaa !33
  %420 = or i32 %419, 512
  store i32 %420, ptr %418, align 8, !tbaa !33
  %421 = load ptr, ptr %22, align 8, !tbaa !5
  %422 = getelementptr inbounds %struct.tiff, ptr %421, i32 0, i32 43
  store ptr null, ptr %422, align 8, !tbaa !43
  %423 = load ptr, ptr %22, align 8, !tbaa !5
  %424 = getelementptr inbounds %struct.tiff, ptr %423, i32 0, i32 45
  store ptr null, ptr %424, align 8, !tbaa !44
  %425 = load ptr, ptr %22, align 8, !tbaa !5
  %426 = getelementptr inbounds %struct.tiff, ptr %425, i32 0, i32 44
  store i32 0, ptr %426, align 8, !tbaa !45
  %427 = load ptr, ptr %22, align 8, !tbaa !5
  %428 = getelementptr inbounds %struct.tiff, ptr %427, i32 0, i32 3
  %429 = load i32, ptr %428, align 8, !tbaa !33
  %430 = and i32 %429, 65536
  %431 = icmp ne i32 %430, 0
  br i1 %431, label %432, label %434

432:                                              ; preds = %416
  %433 = load ptr, ptr %22, align 8, !tbaa !5
  store ptr %433, ptr %11, align 8
  store i32 1, ptr %25, align 4
  br label %495

434:                                              ; preds = %416
  %435 = load ptr, ptr %13, align 8, !tbaa !5
  %436 = getelementptr inbounds i8, ptr %435, i64 0
  %437 = load i8, ptr %436, align 1, !tbaa !34
  %438 = sext i8 %437 to i32
  switch i32 %438, label %489 [
    i32 114, label %439
    i32 97, label %482
  ]

439:                                              ; preds = %434
  %440 = load ptr, ptr %22, align 8, !tbaa !5
  %441 = getelementptr inbounds %struct.tiff, ptr %440, i32 0, i32 9
  %442 = getelementptr inbounds %struct.TIFFHeader, ptr %441, i32 0, i32 2
  %443 = load i32, ptr %442, align 4, !tbaa !39
  %444 = load ptr, ptr %22, align 8, !tbaa !5
  %445 = getelementptr inbounds %struct.tiff, ptr %444, i32 0, i32 5
  store i32 %443, ptr %445, align 8, !tbaa !46
  %446 = load ptr, ptr %22, align 8, !tbaa !5
  %447 = getelementptr inbounds %struct.tiff, ptr %446, i32 0, i32 3
  %448 = load i32, ptr %447, align 8, !tbaa !33
  %449 = and i32 %448, 2048
  %450 = icmp ne i32 %449, 0
  br i1 %450, label %451, label %469

451:                                              ; preds = %439
  %452 = load ptr, ptr %22, align 8, !tbaa !5
  %453 = getelementptr inbounds %struct.tiff, ptr %452, i32 0, i32 49
  %454 = load ptr, ptr %453, align 8, !tbaa !31
  %455 = load ptr, ptr %22, align 8, !tbaa !5
  %456 = getelementptr inbounds %struct.tiff, ptr %455, i32 0, i32 51
  %457 = load ptr, ptr %456, align 8, !tbaa !25
  %458 = load ptr, ptr %22, align 8, !tbaa !5
  %459 = getelementptr inbounds %struct.tiff, ptr %458, i32 0, i32 47
  %460 = load ptr, ptr %22, align 8, !tbaa !5
  %461 = getelementptr inbounds %struct.tiff, ptr %460, i32 0, i32 48
  %462 = call i32 %454(ptr noundef %457, ptr noundef %459, ptr noundef %461)
  %463 = icmp ne i32 %462, 0
  br i1 %463, label %469, label %464

464:                                              ; preds = %451
  %465 = load ptr, ptr %22, align 8, !tbaa !5
  %466 = getelementptr inbounds %struct.tiff, ptr %465, i32 0, i32 3
  %467 = load i32, ptr %466, align 8, !tbaa !33
  %468 = and i32 %467, -2049
  store i32 %468, ptr %466, align 8, !tbaa !33
  br label %469

469:                                              ; preds = %464, %451, %439
  %470 = load ptr, ptr %22, align 8, !tbaa !5
  %471 = call i32 @TIFFReadDirectory(ptr noundef %470)
  %472 = icmp ne i32 %471, 0
  br i1 %472, label %473, label %481

473:                                              ; preds = %469
  %474 = load ptr, ptr %22, align 8, !tbaa !5
  %475 = getelementptr inbounds %struct.tiff, ptr %474, i32 0, i32 46
  store i32 -1, ptr %475, align 8, !tbaa !47
  %476 = load ptr, ptr %22, align 8, !tbaa !5
  %477 = getelementptr inbounds %struct.tiff, ptr %476, i32 0, i32 3
  %478 = load i32, ptr %477, align 8, !tbaa !33
  %479 = or i32 %478, 16
  store i32 %479, ptr %477, align 8, !tbaa !33
  %480 = load ptr, ptr %22, align 8, !tbaa !5
  store ptr %480, ptr %11, align 8
  store i32 1, ptr %25, align 4
  br label %495

481:                                              ; preds = %469
  br label %489

482:                                              ; preds = %434
  %483 = load ptr, ptr %22, align 8, !tbaa !5
  %484 = call i32 @TIFFDefaultDirectory(ptr noundef %483)
  %485 = icmp ne i32 %484, 0
  br i1 %485, label %487, label %486

486:                                              ; preds = %482
  br label %490

487:                                              ; preds = %482
  %488 = load ptr, ptr %22, align 8, !tbaa !5
  store ptr %488, ptr %11, align 8
  store i32 1, ptr %25, align 4
  br label %495

489:                                              ; preds = %481, %434
  br label %490

490:                                              ; preds = %489, %486, %401, %389, %348, %318, %303, %253
  %491 = load ptr, ptr %22, align 8, !tbaa !5
  %492 = getelementptr inbounds %struct.tiff, ptr %491, i32 0, i32 2
  store i32 0, ptr %492, align 4, !tbaa !20
  %493 = load ptr, ptr %22, align 8, !tbaa !5
  call void @TIFFCleanup(ptr noundef %493)
  br label %494

494:                                              ; preds = %490, %83, %40, %30
  store ptr null, ptr %11, align 8
  store i32 1, ptr %25, align 4
  br label %495

495:                                              ; preds = %494, %487, %473, %432, %319
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  %496 = load ptr, ptr %11, align 8
  ret ptr %496
}

declare ptr @_TIFFmalloc(i32 noundef) #2

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

declare void @_TIFFmemset(ptr noundef, i32 noundef, i32 noundef) #2

; Function Attrs: nounwind
declare ptr @strcpy(ptr noundef, ptr noundef) #4

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

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

declare void @_TIFFSetDefaultCompressionState(ptr noundef) #2

declare void @TIFFSwabShort(ptr noundef) #2

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

declare i32 @TIFFDefaultDirectory(ptr noundef) #2

declare void @TIFFSwabLong(ptr noundef) #2

declare i32 @TIFFReadDirectory(ptr noundef) #2

declare void @TIFFCleanup(ptr noundef) #2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"tiff", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !6, i64 32, !13, i64 40, !14, i64 48, !17, i64 320, !6, i64 328, !6, i64 336, !10, i64 344, !13, i64 348, !10, i64 352, !10, i64 356, !10, i64 360, !13, i64 364, !10, i64 368, !10, i64 372, !10, i64 376, !10, i64 380, !10, i64 384, !6, i64 392, !6, i64 400, !6, i64 408, !10, i64 416, !6, i64 424, !6, i64 432, !6, i64 440, !6, i64 448, !6, i64 456, !6, i64 464, !6, i64 472, !6, i64 480, !6, i64 488, !6, i64 496, !6, i64 504, !6, i64 512, !6, i64 520, !6, i64 528, !10, i64 536, !10, i64 540, !6, i64 544, !10, i64 552, !6, i64 560, !10, i64 568, !6, i64 576, !10, i64 584, !6, i64 592, !6, i64 600, !6, i64 608, !6, i64 616, !6, i64 624, !6, i64 632, !6, i64 640, !6, i64 648, !6, i64 656, !6, i64 664, !18, i64 672, !6, i64 680, !19, i64 688, !6, i64 712}
!13 = !{!"short", !7, i64 0}
!14 = !{!"", !7, i64 0, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !13, i64 60, !13, i64 62, !13, i64 64, !13, i64 66, !13, i64 68, !13, i64 70, !13, i64 72, !13, i64 74, !10, i64 76, !13, i64 80, !13, i64 82, !15, i64 88, !15, i64 96, !16, i64 104, !16, i64 108, !13, i64 112, !13, i64 114, !16, i64 116, !16, i64 120, !7, i64 124, !7, i64 128, !7, i64 152, !13, i64 156, !6, i64 160, !10, i64 168, !10, i64 172, !6, i64 176, !6, i64 184, !10, i64 192, !13, i64 196, !6, i64 200, !7, i64 208, !13, i64 212, !7, i64 216, !10, i64 240, !6, i64 248, !10, i64 256, !6, i64 264}
!15 = !{!"double", !7, i64 0}
!16 = !{!"float", !7, i64 0}
!17 = !{!"", !13, i64 0, !13, i64 2, !10, i64 4}
!18 = !{!"long", !7, i64 0}
!19 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!12, !10, i64 12}
!21 = !{!12, !13, i64 348}
!22 = !{!12, !10, i64 356}
!23 = !{!12, !10, i64 352}
!24 = !{!12, !10, i64 344}
!25 = !{!12, !6, i64 608}
!26 = !{!12, !6, i64 616}
!27 = !{!12, !6, i64 624}
!28 = !{!12, !6, i64 632}
!29 = !{!12, !6, i64 640}
!30 = !{!12, !6, i64 648}
!31 = !{!12, !6, i64 592}
!32 = !{!12, !6, i64 600}
!33 = !{!12, !10, i64 16}
!34 = !{!7, !7, i64 0}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}
!37 = !{!12, !13, i64 320}
!38 = !{!12, !13, i64 322}
!39 = !{!12, !10, i64 324}
!40 = !{!12, !10, i64 20}
!41 = !{!12, !6, i64 32}
!42 = !{!12, !13, i64 40}
!43 = !{!12, !6, i64 544}
!44 = !{!12, !6, i64 560}
!45 = !{!12, !10, i64 552}
!46 = !{!12, !10, i64 24}
!47 = !{!12, !10, i64 568}


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

@TIFFClientOpen.module = external hidden constant [15 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [46 x i8], align 1

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

declare void @TIFFErrorExt(ptr noundef, ptr noundef, ptr noundef, ...) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local ptr @TIFFClientOpen(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9) local_unnamed_addr #0 {
  %11 = tail call i32 @_TIFFgetMode(ptr noundef %1, ptr noundef nonnull @TIFFClientOpen.module)
  %12 = icmp eq i32 %11, -1
  br i1 %12, label %202, label %13

13:                                               ; preds = %10
  %14 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %0) #4
  %15 = trunc i64 %14 to i32
  %16 = add i32 %15, 721
  %17 = tail call ptr @_TIFFmalloc(i32 noundef %16) #5
  %18 = icmp eq ptr %17, null
  br i1 %18, label %19, label %20

19:                                               ; preds = %13
  tail call void (ptr, ptr, ptr, ...) @TIFFErrorExt(ptr noundef %2, ptr noundef nonnull @TIFFClientOpen.module, ptr noundef nonnull @.str.1, ptr noundef %0) #5
  br label %202

20:                                               ; preds = %13
  tail call void @_TIFFmemset(ptr noundef nonnull %17, i32 noundef 0, i32 noundef 720) #5
  %21 = getelementptr inbounds i8, ptr %17, i64 720
  store ptr %21, ptr %17, align 8, !tbaa !5
  %22 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %21, ptr noundef nonnull dereferenceable(1) %0) #5
  %23 = and i32 %11, -577
  %24 = getelementptr inbounds i8, ptr %17, i64 12
  store i32 %23, ptr %24, align 4, !tbaa !18
  %25 = getelementptr inbounds i8, ptr %17, i64 348
  store i16 -1, ptr %25, align 4, !tbaa !19
  %26 = getelementptr inbounds i8, ptr %17, i64 356
  store i32 0, ptr %26, align 4, !tbaa !20
  %27 = getelementptr inbounds i8, ptr %17, i64 352
  store i32 -1, ptr %27, align 8, !tbaa !21
  %28 = getelementptr inbounds i8, ptr %17, i64 344
  store i32 -1, ptr %28, align 8, !tbaa !22
  %29 = getelementptr inbounds i8, ptr %17, i64 608
  store ptr %2, ptr %29, align 8, !tbaa !23
  %30 = insertelement <4 x ptr> poison, ptr %3, i64 0
  %31 = insertelement <4 x ptr> %30, ptr %4, i64 1
  %32 = insertelement <4 x ptr> %31, ptr %5, i64 2
  %33 = insertelement <4 x ptr> %32, ptr %6, i64 3
  %34 = icmp ne ptr %7, null
  %35 = icmp eq <4 x ptr> %33, zeroinitializer
  %36 = bitcast <4 x i1> %35 to i4
  %37 = icmp eq i4 %36, 0
  %op.rdx = and i1 %37, %34
  br i1 %op.rdx, label %39, label %38

38:                                               ; preds = %20
  tail call void (ptr, ptr, ptr, ...) @TIFFErrorExt(ptr noundef %2, ptr noundef nonnull @TIFFClientOpen.module, ptr noundef nonnull @.str.2) #5
  br label %202

39:                                               ; preds = %20
  %40 = getelementptr inbounds i8, ptr %17, i64 616
  store ptr %3, ptr %40, align 8, !tbaa !24
  %41 = getelementptr inbounds i8, ptr %17, i64 624
  store ptr %4, ptr %41, align 8, !tbaa !25
  %42 = getelementptr inbounds i8, ptr %17, i64 632
  store ptr %5, ptr %42, align 8, !tbaa !26
  %43 = getelementptr inbounds i8, ptr %17, i64 640
  store ptr %6, ptr %43, align 8, !tbaa !27
  %44 = getelementptr inbounds i8, ptr %17, i64 648
  store ptr %7, ptr %44, align 8, !tbaa !28
  %45 = insertelement <2 x ptr> poison, ptr %8, i64 0
  %46 = insertelement <2 x ptr> %45, ptr %9, i64 1
  %47 = icmp eq <2 x ptr> %46, zeroinitializer
  %48 = getelementptr inbounds i8, ptr %17, i64 592
  %49 = select <2 x i1> %47, <2 x ptr> <ptr @_tiffDummyMapProc, ptr @_tiffDummyUnmapProc>, <2 x ptr> %46
  store <2 x ptr> %49, ptr %48, align 8
  tail call void @_TIFFSetDefaultCompressionState(ptr noundef nonnull %17) #5
  %50 = getelementptr inbounds i8, ptr %17, i64 16
  %51 = icmp eq i32 %11, 0
  %spec.select = select i1 %51, i32 2049, i32 1
  store i32 %spec.select, ptr %50, align 8, !tbaa !29
  switch i32 %11, label %.thread186 [
    i32 2, label %53
    i32 0, label %53
  ]

.thread186:                                       ; preds = %39
  %52 = and i32 %11, 64
  %.not178187 = icmp eq i32 %52, 0
  br i1 %.not178187, label %.split.split.us.preheader, label %.split.split

.split.split.us.preheader:                        ; preds = %53, %.thread186
  %.ph = phi i32 [ %54, %53 ], [ %spec.select, %.thread186 ]
  br label %.split.split.us

53:                                               ; preds = %39, %39
  %54 = or disjoint i32 %spec.select, 32768
  store i32 %54, ptr %50, align 8, !tbaa !29
  br i1 %51, label %.split.us.split.us, label %.split.split.us.preheader

.split.us.split.us:                               ; preds = %53, %76
  %55 = phi i32 [ %77, %76 ], [ %54, %53 ]
  %.0.us.us = phi ptr [ %78, %76 ], [ %1, %53 ]
  %56 = load i8, ptr %.0.us.us, align 1, !tbaa !30
  switch i8 %56, label %76 [
    i8 0, label %.split180.us
    i8 99, label %57
    i8 104, label %74
    i8 66, label %71
    i8 76, label %68
    i8 72, label %65
    i8 77, label %63
    i8 109, label %61
    i8 67, label %59
  ]

57:                                               ; preds = %.split.us.split.us
  %58 = and i32 %55, -32769
  br label %.sink.split

59:                                               ; preds = %.split.us.split.us
  %60 = or i32 %55, 32768
  br label %.sink.split

61:                                               ; preds = %.split.us.split.us
  %62 = and i32 %55, -2049
  br label %.sink.split

63:                                               ; preds = %.split.us.split.us
  %64 = or i32 %55, 2048
  br label %.sink.split

65:                                               ; preds = %.split.us.split.us
  %66 = and i32 %55, -4
  %67 = or disjoint i32 %66, 2
  br label %.sink.split

68:                                               ; preds = %.split.us.split.us
  %69 = and i32 %55, -4
  %70 = or disjoint i32 %69, 2
  br label %.sink.split

71:                                               ; preds = %.split.us.split.us
  %72 = and i32 %55, -4
  %73 = or disjoint i32 %72, 1
  br label %.sink.split

74:                                               ; preds = %.split.us.split.us
  %75 = or i32 %55, 65536
  br label %.sink.split

.sink.split:                                      ; preds = %57, %59, %61, %63, %65, %68, %71, %74
  %.sink = phi i32 [ %75, %74 ], [ %73, %71 ], [ %70, %68 ], [ %67, %65 ], [ %64, %63 ], [ %62, %61 ], [ %60, %59 ], [ %58, %57 ]
  store i32 %.sink, ptr %50, align 8, !tbaa !29
  br label %76

76:                                               ; preds = %.sink.split, %.split.us.split.us
  %77 = phi i32 [ %55, %.split.us.split.us ], [ %.sink, %.sink.split ]
  %78 = getelementptr inbounds i8, ptr %.0.us.us, i64 1
  br label %.split.us.split.us, !llvm.loop !31

.split.split.us:                                  ; preds = %.split.split.us.preheader, %92
  %79 = phi i32 [ %93, %92 ], [ %.ph, %.split.split.us.preheader ]
  %.0.us181 = phi ptr [ %94, %92 ], [ %1, %.split.split.us.preheader ]
  %80 = load i8, ptr %.0.us181, align 1, !tbaa !30
  switch i8 %80, label %92 [
    i8 0, label %.split180.us
    i8 72, label %81
    i8 104, label %90
    i8 66, label %87
    i8 76, label %84
  ]

81:                                               ; preds = %.split.split.us
  %82 = and i32 %79, -4
  %83 = or disjoint i32 %82, 2
  br label %.sink.split194

84:                                               ; preds = %.split.split.us
  %85 = and i32 %79, -4
  %86 = or disjoint i32 %85, 2
  br label %.sink.split194

87:                                               ; preds = %.split.split.us
  %88 = and i32 %79, -4
  %89 = or disjoint i32 %88, 1
  br label %.sink.split194

90:                                               ; preds = %.split.split.us
  %91 = or i32 %79, 65536
  br label %.sink.split194

.sink.split194:                                   ; preds = %81, %84, %87, %90
  %.sink196 = phi i32 [ %91, %90 ], [ %89, %87 ], [ %86, %84 ], [ %83, %81 ]
  store i32 %.sink196, ptr %50, align 8, !tbaa !29
  br label %92

92:                                               ; preds = %.sink.split194, %.split.split.us
  %93 = phi i32 [ %79, %.split.split.us ], [ %.sink196, %.sink.split194 ]
  %94 = getelementptr inbounds i8, ptr %.0.us181, i64 1
  br label %.split.split.us, !llvm.loop !31

.split.split:                                     ; preds = %.thread186, %110
  %95 = phi i32 [ %111, %110 ], [ %spec.select, %.thread186 ]
  %.0 = phi ptr [ %112, %110 ], [ %1, %.thread186 ]
  %96 = load i8, ptr %.0, align 1, !tbaa !30
  switch i8 %96, label %110 [
    i8 0, label %.split180.us
    i8 98, label %97
    i8 104, label %108
    i8 66, label %99
    i8 76, label %102
    i8 72, label %105
  ]

97:                                               ; preds = %.split.split
  %98 = or i32 %95, 128
  br label %.sink.split197

99:                                               ; preds = %.split.split
  %100 = and i32 %95, -4
  %101 = or disjoint i32 %100, 1
  br label %.sink.split197

102:                                              ; preds = %.split.split
  %103 = and i32 %95, -4
  %104 = or disjoint i32 %103, 2
  br label %.sink.split197

105:                                              ; preds = %.split.split
  %106 = and i32 %95, -4
  %107 = or disjoint i32 %106, 2
  br label %.sink.split197

108:                                              ; preds = %.split.split
  %109 = or i32 %95, 65536
  br label %.sink.split197

.sink.split197:                                   ; preds = %97, %108, %105, %102, %99
  %.sink199 = phi i32 [ %101, %99 ], [ %104, %102 ], [ %107, %105 ], [ %109, %108 ], [ %98, %97 ]
  store i32 %.sink199, ptr %50, align 8, !tbaa !29
  br label %110

110:                                              ; preds = %.sink.split197, %.split.split
  %111 = phi i32 [ %95, %.split.split ], [ %.sink199, %.sink.split197 ]
  %112 = getelementptr inbounds i8, ptr %.0, i64 1
  br label %.split.split, !llvm.loop !31

.split180.us:                                     ; preds = %.split.us.split.us, %.split.split, %.split.split.us
  %113 = phi i32 [ %79, %.split.split.us ], [ %95, %.split.split ], [ %55, %.split.us.split.us ]
  %114 = load i32, ptr %24, align 4, !tbaa !18
  %115 = and i32 %114, 512
  %.not164 = icmp eq i32 %115, 0
  br i1 %.not164, label %116, label %.thread

116:                                              ; preds = %.split180.us
  %117 = load ptr, ptr %40, align 8, !tbaa !24
  %118 = load ptr, ptr %29, align 8, !tbaa !23
  %119 = getelementptr inbounds i8, ptr %17, i64 320
  %120 = tail call i32 %117(ptr noundef %118, ptr noundef nonnull %119, i32 noundef 8) #5
  %121 = icmp eq i32 %120, 8
  br i1 %121, label %151, label %122

122:                                              ; preds = %116
  %.pr = load i32, ptr %24, align 4, !tbaa !18
  %123 = icmp eq i32 %.pr, 0
  br i1 %123, label %124, label %..thread_crit_edge

..thread_crit_edge:                               ; preds = %122
  %.pre = load i32, ptr %50, align 8, !tbaa !29
  br label %.thread

124:                                              ; preds = %122
  %125 = load ptr, ptr %29, align 8, !tbaa !23
  tail call void (ptr, ptr, ptr, ...) @TIFFErrorExt(ptr noundef %125, ptr noundef %0, ptr noundef nonnull @.str.3) #5
  br label %201

.thread:                                          ; preds = %..thread_crit_edge, %.split180.us
  %126 = phi i32 [ %.pre, %..thread_crit_edge ], [ %113, %.split180.us ]
  %127 = and i32 %126, 128
  %.not175 = icmp eq i32 %127, 0
  %128 = select i1 %.not175, i16 18761, i16 19789
  %129 = getelementptr inbounds i8, ptr %17, i64 320
  store i16 %128, ptr %129, align 8, !tbaa !33
  %130 = getelementptr inbounds i8, ptr %17, i64 322
  store i16 42, ptr %130, align 2, !tbaa !34
  br i1 %.not175, label %132, label %131

131:                                              ; preds = %.thread
  tail call void @TIFFSwabShort(ptr noundef nonnull %130) #5
  br label %132

132:                                              ; preds = %131, %.thread
  %133 = getelementptr inbounds i8, ptr %17, i64 324
  store i32 0, ptr %133, align 4, !tbaa !35
  %134 = load ptr, ptr %42, align 8, !tbaa !26
  %135 = load ptr, ptr %29, align 8, !tbaa !23
  %136 = tail call i32 %134(ptr noundef %135, i32 noundef 0, i32 noundef 0) #5
  %137 = load ptr, ptr %41, align 8, !tbaa !25
  %138 = load ptr, ptr %29, align 8, !tbaa !23
  %139 = tail call i32 %137(ptr noundef %138, ptr noundef nonnull %129, i32 noundef 8) #5
  %140 = icmp eq i32 %139, 8
  br i1 %140, label %143, label %141

141:                                              ; preds = %132
  %142 = load ptr, ptr %29, align 8, !tbaa !23
  tail call void (ptr, ptr, ptr, ...) @TIFFErrorExt(ptr noundef %142, ptr noundef %0, ptr noundef nonnull @.str.4) #5
  br label %201

143:                                              ; preds = %132
  %144 = load i16, ptr %129, align 8, !tbaa !33
  %145 = zext i16 %144 to i32
  tail call void @TIFFInitOrder(ptr noundef nonnull %17, i32 noundef %145)
  %146 = tail call i32 @TIFFDefaultDirectory(ptr noundef nonnull %17) #5
  %.not177 = icmp eq i32 %146, 0
  br i1 %.not177, label %201, label %147

147:                                              ; preds = %143
  %148 = getelementptr inbounds i8, ptr %17, i64 20
  store i32 0, ptr %148, align 4, !tbaa !36
  %149 = getelementptr inbounds i8, ptr %17, i64 32
  store ptr null, ptr %149, align 8, !tbaa !37
  %150 = getelementptr inbounds i8, ptr %17, i64 40
  store i16 0, ptr %150, align 8, !tbaa !38
  br label %202

151:                                              ; preds = %116
  %152 = load i16, ptr %119, align 8, !tbaa !33
  %153 = zext i16 %152 to i32
  switch i16 %152, label %154 [
    i16 19789, label %156
    i16 18761, label %156
    i16 20549, label %156
  ]

154:                                              ; preds = %151
  %155 = load ptr, ptr %29, align 8, !tbaa !23
  tail call void (ptr, ptr, ptr, ...) @TIFFErrorExt(ptr noundef %155, ptr noundef %0, ptr noundef nonnull @.str.5, i32 noundef %153, i32 noundef %153) #5
  br label %201

156:                                              ; preds = %151, %151, %151
  tail call void @TIFFInitOrder(ptr noundef nonnull %17, i32 noundef %153)
  %157 = load i32, ptr %50, align 8, !tbaa !29
  %158 = and i32 %157, 128
  %.not168 = icmp eq i32 %158, 0
  br i1 %.not168, label %162, label %159

159:                                              ; preds = %156
  %160 = getelementptr inbounds i8, ptr %17, i64 322
  tail call void @TIFFSwabShort(ptr noundef nonnull %160) #5
  %161 = getelementptr inbounds i8, ptr %17, i64 324
  tail call void @TIFFSwabLong(ptr noundef nonnull %161) #5
  br label %162

162:                                              ; preds = %159, %156
  %163 = getelementptr inbounds i8, ptr %17, i64 322
  %164 = load i16, ptr %163, align 2, !tbaa !34
  switch i16 %164, label %167 [
    i16 43, label %165
    i16 42, label %170
  ]

165:                                              ; preds = %162
  %166 = load ptr, ptr %29, align 8, !tbaa !23
  tail call void (ptr, ptr, ptr, ...) @TIFFErrorExt(ptr noundef %166, ptr noundef %0, ptr noundef nonnull @.str.6) #5
  br label %201

167:                                              ; preds = %162
  %168 = zext i16 %164 to i32
  %169 = load ptr, ptr %29, align 8, !tbaa !23
  tail call void (ptr, ptr, ptr, ...) @TIFFErrorExt(ptr noundef %169, ptr noundef %0, ptr noundef nonnull @.str.7, i32 noundef %168, i32 noundef %168) #5
  br label %201

170:                                              ; preds = %162
  %171 = load i32, ptr %50, align 8, !tbaa !29
  %172 = or i32 %171, 512
  store i32 %172, ptr %50, align 8, !tbaa !29
  %173 = getelementptr inbounds i8, ptr %17, i64 544
  store ptr null, ptr %173, align 8, !tbaa !39
  %174 = getelementptr inbounds i8, ptr %17, i64 560
  store ptr null, ptr %174, align 8, !tbaa !40
  %175 = getelementptr inbounds i8, ptr %17, i64 552
  store i32 0, ptr %175, align 8, !tbaa !41
  %176 = and i32 %171, 65536
  %.not170 = icmp eq i32 %176, 0
  br i1 %.not170, label %177, label %202

177:                                              ; preds = %170
  %178 = load i8, ptr %1, align 1, !tbaa !30
  switch i8 %178, label %201 [
    i8 114, label %179
    i8 97, label %199
  ]

179:                                              ; preds = %177
  %180 = getelementptr inbounds i8, ptr %17, i64 324
  %181 = load i32, ptr %180, align 4, !tbaa !35
  %182 = getelementptr inbounds i8, ptr %17, i64 24
  store i32 %181, ptr %182, align 8, !tbaa !42
  %183 = and i32 %171, 2048
  %.not172 = icmp eq i32 %183, 0
  br i1 %.not172, label %193, label %184

184:                                              ; preds = %179
  %185 = load ptr, ptr %48, align 8, !tbaa !43
  %186 = load ptr, ptr %29, align 8, !tbaa !23
  %187 = getelementptr inbounds i8, ptr %17, i64 576
  %188 = getelementptr inbounds i8, ptr %17, i64 584
  %189 = tail call i32 %185(ptr noundef %186, ptr noundef nonnull %187, ptr noundef nonnull %188) #5
  %.not173 = icmp eq i32 %189, 0
  br i1 %.not173, label %190, label %193

190:                                              ; preds = %184
  %191 = load i32, ptr %50, align 8, !tbaa !29
  %192 = and i32 %191, -2049
  store i32 %192, ptr %50, align 8, !tbaa !29
  br label %193

193:                                              ; preds = %190, %184, %179
  %194 = tail call i32 @TIFFReadDirectory(ptr noundef nonnull %17) #5
  %.not174 = icmp eq i32 %194, 0
  br i1 %.not174, label %201, label %195

195:                                              ; preds = %193
  %196 = getelementptr inbounds i8, ptr %17, i64 568
  store i32 -1, ptr %196, align 8, !tbaa !44
  %197 = load i32, ptr %50, align 8, !tbaa !29
  %198 = or i32 %197, 16
  store i32 %198, ptr %50, align 8, !tbaa !29
  br label %202

199:                                              ; preds = %177
  %200 = tail call i32 @TIFFDefaultDirectory(ptr noundef nonnull %17) #5
  %.not171 = icmp eq i32 %200, 0
  br i1 %.not171, label %201, label %202

201:                                              ; preds = %177, %193, %199, %143, %167, %165, %154, %141, %124
  store i32 0, ptr %24, align 4, !tbaa !18
  tail call void @TIFFCleanup(ptr noundef nonnull %17) #5
  br label %202

202:                                              ; preds = %19, %38, %201, %10, %199, %170, %195, %147
  %.0150 = phi ptr [ %17, %147 ], [ %17, %195 ], [ %17, %170 ], [ %17, %199 ], [ null, %10 ], [ null, %201 ], [ null, %38 ], [ null, %19 ]
  ret ptr %.0150
}

declare ptr @_TIFFmalloc(i32 noundef) local_unnamed_addr #1

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

declare void @_TIFFmemset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

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

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

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

declare void @_TIFFSetDefaultCompressionState(ptr noundef) local_unnamed_addr #1

declare void @TIFFSwabShort(ptr noundef) local_unnamed_addr #1

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

declare i32 @TIFFDefaultDirectory(ptr noundef) local_unnamed_addr #1

declare void @TIFFSwabLong(ptr noundef) local_unnamed_addr #1

declare i32 @TIFFReadDirectory(ptr noundef) local_unnamed_addr #1

declare void @TIFFCleanup(ptr noundef) local_unnamed_addr #1

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"tiff", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !7, i64 32, !11, i64 40, !12, i64 48, !15, i64 320, !7, i64 328, !7, i64 336, !10, i64 344, !11, i64 348, !10, i64 352, !10, i64 356, !10, i64 360, !11, i64 364, !10, i64 368, !10, i64 372, !10, i64 376, !10, i64 380, !10, i64 384, !7, i64 392, !7, i64 400, !7, i64 408, !10, i64 416, !7, i64 424, !7, i64 432, !7, i64 440, !7, i64 448, !7, i64 456, !7, i64 464, !7, i64 472, !7, i64 480, !7, i64 488, !7, i64 496, !7, i64 504, !7, i64 512, !7, i64 520, !7, i64 528, !10, i64 536, !10, i64 540, !7, i64 544, !10, i64 552, !7, i64 560, !10, i64 568, !7, i64 576, !10, i64 584, !7, i64 592, !7, i64 600, !7, i64 608, !7, i64 616, !7, i64 624, !7, i64 632, !7, i64 640, !7, i64 648, !7, i64 656, !7, i64 664, !16, i64 672, !7, i64 680, !17, i64 688, !7, i64 712}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"short", !8, i64 0}
!12 = !{!"", !8, i64 0, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !11, i64 60, !11, i64 62, !11, i64 64, !11, i64 66, !11, i64 68, !11, i64 70, !11, i64 72, !11, i64 74, !10, i64 76, !11, i64 80, !11, i64 82, !13, i64 88, !13, i64 96, !14, i64 104, !14, i64 108, !11, i64 112, !11, i64 114, !14, i64 116, !14, i64 120, !8, i64 124, !8, i64 128, !8, i64 152, !11, i64 156, !7, i64 160, !10, i64 168, !10, i64 172, !7, i64 176, !7, i64 184, !10, i64 192, !11, i64 196, !7, i64 200, !8, i64 208, !11, i64 212, !8, i64 216, !10, i64 240, !7, i64 248, !10, i64 256, !7, i64 264}
!13 = !{!"double", !8, i64 0}
!14 = !{!"float", !8, i64 0}
!15 = !{!"", !11, i64 0, !11, i64 2, !10, i64 4}
!16 = !{!"long", !8, i64 0}
!17 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16}
!18 = !{!6, !10, i64 12}
!19 = !{!6, !11, i64 348}
!20 = !{!6, !10, i64 356}
!21 = !{!6, !10, i64 352}
!22 = !{!6, !10, i64 344}
!23 = !{!6, !7, i64 608}
!24 = !{!6, !7, i64 616}
!25 = !{!6, !7, i64 624}
!26 = !{!6, !7, i64 632}
!27 = !{!6, !7, i64 640}
!28 = !{!6, !7, i64 648}
!29 = !{!6, !10, i64 16}
!30 = !{!8, !8, i64 0}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = !{!6, !11, i64 320}
!34 = !{!6, !11, i64 322}
!35 = !{!6, !10, i64 324}
!36 = !{!6, !10, i64 20}
!37 = !{!6, !7, i64 32}
!38 = !{!6, !11, i64 40}
!39 = !{!6, !7, i64 544}
!40 = !{!6, !7, i64 560}
!41 = !{!6, !10, i64 552}
!42 = !{!6, !10, i64 24}
!43 = !{!6, !7, i64 592}
!44 = !{!6, !10, i64 568}


; Effective O3 passes: ADCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,MergedLoadStoreMotionPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass