; LLVM IR from JayXon/Leanify :: lib/mozjpeg (jcmaster)

; 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.jpeg_compress_struct = type { ptr, ptr, ptr, ptr, i32, i32, ptr, i32, i32, i32, i32, double, i32, i32, i32, ptr, [4 x ptr], [4 x ptr], [4 x ptr], [16 x i8], [16 x i8], [16 x i8], i32, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i8, i8, i16, i16, i32, i32, i32, i32, i32, i32, i32, [4 x ptr], i32, i32, i32, [10 x i32], i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32 }
%struct.my_comp_master = type { %struct.jpeg_comp_master, i32, i32, i32, i32, i32, [64 x ptr], [64 x i64], [64 x i32], i64, i32, i32, i32, i32, i32, ptr, ptr }
%struct.jpeg_comp_master = type { ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [4 x [64 x double]], [4 x [64 x double]], i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, float, float, float }

@.str = external hidden unnamed_addr constant [19 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @jinit_c_master_control(ptr noundef %0, i32 noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #2
  %7 = load ptr, ptr %3, align 8, !tbaa !5
  %8 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %7, i32 0, i32 54
  %9 = load ptr, ptr %8, align 8, !tbaa !11
  store ptr %9, ptr %5, align 8, !tbaa !5
  %10 = load ptr, ptr %5, align 8, !tbaa !5
  %11 = getelementptr inbounds %struct.my_comp_master, ptr %10, i32 0, i32 0
  %12 = getelementptr inbounds %struct.jpeg_comp_master, ptr %11, i32 0, i32 0
  store ptr @prepare_for_pass, ptr %12, align 8, !tbaa !15
  %13 = load ptr, ptr %5, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.my_comp_master, ptr %13, i32 0, i32 0
  %15 = getelementptr inbounds %struct.jpeg_comp_master, ptr %14, i32 0, i32 1
  store ptr @pass_startup, ptr %15, align 8, !tbaa !20
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.my_comp_master, ptr %16, i32 0, i32 0
  %18 = getelementptr inbounds %struct.jpeg_comp_master, ptr %17, i32 0, i32 2
  store ptr @finish_pass_master, ptr %18, align 8, !tbaa !21
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.my_comp_master, ptr %19, i32 0, i32 0
  %21 = getelementptr inbounds %struct.jpeg_comp_master, ptr %20, i32 0, i32 4
  store i32 0, ptr %21, align 4, !tbaa !22
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.my_comp_master, ptr %22, i32 0, i32 0
  %24 = getelementptr inbounds %struct.jpeg_comp_master, ptr %23, i32 0, i32 3
  store i32 0, ptr %24, align 8, !tbaa !23
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %26 = load i32, ptr %4, align 4, !tbaa !9
  call void @initial_setup(ptr noundef %25, i32 noundef %26)
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %27, i32 0, i32 23
  %29 = load ptr, ptr %28, align 8, !tbaa !24
  %30 = icmp ne ptr %29, null
  br i1 %30, label %31, label %33

31:                                               ; preds = %2
  %32 = load ptr, ptr %3, align 8, !tbaa !5
  call void @validate_script(ptr noundef %32)
  br label %38

33:                                               ; preds = %2
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %34, i32 0, i32 40
  store i32 0, ptr %35, align 4, !tbaa !25
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %36, i32 0, i32 22
  store i32 1, ptr %37, align 8, !tbaa !26
  br label %38

38:                                               ; preds = %33, %31
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %39, i32 0, i32 40
  %41 = load i32, ptr %40, align 4, !tbaa !25
  %42 = icmp ne i32 %41, 0
  br i1 %42, label %43, label %51

43:                                               ; preds = %38
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %44, i32 0, i32 25
  %46 = load i32, ptr %45, align 4, !tbaa !27
  %47 = icmp ne i32 %46, 0
  br i1 %47, label %51, label %48

48:                                               ; preds = %43
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %49, i32 0, i32 26
  store i32 1, ptr %50, align 8, !tbaa !28
  br label %51

51:                                               ; preds = %48, %43, %38
  %52 = load i32, ptr %4, align 4, !tbaa !9
  %53 = icmp ne i32 %52, 0
  br i1 %53, label %54, label %66

54:                                               ; preds = %51
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %55, i32 0, i32 26
  %57 = load i32, ptr %56, align 8, !tbaa !28
  %58 = icmp ne i32 %57, 0
  br i1 %58, label %59, label %62

59:                                               ; preds = %54
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.my_comp_master, ptr %60, i32 0, i32 1
  store i32 1, ptr %61, align 8, !tbaa !29
  br label %65

62:                                               ; preds = %54
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.my_comp_master, ptr %63, i32 0, i32 1
  store i32 2, ptr %64, align 8, !tbaa !29
  br label %65

65:                                               ; preds = %62, %59
  br label %69

66:                                               ; preds = %51
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.my_comp_master, ptr %67, i32 0, i32 1
  store i32 0, ptr %68, align 8, !tbaa !29
  br label %69

69:                                               ; preds = %66, %65
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.my_comp_master, ptr %70, i32 0, i32 4
  store i32 0, ptr %71, align 4, !tbaa !30
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.my_comp_master, ptr %72, i32 0, i32 2
  store i32 0, ptr %73, align 4, !tbaa !31
  %74 = load ptr, ptr %3, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %74, i32 0, i32 26
  %76 = load i32, ptr %75, align 8, !tbaa !28
  %77 = icmp ne i32 %76, 0
  br i1 %77, label %78, label %85

78:                                               ; preds = %69
  %79 = load ptr, ptr %3, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %79, i32 0, i32 22
  %81 = load i32, ptr %80, align 8, !tbaa !26
  %82 = mul nsw i32 %81, 2
  %83 = load ptr, ptr %5, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.my_comp_master, ptr %83, i32 0, i32 3
  store i32 %82, ptr %84, align 8, !tbaa !32
  br label %91

85:                                               ; preds = %69
  %86 = load ptr, ptr %3, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %86, i32 0, i32 22
  %88 = load i32, ptr %87, align 8, !tbaa !26
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.my_comp_master, ptr %89, i32 0, i32 3
  store i32 %88, ptr %90, align 8, !tbaa !32
  br label %91

91:                                               ; preds = %85, %78
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.my_comp_master, ptr %92, i32 0, i32 16
  store ptr @.str, ptr %93, align 8, !tbaa !33
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.my_comp_master, ptr %94, i32 0, i32 5
  store i32 0, ptr %95, align 8, !tbaa !34
  %96 = load ptr, ptr %3, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %96, i32 0, i32 54
  %98 = load ptr, ptr %97, align 8, !tbaa !11
  %99 = getelementptr inbounds %struct.jpeg_comp_master, ptr %98, i32 0, i32 6
  %100 = load i32, ptr %99, align 4, !tbaa !35
  %101 = icmp ne i32 %100, 0
  br i1 %101, label %102, label %158

102:                                              ; preds = %91
  %103 = load ptr, ptr %3, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %103, i32 0, i32 26
  %105 = load i32, ptr %104, align 8, !tbaa !28
  %106 = icmp ne i32 %105, 0
  br i1 %106, label %107, label %128

107:                                              ; preds = %102
  %108 = load ptr, ptr %3, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %108, i32 0, i32 54
  %110 = load ptr, ptr %109, align 8, !tbaa !11
  %111 = getelementptr inbounds %struct.jpeg_comp_master, ptr %110, i32 0, i32 10
  %112 = load i32, ptr %111, align 4, !tbaa !36
  %113 = icmp ne i32 %112, 0
  %114 = zext i1 %113 to i64
  %115 = select i1 %113, i32 4, i32 2
  %116 = load ptr, ptr %3, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %116, i32 0, i32 13
  %118 = load i32, ptr %117, align 4, !tbaa !37
  %119 = mul nsw i32 %115, %118
  %120 = load ptr, ptr %3, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %120, i32 0, i32 54
  %122 = load ptr, ptr %121, align 8, !tbaa !11
  %123 = getelementptr inbounds %struct.jpeg_comp_master, ptr %122, i32 0, i32 20
  %124 = load i32, ptr %123, align 8, !tbaa !38
  %125 = mul nsw i32 %119, %124
  %126 = load ptr, ptr %5, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.my_comp_master, ptr %126, i32 0, i32 5
  store i32 %125, ptr %127, align 8, !tbaa !34
  br label %150

128:                                              ; preds = %102
  %129 = load ptr, ptr %3, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %129, i32 0, i32 54
  %131 = load ptr, ptr %130, align 8, !tbaa !11
  %132 = getelementptr inbounds %struct.jpeg_comp_master, ptr %131, i32 0, i32 10
  %133 = load i32, ptr %132, align 4, !tbaa !36
  %134 = icmp ne i32 %133, 0
  %135 = zext i1 %134 to i64
  %136 = select i1 %134, i32 2, i32 1
  %137 = load ptr, ptr %3, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %137, i32 0, i32 13
  %139 = load i32, ptr %138, align 4, !tbaa !37
  %140 = mul nsw i32 %136, %139
  %141 = load ptr, ptr %3, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %141, i32 0, i32 54
  %143 = load ptr, ptr %142, align 8, !tbaa !11
  %144 = getelementptr inbounds %struct.jpeg_comp_master, ptr %143, i32 0, i32 20
  %145 = load i32, ptr %144, align 8, !tbaa !38
  %146 = mul nsw i32 %140, %145
  %147 = add nsw i32 %146, 1
  %148 = load ptr, ptr %5, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.my_comp_master, ptr %148, i32 0, i32 5
  store i32 %147, ptr %149, align 8, !tbaa !34
  br label %150

150:                                              ; preds = %128, %107
  %151 = load ptr, ptr %5, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.my_comp_master, ptr %151, i32 0, i32 5
  %153 = load i32, ptr %152, align 8, !tbaa !34
  %154 = load ptr, ptr %5, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.my_comp_master, ptr %154, i32 0, i32 3
  %156 = load i32, ptr %155, align 8, !tbaa !32
  %157 = add nsw i32 %156, %153
  store i32 %157, ptr %155, align 8, !tbaa !32
  br label %158

158:                                              ; preds = %150, %91
  %159 = load ptr, ptr %3, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %159, i32 0, i32 54
  %161 = load ptr, ptr %160, align 8, !tbaa !11
  %162 = getelementptr inbounds %struct.jpeg_comp_master, ptr %161, i32 0, i32 5
  %163 = load i32, ptr %162, align 8, !tbaa !39
  %164 = icmp ne i32 %163, 0
  br i1 %164, label %165, label %184

165:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #2
  %166 = load ptr, ptr %5, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.my_comp_master, ptr %166, i32 0, i32 13
  store i32 0, ptr %167, align 4, !tbaa !40
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %168

168:                                              ; preds = %180, %165
  %169 = load i32, ptr %6, align 4, !tbaa !9
  %170 = load ptr, ptr %3, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %170, i32 0, i32 22
  %172 = load i32, ptr %171, align 8, !tbaa !26
  %173 = icmp slt i32 %169, %172
  br i1 %173, label %174, label %183

174:                                              ; preds = %168
  %175 = load ptr, ptr %5, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.my_comp_master, ptr %175, i32 0, i32 6
  %177 = load i32, ptr %6, align 4, !tbaa !9
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds [64 x ptr], ptr %176, i64 0, i64 %178
  store ptr null, ptr %179, align 8, !tbaa !5
  br label %180

180:                                              ; preds = %174
  %181 = load i32, ptr %6, align 4, !tbaa !9
  %182 = add nsw i32 %181, 1
  store i32 %182, ptr %6, align 4, !tbaa !9
  br label %168, !llvm.loop !41

183:                                              ; preds = %168
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #2
  br label %184

184:                                              ; preds = %183, %158
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #2
  ret void
}

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

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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, !6, i64 432}
!12 = !{!"jpeg_compress_struct", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !10, i64 32, !10, i64 36, !6, i64 40, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !13, i64 64, !10, i64 72, !10, i64 76, !10, i64 80, !6, i64 88, !7, i64 96, !7, i64 128, !7, i64 160, !7, i64 192, !7, i64 208, !7, i64 224, !10, i64 240, !6, i64 248, !10, i64 256, !10, i64 260, !10, i64 264, !10, i64 268, !10, i64 272, !10, i64 276, !10, i64 280, !10, i64 284, !10, i64 288, !7, i64 292, !7, i64 293, !7, i64 294, !14, i64 296, !14, i64 298, !10, i64 300, !10, i64 304, !10, i64 308, !10, i64 312, !10, i64 316, !10, i64 320, !10, i64 324, !7, i64 328, !10, i64 360, !10, i64 364, !10, i64 368, !7, i64 372, !10, i64 412, !10, i64 416, !10, i64 420, !10, 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, !10, i64 512}
!13 = !{!"double", !7, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = !{!16, !6, i64 0}
!16 = !{!"", !17, i64 0, !10, i64 4224, !10, i64 4228, !10, i64 4232, !10, i64 4236, !10, i64 4240, !7, i64 4248, !7, i64 4760, !7, i64 5272, !19, i64 5528, !10, i64 5536, !10, i64 5540, !10, i64 5544, !10, i64 5548, !10, i64 5552, !6, i64 5560, !6, i64 5568}
!17 = !{!"jpeg_comp_master", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !7, i64 72, !7, i64 2120, !10, i64 4168, !10, i64 4172, !10, i64 4176, !10, i64 4180, !10, i64 4184, !10, i64 4188, !10, i64 4192, !10, i64 4196, !10, i64 4200, !10, i64 4204, !10, i64 4208, !18, i64 4212, !18, i64 4216, !18, i64 4220}
!18 = !{!"float", !7, i64 0}
!19 = !{!"long", !7, i64 0}
!20 = !{!16, !6, i64 8}
!21 = !{!16, !6, i64 16}
!22 = !{!16, !10, i64 28}
!23 = !{!16, !10, i64 24}
!24 = !{!12, !6, i64 248}
!25 = !{!12, !10, i64 308}
!26 = !{!12, !10, i64 240}
!27 = !{!12, !10, i64 260}
!28 = !{!12, !10, i64 264}
!29 = !{!16, !10, i64 4224}
!30 = !{!16, !10, i64 4236}
!31 = !{!16, !10, i64 4228}
!32 = !{!16, !10, i64 4232}
!33 = !{!16, !6, i64 5568}
!34 = !{!16, !10, i64 4240}
!35 = !{!17, !10, i64 36}
!36 = !{!17, !10, i64 52}
!37 = !{!12, !10, i64 76}
!38 = !{!17, !10, i64 4184}
!39 = !{!17, !10, i64 32}
!40 = !{!16, !10, i64 5548}
!41 = distinct !{!41, !42}
!42 = !{!"llvm.loop.mustprogress"}


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

@.str = external hidden unnamed_addr constant [19 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @jinit_c_master_control(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
  %3 = getelementptr inbounds i8, ptr %0, i64 432
  %4 = load ptr, ptr %3, align 8, !tbaa !5
  store ptr @prepare_for_pass, ptr %4, align 8, !tbaa !13
  %5 = getelementptr inbounds i8, ptr %4, i64 8
  store ptr @pass_startup, ptr %5, align 8, !tbaa !18
  %6 = getelementptr inbounds i8, ptr %4, i64 16
  store ptr @finish_pass_master, ptr %6, align 8, !tbaa !19
  %7 = getelementptr inbounds i8, ptr %4, i64 28
  store i32 0, ptr %7, align 4, !tbaa !20
  %8 = getelementptr inbounds i8, ptr %4, i64 24
  store i32 0, ptr %8, align 8, !tbaa !21
  tail call void @initial_setup(ptr noundef %0, i32 noundef %1)
  %9 = getelementptr inbounds i8, ptr %0, i64 248
  %10 = load ptr, ptr %9, align 8, !tbaa !22
  %.not = icmp eq ptr %10, null
  br i1 %.not, label %.thread63, label %12

.thread63:                                        ; preds = %2
  %11 = getelementptr inbounds i8, ptr %0, i64 308
  store i32 0, ptr %11, align 4, !tbaa !23
  br label %.sink.split

12:                                               ; preds = %2
  tail call void @validate_script(ptr noundef nonnull %0)
  %.phi.trans.insert = getelementptr inbounds i8, ptr %0, i64 308
  %.pre = load i32, ptr %.phi.trans.insert, align 4, !tbaa !23
  %13 = icmp eq i32 %.pre, 0
  br i1 %13, label %18, label %14

14:                                               ; preds = %12
  %15 = getelementptr inbounds i8, ptr %0, i64 260
  %16 = load i32, ptr %15, align 4, !tbaa !24
  %.not48 = icmp eq i32 %16, 0
  br i1 %.not48, label %.sink.split, label %18

.sink.split:                                      ; preds = %14, %.thread63
  %.sink69 = phi i64 [ 240, %.thread63 ], [ 264, %14 ]
  %17 = getelementptr inbounds i8, ptr %0, i64 %.sink69
  store i32 1, ptr %17, align 8, !tbaa !25
  br label %18

18:                                               ; preds = %.sink.split, %14, %12
  %.not49 = icmp eq i32 %1, 0
  br i1 %.not49, label %25, label %19

19:                                               ; preds = %18
  %20 = getelementptr inbounds i8, ptr %0, i64 264
  %21 = load i32, ptr %20, align 8, !tbaa !26
  %.not50 = icmp eq i32 %21, 0
  %22 = getelementptr inbounds i8, ptr %4, i64 4224
  %23 = getelementptr inbounds i8, ptr %4, i64 4236
  %24 = getelementptr inbounds i8, ptr %4, i64 4228
  br i1 %.not50, label %.thread65, label %.thread67

.thread67:                                        ; preds = %19
  store i32 1, ptr %22, align 8, !tbaa !27
  store i32 0, ptr %23, align 4, !tbaa !28
  store i32 0, ptr %24, align 4, !tbaa !29
  br label %.thread

.thread65:                                        ; preds = %19
  store i32 2, ptr %22, align 8, !tbaa !27
  store i32 0, ptr %23, align 4, !tbaa !28
  store i32 0, ptr %24, align 4, !tbaa !29
  br label %30

25:                                               ; preds = %18
  %26 = getelementptr inbounds i8, ptr %4, i64 4224
  store i32 0, ptr %26, align 8, !tbaa !27
  %.phi.trans.insert61 = getelementptr inbounds i8, ptr %0, i64 264
  %.pre62 = load i32, ptr %.phi.trans.insert61, align 8, !tbaa !26
  %27 = icmp eq i32 %.pre62, 0
  %28 = getelementptr inbounds i8, ptr %4, i64 4236
  store i32 0, ptr %28, align 4, !tbaa !28
  %29 = getelementptr inbounds i8, ptr %4, i64 4228
  store i32 0, ptr %29, align 4, !tbaa !29
  br i1 %27, label %30, label %.thread

30:                                               ; preds = %.thread65, %25
  %31 = getelementptr inbounds i8, ptr %0, i64 240
  %32 = load i32, ptr %31, align 8, !tbaa !30
  %33 = getelementptr inbounds i8, ptr %4, i64 4232
  store i32 %32, ptr %33, align 8, !tbaa !31
  %34 = getelementptr inbounds i8, ptr %4, i64 5568
  store ptr @.str, ptr %34, align 8, !tbaa !32
  %35 = getelementptr inbounds i8, ptr %4, i64 4240
  store i32 0, ptr %35, align 8, !tbaa !33
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = getelementptr inbounds i8, ptr %36, i64 36
  %38 = load i32, ptr %37, align 4, !tbaa !34
  %.not52 = icmp eq i32 %38, 0
  br i1 %.not52, label %75, label %57

.thread:                                          ; preds = %.thread67, %25
  %39 = getelementptr inbounds i8, ptr %0, i64 240
  %40 = load i32, ptr %39, align 8, !tbaa !30
  %41 = shl nsw i32 %40, 1
  %42 = getelementptr inbounds i8, ptr %4, i64 4232
  store i32 %41, ptr %42, align 8, !tbaa !31
  %43 = getelementptr inbounds i8, ptr %4, i64 5568
  store ptr @.str, ptr %43, align 8, !tbaa !32
  %44 = getelementptr inbounds i8, ptr %4, i64 4240
  store i32 0, ptr %44, align 8, !tbaa !33
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = getelementptr inbounds i8, ptr %45, i64 36
  %47 = load i32, ptr %46, align 4, !tbaa !34
  %.not5257 = icmp eq i32 %47, 0
  br i1 %.not5257, label %75, label %.thread58

.thread58:                                        ; preds = %.thread
  %48 = getelementptr inbounds i8, ptr %45, i64 52
  %49 = load i32, ptr %48, align 4, !tbaa !35
  %.not55 = icmp eq i32 %49, 0
  %50 = getelementptr inbounds i8, ptr %0, i64 76
  %51 = load i32, ptr %50, align 4, !tbaa !36
  %52 = select i1 %.not55, i32 1, i32 2
  %53 = shl i32 %51, %52
  %54 = getelementptr inbounds i8, ptr %45, i64 4184
  %55 = load i32, ptr %54, align 8, !tbaa !37
  %56 = mul nsw i32 %53, %55
  br label %68

57:                                               ; preds = %30
  %58 = getelementptr inbounds i8, ptr %36, i64 52
  %59 = load i32, ptr %58, align 4, !tbaa !35
  %.not54 = icmp ne i32 %59, 0
  %60 = getelementptr inbounds i8, ptr %0, i64 76
  %61 = load i32, ptr %60, align 4, !tbaa !36
  %62 = zext i1 %.not54 to i32
  %63 = shl i32 %61, %62
  %64 = getelementptr inbounds i8, ptr %36, i64 4184
  %65 = load i32, ptr %64, align 8, !tbaa !37
  %66 = mul nsw i32 %63, %65
  %67 = add nsw i32 %66, 1
  br label %68

68:                                               ; preds = %57, %.thread58
  %69 = phi i32 [ %32, %57 ], [ %40, %.thread58 ]
  %70 = phi i32 [ %32, %57 ], [ %41, %.thread58 ]
  %71 = phi ptr [ %35, %57 ], [ %44, %.thread58 ]
  %72 = phi ptr [ %36, %57 ], [ %45, %.thread58 ]
  %storemerge = phi i32 [ %67, %57 ], [ %56, %.thread58 ]
  store i32 %storemerge, ptr %71, align 8, !tbaa !33
  %73 = getelementptr inbounds i8, ptr %4, i64 4232
  %74 = add nsw i32 %70, %storemerge
  store i32 %74, ptr %73, align 8, !tbaa !31
  br label %75

75:                                               ; preds = %.thread, %68, %30
  %76 = phi i32 [ %40, %.thread ], [ %69, %68 ], [ %32, %30 ]
  %77 = phi ptr [ %45, %.thread ], [ %72, %68 ], [ %36, %30 ]
  %78 = getelementptr inbounds i8, ptr %77, i64 32
  %79 = load i32, ptr %78, align 8, !tbaa !38
  %.not56 = icmp eq i32 %79, 0
  br i1 %.not56, label %.loopexit, label %80

80:                                               ; preds = %75
  %81 = getelementptr inbounds i8, ptr %4, i64 5548
  store i32 0, ptr %81, align 4, !tbaa !39
  %82 = icmp sgt i32 %76, 0
  br i1 %82, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %80
  %83 = getelementptr inbounds i8, ptr %4, i64 4248
  %84 = zext nneg i32 %76 to i64
  %85 = shl nuw nsw i64 %84, 3
  tail call void @llvm.memset.p0.i64(ptr nonnull align 8 %83, i8 0, i64 %85, i1 false), !tbaa !40
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph, %80, %75
  ret void
}

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

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

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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 = { nocallback nofree nounwind willreturn memory(argmem: write) }

!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 432}
!6 = !{!"jpeg_compress_struct", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !10, i64 36, !7, i64 40, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !11, i64 64, !10, i64 72, !10, i64 76, !10, i64 80, !7, i64 88, !8, i64 96, !8, i64 128, !8, i64 160, !8, i64 192, !8, i64 208, !8, i64 224, !10, i64 240, !7, i64 248, !10, i64 256, !10, i64 260, !10, i64 264, !10, i64 268, !10, i64 272, !10, i64 276, !10, i64 280, !10, i64 284, !10, i64 288, !8, i64 292, !8, i64 293, !8, i64 294, !12, i64 296, !12, i64 298, !10, i64 300, !10, i64 304, !10, i64 308, !10, i64 312, !10, i64 316, !10, i64 320, !10, i64 324, !8, i64 328, !10, i64 360, !10, i64 364, !10, i64 368, !8, i64 372, !10, i64 412, !10, i64 416, !10, i64 420, !10, 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, !10, i64 512}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!"short", !8, i64 0}
!13 = !{!14, !7, i64 0}
!14 = !{!"", !15, i64 0, !10, i64 4224, !10, i64 4228, !10, i64 4232, !10, i64 4236, !10, i64 4240, !8, i64 4248, !8, i64 4760, !8, i64 5272, !17, i64 5528, !10, i64 5536, !10, i64 5540, !10, i64 5544, !10, i64 5548, !10, i64 5552, !7, i64 5560, !7, i64 5568}
!15 = !{!"jpeg_comp_master", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !8, i64 72, !8, i64 2120, !10, i64 4168, !10, i64 4172, !10, i64 4176, !10, i64 4180, !10, i64 4184, !10, i64 4188, !10, i64 4192, !10, i64 4196, !10, i64 4200, !10, i64 4204, !10, i64 4208, !16, i64 4212, !16, i64 4216, !16, i64 4220}
!16 = !{!"float", !8, i64 0}
!17 = !{!"long", !8, i64 0}
!18 = !{!14, !7, i64 8}
!19 = !{!14, !7, i64 16}
!20 = !{!14, !10, i64 28}
!21 = !{!14, !10, i64 24}
!22 = !{!6, !7, i64 248}
!23 = !{!6, !10, i64 308}
!24 = !{!6, !10, i64 260}
!25 = !{!10, !10, i64 0}
!26 = !{!6, !10, i64 264}
!27 = !{!14, !10, i64 4224}
!28 = !{!14, !10, i64 4236}
!29 = !{!14, !10, i64 4228}
!30 = !{!6, !10, i64 240}
!31 = !{!14, !10, i64 4232}
!32 = !{!14, !7, i64 5568}
!33 = !{!14, !10, i64 4240}
!34 = !{!15, !10, i64 36}
!35 = !{!15, !10, i64 52}
!36 = !{!6, !10, i64 76}
!37 = !{!15, !10, i64 4184}
!38 = !{!15, !10, i64 32}
!39 = !{!14, !10, i64 5548}
!40 = !{!7, !7, i64 0}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,SROAPass,SimplifyCFGPass,TailCallElimPass