; 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
@.str.5 = external hidden unnamed_addr constant [17 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

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
define dso_local i32 @TIFFScanlineSize(ptr noundef %0) #2 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca [2 x i16], align 2
  %7 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  %8 = load ptr, ptr %3, align 8, !tbaa !5
  %9 = getelementptr inbounds %struct.tiff, ptr %8, i32 0, i32 8
  store ptr %9, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  %10 = load ptr, ptr %4, align 8, !tbaa !5
  %11 = getelementptr inbounds %struct.TIFFDirectory, ptr %10, i32 0, i32 24
  %12 = load i16, ptr %11, align 2, !tbaa !9
  %13 = zext i16 %12 to i32
  %14 = icmp eq i32 %13, 1
  br i1 %14, label %15, label %121

15:                                               ; preds = %1
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.TIFFDirectory, ptr %16, i32 0, i32 11
  %18 = load i16, ptr %17, align 2, !tbaa !15
  %19 = zext i16 %18 to i32
  %20 = icmp eq i32 %19, 6
  br i1 %20, label %21, label %109

21:                                               ; preds = %15
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.tiff, ptr %22, i32 0, i32 3
  %24 = load i32, ptr %23, align 8, !tbaa !16
  %25 = and i32 %24, 16384
  %26 = icmp ne i32 %25, 0
  br i1 %26, label %109, label %27

27:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = getelementptr inbounds [2 x i16], ptr %6, i64 0, i64 0
  %30 = getelementptr inbounds i16, ptr %29, i64 0
  %31 = getelementptr inbounds [2 x i16], ptr %6, i64 0, i64 0
  %32 = getelementptr inbounds i16, ptr %31, i64 1
  %33 = call i32 (ptr, i32, ...) @TIFFGetField(ptr noundef %28, i32 noundef 530, ptr noundef %30, ptr noundef %32)
  %34 = getelementptr inbounds [2 x i16], ptr %6, i64 0, i64 0
  %35 = load i16, ptr %34, align 2, !tbaa !21
  %36 = zext i16 %35 to i32
  %37 = icmp eq i32 %36, 0
  br i1 %37, label %38, label %45

38:                                               ; preds = %27
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.tiff, ptr %39, i32 0, i32 51
  %41 = load ptr, ptr %40, align 8, !tbaa !22
  %42 = load ptr, ptr %3, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.tiff, ptr %42, i32 0, i32 0
  %44 = load ptr, ptr %43, align 8, !tbaa !23
  call void (ptr, ptr, ptr, ...) @TIFFErrorExt(ptr noundef %41, ptr noundef %44, ptr noundef @.str.2)
  store i32 0, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %108

45:                                               ; preds = %27
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.TIFFDirectory, ptr %46, i32 0, i32 1
  %48 = load i32, ptr %47, align 8, !tbaa !24
  %49 = getelementptr inbounds [2 x i16], ptr %6, i64 0, i64 0
  %50 = load i16, ptr %49, align 2, !tbaa !21
  %51 = zext i16 %50 to i32
  %52 = sub i32 %51, 1
  %53 = add i32 %48, %52
  %54 = getelementptr inbounds [2 x i16], ptr %6, i64 0, i64 0
  %55 = load i16, ptr %54, align 2, !tbaa !21
  %56 = zext i16 %55 to i32
  %57 = udiv i32 %53, %56
  %58 = getelementptr inbounds [2 x i16], ptr %6, i64 0, i64 0
  %59 = load i16, ptr %58, align 2, !tbaa !21
  %60 = zext i16 %59 to i32
  %61 = mul i32 %57, %60
  store i32 %61, ptr %5, align 4, !tbaa !25
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  %63 = load i32, ptr %5, align 4, !tbaa !25
  %64 = sext i32 %63 to i64
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.TIFFDirectory, ptr %65, i32 0, i32 8
  %67 = load i16, ptr %66, align 4, !tbaa !26
  %68 = zext i16 %67 to i64
  %69 = call i32 @multiply(ptr noundef %62, i64 noundef %64, i64 noundef %68, ptr noundef @.str.5)
  %70 = and i32 %69, 7
  %71 = icmp ne i32 %70, 0
  br i1 %71, label %72, label %83

72:                                               ; preds = %45
  %73 = load ptr, ptr %3, align 8, !tbaa !5
  %74 = load i32, ptr %5, align 4, !tbaa !25
  %75 = sext i32 %74 to i64
  %76 = load ptr, ptr %4, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.TIFFDirectory, ptr %76, i32 0, i32 8
  %78 = load i16, ptr %77, align 4, !tbaa !26
  %79 = zext i16 %78 to i64
  %80 = call i32 @multiply(ptr noundef %73, i64 noundef %75, i64 noundef %79, ptr noundef @.str.5)
  %81 = lshr i32 %80, 3
  %82 = add i32 %81, 1
  br label %93

83:                                               ; preds = %45
  %84 = load ptr, ptr %3, align 8, !tbaa !5
  %85 = load i32, ptr %5, align 4, !tbaa !25
  %86 = sext i32 %85 to i64
  %87 = load ptr, ptr %4, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.TIFFDirectory, ptr %87, i32 0, i32 8
  %89 = load i16, ptr %88, align 4, !tbaa !26
  %90 = zext i16 %89 to i64
  %91 = call i32 @multiply(ptr noundef %84, i64 noundef %86, i64 noundef %90, ptr noundef @.str.5)
  %92 = lshr i32 %91, 3
  br label %93

93:                                               ; preds = %83, %72
  %94 = phi i32 [ %82, %72 ], [ %92, %83 ]
  store i32 %94, ptr %5, align 4, !tbaa !25
  %95 = load ptr, ptr %3, align 8, !tbaa !5
  %96 = load i32, ptr %5, align 4, !tbaa !25
  %97 = sext i32 %96 to i64
  %98 = load ptr, ptr %3, align 8, !tbaa !5
  %99 = load i32, ptr %5, align 4, !tbaa !25
  %100 = getelementptr inbounds [2 x i16], ptr %6, i64 0, i64 0
  %101 = load i16, ptr %100, align 2, !tbaa !21
  %102 = zext i16 %101 to i32
  %103 = sdiv i32 %99, %102
  %104 = sext i32 %103 to i64
  %105 = call i32 @multiply(ptr noundef %98, i64 noundef 2, i64 noundef %104, ptr noundef @.str.3)
  %106 = zext i32 %105 to i64
  %107 = call i32 @summarize(ptr noundef %95, i64 noundef %97, i64 noundef %106, ptr noundef @.str.3)
  store i32 %107, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %108

108:                                              ; preds = %93, %38
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  br label %159

109:                                              ; preds = %21, %15
  %110 = load ptr, ptr %3, align 8, !tbaa !5
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.TIFFDirectory, ptr %111, i32 0, i32 1
  %113 = load i32, ptr %112, align 8, !tbaa !24
  %114 = zext i32 %113 to i64
  %115 = load ptr, ptr %4, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.TIFFDirectory, ptr %115, i32 0, i32 15
  %117 = load i16, ptr %116, align 2, !tbaa !27
  %118 = zext i16 %117 to i64
  %119 = call i32 @multiply(ptr noundef %110, i64 noundef %114, i64 noundef %118, ptr noundef @.str.5)
  store i32 %119, ptr %5, align 4, !tbaa !25
  br label %120

120:                                              ; preds = %109
  br label %125

121:                                              ; preds = %1
  %122 = load ptr, ptr %4, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.TIFFDirectory, ptr %122, i32 0, i32 1
  %124 = load i32, ptr %123, align 8, !tbaa !24
  store i32 %124, ptr %5, align 4, !tbaa !25
  br label %125

125:                                              ; preds = %121, %120
  %126 = load ptr, ptr %3, align 8, !tbaa !5
  %127 = load i32, ptr %5, align 4, !tbaa !25
  %128 = sext i32 %127 to i64
  %129 = load ptr, ptr %4, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.TIFFDirectory, ptr %129, i32 0, i32 8
  %131 = load i16, ptr %130, align 4, !tbaa !26
  %132 = zext i16 %131 to i64
  %133 = call i32 @multiply(ptr noundef %126, i64 noundef %128, i64 noundef %132, ptr noundef @.str.5)
  %134 = and i32 %133, 7
  %135 = icmp ne i32 %134, 0
  br i1 %135, label %136, label %147

136:                                              ; preds = %125
  %137 = load ptr, ptr %3, align 8, !tbaa !5
  %138 = load i32, ptr %5, align 4, !tbaa !25
  %139 = sext i32 %138 to i64
  %140 = load ptr, ptr %4, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.TIFFDirectory, ptr %140, i32 0, i32 8
  %142 = load i16, ptr %141, align 4, !tbaa !26
  %143 = zext i16 %142 to i64
  %144 = call i32 @multiply(ptr noundef %137, i64 noundef %139, i64 noundef %143, ptr noundef @.str.5)
  %145 = lshr i32 %144, 3
  %146 = add i32 %145, 1
  br label %157

147:                                              ; preds = %125
  %148 = load ptr, ptr %3, align 8, !tbaa !5
  %149 = load i32, ptr %5, align 4, !tbaa !25
  %150 = sext i32 %149 to i64
  %151 = load ptr, ptr %4, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.TIFFDirectory, ptr %151, i32 0, i32 8
  %153 = load i16, ptr %152, align 4, !tbaa !26
  %154 = zext i16 %153 to i64
  %155 = call i32 @multiply(ptr noundef %148, i64 noundef %150, i64 noundef %154, ptr noundef @.str.5)
  %156 = lshr i32 %155, 3
  br label %157

157:                                              ; preds = %147, %136
  %158 = phi i32 [ %146, %136 ], [ %156, %147 ]
  store i32 %158, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %159

159:                                              ; preds = %157, %108
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  %160 = load i32, ptr %2, align 4
  ret i32 %160
}

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, !12, i64 114}
!10 = !{!"", !7, i64 0, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !12, i64 60, !12, i64 62, !12, i64 64, !12, i64 66, !12, i64 68, !12, i64 70, !12, i64 72, !12, i64 74, !11, i64 76, !12, i64 80, !12, i64 82, !13, i64 88, !13, i64 96, !14, i64 104, !14, i64 108, !12, i64 112, !12, i64 114, !14, i64 116, !14, i64 120, !7, i64 124, !7, i64 128, !7, i64 152, !12, i64 156, !6, i64 160, !11, i64 168, !11, i64 172, !6, i64 176, !6, i64 184, !11, i64 192, !12, i64 196, !6, i64 200, !7, i64 208, !12, i64 212, !7, i64 216, !11, i64 240, !6, i64 248, !11, i64 256, !6, i64 264}
!11 = !{!"int", !7, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = !{!10, !12, i64 66}
!16 = !{!17, !11, i64 16}
!17 = !{!"tiff", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !6, i64 32, !12, i64 40, !10, i64 48, !18, i64 320, !6, i64 328, !6, i64 336, !11, i64 344, !12, i64 348, !11, i64 352, !11, i64 356, !11, i64 360, !12, i64 364, !11, i64 368, !11, i64 372, !11, i64 376, !11, i64 380, !11, i64 384, !6, i64 392, !6, i64 400, !6, i64 408, !11, 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, !11, i64 536, !11, i64 540, !6, i64 544, !11, i64 552, !6, i64 560, !11, i64 568, !6, i64 576, !11, 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, !19, i64 672, !6, i64 680, !20, i64 688, !6, i64 712}
!18 = !{!"", !12, i64 0, !12, i64 2, !11, i64 4}
!19 = !{!"long", !7, i64 0}
!20 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!12, !12, i64 0}
!22 = !{!17, !6, i64 608}
!23 = !{!17, !6, i64 0}
!24 = !{!10, !11, i64 32}
!25 = !{!11, !11, i64 0}
!26 = !{!10, !12, i64 60}
!27 = !{!10, !12, i64 74}


; 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
@.str.5 = external hidden unnamed_addr constant [17 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

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
define dso_local i32 @TIFFScanlineSize(ptr noundef %0) local_unnamed_addr #2 {
  %2 = alloca [2 x i16], align 2
  %3 = getelementptr inbounds i8, ptr %0, i64 162
  %4 = load i16, ptr %3, align 2, !tbaa !5
  %5 = icmp eq i16 %4, 1
  br i1 %5, label %6, label %60

6:                                                ; preds = %1
  %7 = getelementptr inbounds i8, ptr %0, i64 114
  %8 = load i16, ptr %7, align 2, !tbaa !14
  %9 = icmp eq i16 %8, 6
  br i1 %9, label %10, label %52

10:                                               ; preds = %6
  %11 = getelementptr inbounds i8, ptr %0, i64 16
  %12 = load i32, ptr %11, align 8, !tbaa !15
  %13 = and i32 %12, 16384
  %.not = icmp eq i32 %13, 0
  br i1 %.not, label %14, label %52

14:                                               ; preds = %10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #3
  %15 = getelementptr inbounds i8, ptr %2, i64 2
  %16 = call i32 (ptr, i32, ...) @TIFFGetField(ptr noundef nonnull %0, i32 noundef 530, ptr noundef nonnull %2, ptr noundef nonnull %15) #3
  %17 = load i16, ptr %2, align 2, !tbaa !20
  %18 = icmp eq i16 %17, 0
  br i1 %18, label %19, label %23

19:                                               ; preds = %14
  %20 = getelementptr inbounds i8, ptr %0, i64 608
  %21 = load ptr, ptr %20, align 8, !tbaa !21
  %22 = load ptr, ptr %0, align 8, !tbaa !22
  call void (ptr, ptr, ptr, ...) @TIFFErrorExt(ptr noundef %21, ptr noundef %22, ptr noundef nonnull @.str.2) #3
  br label %51

23:                                               ; preds = %14
  %24 = zext i16 %17 to i32
  %25 = getelementptr inbounds i8, ptr %0, i64 80
  %26 = load i32, ptr %25, align 8, !tbaa !23
  %27 = add nsw i32 %24, -1
  %28 = add i32 %27, %26
  %.fr = freeze i32 %28
  %29 = urem i32 %.fr, %24
  %30 = sub nuw i32 %.fr, %29
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds i8, ptr %0, i64 108
  %33 = load i16, ptr %32, align 4, !tbaa !24
  %34 = zext i16 %33 to i64
  %35 = call i32 @multiply(ptr noundef nonnull %0, i64 noundef %31, i64 noundef %34, ptr noundef nonnull @.str.5)
  %36 = and i32 %35, 7
  %.not36 = icmp ne i32 %36, 0
  %37 = load i16, ptr %32, align 4, !tbaa !24
  %38 = zext i16 %37 to i64
  %39 = call i32 @multiply(ptr noundef nonnull %0, i64 noundef %31, i64 noundef %38, ptr noundef nonnull @.str.5)
  %40 = lshr i32 %39, 3
  %41 = zext i1 %.not36 to i32
  %42 = add nuw nsw i32 %40, %41
  %43 = zext nneg i32 %42 to i64
  %44 = load i16, ptr %2, align 2, !tbaa !20
  %45 = zext i16 %44 to i32
  %46 = udiv i32 %42, %45
  %47 = zext nneg i32 %46 to i64
  %48 = call i32 @multiply(ptr noundef nonnull %0, i64 noundef 2, i64 noundef %47, ptr noundef nonnull @.str.3)
  %49 = zext i32 %48 to i64
  %50 = call i32 @summarize(ptr noundef nonnull %0, i64 noundef %43, i64 noundef %49, ptr noundef nonnull @.str.3)
  br label %51

51:                                               ; preds = %23, %19
  %.034 = phi i32 [ 0, %19 ], [ %50, %23 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
  br label %75

52:                                               ; preds = %10, %6
  %53 = getelementptr inbounds i8, ptr %0, i64 80
  %54 = load i32, ptr %53, align 8, !tbaa !23
  %55 = zext i32 %54 to i64
  %56 = getelementptr inbounds i8, ptr %0, i64 122
  %57 = load i16, ptr %56, align 2, !tbaa !25
  %58 = zext i16 %57 to i64
  %59 = tail call i32 @multiply(ptr noundef nonnull %0, i64 noundef %55, i64 noundef %58, ptr noundef nonnull @.str.5)
  br label %63

60:                                               ; preds = %1
  %61 = getelementptr inbounds i8, ptr %0, i64 80
  %62 = load i32, ptr %61, align 8, !tbaa !23
  br label %63

63:                                               ; preds = %60, %52
  %.0 = phi i32 [ %59, %52 ], [ %62, %60 ]
  %64 = sext i32 %.0 to i64
  %65 = getelementptr inbounds i8, ptr %0, i64 108
  %66 = load i16, ptr %65, align 4, !tbaa !24
  %67 = zext i16 %66 to i64
  %68 = tail call i32 @multiply(ptr noundef nonnull %0, i64 noundef %64, i64 noundef %67, ptr noundef nonnull @.str.5)
  %69 = and i32 %68, 7
  %.not37 = icmp ne i32 %69, 0
  %70 = load i16, ptr %65, align 4, !tbaa !24
  %71 = zext i16 %70 to i64
  %72 = tail call i32 @multiply(ptr noundef nonnull %0, i64 noundef %64, i64 noundef %71, ptr noundef nonnull @.str.5)
  %73 = lshr i32 %72, 3
  %74 = zext i1 %.not37 to i32
  %spec.select = add nuw nsw i32 %73, %74
  br label %75

75:                                               ; preds = %63, %51
  %.1 = phi i32 [ %.034, %51 ], [ %spec.select, %63 ]
  ret i32 %.1
}

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, !10, i64 114}
!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 66}
!15 = !{!16, !9, i64 16}
!16 = !{!"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, !17, 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, !18, i64 672, !13, i64 680, !19, i64 688, !13, i64 712}
!17 = !{!"", !10, i64 0, !10, i64 2, !9, i64 4}
!18 = !{!"long", !7, i64 0}
!19 = !{!"", !13, i64 0, !13, i64 8, !13, i64 16}
!20 = !{!10, !10, i64 0}
!21 = !{!16, !13, i64 608}
!22 = !{!16, !13, i64 0}
!23 = !{!6, !9, i64 32}
!24 = !{!6, !10, i64 60}
!25 = !{!6, !10, i64 74}


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