; LLVM IR from JayXon/Leanify :: formats/swf.ll (ZN3Swf7LeanifyEm)

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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%struct.LodePNGDecompressSettings = type { i32, i32, i64, ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.ZopfliOptions = type { i32, i32, i32, i32, i32, i32 }
%class.Format = type { ptr, ptr, i64 }

@_ZN3Swf20header_magic_deflateE = external dso_local constant [3 x i8], align 1
@_ZN3Swf17header_magic_lzmaE = external dso_local constant [3 x i8], align 1
@is_fast = external global i8, align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [20 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [32 x i8], align 1
@lodepng_default_decompress_settings = external global %struct.LodePNGDecompressSettings, align 8
@.str.3 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [25 x i8], align 1
@iterations = external global i32, align 4

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZN3Swf7LeanifyEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %1) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i64, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i8, align 1
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca i16, align 2
  %16 = alloca i32, align 4
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca %"class.std::__cxx11::basic_string", align 8
  %22 = alloca %"class.std::allocator", align 1
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca i32, align 4
  %28 = alloca i64, align 8
  %29 = alloca %"class.std::__cxx11::basic_string", align 8
  %30 = alloca %"class.std::allocator", align 1
  %31 = alloca i64, align 8
  %32 = alloca i64, align 8
  %33 = alloca i8, align 1
  %34 = alloca %"class.std::vector", align 8
  %35 = alloca %struct.ZopfliOptions, align 4
  %36 = alloca i64, align 8
  %37 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !9
  %38 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #9
  %39 = getelementptr inbounds %class.Format, ptr %38, i32 0, i32 1
  %40 = load ptr, ptr %39, align 8, !tbaa !11
  %41 = load i8, ptr %40, align 1, !tbaa !13
  store i8 %41, ptr %6, align 1, !tbaa !13
  %42 = load i8, ptr @is_fast, align 1, !tbaa !14, !range !16, !noundef !17
  %43 = trunc i8 %42 to i1
  br i1 %43, label %44, label %51

44:                                               ; preds = %2
  %45 = load i8, ptr %6, align 1, !tbaa !13
  %46 = sext i8 %45 to i32
  %47 = icmp ne i32 %46, 70
  br i1 %47, label %48, label %51

48:                                               ; preds = %44
  %49 = load i64, ptr %5, align 8, !tbaa !9
  %50 = call noundef i64 @_ZN6Format7LeanifyEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef %49)
  store i64 %50, ptr %3, align 8
  store i32 1, ptr %7, align 4
  br label %643

51:                                               ; preds = %44, %2
  %52 = getelementptr inbounds %class.Format, ptr %38, i32 0, i32 2
  %53 = load i64, ptr %52, align 8, !tbaa !18
  %54 = icmp ult i64 %53, 8
  br i1 %54, label %55, label %60

55:                                               ; preds = %51
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str)
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %56, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %58 = load i64, ptr %5, align 8, !tbaa !9
  %59 = call noundef i64 @_ZN6Format7LeanifyEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef %58)
  store i64 %59, ptr %3, align 8
  store i32 1, ptr %7, align 4
  br label %643

60:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #9
  %61 = getelementptr inbounds %class.Format, ptr %38, i32 0, i32 1
  %62 = load ptr, ptr %61, align 8, !tbaa !11
  %63 = getelementptr inbounds i8, ptr %62, i64 8
  store ptr %63, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #9
  %64 = getelementptr inbounds %class.Format, ptr %38, i32 0, i32 1
  %65 = load ptr, ptr %64, align 8, !tbaa !11
  %66 = getelementptr inbounds i8, ptr %65, i64 4
  %67 = load i32, ptr %66, align 4, !tbaa !19
  store i32 %67, ptr %9, align 4, !tbaa !19
  %68 = load i32, ptr %9, align 4, !tbaa !19
  %69 = icmp ult i32 %68, 9
  br i1 %69, label %70, label %77

70:                                               ; preds = %60
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.1)
  %72 = load i32, ptr %9, align 4, !tbaa !19
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %71, i32 noundef %72)
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %73, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %75 = load i64, ptr %5, align 8, !tbaa !9
  %76 = call noundef i64 @_ZN6Format7LeanifyEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef %75)
  store i64 %76, ptr %3, align 8
  store i32 1, ptr %7, align 4
  br label %642

77:                                               ; preds = %60
  %78 = load i32, ptr %9, align 4, !tbaa !19
  %79 = sub i32 %78, 8
  store i32 %79, ptr %9, align 4, !tbaa !19
  %80 = load i8, ptr %6, align 1, !tbaa !13
  %81 = sext i8 %80 to i32
  %82 = icmp eq i32 %81, 67
  br i1 %82, label %83, label %109

83:                                               ; preds = %77
  call void @_Z12VerbosePrintIA32_cEvRKT_(ptr noundef nonnull align 1 dereferenceable(32) @.str.2)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #9
  store i64 0, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #9
  store ptr null, ptr %11, align 8, !tbaa !5
  %84 = load ptr, ptr %8, align 8, !tbaa !5
  %85 = getelementptr inbounds %class.Format, ptr %38, i32 0, i32 2
  %86 = load i64, ptr %85, align 8, !tbaa !18
  %87 = sub i64 %86, 8
  %88 = call noundef i32 @_Z23lodepng_zlib_decompressPPhPmPKhmPK25LodePNGDecompressSettings(ptr noundef %11, ptr noundef %10, ptr noundef %84, i64 noundef %87, ptr noundef @lodepng_default_decompress_settings)
  %89 = icmp ne i32 %88, 0
  br i1 %89, label %98, label %90

90:                                               ; preds = %83
  %91 = load ptr, ptr %11, align 8, !tbaa !5
  %92 = icmp ne ptr %91, null
  br i1 %92, label %93, label %98

93:                                               ; preds = %90
  %94 = load i64, ptr %10, align 8, !tbaa !9
  %95 = load i32, ptr %9, align 4, !tbaa !19
  %96 = zext i32 %95 to i64
  %97 = icmp ne i64 %94, %96
  br i1 %97, label %98, label %104

98:                                               ; preds = %93, %90, %83
  %99 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.3)
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %99, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %101 = load ptr, ptr %11, align 8, !tbaa !5
  call void @free(ptr noundef %101) #9
  %102 = load i64, ptr %5, align 8, !tbaa !9
  %103 = call noundef i64 @_ZN6Format7LeanifyEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef %102)
  store i64 %103, ptr %3, align 8
  store i32 1, ptr %7, align 4
  br label %106

104:                                              ; preds = %93
  %105 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %105, ptr %8, align 8, !tbaa !5
  store i32 0, ptr %7, align 4
  br label %106

106:                                              ; preds = %104, %98
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  %107 = load i32, ptr %7, align 4
  switch i32 %107, label %642 [
    i32 0, label %108
  ]

108:                                              ; preds = %106
  br label %172

109:                                              ; preds = %77
  %110 = load i8, ptr %6, align 1, !tbaa !13
  %111 = sext i8 %110 to i32
  %112 = icmp eq i32 %111, 90
  br i1 %112, label %113, label %158

113:                                              ; preds = %109
  call void @_Z12VerbosePrintIA29_cEvRKT_(ptr noundef nonnull align 1 dereferenceable(29) @.str.4)
  %114 = getelementptr inbounds %class.Format, ptr %38, i32 0, i32 2
  %115 = load i64, ptr %114, align 8, !tbaa !18
  %116 = icmp ult i64 %115, 21
  br i1 %116, label %117, label %122

117:                                              ; preds = %113
  %118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str)
  %119 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %118, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %120 = load i64, ptr %5, align 8, !tbaa !9
  %121 = call noundef i64 @_ZN6Format7LeanifyEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef %120)
  store i64 %121, ptr %3, align 8
  store i32 1, ptr %7, align 4
  br label %642

122:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #9
  %123 = load i32, ptr %9, align 4, !tbaa !19
  %124 = zext i32 %123 to i64
  %125 = call noalias noundef nonnull ptr @_Znam(i64 noundef %124) #10
  store ptr %125, ptr %12, align 8, !tbaa !5
  %126 = load ptr, ptr %8, align 8, !tbaa !5
  %127 = load i32, ptr %126, align 4, !tbaa !19
  %128 = zext i32 %127 to i64
  %129 = getelementptr inbounds %class.Format, ptr %38, i32 0, i32 2
  %130 = load i64, ptr %129, align 8, !tbaa !18
  %131 = sub i64 %130, 12
  %132 = sub i64 %131, 5
  %133 = icmp ne i64 %128, %132
  br i1 %133, label %144, label %134

134:                                              ; preds = %122
  %135 = load ptr, ptr %8, align 8, !tbaa !5
  %136 = getelementptr inbounds i8, ptr %135, i64 4
  %137 = getelementptr inbounds %class.Format, ptr %38, i32 0, i32 2
  %138 = load i64, ptr %137, align 8, !tbaa !18
  %139 = sub i64 %138, 12
  %140 = load ptr, ptr %12, align 8, !tbaa !5
  %141 = load i32, ptr %9, align 4, !tbaa !19
  %142 = zext i32 %141 to i64
  %143 = call noundef zeroext i1 @_ZN12_GLOBAL__N_114LZMADecompressEPKhmPhm(ptr noundef %136, i64 noundef %139, ptr noundef %140, i64 noundef %142)
  br i1 %143, label %153, label %144

144:                                              ; preds = %134, %122
  %145 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.3)
  %146 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %145, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %147 = load ptr, ptr %12, align 8, !tbaa !5
  %148 = icmp eq ptr %147, null
  br i1 %148, label %150, label %149

149:                                              ; preds = %144
  call void @_ZdaPv(ptr noundef %147) #11
  br label %150

150:                                              ; preds = %149, %144
  %151 = load i64, ptr %5, align 8, !tbaa !9
  %152 = call noundef i64 @_ZN6Format7LeanifyEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef %151)
  store i64 %152, ptr %3, align 8
  store i32 1, ptr %7, align 4
  br label %155

153:                                              ; preds = %134
  %154 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %154, ptr %8, align 8, !tbaa !5
  store i32 0, ptr %7, align 4
  br label %155

155:                                              ; preds = %153, %150
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  %156 = load i32, ptr %7, align 4
  switch i32 %156, label %642 [
    i32 0, label %157
  ]

157:                                              ; preds = %155
  br label %171

158:                                              ; preds = %109
  call void @_Z12VerbosePrintIA23_cEvRKT_(ptr noundef nonnull align 1 dereferenceable(23) @.str.5)
  %159 = load i32, ptr %9, align 4, !tbaa !19
  %160 = add i32 %159, 8
  %161 = zext i32 %160 to i64
  %162 = getelementptr inbounds %class.Format, ptr %38, i32 0, i32 2
  %163 = load i64, ptr %162, align 8, !tbaa !18
  %164 = icmp ugt i64 %161, %163
  br i1 %164, label %165, label %170

165:                                              ; preds = %158
  %166 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str)
  %167 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %166, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %168 = load i64, ptr %5, align 8, !tbaa !9
  %169 = call noundef i64 @_ZN6Format7LeanifyEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef %168)
  store i64 %169, ptr %3, align 8
  store i32 1, ptr %7, align 4
  br label %642

170:                                              ; preds = %158
  br label %171

171:                                              ; preds = %170, %157
  br label %172

172:                                              ; preds = %171, %108
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #9
  %173 = load ptr, ptr %8, align 8, !tbaa !5
  %174 = load ptr, ptr %8, align 8, !tbaa !5
  %175 = call noundef i64 @_ZN12_GLOBAL__N_111GetRECTSizeEPh(ptr noundef %174)
  %176 = getelementptr inbounds i8, ptr %173, i64 %175
  store ptr %176, ptr %13, align 8, !tbaa !5
  %177 = load ptr, ptr %13, align 8, !tbaa !5
  %178 = getelementptr inbounds i8, ptr %177, i64 4
  store ptr %178, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %179

179:                                              ; preds = %465, %172
  %180 = load ptr, ptr %13, align 8, !tbaa !5
  %181 = getelementptr inbounds i8, ptr %180, i64 2
  %182 = load ptr, ptr %8, align 8, !tbaa !5
  %183 = load i32, ptr %9, align 4, !tbaa !19
  %184 = zext i32 %183 to i64
  %185 = getelementptr inbounds i8, ptr %182, i64 %184
  %186 = icmp ule ptr %181, %185
  br i1 %186, label %187, label %467

187:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 2, ptr %15) #9
  %188 = load ptr, ptr %13, align 8, !tbaa !5
  %189 = load i16, ptr %188, align 2, !tbaa !21
  %190 = zext i16 %189 to i32
  %191 = ashr i32 %190, 6
  %192 = trunc i32 %191 to i16
  store i16 %192, ptr %15, align 2, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #9
  %193 = load ptr, ptr %13, align 8, !tbaa !5
  %194 = load i8, ptr %193, align 1, !tbaa !13
  %195 = zext i8 %194 to i32
  %196 = and i32 %195, 63
  store i32 %196, ptr %16, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #9
  store i64 2, ptr %17, align 8, !tbaa !9
  %197 = load i32, ptr %16, align 4, !tbaa !19
  %198 = icmp eq i32 %197, 63
  br i1 %198, label %199, label %214

199:                                              ; preds = %187
  %200 = load ptr, ptr %13, align 8, !tbaa !5
  %201 = getelementptr inbounds i8, ptr %200, i64 6
  %202 = load ptr, ptr %8, align 8, !tbaa !5
  %203 = load i32, ptr %9, align 4, !tbaa !19
  %204 = zext i32 %203 to i64
  %205 = getelementptr inbounds i8, ptr %202, i64 %204
  %206 = icmp ugt ptr %201, %205
  br i1 %206, label %207, label %208

207:                                              ; preds = %199
  store i32 3, ptr %7, align 4
  br label %463

208:                                              ; preds = %199
  %209 = load ptr, ptr %13, align 8, !tbaa !5
  %210 = getelementptr inbounds i8, ptr %209, i64 2
  %211 = load i32, ptr %210, align 4, !tbaa !19
  store i32 %211, ptr %16, align 4, !tbaa !19
  %212 = load i64, ptr %17, align 8, !tbaa !9
  %213 = add i64 %212, 4
  store i64 %213, ptr %17, align 8, !tbaa !9
  br label %214

214:                                              ; preds = %208, %187
  %215 = load ptr, ptr %13, align 8, !tbaa !5
  %216 = load i64, ptr %14, align 8, !tbaa !9
  %217 = sub i64 0, %216
  %218 = getelementptr inbounds i8, ptr %215, i64 %217
  %219 = load ptr, ptr %13, align 8, !tbaa !5
  %220 = load i64, ptr %17, align 8, !tbaa !9
  call void @llvm.memmove.p0.p0.i64(ptr align 1 %218, ptr align 1 %219, i64 %220, i1 false)
  %221 = load i64, ptr %17, align 8, !tbaa !9
  %222 = load ptr, ptr %13, align 8, !tbaa !5
  %223 = getelementptr inbounds i8, ptr %222, i64 %221
  store ptr %223, ptr %13, align 8, !tbaa !5
  %224 = load i32, ptr %16, align 4, !tbaa !19
  %225 = load i32, ptr %9, align 4, !tbaa !19
  %226 = icmp ugt i32 %224, %225
  br i1 %226, label %239, label %227

227:                                              ; preds = %214
  %228 = load ptr, ptr %13, align 8, !tbaa !5
  %229 = load ptr, ptr %8, align 8, !tbaa !5
  %230 = ptrtoint ptr %228 to i64
  %231 = ptrtoint ptr %229 to i64
  %232 = sub i64 %230, %231
  %233 = load i32, ptr %16, align 4, !tbaa !19
  %234 = zext i32 %233 to i64
  %235 = add nsw i64 %232, %234
  %236 = load i32, ptr %9, align 4, !tbaa !19
  %237 = zext i32 %236 to i64
  %238 = icmp sgt i64 %235, %237
  br i1 %238, label %239, label %240

239:                                              ; preds = %227, %214
  call void @_Z12VerbosePrintIA19_cJjEEvRKT_DpRKT0_(ptr noundef nonnull align 1 dereferenceable(19) @.str.6, ptr noundef nonnull align 4 dereferenceable(4) %16)
  store i32 3, ptr %7, align 4
  br label %463

240:                                              ; preds = %227
  %241 = load i16, ptr %15, align 2, !tbaa !21
  %242 = zext i16 %241 to i32
  switch i32 %242, label %450 [
    i32 20, label %243
    i32 36, label %243
    i32 21, label %294
    i32 35, label %337
    i32 90, label %337
    i32 77, label %437
    i32 69, label %444
  ]

243:                                              ; preds = %240, %240
  call void @_Z12VerbosePrintIA30_cEvRKT_(ptr noundef nonnull align 1 dereferenceable(30) @.str.7)
  %244 = load i32, ptr %16, align 4, !tbaa !19
  %245 = icmp ugt i32 3, %244
  br i1 %245, label %246, label %247

246:                                              ; preds = %243
  call void @_Z12VerbosePrintIA20_cJjEEvRKT_DpRKT0_(ptr noundef nonnull align 1 dereferenceable(20) @.str.8, ptr noundef nonnull align 4 dereferenceable(4) %16)
  br label %458

247:                                              ; preds = %243
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #9
  %248 = load ptr, ptr %13, align 8, !tbaa !5
  %249 = getelementptr inbounds i8, ptr %248, i64 3
  %250 = load i8, ptr %249, align 1, !tbaa !13
  %251 = zext i8 %250 to i32
  %252 = icmp eq i32 %251, 3
  %253 = zext i1 %252 to i32
  %254 = add nsw i32 7, %253
  %255 = sext i32 %254 to i64
  store i64 %255, ptr %18, align 8, !tbaa !9
  %256 = load i64, ptr %18, align 8, !tbaa !9
  %257 = load i32, ptr %16, align 4, !tbaa !19
  %258 = zext i32 %257 to i64
  %259 = icmp ugt i64 %256, %258
  br i1 %259, label %260, label %261

260:                                              ; preds = %247
  call void @_Z12VerbosePrintIA20_cJjEEvRKT_DpRKT0_(ptr noundef nonnull align 1 dereferenceable(20) @.str.8, ptr noundef nonnull align 4 dereferenceable(4) %16)
  store i32 4, ptr %7, align 4
  br label %293

261:                                              ; preds = %247
  %262 = load ptr, ptr %13, align 8, !tbaa !5
  %263 = load i64, ptr %14, align 8, !tbaa !9
  %264 = sub i64 0, %263
  %265 = getelementptr inbounds i8, ptr %262, i64 %264
  %266 = load ptr, ptr %13, align 8, !tbaa !5
  %267 = load i64, ptr %18, align 8, !tbaa !9
  call void @llvm.memmove.p0.p0.i64(ptr align 1 %265, ptr align 1 %266, i64 %267, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #9
  %268 = load ptr, ptr %13, align 8, !tbaa !5
  %269 = load i64, ptr %18, align 8, !tbaa !9
  %270 = getelementptr inbounds i8, ptr %268, i64 %269
  %271 = load i32, ptr %16, align 4, !tbaa !19
  %272 = zext i32 %271 to i64
  %273 = load i64, ptr %18, align 8, !tbaa !9
  %274 = sub i64 %272, %273
  %275 = load i64, ptr %14, align 8, !tbaa !9
  %276 = call noundef i64 @_Z14ZlibRecompressPhmm(ptr noundef %270, i64 noundef %274, i64 noundef %275)
  store i64 %276, ptr %19, align 8, !tbaa !9
  %277 = load ptr, ptr %13, align 8, !tbaa !5
  %278 = load i64, ptr %14, align 8, !tbaa !9
  %279 = sub i64 0, %278
  %280 = getelementptr inbounds i8, ptr %277, i64 %279
  %281 = load i64, ptr %17, align 8, !tbaa !9
  %282 = load i64, ptr %18, align 8, !tbaa !9
  %283 = load i64, ptr %19, align 8, !tbaa !9
  %284 = add i64 %282, %283
  call void @_ZN12_GLOBAL__N_115UpdateTagLengthEPhmm(ptr noundef %280, i64 noundef %281, i64 noundef %284)
  %285 = load i32, ptr %16, align 4, !tbaa !19
  %286 = zext i32 %285 to i64
  %287 = load i64, ptr %18, align 8, !tbaa !9
  %288 = sub i64 %286, %287
  %289 = load i64, ptr %19, align 8, !tbaa !9
  %290 = sub i64 %288, %289
  %291 = load i64, ptr %14, align 8, !tbaa !9
  %292 = add i64 %291, %290
  store i64 %292, ptr %14, align 8, !tbaa !9
  store i32 4, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  br label %293

293:                                              ; preds = %261, %260
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  br label %458

294:                                              ; preds = %240
  call void @_Z12VerbosePrintIA27_cEvRKT_(ptr noundef nonnull align 1 dereferenceable(27) @.str.9)
  %295 = load i32, ptr %16, align 4, !tbaa !19
  %296 = icmp ugt i32 2, %295
  br i1 %296, label %297, label %298

297:                                              ; preds = %294
  call void @_Z12VerbosePrintIA20_cJjEEvRKT_DpRKT0_(ptr noundef nonnull align 1 dereferenceable(20) @.str.8, ptr noundef nonnull align 4 dereferenceable(4) %16)
  br label %458

298:                                              ; preds = %294
  %299 = load ptr, ptr %13, align 8, !tbaa !5
  %300 = load i16, ptr %299, align 2, !tbaa !21
  %301 = load ptr, ptr %13, align 8, !tbaa !5
  %302 = load i64, ptr %14, align 8, !tbaa !9
  %303 = sub i64 0, %302
  %304 = getelementptr inbounds i8, ptr %301, i64 %303
  store i16 %300, ptr %304, align 2, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #9
  %305 = load ptr, ptr %13, align 8, !tbaa !5
  %306 = getelementptr inbounds i8, ptr %305, i64 2
  %307 = load i32, ptr %16, align 4, !tbaa !19
  %308 = sub i32 %307, 2
  %309 = zext i32 %308 to i64
  %310 = load i64, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef @.str.10, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %311 unwind label %328

311:                                              ; preds = %298
  %312 = invoke noundef i64 @_Z11LeanifyFilePvmmRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef %306, i64 noundef %309, i64 noundef %310, ptr noundef nonnull align 8 dereferenceable(32) %21)
          to label %313 unwind label %332

313:                                              ; preds = %311
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #9
  store i64 %312, ptr %20, align 8, !tbaa !9
  %314 = load ptr, ptr %13, align 8, !tbaa !5
  %315 = load i64, ptr %14, align 8, !tbaa !9
  %316 = sub i64 0, %315
  %317 = getelementptr inbounds i8, ptr %314, i64 %316
  %318 = load i64, ptr %17, align 8, !tbaa !9
  %319 = load i64, ptr %20, align 8, !tbaa !9
  %320 = add i64 2, %319
  call void @_ZN12_GLOBAL__N_115UpdateTagLengthEPhmm(ptr noundef %317, i64 noundef %318, i64 noundef %320)
  %321 = load i32, ptr %16, align 4, !tbaa !19
  %322 = sub i32 %321, 2
  %323 = zext i32 %322 to i64
  %324 = load i64, ptr %20, align 8, !tbaa !9
  %325 = sub i64 %323, %324
  %326 = load i64, ptr %14, align 8, !tbaa !9
  %327 = add i64 %326, %325
  store i64 %327, ptr %14, align 8, !tbaa !9
  store i32 4, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  br label %458

328:                                              ; preds = %298
  %329 = landingpad { ptr, i32 }
          cleanup
  %330 = extractvalue { ptr, i32 } %329, 0
  store ptr %330, ptr %23, align 8
  %331 = extractvalue { ptr, i32 } %329, 1
  store i32 %331, ptr %24, align 4
  br label %336

332:                                              ; preds = %311
  %333 = landingpad { ptr, i32 }
          cleanup
  %334 = extractvalue { ptr, i32 } %333, 0
  store ptr %334, ptr %23, align 8
  %335 = extractvalue { ptr, i32 } %333, 1
  store i32 %335, ptr %24, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #9
  br label %336

336:                                              ; preds = %332, %328
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  br label %466

337:                                              ; preds = %240, %240
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #9
  %338 = load i16, ptr %15, align 2, !tbaa !21
  %339 = zext i16 %338 to i32
  %340 = icmp eq i32 %339, 90
  %341 = zext i1 %340 to i64
  %342 = select i1 %340, i32 8, i32 6
  %343 = sext i32 %342 to i64
  store i64 %343, ptr %25, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #9
  %344 = load i64, ptr %25, align 8, !tbaa !9
  %345 = udiv i64 %344, 2
  store i64 %345, ptr %26, align 8, !tbaa !9
  call void @_Z12VerbosePrintIA15_cJmA12_cEEvRKT_DpRKT0_(ptr noundef nonnull align 1 dereferenceable(15) @.str.11, ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 1 dereferenceable(12) @.str.12)
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #9
  %346 = load i64, ptr %25, align 8, !tbaa !9
  %347 = load i32, ptr %16, align 4, !tbaa !19
  %348 = zext i32 %347 to i64
  %349 = icmp ugt i64 %346, %348
  br i1 %349, label %350, label %351

350:                                              ; preds = %337
  call void @_Z12VerbosePrintIA20_cJjEEvRKT_DpRKT0_(ptr noundef nonnull align 1 dereferenceable(20) @.str.8, ptr noundef nonnull align 4 dereferenceable(4) %16)
  store i32 4, ptr %7, align 4
  br label %436

351:                                              ; preds = %337
  %352 = load ptr, ptr %13, align 8, !tbaa !5
  %353 = load i16, ptr %352, align 2, !tbaa !21
  %354 = load ptr, ptr %13, align 8, !tbaa !5
  %355 = load i64, ptr %14, align 8, !tbaa !9
  %356 = sub i64 0, %355
  %357 = getelementptr inbounds i8, ptr %354, i64 %356
  store i16 %353, ptr %357, align 2, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #9
  %358 = load ptr, ptr %13, align 8, !tbaa !5
  %359 = getelementptr inbounds i8, ptr %358, i64 2
  %360 = load i32, ptr %359, align 4, !tbaa !19
  store i32 %360, ptr %27, align 4, !tbaa !19
  %361 = load i32, ptr %27, align 4, !tbaa !19
  %362 = load i32, ptr %16, align 4, !tbaa !19
  %363 = icmp ugt i32 %361, %362
  br i1 %363, label %372, label %364

364:                                              ; preds = %351
  %365 = load i64, ptr %25, align 8, !tbaa !9
  %366 = load i32, ptr %27, align 4, !tbaa !19
  %367 = zext i32 %366 to i64
  %368 = add i64 %365, %367
  %369 = load i32, ptr %16, align 4, !tbaa !19
  %370 = zext i32 %369 to i64
  %371 = icmp ugt i64 %368, %370
  br i1 %371, label %372, label %373

372:                                              ; preds = %364, %351
  call void @_Z12VerbosePrintIA20_cJjEEvRKT_DpRKT0_(ptr noundef nonnull align 1 dereferenceable(20) @.str.8, ptr noundef nonnull align 4 dereferenceable(4) %16)
  store i32 4, ptr %7, align 4
  br label %435

373:                                              ; preds = %364
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #9
  %374 = load ptr, ptr %13, align 8, !tbaa !5
  %375 = load i64, ptr %25, align 8, !tbaa !9
  %376 = getelementptr inbounds i8, ptr %374, i64 %375
  %377 = load i32, ptr %27, align 4, !tbaa !19
  %378 = zext i32 %377 to i64
  %379 = load i64, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %29) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef @.str.10, ptr noundef nonnull align 1 dereferenceable(1) %30)
          to label %380 unwind label %426

380:                                              ; preds = %373
  %381 = invoke noundef i64 @_Z11LeanifyFilePvmmRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef %376, i64 noundef %378, i64 noundef %379, ptr noundef nonnull align 8 dereferenceable(32) %29)
          to label %382 unwind label %430

382:                                              ; preds = %380
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #9
  store i64 %381, ptr %28, align 8, !tbaa !9
  %383 = load i64, ptr %28, align 8, !tbaa !9
  %384 = trunc i64 %383 to i32
  %385 = load ptr, ptr %13, align 8, !tbaa !5
  %386 = getelementptr inbounds i8, ptr %385, i64 2
  %387 = load i64, ptr %14, align 8, !tbaa !9
  %388 = sub i64 0, %387
  %389 = getelementptr inbounds i8, ptr %386, i64 %388
  store i32 %384, ptr %389, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #9
  %390 = load ptr, ptr %13, align 8, !tbaa !5
  %391 = load i64, ptr %25, align 8, !tbaa !9
  %392 = getelementptr inbounds i8, ptr %390, i64 %391
  %393 = load i32, ptr %27, align 4, !tbaa !19
  %394 = zext i32 %393 to i64
  %395 = getelementptr inbounds i8, ptr %392, i64 %394
  %396 = load i32, ptr %16, align 4, !tbaa !19
  %397 = load i32, ptr %27, align 4, !tbaa !19
  %398 = sub i32 %396, %397
  %399 = zext i32 %398 to i64
  %400 = load i64, ptr %25, align 8, !tbaa !9
  %401 = sub i64 %399, %400
  %402 = load i64, ptr %14, align 8, !tbaa !9
  %403 = load i32, ptr %27, align 4, !tbaa !19
  %404 = zext i32 %403 to i64
  %405 = add i64 %402, %404
  %406 = load i64, ptr %28, align 8, !tbaa !9
  %407 = sub i64 %405, %406
  %408 = call noundef i64 @_Z14ZlibRecompressPhmm(ptr noundef %395, i64 noundef %401, i64 noundef %407)
  store i64 %408, ptr %31, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #9
  %409 = load i64, ptr %28, align 8, !tbaa !9
  %410 = load i64, ptr %31, align 8, !tbaa !9
  %411 = add i64 %409, %410
  %412 = load i64, ptr %25, align 8, !tbaa !9
  %413 = add i64 %411, %412
  store i64 %413, ptr %32, align 8, !tbaa !9
  %414 = load ptr, ptr %13, align 8, !tbaa !5
  %415 = load i64, ptr %14, align 8, !tbaa !9
  %416 = sub i64 0, %415
  %417 = getelementptr inbounds i8, ptr %414, i64 %416
  %418 = load i64, ptr %17, align 8, !tbaa !9
  %419 = load i64, ptr %32, align 8, !tbaa !9
  call void @_ZN12_GLOBAL__N_115UpdateTagLengthEPhmm(ptr noundef %417, i64 noundef %418, i64 noundef %419)
  %420 = load i32, ptr %16, align 4, !tbaa !19
  %421 = zext i32 %420 to i64
  %422 = load i64, ptr %32, align 8, !tbaa !9
  %423 = sub i64 %421, %422
  %424 = load i64, ptr %14, align 8, !tbaa !9
  %425 = add i64 %424, %423
  store i64 %425, ptr %14, align 8, !tbaa !9
  store i32 4, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  br label %435

426:                                              ; preds = %373
  %427 = landingpad { ptr, i32 }
          cleanup
  %428 = extractvalue { ptr, i32 } %427, 0
  store ptr %428, ptr %23, align 8
  %429 = extractvalue { ptr, i32 } %427, 1
  store i32 %429, ptr %24, align 4
  br label %434

430:                                              ; preds = %380
  %431 = landingpad { ptr, i32 }
          cleanup
  %432 = extractvalue { ptr, i32 } %431, 0
  store ptr %432, ptr %23, align 8
  %433 = extractvalue { ptr, i32 } %431, 1
  store i32 %433, ptr %24, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #9
  br label %434

434:                                              ; preds = %430, %426
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  br label %466

435:                                              ; preds = %382, %372
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
  br label %436

436:                                              ; preds = %435, %350
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  br label %458

437:                                              ; preds = %240
  call void @_Z12VerbosePrintIA18_cEvRKT_(ptr noundef nonnull align 1 dereferenceable(18) @.str.13)
  %438 = load i32, ptr %16, align 4, !tbaa !19
  %439 = zext i32 %438 to i64
  %440 = load i64, ptr %17, align 8, !tbaa !9
  %441 = add i64 %439, %440
  %442 = load i64, ptr %14, align 8, !tbaa !9
  %443 = add i64 %442, %441
  store i64 %443, ptr %14, align 8, !tbaa !9
  br label %458

444:                                              ; preds = %240
  %445 = load ptr, ptr %13, align 8, !tbaa !5
  %446 = load i8, ptr %445, align 1, !tbaa !13
  %447 = zext i8 %446 to i32
  %448 = and i32 %447, -17
  %449 = trunc i32 %448 to i8
  store i8 %449, ptr %445, align 1, !tbaa !13
  br label %450

450:                                              ; preds = %444, %240
  %451 = load ptr, ptr %13, align 8, !tbaa !5
  %452 = load i64, ptr %14, align 8, !tbaa !9
  %453 = sub i64 0, %452
  %454 = getelementptr inbounds i8, ptr %451, i64 %453
  %455 = load ptr, ptr %13, align 8, !tbaa !5
  %456 = load i32, ptr %16, align 4, !tbaa !19
  %457 = zext i32 %456 to i64
  call void @llvm.memmove.p0.p0.i64(ptr align 1 %454, ptr align 1 %455, i64 %457, i1 false)
  br label %458

458:                                              ; preds = %450, %437, %436, %313, %297, %293, %246
  %459 = load i32, ptr %16, align 4, !tbaa !19
  %460 = load ptr, ptr %13, align 8, !tbaa !5
  %461 = zext i32 %459 to i64
  %462 = getelementptr inbounds i8, ptr %460, i64 %461
  store ptr %462, ptr %13, align 8, !tbaa !5
  store i32 0, ptr %7, align 4
  br label %463

463:                                              ; preds = %458, %239, %207
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 2, ptr %15) #9
  %464 = load i32, ptr %7, align 4
  switch i32 %464, label %650 [
    i32 0, label %465
    i32 3, label %467
  ]

465:                                              ; preds = %463
  br label %179, !llvm.loop !23

466:                                              ; preds = %434, %336
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 2, ptr %15) #9
  br label %641

467:                                              ; preds = %463, %179
  call void @_Z12VerbosePrintIA34_cJmEEvRKT_DpRKT0_(ptr noundef nonnull align 1 dereferenceable(34) @.str.14, ptr noundef nonnull align 8 dereferenceable(8) %14)
  %468 = load i64, ptr %14, align 8, !tbaa !9
  %469 = load i32, ptr %9, align 4, !tbaa !19
  %470 = zext i32 %469 to i64
  %471 = sub i64 %470, %468
  %472 = trunc i64 %471 to i32
  store i32 %472, ptr %9, align 4, !tbaa !19
  %473 = load i8, ptr @is_fast, align 1, !tbaa !14, !range !16, !noundef !17
  %474 = trunc i8 %473 to i1
  br i1 %474, label %475, label %507

475:                                              ; preds = %467
  %476 = load i64, ptr %5, align 8, !tbaa !9
  %477 = getelementptr inbounds %class.Format, ptr %38, i32 0, i32 1
  %478 = load ptr, ptr %477, align 8, !tbaa !11
  %479 = sub i64 0, %476
  %480 = getelementptr inbounds i8, ptr %478, i64 %479
  store ptr %480, ptr %477, align 8, !tbaa !11
  %481 = getelementptr inbounds %class.Format, ptr %38, i32 0, i32 1
  %482 = load ptr, ptr %481, align 8, !tbaa !11
  %483 = getelementptr inbounds %class.Format, ptr %38, i32 0, i32 1
  %484 = load ptr, ptr %483, align 8, !tbaa !11
  %485 = load i64, ptr %5, align 8, !tbaa !9
  %486 = getelementptr inbounds i8, ptr %484, i64 %485
  call void @llvm.memmove.p0.p0.i64(ptr align 1 %482, ptr align 1 %486, i64 4, i1 false)
  %487 = load i32, ptr %9, align 4, !tbaa !19
  %488 = add i32 %487, 8
  %489 = zext i32 %488 to i64
  %490 = getelementptr inbounds %class.Format, ptr %38, i32 0, i32 2
  store i64 %489, ptr %490, align 8, !tbaa !18
  %491 = trunc i64 %489 to i32
  %492 = getelementptr inbounds %class.Format, ptr %38, i32 0, i32 1
  %493 = load ptr, ptr %492, align 8, !tbaa !11
  %494 = getelementptr inbounds i8, ptr %493, i64 4
  store i32 %491, ptr %494, align 4, !tbaa !19
  %495 = getelementptr inbounds %class.Format, ptr %38, i32 0, i32 1
  %496 = load ptr, ptr %495, align 8, !tbaa !11
  %497 = getelementptr inbounds i8, ptr %496, i64 8
  %498 = getelementptr inbounds %class.Format, ptr %38, i32 0, i32 1
  %499 = load ptr, ptr %498, align 8, !tbaa !11
  %500 = getelementptr inbounds i8, ptr %499, i64 8
  %501 = load i64, ptr %5, align 8, !tbaa !9
  %502 = getelementptr inbounds i8, ptr %500, i64 %501
  %503 = load i32, ptr %9, align 4, !tbaa !19
  %504 = zext i32 %503 to i64
  call void @llvm.memmove.p0.p0.i64(ptr align 1 %497, ptr align 1 %502, i64 %504, i1 false)
  %505 = getelementptr inbounds %class.Format, ptr %38, i32 0, i32 2
  %506 = load i64, ptr %505, align 8, !tbaa !18
  store i64 %506, ptr %3, align 8
  store i32 1, ptr %7, align 4
  br label %640

507:                                              ; preds = %467
  call void @llvm.lifetime.start.p0(i64 1, ptr %33) #9
  %508 = getelementptr inbounds %class.Format, ptr %38, i32 0, i32 1
  %509 = load ptr, ptr %508, align 8, !tbaa !11
  %510 = getelementptr inbounds i8, ptr %509, i64 3
  %511 = load i8, ptr %510, align 1, !tbaa !13
  store i8 %511, ptr %33, align 1, !tbaa !13
  %512 = load i64, ptr %5, align 8, !tbaa !9
  %513 = getelementptr inbounds %class.Format, ptr %38, i32 0, i32 1
  %514 = load ptr, ptr %513, align 8, !tbaa !11
  %515 = sub i64 0, %512
  %516 = getelementptr inbounds i8, ptr %514, i64 %515
  store ptr %516, ptr %513, align 8, !tbaa !11
  %517 = load i8, ptr %33, align 1, !tbaa !13
  %518 = zext i8 %517 to i32
  %519 = icmp sge i32 %518, 13
  br i1 %519, label %520, label %579

520:                                              ; preds = %507
  call void @llvm.lifetime.start.p0(i64 24, ptr %34) #9
  call void @_ZNSt6vectorIhSaIhEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #9
  %521 = load ptr, ptr %8, align 8, !tbaa !5
  %522 = load i32, ptr %9, align 4, !tbaa !19
  %523 = zext i32 %522 to i64
  %524 = invoke noundef zeroext i1 @_ZN12_GLOBAL__N_112LZMACompressEPKhmPSt6vectorIhSaIhEE(ptr noundef %521, i64 noundef %523, ptr noundef %34)
          to label %525 unwind label %531

525:                                              ; preds = %520
  br i1 %524, label %535, label %526

526:                                              ; preds = %525
  %527 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.15)
          to label %528 unwind label %531

528:                                              ; preds = %526
  %529 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %527, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %530 unwind label %531

530:                                              ; preds = %528
  call void @_ZNSt6vectorIhSaIhEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %34) #9
  br label %535

531:                                              ; preds = %528, %526, %520
  %532 = landingpad { ptr, i32 }
          cleanup
  %533 = extractvalue { ptr, i32 } %532, 0
  store ptr %533, ptr %23, align 8
  %534 = extractvalue { ptr, i32 } %532, 1
  store i32 %534, ptr %24, align 4
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %33) #9
  br label %641

535:                                              ; preds = %530, %525
  %536 = call noundef zeroext i1 @_ZNKSt6vectorIhSaIhEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %34) #9
  br i1 %536, label %569, label %537

537:                                              ; preds = %535
  %538 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %34) #9
  %539 = add i64 %538, 12
  %540 = getelementptr inbounds %class.Format, ptr %38, i32 0, i32 2
  %541 = load i64, ptr %540, align 8, !tbaa !18
  %542 = icmp ult i64 %539, %541
  br i1 %542, label %543, label %569

543:                                              ; preds = %537
  %544 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %34) #9
  %545 = add i64 %544, 12
  %546 = getelementptr inbounds %class.Format, ptr %38, i32 0, i32 2
  store i64 %545, ptr %546, align 8, !tbaa !18
  %547 = getelementptr inbounds %class.Format, ptr %38, i32 0, i32 1
  %548 = load ptr, ptr %547, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %548, ptr align 1 @_ZN3Swf17header_magic_lzmaE, i64 3, i1 false)
  %549 = load i8, ptr %33, align 1, !tbaa !13
  %550 = getelementptr inbounds %class.Format, ptr %38, i32 0, i32 1
  %551 = load ptr, ptr %550, align 8, !tbaa !11
  %552 = getelementptr inbounds i8, ptr %551, i64 3
  store i8 %549, ptr %552, align 1, !tbaa !13
  %553 = load i32, ptr %9, align 4, !tbaa !19
  %554 = add i32 %553, 8
  %555 = getelementptr inbounds %class.Format, ptr %38, i32 0, i32 1
  %556 = load ptr, ptr %555, align 8, !tbaa !11
  %557 = getelementptr inbounds i8, ptr %556, i64 4
  store i32 %554, ptr %557, align 4, !tbaa !19
  %558 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %34) #9
  %559 = sub i64 %558, 5
  %560 = trunc i64 %559 to i32
  %561 = getelementptr inbounds %class.Format, ptr %38, i32 0, i32 1
  %562 = load ptr, ptr %561, align 8, !tbaa !11
  %563 = getelementptr inbounds i8, ptr %562, i64 8
  store i32 %560, ptr %563, align 4, !tbaa !19
  %564 = getelementptr inbounds %class.Format, ptr %38, i32 0, i32 1
  %565 = load ptr, ptr %564, align 8, !tbaa !11
  %566 = getelementptr inbounds i8, ptr %565, i64 12
  %567 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %34) #9
  %568 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %34) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %566, ptr align 1 %567, i64 %568, i1 false)
  br label %578

569:                                              ; preds = %537, %535
  %570 = getelementptr inbounds %class.Format, ptr %38, i32 0, i32 1
  %571 = load ptr, ptr %570, align 8, !tbaa !11
  %572 = getelementptr inbounds %class.Format, ptr %38, i32 0, i32 1
  %573 = load ptr, ptr %572, align 8, !tbaa !11
  %574 = load i64, ptr %5, align 8, !tbaa !9
  %575 = getelementptr inbounds i8, ptr %573, i64 %574
  %576 = getelementptr inbounds %class.Format, ptr %38, i32 0, i32 2
  %577 = load i64, ptr %576, align 8, !tbaa !18
  call void @llvm.memmove.p0.p0.i64(ptr align 1 %571, ptr align 1 %575, i64 %577, i1 false)
  br label %578

578:                                              ; preds = %569, %543
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #9
  br label %621

579:                                              ; preds = %507
  call void @llvm.lifetime.start.p0(i64 24, ptr %35) #9
  call void @ZopfliInitOptions(ptr noundef %35)
  %580 = load i32, ptr @iterations, align 4, !tbaa !19
  %581 = getelementptr inbounds %struct.ZopfliOptions, ptr %35, i32 0, i32 2
  store i32 %580, ptr %581, align 4, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #9
  store i64 0, ptr %36, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #9
  store ptr null, ptr %37, align 8, !tbaa !5
  %582 = load ptr, ptr %8, align 8, !tbaa !5
  %583 = load i32, ptr %9, align 4, !tbaa !19
  %584 = zext i32 %583 to i64
  call void @ZopfliZlibCompress(ptr noundef %35, ptr noundef %582, i64 noundef %584, ptr noundef %37, ptr noundef %36)
  %585 = load i64, ptr %36, align 8, !tbaa !9
  %586 = add i64 %585, 8
  %587 = getelementptr inbounds %class.Format, ptr %38, i32 0, i32 2
  %588 = load i64, ptr %587, align 8, !tbaa !18
  %589 = icmp ult i64 %586, %588
  br i1 %589, label %590, label %610

590:                                              ; preds = %579
  %591 = load i64, ptr %36, align 8, !tbaa !9
  %592 = add i64 %591, 8
  %593 = getelementptr inbounds %class.Format, ptr %38, i32 0, i32 2
  store i64 %592, ptr %593, align 8, !tbaa !18
  %594 = getelementptr inbounds %class.Format, ptr %38, i32 0, i32 1
  %595 = load ptr, ptr %594, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %595, ptr align 1 @_ZN3Swf20header_magic_deflateE, i64 3, i1 false)
  %596 = load i8, ptr %33, align 1, !tbaa !13
  %597 = getelementptr inbounds %class.Format, ptr %38, i32 0, i32 1
  %598 = load ptr, ptr %597, align 8, !tbaa !11
  %599 = getelementptr inbounds i8, ptr %598, i64 3
  store i8 %596, ptr %599, align 1, !tbaa !13
  %600 = load i32, ptr %9, align 4, !tbaa !19
  %601 = add i32 %600, 8
  %602 = getelementptr inbounds %class.Format, ptr %38, i32 0, i32 1
  %603 = load ptr, ptr %602, align 8, !tbaa !11
  %604 = getelementptr inbounds i8, ptr %603, i64 4
  store i32 %601, ptr %604, align 4, !tbaa !19
  %605 = getelementptr inbounds %class.Format, ptr %38, i32 0, i32 1
  %606 = load ptr, ptr %605, align 8, !tbaa !11
  %607 = getelementptr inbounds i8, ptr %606, i64 8
  %608 = load ptr, ptr %37, align 8, !tbaa !5
  %609 = load i64, ptr %36, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %607, ptr align 1 %608, i64 %609, i1 false)
  br label %619

610:                                              ; preds = %579
  %611 = getelementptr inbounds %class.Format, ptr %38, i32 0, i32 1
  %612 = load ptr, ptr %611, align 8, !tbaa !11
  %613 = getelementptr inbounds %class.Format, ptr %38, i32 0, i32 1
  %614 = load ptr, ptr %613, align 8, !tbaa !11
  %615 = load i64, ptr %5, align 8, !tbaa !9
  %616 = getelementptr inbounds i8, ptr %614, i64 %615
  %617 = getelementptr inbounds %class.Format, ptr %38, i32 0, i32 2
  %618 = load i64, ptr %617, align 8, !tbaa !18
  call void @llvm.memmove.p0.p0.i64(ptr align 1 %612, ptr align 1 %616, i64 %618, i1 false)
  br label %619

619:                                              ; preds = %610, %590
  %620 = load ptr, ptr %37, align 8, !tbaa !5
  call void @free(ptr noundef %620) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %35) #9
  br label %621

621:                                              ; preds = %619, %578
  %622 = load i8, ptr %6, align 1, !tbaa !13
  %623 = sext i8 %622 to i32
  %624 = icmp eq i32 %623, 67
  br i1 %624, label %625, label %627

625:                                              ; preds = %621
  %626 = load ptr, ptr %8, align 8, !tbaa !5
  call void @free(ptr noundef %626) #9
  br label %637

627:                                              ; preds = %621
  %628 = load i8, ptr %6, align 1, !tbaa !13
  %629 = sext i8 %628 to i32
  %630 = icmp eq i32 %629, 90
  br i1 %630, label %631, label %636

631:                                              ; preds = %627
  %632 = load ptr, ptr %8, align 8, !tbaa !5
  %633 = icmp eq ptr %632, null
  br i1 %633, label %635, label %634

634:                                              ; preds = %631
  call void @_ZdaPv(ptr noundef %632) #11
  br label %635

635:                                              ; preds = %634, %631
  br label %636

636:                                              ; preds = %635, %627
  br label %637

637:                                              ; preds = %636, %625
  %638 = getelementptr inbounds %class.Format, ptr %38, i32 0, i32 2
  %639 = load i64, ptr %638, align 8, !tbaa !18
  store i64 %639, ptr %3, align 8
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %33) #9
  br label %640

640:                                              ; preds = %637, %475
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  br label %642

641:                                              ; preds = %531, %466
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #9
  br label %645

642:                                              ; preds = %640, %165, %155, %117, %106, %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  br label %643

643:                                              ; preds = %642, %55, %48
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #9
  %644 = load i64, ptr %3, align 8
  ret i64 %644

645:                                              ; preds = %641
  %646 = load ptr, ptr %23, align 8
  %647 = load i32, ptr %24, align 4
  %648 = insertvalue { ptr, i32 } poison, ptr %646, 0
  %649 = insertvalue { ptr, i32 } %648, i32 %647, 1
  resume { ptr, i32 } %649

650:                                              ; preds = %463
  unreachable
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN6Format7LeanifyEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z12VerbosePrintIA32_cEvRKT_(ptr noundef nonnull align 1 dereferenceable(32)) #0

declare noundef i32 @_Z23lodepng_zlib_decompressPPhPmPKhmPK25LodePNGDecompressSettings(ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef) #4

; Function Attrs: nounwind
declare void @free(ptr noundef) #5

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z12VerbosePrintIA29_cEvRKT_(ptr noundef nonnull align 1 dereferenceable(29)) #0

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #6

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN12_GLOBAL__N_114LZMADecompressEPKhmPhm(ptr noundef, i64 noundef, ptr noundef, i64 noundef) #0

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #7

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z12VerbosePrintIA23_cEvRKT_(ptr noundef nonnull align 1 dereferenceable(23)) #0

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i64 @_ZN12_GLOBAL__N_111GetRECTSizeEPh(ptr noundef) #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memmove.p0.p0.i64(ptr nocapture writeonly, ptr nocapture readonly, i64, i1 immarg) #8

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z12VerbosePrintIA19_cJjEEvRKT_DpRKT0_(ptr noundef nonnull align 1 dereferenceable(19), ptr noundef nonnull align 4 dereferenceable(4)) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z12VerbosePrintIA30_cEvRKT_(ptr noundef nonnull align 1 dereferenceable(30)) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z12VerbosePrintIA20_cJjEEvRKT_DpRKT0_(ptr noundef nonnull align 1 dereferenceable(20), ptr noundef nonnull align 4 dereferenceable(4)) #0

declare noundef i64 @_Z14ZlibRecompressPhmm(ptr noundef, i64 noundef, i64 noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN12_GLOBAL__N_115UpdateTagLengthEPhmm(ptr noundef, i64 noundef, i64 noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z12VerbosePrintIA27_cEvRKT_(ptr noundef nonnull align 1 dereferenceable(27)) #0

declare noundef i64 @_Z11LeanifyFilePvmmRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef, i64 noundef, i64 noundef, ptr noundef nonnull align 8 dereferenceable(32)) #4

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z12VerbosePrintIA15_cJmA12_cEEvRKT_DpRKT0_(ptr noundef nonnull align 1 dereferenceable(15), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(12)) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z12VerbosePrintIA18_cEvRKT_(ptr noundef nonnull align 1 dereferenceable(18)) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z12VerbosePrintIA34_cJmEEvRKT_DpRKT0_(ptr noundef nonnull align 1 dereferenceable(34), ptr noundef nonnull align 8 dereferenceable(8)) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIhSaIhEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN12_GLOBAL__N_112LZMACompressEPKhmPSt6vectorIhSaIhEE(ptr noundef, i64 noundef, ptr noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIhSaIhEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorIhSaIhEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

declare void @ZopfliInitOptions(ptr noundef) #4

declare void @ZopfliZlibCompress(ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

attributes #0 = { mustprogress 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 = { mustprogress 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 = { inlinehint mustprogress 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 #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nobuiltin 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 #8 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #9 = { nounwind }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { builtin 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !6, i64 8}
!12 = !{!"_ZTS6Format", !6, i64 8, !10, i64 16}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = !{!12, !10, i64 16}
!19 = !{!20, !20, i64 0}
!20 = !{!"int", !7, i64 0}
!21 = !{!22, !22, i64 0}
!22 = !{!"short", !7, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!26, !20, i64 8}
!26 = !{!"_ZTS13ZopfliOptions", !20, i64 0, !20, i64 4, !20, i64 8, !20, i64 12, !20, i64 16, !20, i64 20}


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%struct.LodePNGDecompressSettings = type { i32, i32, i64, ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.ZopfliOptions = type { i32, i32, i32, i32, i32, i32 }

@_ZN3Swf20header_magic_deflateE = external dso_local local_unnamed_addr constant [3 x i8], align 1
@_ZN3Swf17header_magic_lzmaE = external dso_local local_unnamed_addr constant [3 x i8], align 1
@is_fast = external local_unnamed_addr global i8, align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [20 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [32 x i8], align 1
@lodepng_default_decompress_settings = external global %struct.LodePNGDecompressSettings, align 8
@.str.3 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [25 x i8], align 1
@iterations = external local_unnamed_addr global i32, align 4

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZN3Swf7LeanifyEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %1) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i64, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::allocator", align 1
  %9 = alloca i64, align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::allocator", align 1
  %12 = alloca %"class.std::vector", align 8
  %13 = alloca %struct.ZopfliOptions, align 4
  %14 = alloca i64, align 8
  %15 = alloca ptr, align 8
  %16 = getelementptr inbounds i8, ptr %0, i64 8
  %17 = load ptr, ptr %16, align 8, !tbaa !5
  %18 = load i8, ptr %17, align 1, !tbaa !11
  %19 = load i8, ptr @is_fast, align 1, !tbaa !12, !range !14, !noundef !15
  %20 = trunc nuw i8 %19 to i1
  %21 = icmp ne i8 %18, 70
  %or.cond = select i1 %20, i1 %21, i1 false
  br i1 %or.cond, label %22, label %24

22:                                               ; preds = %2
  %23 = tail call noundef i64 @_ZN6Format7LeanifyEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %1)
  br label %350

24:                                               ; preds = %2
  %25 = getelementptr inbounds i8, ptr %0, i64 16
  %26 = load i64, ptr %25, align 8, !tbaa !16
  %27 = icmp ult i64 %26, 8
  br i1 %27, label %28, label %32

28:                                               ; preds = %24
  %29 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str)
  %30 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %31 = tail call noundef i64 @_ZN6Format7LeanifyEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %1)
  br label %350

32:                                               ; preds = %24
  %33 = getelementptr inbounds i8, ptr %17, i64 8
  %34 = getelementptr inbounds i8, ptr %17, i64 4
  %35 = load i32, ptr %34, align 4, !tbaa !17
  %36 = icmp ult i32 %35, 9
  br i1 %36, label %37, label %42

37:                                               ; preds = %32
  %38 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.1)
  %39 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %38, i32 noundef %35)
  %40 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %41 = tail call noundef i64 @_ZN6Format7LeanifyEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %1)
  br label %350

42:                                               ; preds = %32
  %43 = add i32 %35, -8
  %44 = icmp eq i8 %18, 67
  br i1 %44, label %45, label %59

45:                                               ; preds = %42
  tail call void @_Z12VerbosePrintIA32_cEvRKT_(ptr noundef nonnull align 1 dereferenceable(32) @.str.2)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #9
  store i64 0, ptr %3, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #9
  store ptr null, ptr %4, align 8, !tbaa !20
  %46 = load i64, ptr %25, align 8, !tbaa !16
  %47 = add i64 %46, -8
  %48 = call noundef i32 @_Z23lodepng_zlib_decompressPPhPmPKhmPK25LodePNGDecompressSettings(ptr noundef nonnull %4, ptr noundef nonnull %3, ptr noundef nonnull %33, i64 noundef %47, ptr noundef nonnull @lodepng_default_decompress_settings)
  %49 = icmp eq i32 %48, 0
  %50 = load ptr, ptr %4, align 8
  %51 = icmp ne ptr %50, null
  %or.cond5 = select i1 %49, i1 %51, i1 false
  %52 = load i64, ptr %3, align 8
  %53 = zext i32 %43 to i64
  %.not165 = icmp eq i64 %52, %53
  %or.cond174 = select i1 %or.cond5, i1 %.not165, i1 false
  br i1 %or.cond174, label %.thread, label %54

.thread:                                          ; preds = %45
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #9
  br label %.thread178

54:                                               ; preds = %45
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.3)
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %55, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %57 = load ptr, ptr %4, align 8, !tbaa !20
  call void @free(ptr noundef %57) #9
  %58 = call noundef i64 @_ZN6Format7LeanifyEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %1)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #9
  br label %350

59:                                               ; preds = %42
  %60 = icmp eq i8 %18, 90
  br i1 %60, label %61, label %82

61:                                               ; preds = %59
  tail call void @_Z12VerbosePrintIA29_cEvRKT_(ptr noundef nonnull align 1 dereferenceable(29) @.str.4)
  %62 = load i64, ptr %25, align 8, !tbaa !16
  %63 = icmp ult i64 %62, 21
  br i1 %63, label %64, label %68

64:                                               ; preds = %61
  %65 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str)
  %66 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %65, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %67 = tail call noundef i64 @_ZN6Format7LeanifyEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %1)
  br label %350

68:                                               ; preds = %61
  %69 = zext i32 %43 to i64
  %70 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %69) #10
  %71 = load i32, ptr %33, align 4, !tbaa !17
  %72 = zext i32 %71 to i64
  %73 = add i64 %62, -17
  %.not = icmp eq i64 %73, %72
  br i1 %.not, label %74, label %78

74:                                               ; preds = %68
  %75 = add nsw i64 %62, -12
  %76 = getelementptr inbounds i8, ptr %17, i64 12
  %77 = tail call noundef zeroext i1 @_ZN12_GLOBAL__N_114LZMADecompressEPKhmPhm(ptr noundef nonnull %76, i64 noundef %75, ptr noundef nonnull %70, i64 noundef %69)
  br i1 %77, label %.thread178, label %78

78:                                               ; preds = %68, %74
  %79 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.3)
  %80 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %79, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  tail call void @_ZdaPv(ptr noundef nonnull %70) #11
  %81 = tail call noundef i64 @_ZN6Format7LeanifyEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %1)
  br label %350

82:                                               ; preds = %59
  tail call void @_Z12VerbosePrintIA23_cEvRKT_(ptr noundef nonnull align 1 dereferenceable(23) @.str.5)
  %83 = zext i32 %35 to i64
  %84 = load i64, ptr %25, align 8, !tbaa !16
  %85 = icmp ult i64 %84, %83
  br i1 %85, label %86, label %..thread178_crit_edge

..thread178_crit_edge:                            ; preds = %82
  %.pre195 = zext i32 %43 to i64
  br label %.thread178

86:                                               ; preds = %82
  %87 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str)
  %88 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %87, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %89 = tail call noundef i64 @_ZN6Format7LeanifyEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %1)
  br label %350

.thread178:                                       ; preds = %..thread178_crit_edge, %74, %.thread
  %.pre-phi196 = phi i64 [ %.pre195, %..thread178_crit_edge ], [ %69, %74 ], [ %53, %.thread ]
  %.2138 = phi ptr [ %33, %..thread178_crit_edge ], [ %70, %74 ], [ %50, %.thread ]
  %90 = call noundef i64 @_ZN12_GLOBAL__N_111GetRECTSizeEPh(ptr noundef nonnull %.2138)
  %91 = getelementptr inbounds i8, ptr %.2138, i64 %90
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #9
  store i64 0, ptr %5, align 8, !tbaa !19
  %92 = getelementptr inbounds i8, ptr %.2138, i64 %.pre-phi196
  %93 = getelementptr inbounds i8, ptr %91, i64 6
  %.not166190 = icmp ugt ptr %93, %92
  br i1 %.not166190, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.thread178
  %94 = getelementptr inbounds i8, ptr %91, i64 4
  %95 = ptrtoint ptr %.2138 to i64
  br label %96

96:                                               ; preds = %.lr.ph, %251
  %97 = phi ptr [ %93, %.lr.ph ], [ %255, %251 ]
  %.0139191 = phi ptr [ %94, %.lr.ph ], [ %254, %251 ]
  %98 = load i16, ptr %.0139191, align 2
  %99 = lshr i16 %98, 6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #9
  %100 = trunc i16 %98 to i8
  %101 = and i8 %100, 63
  %102 = zext nneg i8 %101 to i32
  store i32 %102, ptr %6, align 4, !tbaa !17
  %103 = icmp eq i8 %101, 63
  br i1 %103, label %104, label %109

104:                                              ; preds = %96
  %105 = getelementptr inbounds i8, ptr %.0139191, i64 6
  %106 = icmp ugt ptr %105, %92
  br i1 %106, label %.thread182, label %107

107:                                              ; preds = %104
  %108 = load i32, ptr %97, align 4, !tbaa !17
  store i32 %108, ptr %6, align 4, !tbaa !17
  br label %109

109:                                              ; preds = %107, %96
  %.0141 = phi i64 [ 6, %107 ], [ 2, %96 ]
  %110 = load i64, ptr %5, align 8, !tbaa !19
  %111 = sub i64 0, %110
  %112 = getelementptr inbounds i8, ptr %.0139191, i64 %111
  call void @llvm.memmove.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(1) %112, ptr noundef nonnull align 1 dereferenceable(1) %.0139191, i64 %.0141, i1 false)
  %113 = getelementptr inbounds i8, ptr %.0139191, i64 %.0141
  %114 = load i32, ptr %6, align 4, !tbaa !17
  %115 = icmp ugt i32 %114, %43
  br i1 %115, label %122, label %116

116:                                              ; preds = %109
  %117 = ptrtoint ptr %113 to i64
  %118 = sub i64 %117, %95
  %119 = zext i32 %114 to i64
  %120 = add nsw i64 %118, %119
  %121 = icmp sgt i64 %120, %.pre-phi196
  br i1 %121, label %122, label %123

122:                                              ; preds = %116, %109
  call void @_Z12VerbosePrintIA19_cJjEEvRKT_DpRKT0_(ptr noundef nonnull align 1 dereferenceable(19) @.str.6, ptr noundef nonnull align 4 dereferenceable(4) %6)
  br label %.thread182

123:                                              ; preds = %116
  switch i16 %99, label %247 [
    i16 20, label %124
    i16 36, label %124
    i16 21, label %155
    i16 35, label %185
    i16 90, label %185
    i16 77, label %238
    i16 69, label %244
  ]

124:                                              ; preds = %123, %123
  call void @_Z12VerbosePrintIA30_cEvRKT_(ptr noundef nonnull align 1 dereferenceable(30) @.str.7)
  %125 = load i32, ptr %6, align 4, !tbaa !17
  %126 = icmp ult i32 %125, 3
  br i1 %126, label %127, label %128

127:                                              ; preds = %124
  call void @_Z12VerbosePrintIA20_cJjEEvRKT_DpRKT0_(ptr noundef nonnull align 1 dereferenceable(20) @.str.8, ptr noundef nonnull align 4 dereferenceable(4) %6)
  br label %251

128:                                              ; preds = %124
  %129 = getelementptr inbounds i8, ptr %113, i64 3
  %130 = load i8, ptr %129, align 1, !tbaa !11
  %131 = icmp eq i8 %130, 3
  %132 = select i1 %131, i64 8, i64 7
  %133 = zext i32 %125 to i64
  %134 = icmp ugt i64 %132, %133
  br i1 %134, label %135, label %136

135:                                              ; preds = %128
  call void @_Z12VerbosePrintIA20_cJjEEvRKT_DpRKT0_(ptr noundef nonnull align 1 dereferenceable(20) @.str.8, ptr noundef nonnull align 4 dereferenceable(4) %6)
  br label %251

136:                                              ; preds = %128
  %137 = load i64, ptr %5, align 8, !tbaa !19
  %138 = sub i64 0, %137
  %139 = getelementptr inbounds i8, ptr %113, i64 %138
  call void @llvm.memmove.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(7) %139, ptr noundef nonnull align 1 dereferenceable(7) %113, i64 %132, i1 false)
  %140 = getelementptr inbounds i8, ptr %113, i64 %132
  %141 = load i32, ptr %6, align 4, !tbaa !17
  %142 = zext i32 %141 to i64
  %143 = sub nsw i64 %142, %132
  %144 = load i64, ptr %5, align 8, !tbaa !19
  %145 = call noundef i64 @_Z14ZlibRecompressPhmm(ptr noundef nonnull %140, i64 noundef %143, i64 noundef %144)
  %146 = load i64, ptr %5, align 8, !tbaa !19
  %147 = sub i64 0, %146
  %148 = getelementptr inbounds i8, ptr %113, i64 %147
  %149 = add i64 %145, %132
  call void @_ZN12_GLOBAL__N_115UpdateTagLengthEPhmm(ptr noundef nonnull %148, i64 noundef %.0141, i64 noundef %149)
  %150 = load i32, ptr %6, align 4, !tbaa !17
  %151 = zext i32 %150 to i64
  %152 = sub i64 %151, %149
  %153 = load i64, ptr %5, align 8, !tbaa !19
  %154 = add i64 %152, %153
  store i64 %154, ptr %5, align 8, !tbaa !19
  br label %251

155:                                              ; preds = %123
  call void @_Z12VerbosePrintIA27_cEvRKT_(ptr noundef nonnull align 1 dereferenceable(27) @.str.9)
  %156 = load i32, ptr %6, align 4, !tbaa !17
  %157 = icmp ult i32 %156, 2
  br i1 %157, label %158, label %159

158:                                              ; preds = %155
  call void @_Z12VerbosePrintIA20_cJjEEvRKT_DpRKT0_(ptr noundef nonnull align 1 dereferenceable(20) @.str.8, ptr noundef nonnull align 4 dereferenceable(4) %6)
  br label %251

159:                                              ; preds = %155
  %160 = load i16, ptr %113, align 2, !tbaa !21
  %161 = load i64, ptr %5, align 8, !tbaa !19
  %162 = sub i64 0, %161
  %163 = getelementptr inbounds i8, ptr %113, i64 %162
  store i16 %160, ptr %163, align 2, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull @.str.10, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %164 unwind label %180

164:                                              ; preds = %159
  %165 = add i32 %156, -2
  %166 = zext i32 %165 to i64
  %167 = getelementptr inbounds i8, ptr %113, i64 2
  %168 = invoke noundef i64 @_Z11LeanifyFilePvmmRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull %167, i64 noundef %166, i64 noundef %161, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %169 unwind label %182

169:                                              ; preds = %164
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #9
  %170 = load i64, ptr %5, align 8, !tbaa !19
  %171 = sub i64 0, %170
  %172 = getelementptr inbounds i8, ptr %113, i64 %171
  %173 = add i64 %168, 2
  call void @_ZN12_GLOBAL__N_115UpdateTagLengthEPhmm(ptr noundef nonnull %172, i64 noundef %.0141, i64 noundef %173)
  %174 = load i32, ptr %6, align 4, !tbaa !17
  %175 = add i32 %174, -2
  %176 = zext i32 %175 to i64
  %177 = load i64, ptr %5, align 8, !tbaa !19
  %178 = sub i64 %177, %168
  %179 = add i64 %178, %176
  store i64 %179, ptr %5, align 8, !tbaa !19
  br label %251

180:                                              ; preds = %159
  %181 = landingpad { ptr, i32 }
          cleanup
  br label %184

182:                                              ; preds = %164
  %183 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #9
  br label %184

184:                                              ; preds = %182, %180
  %.pn168 = phi { ptr, i32 } [ %183, %182 ], [ %181, %180 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #9
  br label %256

185:                                              ; preds = %123, %123
  %186 = icmp eq i16 %99, 90
  %187 = select i1 %186, i64 8, i64 6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #9
  %188 = lshr exact i64 %187, 1
  store i64 %188, ptr %9, align 8, !tbaa !19
  call void @_Z12VerbosePrintIA15_cJmA12_cEEvRKT_DpRKT0_(ptr noundef nonnull align 1 dereferenceable(15) @.str.11, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 1 dereferenceable(12) @.str.12)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #9
  %189 = load i32, ptr %6, align 4, !tbaa !17
  %190 = zext i32 %189 to i64
  %191 = icmp ugt i64 %187, %190
  br i1 %191, label %192, label %193

192:                                              ; preds = %185
  call void @_Z12VerbosePrintIA20_cJjEEvRKT_DpRKT0_(ptr noundef nonnull align 1 dereferenceable(20) @.str.8, ptr noundef nonnull align 4 dereferenceable(4) %6)
  br label %251

193:                                              ; preds = %185
  %194 = load i16, ptr %113, align 2, !tbaa !21
  %195 = load i64, ptr %5, align 8, !tbaa !19
  %196 = sub i64 0, %195
  %197 = getelementptr inbounds i8, ptr %113, i64 %196
  store i16 %194, ptr %197, align 2, !tbaa !21
  %198 = getelementptr inbounds i8, ptr %113, i64 2
  %199 = load i32, ptr %198, align 4, !tbaa !17
  %200 = icmp ugt i32 %199, %189
  br i1 %200, label %205, label %201

201:                                              ; preds = %193
  %202 = zext i32 %199 to i64
  %203 = add nuw nsw i64 %187, %202
  %204 = icmp ugt i64 %203, %190
  br i1 %204, label %205, label %206

205:                                              ; preds = %201, %193
  call void @_Z12VerbosePrintIA20_cJjEEvRKT_DpRKT0_(ptr noundef nonnull align 1 dereferenceable(20) @.str.8, ptr noundef nonnull align 4 dereferenceable(4) %6)
  br label %251

206:                                              ; preds = %201
  %207 = getelementptr inbounds i8, ptr %113, i64 %187
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull @.str.10, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %208 unwind label %233

208:                                              ; preds = %206
  %209 = invoke noundef i64 @_Z11LeanifyFilePvmmRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull %207, i64 noundef %202, i64 noundef %195, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %210 unwind label %235

210:                                              ; preds = %208
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #9
  %211 = trunc i64 %209 to i32
  %212 = load i64, ptr %5, align 8, !tbaa !19
  %213 = sub i64 0, %212
  %214 = getelementptr inbounds i8, ptr %198, i64 %213
  store i32 %211, ptr %214, align 4, !tbaa !17
  %215 = getelementptr inbounds i8, ptr %207, i64 %202
  %216 = load i32, ptr %6, align 4, !tbaa !17
  %217 = sub i32 %216, %199
  %218 = zext i32 %217 to i64
  %219 = sub nsw i64 %218, %187
  %220 = sub i64 %202, %209
  %221 = add i64 %220, %212
  %222 = call noundef i64 @_Z14ZlibRecompressPhmm(ptr noundef nonnull %215, i64 noundef %219, i64 noundef %221)
  %223 = add i64 %209, %187
  %224 = add i64 %223, %222
  %225 = load i64, ptr %5, align 8, !tbaa !19
  %226 = sub i64 0, %225
  %227 = getelementptr inbounds i8, ptr %113, i64 %226
  call void @_ZN12_GLOBAL__N_115UpdateTagLengthEPhmm(ptr noundef nonnull %227, i64 noundef %.0141, i64 noundef %224)
  %228 = load i32, ptr %6, align 4, !tbaa !17
  %229 = zext i32 %228 to i64
  %230 = sub i64 %229, %224
  %231 = load i64, ptr %5, align 8, !tbaa !19
  %232 = add i64 %230, %231
  store i64 %232, ptr %5, align 8, !tbaa !19
  br label %251

233:                                              ; preds = %206
  %234 = landingpad { ptr, i32 }
          cleanup
  br label %237

235:                                              ; preds = %208
  %236 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #9
  br label %237

237:                                              ; preds = %235, %233
  %.pn = phi { ptr, i32 } [ %236, %235 ], [ %234, %233 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #9
  br label %256

238:                                              ; preds = %123
  call void @_Z12VerbosePrintIA18_cEvRKT_(ptr noundef nonnull align 1 dereferenceable(18) @.str.13)
  %239 = load i32, ptr %6, align 4, !tbaa !17
  %240 = zext i32 %239 to i64
  %241 = add nuw nsw i64 %.0141, %240
  %242 = load i64, ptr %5, align 8, !tbaa !19
  %243 = add i64 %241, %242
  store i64 %243, ptr %5, align 8, !tbaa !19
  br label %251

244:                                              ; preds = %123
  %245 = load i8, ptr %113, align 1, !tbaa !11
  %246 = and i8 %245, -17
  store i8 %246, ptr %113, align 1, !tbaa !11
  %.pre = load i32, ptr %6, align 4, !tbaa !17
  %.pre194 = zext i32 %.pre to i64
  br label %247

247:                                              ; preds = %244, %123
  %.pre-phi = phi i64 [ %.pre194, %244 ], [ %119, %123 ]
  %248 = load i64, ptr %5, align 8, !tbaa !19
  %249 = sub i64 0, %248
  %250 = getelementptr inbounds i8, ptr %113, i64 %249
  call void @llvm.memmove.p0.p0.i64(ptr nonnull align 1 %250, ptr nonnull align 1 %113, i64 %.pre-phi, i1 false)
  br label %251

.thread182:                                       ; preds = %104, %122
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #9
  br label %.loopexit

251:                                              ; preds = %127, %158, %169, %238, %247, %136, %135, %205, %210, %192
  %252 = load i32, ptr %6, align 4, !tbaa !17
  %253 = zext i32 %252 to i64
  %254 = getelementptr inbounds i8, ptr %113, i64 %253
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #9
  %255 = getelementptr inbounds i8, ptr %254, i64 2
  %.not166 = icmp ugt ptr %255, %92
  br i1 %.not166, label %.loopexit, label %96

256:                                              ; preds = %237, %184
  %.pn.pn = phi { ptr, i32 } [ %.pn, %237 ], [ %.pn168, %184 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #9
  br label %349

.loopexit:                                        ; preds = %251, %.thread178, %.thread182
  call void @_Z12VerbosePrintIA34_cJmEEvRKT_DpRKT0_(ptr noundef nonnull align 1 dereferenceable(34) @.str.14, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %257 = load i64, ptr %5, align 8, !tbaa !19
  %258 = trunc i64 %257 to i32
  %259 = sub i32 %43, %258
  %260 = load i8, ptr @is_fast, align 1, !tbaa !12, !range !14, !noundef !15
  %261 = trunc nuw i8 %260 to i1
  %262 = load ptr, ptr %16, align 8, !tbaa !5
  br i1 %261, label %263, label %274

263:                                              ; preds = %.loopexit
  %264 = sub i64 0, %1
  %265 = getelementptr inbounds i8, ptr %262, i64 %264
  store ptr %265, ptr %16, align 8, !tbaa !5
  %266 = load i32, ptr %262, align 1
  store i32 %266, ptr %265, align 1
  %267 = add i32 %259, 8
  %268 = zext i32 %267 to i64
  store i64 %268, ptr %25, align 8, !tbaa !16
  %269 = load ptr, ptr %16, align 8, !tbaa !5
  %270 = getelementptr inbounds i8, ptr %269, i64 4
  store i32 %267, ptr %270, align 4, !tbaa !17
  %271 = getelementptr inbounds i8, ptr %269, i64 8
  %272 = getelementptr inbounds i8, ptr %271, i64 %1
  %273 = zext i32 %259 to i64
  call void @llvm.memmove.p0.p0.i64(ptr nonnull align 1 %271, ptr nonnull align 1 %272, i64 %273, i1 false)
  br label %348

274:                                              ; preds = %.loopexit
  %275 = getelementptr inbounds i8, ptr %262, i64 3
  %276 = load i8, ptr %275, align 1, !tbaa !11
  %277 = sub i64 0, %1
  %278 = getelementptr inbounds i8, ptr %262, i64 %277
  store ptr %278, ptr %16, align 8, !tbaa !5
  %279 = icmp ugt i8 %276, 12
  br i1 %279, label %280, label %320

280:                                              ; preds = %274
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #9
  call void @_ZNSt6vectorIhSaIhEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #9
  %281 = zext i32 %259 to i64
  %282 = invoke noundef zeroext i1 @_ZN12_GLOBAL__N_112LZMACompressEPKhmPSt6vectorIhSaIhEE(ptr noundef nonnull %.2138, i64 noundef %281, ptr noundef nonnull %12)
          to label %283 unwind label %289

283:                                              ; preds = %280
  br i1 %282, label %291, label %284

284:                                              ; preds = %283
  %285 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.15)
          to label %286 unwind label %289

286:                                              ; preds = %284
  %287 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %285, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %288 unwind label %289

288:                                              ; preds = %286
  call void @_ZNSt6vectorIhSaIhEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #9
  br label %291

289:                                              ; preds = %286, %284, %280
  %290 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #9
  br label %349

291:                                              ; preds = %288, %283
  %292 = call noundef zeroext i1 @_ZNKSt6vectorIhSaIhEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #9
  br i1 %292, label %._crit_edge, label %293

._crit_edge:                                      ; preds = %291
  %.pre193 = load i64, ptr %25, align 8, !tbaa !16
  br label %315

293:                                              ; preds = %291
  %294 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #9
  %295 = add i64 %294, 12
  %296 = load i64, ptr %25, align 8, !tbaa !16
  %297 = icmp ult i64 %295, %296
  br i1 %297, label %298, label %315

298:                                              ; preds = %293
  %299 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #9
  %300 = add i64 %299, 12
  store i64 %300, ptr %25, align 8, !tbaa !16
  %301 = load ptr, ptr %16, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(3) %301, ptr noundef nonnull align 1 dereferenceable(3) @_ZN3Swf17header_magic_lzmaE, i64 3, i1 false)
  %302 = load ptr, ptr %16, align 8, !tbaa !5
  %303 = getelementptr inbounds i8, ptr %302, i64 3
  store i8 %276, ptr %303, align 1, !tbaa !11
  %304 = add i32 %259, 8
  %305 = load ptr, ptr %16, align 8, !tbaa !5
  %306 = getelementptr inbounds i8, ptr %305, i64 4
  store i32 %304, ptr %306, align 4, !tbaa !17
  %307 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #9
  %308 = trunc i64 %307 to i32
  %309 = add i32 %308, -5
  %310 = load ptr, ptr %16, align 8, !tbaa !5
  %311 = getelementptr inbounds i8, ptr %310, i64 8
  store i32 %309, ptr %311, align 4, !tbaa !17
  %312 = getelementptr inbounds i8, ptr %310, i64 12
  %313 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #9
  %314 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #9
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 1 %312, ptr align 1 %313, i64 %314, i1 false)
  br label %319

315:                                              ; preds = %._crit_edge, %293
  %316 = phi i64 [ %.pre193, %._crit_edge ], [ %296, %293 ]
  %317 = load ptr, ptr %16, align 8, !tbaa !5
  %318 = getelementptr inbounds i8, ptr %317, i64 %1
  call void @llvm.memmove.p0.p0.i64(ptr align 1 %317, ptr align 1 %318, i64 %316, i1 false)
  br label %319

319:                                              ; preds = %315, %298
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #9
  br label %343

320:                                              ; preds = %274
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #9
  call void @ZopfliInitOptions(ptr noundef nonnull %13)
  %321 = load i32, ptr @iterations, align 4, !tbaa !17
  %322 = getelementptr inbounds i8, ptr %13, i64 8
  store i32 %321, ptr %322, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #9
  store i64 0, ptr %14, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #9
  store ptr null, ptr %15, align 8, !tbaa !20
  %323 = zext i32 %259 to i64
  call void @ZopfliZlibCompress(ptr noundef nonnull %13, ptr noundef nonnull %.2138, i64 noundef %323, ptr noundef nonnull %15, ptr noundef nonnull %14)
  %324 = load i64, ptr %14, align 8, !tbaa !19
  %325 = add i64 %324, 8
  %326 = load i64, ptr %25, align 8, !tbaa !16
  %327 = icmp ult i64 %325, %326
  br i1 %327, label %328, label %338

328:                                              ; preds = %320
  store i64 %325, ptr %25, align 8, !tbaa !16
  %329 = load ptr, ptr %16, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(3) %329, ptr noundef nonnull align 1 dereferenceable(3) @_ZN3Swf20header_magic_deflateE, i64 3, i1 false)
  %330 = load ptr, ptr %16, align 8, !tbaa !5
  %331 = getelementptr inbounds i8, ptr %330, i64 3
  store i8 %276, ptr %331, align 1, !tbaa !11
  %332 = add i32 %259, 8
  %333 = load ptr, ptr %16, align 8, !tbaa !5
  %334 = getelementptr inbounds i8, ptr %333, i64 4
  store i32 %332, ptr %334, align 4, !tbaa !17
  %335 = getelementptr inbounds i8, ptr %333, i64 8
  %336 = load ptr, ptr %15, align 8, !tbaa !20
  %337 = load i64, ptr %14, align 8, !tbaa !19
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 1 %335, ptr align 1 %336, i64 %337, i1 false)
  br label %341

338:                                              ; preds = %320
  %339 = load ptr, ptr %16, align 8, !tbaa !5
  %340 = getelementptr inbounds i8, ptr %339, i64 %1
  call void @llvm.memmove.p0.p0.i64(ptr align 1 %339, ptr align 1 %340, i64 %326, i1 false)
  %.pre192 = load ptr, ptr %15, align 8, !tbaa !20
  br label %341

341:                                              ; preds = %338, %328
  %342 = phi ptr [ %.pre192, %338 ], [ %336, %328 ]
  call void @free(ptr noundef %342) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #9
  br label %343

343:                                              ; preds = %341, %319
  br i1 %44, label %344, label %345

344:                                              ; preds = %343
  call void @free(ptr noundef %.2138) #9
  br label %348

345:                                              ; preds = %343
  %346 = icmp eq i8 %18, 90
  br i1 %346, label %347, label %348

347:                                              ; preds = %345
  call void @_ZdaPv(ptr noundef %.2138) #11
  br label %348

348:                                              ; preds = %344, %347, %345, %263
  %.2 = load i64, ptr %25, align 8, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  br label %350

349:                                              ; preds = %289, %256
  %.pn171 = phi { ptr, i32 } [ %290, %289 ], [ %.pn.pn, %256 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  resume { ptr, i32 } %.pn171

350:                                              ; preds = %78, %54, %37, %64, %86, %348, %28, %22
  %.4 = phi i64 [ %23, %22 ], [ %31, %28 ], [ %41, %37 ], [ %.2, %348 ], [ %58, %54 ], [ %67, %64 ], [ %81, %78 ], [ %89, %86 ]
  ret i64 %.4
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN6Format7LeanifyEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z12VerbosePrintIA32_cEvRKT_(ptr noundef nonnull align 1 dereferenceable(32)) local_unnamed_addr #0

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

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #5

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z12VerbosePrintIA29_cEvRKT_(ptr noundef nonnull align 1 dereferenceable(29)) local_unnamed_addr #0

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN12_GLOBAL__N_114LZMADecompressEPKhmPhm(ptr noundef, i64 noundef, ptr noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #7

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z12VerbosePrintIA23_cEvRKT_(ptr noundef nonnull align 1 dereferenceable(23)) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i64 @_ZN12_GLOBAL__N_111GetRECTSizeEPh(ptr noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z12VerbosePrintIA19_cJjEEvRKT_DpRKT0_(ptr noundef nonnull align 1 dereferenceable(19), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z12VerbosePrintIA30_cEvRKT_(ptr noundef nonnull align 1 dereferenceable(30)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z12VerbosePrintIA20_cJjEEvRKT_DpRKT0_(ptr noundef nonnull align 1 dereferenceable(20), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0

declare noundef i64 @_Z14ZlibRecompressPhmm(ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN12_GLOBAL__N_115UpdateTagLengthEPhmm(ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z12VerbosePrintIA27_cEvRKT_(ptr noundef nonnull align 1 dereferenceable(27)) local_unnamed_addr #0

declare noundef i64 @_Z11LeanifyFilePvmmRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef, i64 noundef, i64 noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z12VerbosePrintIA15_cJmA12_cEEvRKT_DpRKT0_(ptr noundef nonnull align 1 dereferenceable(15), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(12)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z12VerbosePrintIA18_cEvRKT_(ptr noundef nonnull align 1 dereferenceable(18)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z12VerbosePrintIA34_cJmEEvRKT_DpRKT0_(ptr noundef nonnull align 1 dereferenceable(34), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIhSaIhEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN12_GLOBAL__N_112LZMACompressEPKhmPSt6vectorIhSaIhEE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIhSaIhEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorIhSaIhEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

declare void @ZopfliInitOptions(ptr noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress 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 = { inlinehint mustprogress 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 #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nobuiltin 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 #8 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #9 = { nounwind }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { builtin 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 8}
!6 = !{!"_ZTS6Format", !7, i64 8, !10, i64 16}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!8, !8, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"bool", !8, i64 0}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = !{!6, !10, i64 16}
!17 = !{!18, !18, i64 0}
!18 = !{!"int", !8, i64 0}
!19 = !{!10, !10, i64 0}
!20 = !{!7, !7, i64 0}
!21 = !{!22, !22, i64 0}
!22 = !{!"short", !8, i64 0}
!23 = !{!24, !18, i64 8}
!24 = !{!"_ZTS13ZopfliOptions", !18, i64 0, !18, i64 4, !18, i64 8, !18, i64 12, !18, i64 16, !18, i64 20}


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