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

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

@.str.2 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [15 x i8], align 1

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @TIFFVStripSize(ptr noundef %0, i32 noundef %1) #2 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca [2 x i16], align 2
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.tiff, ptr %12, i32 0, i32 8
  store ptr %13, ptr %6, align 8, !tbaa !5
  %14 = load i32, ptr %5, align 4, !tbaa !9
  %15 = icmp eq i32 %14, -1
  br i1 %15, label %16, label %20

16:                                               ; preds = %2
  %17 = load ptr, ptr %6, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.TIFFDirectory, ptr %17, i32 0, i32 2
  %19 = load i32, ptr %18, align 4, !tbaa !11
  store i32 %19, ptr %5, align 4, !tbaa !9
  br label %20

20:                                               ; preds = %16, %2
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.TIFFDirectory, ptr %21, i32 0, i32 24
  %23 = load i16, ptr %22, align 2, !tbaa !16
  %24 = zext i16 %23 to i32
  %25 = icmp eq i32 %24, 1
  br i1 %25, label %26, label %143

26:                                               ; preds = %20
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.TIFFDirectory, ptr %27, i32 0, i32 11
  %29 = load i16, ptr %28, align 2, !tbaa !17
  %30 = zext i16 %29 to i32
  %31 = icmp eq i32 %30, 6
  br i1 %31, label %32, label %143

32:                                               ; preds = %26
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.tiff, ptr %33, i32 0, i32 3
  %35 = load i32, ptr %34, align 8, !tbaa !18
  %36 = and i32 %35, 16384
  %37 = icmp ne i32 %36, 0
  br i1 %37, label %143, label %38

38:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = getelementptr inbounds [2 x i16], ptr %7, i64 0, i64 0
  %41 = getelementptr inbounds i16, ptr %40, i64 0
  %42 = getelementptr inbounds [2 x i16], ptr %7, i64 0, i64 0
  %43 = getelementptr inbounds i16, ptr %42, i64 1
  %44 = call i32 (ptr, i32, ...) @TIFFGetField(ptr noundef %39, i32 noundef 530, ptr noundef %41, ptr noundef %43)
  %45 = getelementptr inbounds [2 x i16], ptr %7, i64 0, i64 0
  %46 = load i16, ptr %45, align 2, !tbaa !23
  %47 = zext i16 %46 to i32
  %48 = getelementptr inbounds [2 x i16], ptr %7, i64 0, i64 1
  %49 = load i16, ptr %48, align 2, !tbaa !23
  %50 = zext i16 %49 to i32
  %51 = mul nsw i32 %47, %50
  store i32 %51, ptr %10, align 4, !tbaa !9
  %52 = load i32, ptr %10, align 4, !tbaa !9
  %53 = icmp eq i32 %52, 0
  br i1 %53, label %54, label %61

54:                                               ; preds = %38
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.tiff, ptr %55, i32 0, i32 51
  %57 = load ptr, ptr %56, align 8, !tbaa !24
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.tiff, ptr %58, i32 0, i32 0
  %60 = load ptr, ptr %59, align 8, !tbaa !25
  call void (ptr, ptr, ptr, ...) @TIFFErrorExt(ptr noundef %57, ptr noundef %60, ptr noundef @.str.2)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %142

61:                                               ; preds = %38
  %62 = load ptr, ptr %6, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.TIFFDirectory, ptr %62, i32 0, i32 1
  %64 = load i32, ptr %63, align 8, !tbaa !26
  %65 = getelementptr inbounds [2 x i16], ptr %7, i64 0, i64 0
  %66 = load i16, ptr %65, align 2, !tbaa !23
  %67 = zext i16 %66 to i32
  %68 = sub i32 %67, 1
  %69 = add i32 %64, %68
  %70 = getelementptr inbounds [2 x i16], ptr %7, i64 0, i64 0
  %71 = load i16, ptr %70, align 2, !tbaa !23
  %72 = zext i16 %71 to i32
  %73 = udiv i32 %69, %72
  %74 = getelementptr inbounds [2 x i16], ptr %7, i64 0, i64 0
  %75 = load i16, ptr %74, align 2, !tbaa !23
  %76 = zext i16 %75 to i32
  %77 = mul i32 %73, %76
  store i32 %77, ptr %8, align 4, !tbaa !9
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = load i32, ptr %8, align 4, !tbaa !9
  %80 = sext i32 %79 to i64
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.TIFFDirectory, ptr %81, i32 0, i32 8
  %83 = load i16, ptr %82, align 4, !tbaa !27
  %84 = zext i16 %83 to i64
  %85 = call i32 @multiply(ptr noundef %78, i64 noundef %80, i64 noundef %84, ptr noundef @.str.3)
  %86 = and i32 %85, 7
  %87 = icmp ne i32 %86, 0
  br i1 %87, label %88, label %99

88:                                               ; preds = %61
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = load i32, ptr %8, align 4, !tbaa !9
  %91 = sext i32 %90 to i64
  %92 = load ptr, ptr %6, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.TIFFDirectory, ptr %92, i32 0, i32 8
  %94 = load i16, ptr %93, align 4, !tbaa !27
  %95 = zext i16 %94 to i64
  %96 = call i32 @multiply(ptr noundef %89, i64 noundef %91, i64 noundef %95, ptr noundef @.str.3)
  %97 = lshr i32 %96, 3
  %98 = add i32 %97, 1
  br label %109

99:                                               ; preds = %61
  %100 = load ptr, ptr %4, align 8, !tbaa !5
  %101 = load i32, ptr %8, align 4, !tbaa !9
  %102 = sext i32 %101 to i64
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.TIFFDirectory, ptr %103, i32 0, i32 8
  %105 = load i16, ptr %104, align 4, !tbaa !27
  %106 = zext i16 %105 to i64
  %107 = call i32 @multiply(ptr noundef %100, i64 noundef %102, i64 noundef %106, ptr noundef @.str.3)
  %108 = lshr i32 %107, 3
  br label %109

109:                                              ; preds = %99, %88
  %110 = phi i32 [ %98, %88 ], [ %108, %99 ]
  store i32 %110, ptr %9, align 4, !tbaa !9
  %111 = load i32, ptr %5, align 4, !tbaa !9
  %112 = getelementptr inbounds [2 x i16], ptr %7, i64 0, i64 1
  %113 = load i16, ptr %112, align 2, !tbaa !23
  %114 = zext i16 %113 to i32
  %115 = sub i32 %114, 1
  %116 = add i32 %111, %115
  %117 = getelementptr inbounds [2 x i16], ptr %7, i64 0, i64 1
  %118 = load i16, ptr %117, align 2, !tbaa !23
  %119 = zext i16 %118 to i32
  %120 = udiv i32 %116, %119
  %121 = getelementptr inbounds [2 x i16], ptr %7, i64 0, i64 1
  %122 = load i16, ptr %121, align 2, !tbaa !23
  %123 = zext i16 %122 to i32
  %124 = mul i32 %120, %123
  store i32 %124, ptr %5, align 4, !tbaa !9
  %125 = load ptr, ptr %4, align 8, !tbaa !5
  %126 = load i32, ptr %5, align 4, !tbaa !9
  %127 = zext i32 %126 to i64
  %128 = load i32, ptr %9, align 4, !tbaa !9
  %129 = sext i32 %128 to i64
  %130 = call i32 @multiply(ptr noundef %125, i64 noundef %127, i64 noundef %129, ptr noundef @.str.3)
  store i32 %130, ptr %9, align 4, !tbaa !9
  %131 = load ptr, ptr %4, align 8, !tbaa !5
  %132 = load i32, ptr %9, align 4, !tbaa !9
  %133 = sext i32 %132 to i64
  %134 = load ptr, ptr %4, align 8, !tbaa !5
  %135 = load i32, ptr %9, align 4, !tbaa !9
  %136 = load i32, ptr %10, align 4, !tbaa !9
  %137 = sdiv i32 %135, %136
  %138 = sext i32 %137 to i64
  %139 = call i32 @multiply(ptr noundef %134, i64 noundef 2, i64 noundef %138, ptr noundef @.str.3)
  %140 = zext i32 %139 to i64
  %141 = call i32 @summarize(ptr noundef %131, i64 noundef %133, i64 noundef %140, ptr noundef @.str.3)
  store i32 %141, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %142

142:                                              ; preds = %109, %54
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  br label %151

143:                                              ; preds = %32, %26, %20
  %144 = load ptr, ptr %4, align 8, !tbaa !5
  %145 = load i32, ptr %5, align 4, !tbaa !9
  %146 = zext i32 %145 to i64
  %147 = load ptr, ptr %4, align 8, !tbaa !5
  %148 = call i32 @TIFFScanlineSize(ptr noundef %147)
  %149 = sext i32 %148 to i64
  %150 = call i32 @multiply(ptr noundef %144, i64 noundef %146, i64 noundef %149, ptr noundef @.str.3)
  store i32 %150, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %151

151:                                              ; preds = %143, %142
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  %152 = load i32, ptr %3, align 4
  ret i32 %152
}

declare i32 @TIFFGetField(ptr noundef, i32 noundef, ...) #1

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 36}
!12 = !{!"", !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, !14, i64 88, !14, i64 96, !15, i64 104, !15, i64 108, !13, i64 112, !13, i64 114, !15, i64 116, !15, 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}
!13 = !{!"short", !7, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = !{!12, !13, i64 114}
!17 = !{!12, !13, i64 66}
!18 = !{!19, !10, i64 16}
!19 = !{!"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, !12, i64 48, !20, 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, !21, i64 672, !6, i64 680, !22, i64 688, !6, i64 712}
!20 = !{!"", !13, i64 0, !13, i64 2, !10, i64 4}
!21 = !{!"long", !7, i64 0}
!22 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!13, !13, i64 0}
!24 = !{!19, !6, i64 608}
!25 = !{!19, !6, i64 0}
!26 = !{!12, !10, i64 32}
!27 = !{!12, !13, i64 60}


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

@.str.2 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [15 x i8], align 1

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @TIFFVStripSize(ptr noundef %0, i32 noundef %1) local_unnamed_addr #2 {
  %3 = alloca [2 x i16], align 2
  %4 = icmp eq i32 %1, -1
  br i1 %4, label %5, label %8

5:                                                ; preds = %2
  %6 = getelementptr inbounds i8, ptr %0, i64 84
  %7 = load i32, ptr %6, align 4, !tbaa !5
  br label %8

8:                                                ; preds = %5, %2
  %.032 = phi i32 [ %7, %5 ], [ %1, %2 ]
  %9 = getelementptr inbounds i8, ptr %0, i64 162
  %10 = load i16, ptr %9, align 2, !tbaa !14
  %11 = icmp eq i16 %10, 1
  br i1 %11, label %12, label %68

12:                                               ; preds = %8
  %13 = getelementptr inbounds i8, ptr %0, i64 114
  %14 = load i16, ptr %13, align 2, !tbaa !15
  %15 = icmp eq i16 %14, 6
  br i1 %15, label %16, label %68

16:                                               ; preds = %12
  %17 = getelementptr inbounds i8, ptr %0, i64 16
  %18 = load i32, ptr %17, align 8, !tbaa !16
  %19 = and i32 %18, 16384
  %.not = icmp eq i32 %19, 0
  br i1 %.not, label %20, label %68

20:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
  %21 = getelementptr inbounds i8, ptr %3, i64 2
  %22 = call i32 (ptr, i32, ...) @TIFFGetField(ptr noundef nonnull %0, i32 noundef 530, ptr noundef nonnull %3, ptr noundef nonnull %21) #3
  %23 = load i16, ptr %3, align 2, !tbaa !21
  %24 = zext i16 %23 to i32
  %25 = load i16, ptr %21, align 2, !tbaa !21
  %26 = zext i16 %25 to i32
  %27 = mul nuw nsw i32 %26, %24
  %28 = icmp eq i32 %27, 0
  br i1 %28, label %29, label %33

29:                                               ; preds = %20
  %30 = getelementptr inbounds i8, ptr %0, i64 608
  %31 = load ptr, ptr %30, align 8, !tbaa !22
  %32 = load ptr, ptr %0, align 8, !tbaa !23
  call void (ptr, ptr, ptr, ...) @TIFFErrorExt(ptr noundef %31, ptr noundef %32, ptr noundef nonnull @.str.2) #3
  br label %67

33:                                               ; preds = %20
  %34 = getelementptr inbounds i8, ptr %0, i64 80
  %35 = load i32, ptr %34, align 8, !tbaa !24
  %36 = add nsw i32 %24, -1
  %37 = add i32 %36, %35
  %.fr = freeze i32 %37
  %38 = urem i32 %.fr, %24
  %39 = sub nuw i32 %.fr, %38
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds i8, ptr %0, i64 108
  %42 = load i16, ptr %41, align 4, !tbaa !25
  %43 = zext i16 %42 to i64
  %44 = call i32 @multiply(ptr noundef nonnull %0, i64 noundef %40, i64 noundef %43, ptr noundef nonnull @.str.3)
  %45 = and i32 %44, 7
  %.not35 = icmp ne i32 %45, 0
  %46 = load i16, ptr %41, align 4, !tbaa !25
  %47 = zext i16 %46 to i64
  %48 = call i32 @multiply(ptr noundef nonnull %0, i64 noundef %40, i64 noundef %47, ptr noundef nonnull @.str.3)
  %49 = lshr i32 %48, 3
  %50 = zext i1 %.not35 to i32
  %51 = add nuw nsw i32 %49, %50
  %52 = load i16, ptr %21, align 2, !tbaa !21
  %53 = zext i16 %52 to i32
  %54 = add i32 %.032, -1
  %55 = add i32 %54, %53
  %.fr36 = freeze i32 %55
  %56 = urem i32 %.fr36, %53
  %57 = sub nuw i32 %.fr36, %56
  %58 = zext i32 %57 to i64
  %59 = zext nneg i32 %51 to i64
  %60 = call i32 @multiply(ptr noundef nonnull %0, i64 noundef %58, i64 noundef %59, ptr noundef nonnull @.str.3)
  %61 = sext i32 %60 to i64
  %62 = sdiv i32 %60, %27
  %63 = sext i32 %62 to i64
  %64 = call i32 @multiply(ptr noundef nonnull %0, i64 noundef 2, i64 noundef %63, ptr noundef nonnull @.str.3)
  %65 = zext i32 %64 to i64
  %66 = call i32 @summarize(ptr noundef nonnull %0, i64 noundef %61, i64 noundef %65, ptr noundef nonnull @.str.3)
  br label %67

67:                                               ; preds = %33, %29
  %.0 = phi i32 [ 0, %29 ], [ %66, %33 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  br label %73

68:                                               ; preds = %16, %12, %8
  %69 = zext i32 %.032 to i64
  %70 = tail call i32 @TIFFScanlineSize(ptr noundef nonnull %0)
  %71 = sext i32 %70 to i64
  %72 = tail call i32 @multiply(ptr noundef nonnull %0, i64 noundef %69, i64 noundef %71, ptr noundef nonnull @.str.3)
  br label %73

73:                                               ; preds = %68, %67
  %.1 = phi i32 [ %72, %68 ], [ %.0, %67 ]
  ret i32 %.1
}

declare i32 @TIFFGetField(ptr noundef, i32 noundef, ...) local_unnamed_addr #1

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

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

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

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

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


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