; LLVM IR from troldal/KZip :: KZip (KZip)

; 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::vector.14" = type { %"struct.std::_Vector_base.15" }
%"struct.std::_Vector_base.15" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { 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.0" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%class.anon.20 = type { ptr }
%"class.__gnu_cxx::__normal_iterator.19" = type { ptr }
%"class.KZip::ZipEntryProxy" = type { ptr, ptr, %struct.mz_zip_archive_file_stat, %"class.std::optional" }
%struct.mz_zip_archive_file_stat = type { i32, i64, i16, i16, i16, i16, i64, i32, i64, i64, i16, i32, i64, i32, i32, i32, i32, [512 x i8], [512 x i8] }
%"class.std::optional" = type { %"struct.std::_Optional_base" }
%"struct.std::_Optional_base" = type { %"struct.std::_Optional_payload" }
%"struct.std::_Optional_payload" = type { %"struct.std::_Optional_payload.base", [7 x i8] }
%"struct.std::_Optional_payload.base" = type { %"struct.std::_Optional_payload_base.base" }
%"struct.std::_Optional_payload_base.base" = type <{ %"union.std::_Optional_payload_base<std::vector<unsigned char>>::_Storage", i8 }>
%"union.std::_Optional_payload_base<std::vector<unsigned char>>::_Storage" = type { %"class.std::vector" }
%"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 }
%"class.KZip::Impl::ZipEntryWrapper" = type { %"class.KZip::ZipEntryProxy" }
%"class.KZip::Impl::ZipArchive" = type { %struct.mz_zip_archive, %"class.std::vector.6", %"class.std::filesystem::__cxx11::path", i8, i32 }
%struct.mz_zip_archive = type { i64, i64, i32, i32, i32, i32, i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%"class.std::vector.6" = type { %"struct.std::_Vector_base.7" }
%"struct.std::_Vector_base.7" = type { %"struct.std::_Vector_base<KZip::Impl::ZipEntryWrapper, std::allocator<KZip::Impl::ZipEntryWrapper>>::_Vector_impl" }
%"struct.std::_Vector_base<KZip::Impl::ZipEntryWrapper, std::allocator<KZip::Impl::ZipEntryWrapper>>::_Vector_impl" = type { %"struct.std::_Vector_base<KZip::Impl::ZipEntryWrapper, std::allocator<KZip::Impl::ZipEntryWrapper>>::_Vector_impl_data" }
%"struct.std::_Vector_base<KZip::Impl::ZipEntryWrapper, std::allocator<KZip::Impl::ZipEntryWrapper>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::filesystem::__cxx11::path" = type { %"class.std::__cxx11::basic_string", %"struct.std::filesystem::__cxx11::path::_List" }
%"struct.std::filesystem::__cxx11::path::_List" = type { %"class.std::unique_ptr" }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.12" }
%"struct.std::_Head_base.12" = type { ptr }

@_ZTIN4KZip13ZipLogicErrorE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.2 = external hidden unnamed_addr constant [59 x i8], align 1

declare ptr @__cxa_allocate_exception(i64)

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 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 #2 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4KZip13ZipLogicErrorC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

; Function Attrs: nounwind
declare void @_ZNSt11logic_errorD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4

declare void @__cxa_throw(ptr, ptr, ptr)

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

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

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

declare void @__cxa_free_exception(ptr)

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4KZip4Impl10ZipArchive10entryNamesB5cxx11ENS_8ZipFlagsE(ptr dead_on_unwind noalias writable sret(%"class.std::vector.14") align 8, ptr noundef nonnull align 8 dereferenceable(184), i8 noundef zeroext) #2 align 2

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

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

; Function Attrs: nounwind
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm(ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext, i64 noundef) #4

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull align 8 dereferenceable(1160) ptr @_ZN4KZip4Impl10ZipArchive8addEntryERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(184) %0, ptr noundef nonnull align 8 dereferenceable(32) %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::allocator.0", align 1
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i1, align 1
  %11 = alloca %"class.std::vector.14", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca %class.anon.20, align 8
  %16 = alloca %"class.std::vector.14", align 8
  %17 = alloca i64, align 8
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator.19", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.19", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator.19", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator.19", align 8
  %23 = alloca %"class.KZip::ZipEntryProxy", align 8
  %24 = alloca %struct.mz_zip_archive_file_stat, align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %26 = alloca %"class.KZip::Impl::ZipEntryWrapper", align 8
  %27 = alloca %"class.KZip::ZipEntryProxy", align 8
  %28 = alloca %struct.mz_zip_archive_file_stat, align 8
  %29 = alloca i32, align 4
  %30 = alloca %"class.KZip::ZipEntryProxy", align 8
  %31 = alloca %struct.mz_zip_archive_file_stat, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %32 = load ptr, ptr %4, align 8
  %33 = call noundef zeroext i1 @_ZNK4KZip4Impl10ZipArchive6isOpenEv(ptr noundef nonnull align 8 dereferenceable(184) %32)
  br i1 %33, label %50, label %34

34:                                               ; preds = %2
  store i1 true, ptr %10, align 1
  %35 = call ptr @__cxa_allocate_exception(i64 16) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %36 unwind label %38

36:                                               ; preds = %34
  invoke void @_ZN4KZip13ZipLogicErrorC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %35, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %37 unwind label %42

37:                                               ; preds = %36
  store i1 false, ptr %10, align 1
  invoke void @__cxa_throw(ptr %35, ptr @_ZTIN4KZip13ZipLogicErrorE, ptr @_ZNSt11logic_errorD2Ev) #7
          to label %180 unwind label %42

38:                                               ; preds = %34
  %39 = landingpad { ptr, i32 }
          cleanup
  %40 = extractvalue { ptr, i32 } %39, 0
  store ptr %40, ptr %8, align 8
  %41 = extractvalue { ptr, i32 } %39, 1
  store i32 %41, ptr %9, align 4
  br label %46

42:                                               ; preds = %37, %36
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %8, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  br label %46

46:                                               ; preds = %42, %38
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #6
  %47 = load i1, ptr %10, align 1
  br i1 %47, label %48, label %49

48:                                               ; preds = %46
  call void @__cxa_free_exception(ptr %35) #6
  br label %49

49:                                               ; preds = %48, %46
  br label %175

50:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #6
  call void @_ZNK4KZip4Impl10ZipArchive10entryNamesB5cxx11ENS_8ZipFlagsE(ptr dead_on_unwind writable sret(%"class.std::vector.14") align 8 %11, ptr noundef nonnull align 8 dereferenceable(184) %32, i8 noundef zeroext 1)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %51 = getelementptr inbounds %"class.KZip::Impl::ZipArchive", ptr %32, i32 0, i32 1
  %52 = call ptr @_ZNSt6vectorIN4KZip4Impl15ZipEntryWrapperESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %51) #6
  %53 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %52, ptr %53, align 8
  %54 = getelementptr inbounds %"class.KZip::Impl::ZipArchive", ptr %32, i32 0, i32 1
  %55 = call ptr @_ZNSt6vectorIN4KZip4Impl15ZipEntryWrapperESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %54) #6
  %56 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  store ptr %55, ptr %56, align 8
  %57 = getelementptr inbounds %class.anon.20, ptr %15, i32 0, i32 0
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %58, ptr %57, align 8, !tbaa !5
  %59 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  %60 = load ptr, ptr %59, align 8
  %61 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  %62 = load ptr, ptr %61, align 8
  %63 = getelementptr inbounds %class.anon.20, ptr %15, i32 0, i32 0
  %64 = load ptr, ptr %63, align 8
  %65 = invoke ptr @"_ZSt7find_ifIN9__gnu_cxx17__normal_iteratorIPN4KZip4Impl15ZipEntryWrapperESt6vectorIS4_SaIS4_EEEEZNS3_10ZipArchive8addEntryERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE3$_0ET_SK_SK_T0_"(ptr %60, ptr %62, ptr %64)
          to label %66 unwind label %102

66:                                               ; preds = %50
  %67 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  store ptr %65, ptr %67, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #6
  invoke void @_ZNK4KZip4Impl10ZipArchive10entryNamesB5cxx11ENS_8ZipFlagsE(ptr dead_on_unwind writable sret(%"class.std::vector.14") align 8 %16, ptr noundef nonnull align 8 dereferenceable(184) %32, i8 noundef zeroext 2)
          to label %68 unwind label %106

68:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %69

69:                                               ; preds = %127, %68
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = load i64, ptr %17, align 8, !tbaa !9
  %72 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm(ptr noundef nonnull align 8 dereferenceable(32) %70, i8 noundef signext 47, i64 noundef %71) #6
  %73 = icmp ne i64 %72, -1
  br i1 %73, label %74, label %130

74:                                               ; preds = %69
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = load i64, ptr %17, align 8, !tbaa !9
  %77 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm(ptr noundef nonnull align 8 dereferenceable(32) %75, i8 noundef signext 47, i64 noundef %76) #6
  %78 = add i64 %77, 1
  store i64 %78, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #6
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = load i64, ptr %17, align 8, !tbaa !9
  invoke void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %18, ptr noundef nonnull align 8 dereferenceable(32) %79, i64 noundef 0, i64 noundef %80)
          to label %81 unwind label %110

81:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %82 = call ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  %83 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.19", ptr %20, i32 0, i32 0
  store ptr %82, ptr %83, align 8
  %84 = call ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  %85 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.19", ptr %21, i32 0, i32 0
  store ptr %84, ptr %85, align 8
  %86 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.19", ptr %20, i32 0, i32 0
  %87 = load ptr, ptr %86, align 8
  %88 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.19", ptr %21, i32 0, i32 0
  %89 = load ptr, ptr %88, align 8
  %90 = invoke ptr @_ZSt4findIN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS7_SaIS7_EEEES7_ET_SD_SD_RKT0_(ptr %87, ptr %89, ptr noundef nonnull align 8 dereferenceable(32) %18)
          to label %91 unwind label %114

91:                                               ; preds = %81
  %92 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.19", ptr %19, i32 0, i32 0
  store ptr %90, ptr %92, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %93 = call ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  %94 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.19", ptr %22, i32 0, i32 0
  store ptr %93, ptr %94, align 8
  %95 = call noundef zeroext i1 @_ZN9__gnu_cxxeqIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br i1 %95, label %96, label %127

96:                                               ; preds = %91
  %97 = getelementptr inbounds %"class.KZip::Impl::ZipArchive", ptr %32, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 1160, ptr %23) #6
  invoke void @_ZN4KZip4Impl10ZipArchive10createInfoERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%struct.mz_zip_archive_file_stat) align 8 %24, ptr noundef nonnull align 8 dereferenceable(184) %32, ptr noundef nonnull align 8 dereferenceable(32) %18)
          to label %98 unwind label %118

98:                                               ; preds = %96
  invoke void @_ZN4KZip13ZipEntryProxyC1EPNS_4Impl10ZipArchiveE24mz_zip_archive_file_stat(ptr noundef nonnull align 8 dereferenceable(1160) %23, ptr noundef %32, ptr noundef byval(%struct.mz_zip_archive_file_stat) align 8 %24)
          to label %99 unwind label %118

99:                                               ; preds = %98
  %100 = invoke noundef nonnull align 8 dereferenceable(1160) ptr @_ZNSt6vectorIN4KZip4Impl15ZipEntryWrapperESaIS2_EE12emplace_backIJNS0_13ZipEntryProxyEEEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %97, ptr noundef nonnull align 8 dereferenceable(1160) %23)
          to label %101 unwind label %122

101:                                              ; preds = %99
  call void @_ZN4KZip13ZipEntryProxyD1Ev(ptr noundef nonnull align 8 dereferenceable(1160) %23) #6
  call void @llvm.lifetime.end.p0(i64 1160, ptr %23) #6
  br label %127

102:                                              ; preds = %50
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %8, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %9, align 4
  br label %174

106:                                              ; preds = %66
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %8, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %9, align 4
  br label %173

110:                                              ; preds = %74
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %8, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %9, align 4
  br label %129

114:                                              ; preds = %81
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %8, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %128

118:                                              ; preds = %98, %96
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %8, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %9, align 4
  br label %126

122:                                              ; preds = %99
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %8, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %9, align 4
  call void @_ZN4KZip13ZipEntryProxyD1Ev(ptr noundef nonnull align 8 dereferenceable(1160) %23) #6
  br label %126

126:                                              ; preds = %122, %118
  call void @llvm.lifetime.end.p0(i64 1160, ptr %23) #6
  br label %128

127:                                              ; preds = %101, %91
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #6
  br label %69, !llvm.loop !11

128:                                              ; preds = %126, %114
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  br label %129

129:                                              ; preds = %128, %110
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #6
  br label %172

130:                                              ; preds = %69
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %131 = getelementptr inbounds %"class.KZip::Impl::ZipArchive", ptr %32, i32 0, i32 1
  %132 = call ptr @_ZNSt6vectorIN4KZip4Impl15ZipEntryWrapperESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %131) #6
  %133 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %25, i32 0, i32 0
  store ptr %132, ptr %133, align 8
  %134 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN4KZip4Impl15ZipEntryWrapperESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  br i1 %134, label %135, label %153

135:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 1160, ptr %26) #6
  call void @llvm.lifetime.start.p0(i64 1160, ptr %27) #6
  %136 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN4KZip4Impl10ZipArchive10createInfoERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%struct.mz_zip_archive_file_stat) align 8 %28, ptr noundef nonnull align 8 dereferenceable(184) %32, ptr noundef nonnull align 8 dereferenceable(32) %136)
          to label %137 unwind label %144

137:                                              ; preds = %135
  invoke void @_ZN4KZip13ZipEntryProxyC1EPNS_4Impl10ZipArchiveE24mz_zip_archive_file_stat(ptr noundef nonnull align 8 dereferenceable(1160) %27, ptr noundef %32, ptr noundef byval(%struct.mz_zip_archive_file_stat) align 8 %28)
          to label %138 unwind label %144

138:                                              ; preds = %137
  invoke void @_ZN4KZip4Impl15ZipEntryWrapperC1ERKNS_13ZipEntryProxyE(ptr noundef nonnull align 8 dereferenceable(1160) %26, ptr noundef nonnull align 8 dereferenceable(1160) %27)
          to label %139 unwind label %148

139:                                              ; preds = %138
  %140 = call noundef nonnull align 8 dereferenceable(1160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN4KZip4Impl15ZipEntryWrapperESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  %141 = call noundef nonnull align 8 dereferenceable(1160) ptr @_ZN4KZip4Impl15ZipEntryWrapperaSEOS1_(ptr noundef nonnull align 8 dereferenceable(1160) %140, ptr noundef nonnull align 8 dereferenceable(1160) %26) #6
  call void @_ZN4KZip4Impl15ZipEntryWrapperD2Ev(ptr noundef nonnull align 8 dereferenceable(1160) %26) #6
  call void @_ZN4KZip13ZipEntryProxyD1Ev(ptr noundef nonnull align 8 dereferenceable(1160) %27) #6
  call void @llvm.lifetime.end.p0(i64 1160, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 1160, ptr %26) #6
  %142 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN4KZip4Impl15ZipEntryWrapperESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  %143 = call noundef nonnull align 8 dereferenceable(1160) ptr @_ZN4KZip4Impl15ZipEntryWrapper5entryEv(ptr noundef nonnull align 8 dereferenceable(1160) %142)
  store ptr %143, ptr %3, align 8
  store i32 1, ptr %29, align 4
  br label %170

144:                                              ; preds = %137, %135
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %8, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %9, align 4
  br label %152

148:                                              ; preds = %138
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %8, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %9, align 4
  call void @_ZN4KZip13ZipEntryProxyD1Ev(ptr noundef nonnull align 8 dereferenceable(1160) %27) #6
  br label %152

152:                                              ; preds = %148, %144
  call void @llvm.lifetime.end.p0(i64 1160, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 1160, ptr %26) #6
  br label %172

153:                                              ; preds = %130
  %154 = getelementptr inbounds %"class.KZip::Impl::ZipArchive", ptr %32, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 1160, ptr %30) #6
  %155 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN4KZip4Impl10ZipArchive10createInfoERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%struct.mz_zip_archive_file_stat) align 8 %31, ptr noundef nonnull align 8 dereferenceable(184) %32, ptr noundef nonnull align 8 dereferenceable(32) %155)
          to label %156 unwind label %161

156:                                              ; preds = %153
  invoke void @_ZN4KZip13ZipEntryProxyC1EPNS_4Impl10ZipArchiveE24mz_zip_archive_file_stat(ptr noundef nonnull align 8 dereferenceable(1160) %30, ptr noundef %32, ptr noundef byval(%struct.mz_zip_archive_file_stat) align 8 %31)
          to label %157 unwind label %161

157:                                              ; preds = %156
  %158 = invoke noundef nonnull align 8 dereferenceable(1160) ptr @_ZNSt6vectorIN4KZip4Impl15ZipEntryWrapperESaIS2_EE12emplace_backIJNS0_13ZipEntryProxyEEEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %154, ptr noundef nonnull align 8 dereferenceable(1160) %30)
          to label %159 unwind label %165

159:                                              ; preds = %157
  %160 = call noundef nonnull align 8 dereferenceable(1160) ptr @_ZN4KZip4Impl15ZipEntryWrapper5entryEv(ptr noundef nonnull align 8 dereferenceable(1160) %158)
  store ptr %160, ptr %3, align 8
  call void @_ZN4KZip13ZipEntryProxyD1Ev(ptr noundef nonnull align 8 dereferenceable(1160) %30) #6
  call void @llvm.lifetime.end.p0(i64 1160, ptr %30) #6
  store i32 1, ptr %29, align 4
  br label %170

161:                                              ; preds = %156, %153
  %162 = landingpad { ptr, i32 }
          cleanup
  %163 = extractvalue { ptr, i32 } %162, 0
  store ptr %163, ptr %8, align 8
  %164 = extractvalue { ptr, i32 } %162, 1
  store i32 %164, ptr %9, align 4
  br label %169

165:                                              ; preds = %157
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %8, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %9, align 4
  call void @_ZN4KZip13ZipEntryProxyD1Ev(ptr noundef nonnull align 8 dereferenceable(1160) %30) #6
  br label %169

169:                                              ; preds = %165, %161
  call void @llvm.lifetime.end.p0(i64 1160, ptr %30) #6
  br label %172

170:                                              ; preds = %159, %139
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #6
  %171 = load ptr, ptr %3, align 8
  ret ptr %171

172:                                              ; preds = %169, %152, %129
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  br label %173

173:                                              ; preds = %172, %106
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #6
  br label %174

174:                                              ; preds = %173, %102
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #6
  br label %175

175:                                              ; preds = %174, %49
  %176 = load ptr, ptr %8, align 8
  %177 = load i32, ptr %9, align 4
  %178 = insertvalue { ptr, i32 } poison, ptr %176, 0
  %179 = insertvalue { ptr, i32 } %178, i32 %177, 1
  resume { ptr, i32 } %179

180:                                              ; preds = %37
  unreachable
}

; Function Attrs: mustprogress uwtable
declare void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, i64 noundef) #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden ptr @"_ZSt7find_ifIN9__gnu_cxx17__normal_iteratorIPN4KZip4Impl15ZipEntryWrapperESt6vectorIS4_SaIS4_EEEEZNS3_10ZipArchive8addEntryERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE3$_0ET_SK_SK_T0_"(ptr, ptr, ptr) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxeqIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4KZip4Impl10ZipArchive10createInfoERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind noalias writable sret(%struct.mz_zip_archive_file_stat) align 8, ptr noundef nonnull align 8 dereferenceable(184), ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPN4KZip4Impl15ZipEntryWrapperESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(1160) ptr @_ZN4KZip4Impl15ZipEntryWrapperaSEOS1_(ptr noundef nonnull align 8 dereferenceable(1160), ptr noundef nonnull align 8 dereferenceable(1160)) #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4KZip4Impl15ZipEntryWrapperD2Ev(ptr noundef nonnull align 8 dereferenceable(1160)) unnamed_addr #5 align 2

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

declare void @_ZN4KZip13ZipEntryProxyD1Ev(ptr)

declare void @_ZN4KZip13ZipEntryProxyC1EPNS_4Impl10ZipArchiveE24mz_zip_archive_file_stat(ptr, ptr, ptr)

declare void @_ZN4KZip4Impl15ZipEntryWrapperC1ERKNS_13ZipEntryProxyE(ptr, ptr)

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

!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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


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

%"class.std::vector.14" = type { %"struct.std::_Vector_base.15" }
%"struct.std::_Vector_base.15" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { 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.0" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.19" = type { ptr }
%"class.KZip::ZipEntryProxy" = type { ptr, ptr, %struct.mz_zip_archive_file_stat, %"class.std::optional" }
%struct.mz_zip_archive_file_stat = type { i32, i64, i16, i16, i16, i16, i64, i32, i64, i64, i16, i32, i64, i32, i32, i32, i32, [512 x i8], [512 x i8] }
%"class.std::optional" = type { %"struct.std::_Optional_base" }
%"struct.std::_Optional_base" = type { %"struct.std::_Optional_payload" }
%"struct.std::_Optional_payload" = type { %"struct.std::_Optional_payload.base", [7 x i8] }
%"struct.std::_Optional_payload.base" = type { %"struct.std::_Optional_payload_base.base" }
%"struct.std::_Optional_payload_base.base" = type <{ %"union.std::_Optional_payload_base<std::vector<unsigned char>>::_Storage", i8 }>
%"union.std::_Optional_payload_base<std::vector<unsigned char>>::_Storage" = type { %"class.std::vector" }
%"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 }
%"class.KZip::Impl::ZipEntryWrapper" = type { %"class.KZip::ZipEntryProxy" }

@_ZTIN4KZip13ZipLogicErrorE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.2 = external hidden unnamed_addr constant [59 x i8], align 1

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 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 #2 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4KZip13ZipLogicErrorC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

; Function Attrs: nounwind
declare void @_ZNSt11logic_errorD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

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

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

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

declare void @__cxa_free_exception(ptr) local_unnamed_addr

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4KZip4Impl10ZipArchive10entryNamesB5cxx11ENS_8ZipFlagsE(ptr dead_on_unwind noalias writable sret(%"class.std::vector.14") align 8, ptr noundef nonnull align 8 dereferenceable(184), i8 noundef zeroext) local_unnamed_addr #2 align 2

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

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

; Function Attrs: nounwind
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm(ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext, i64 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull align 8 dereferenceable(1160) ptr @_ZN4KZip4Impl10ZipArchive8addEntryERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(184) %0, ptr noundef nonnull align 8 dereferenceable(32) %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.std::allocator.0", align 1
  %5 = alloca %"class.std::vector.14", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.std::vector.14", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.19", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.19", align 8
  %11 = alloca %"class.KZip::ZipEntryProxy", align 8
  %12 = alloca %struct.mz_zip_archive_file_stat, align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca %"class.KZip::Impl::ZipEntryWrapper", align 8
  %15 = alloca %"class.KZip::ZipEntryProxy", align 8
  %16 = alloca %struct.mz_zip_archive_file_stat, align 8
  %17 = alloca %"class.KZip::ZipEntryProxy", align 8
  %18 = alloca %struct.mz_zip_archive_file_stat, align 8
  %19 = tail call noundef zeroext i1 @_ZNK4KZip4Impl10ZipArchive6isOpenEv(ptr noundef nonnull align 8 dereferenceable(184) %0)
  br i1 %19, label %28, label %20

20:                                               ; preds = %2
  %21 = tail call ptr @__cxa_allocate_exception(i64 16) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %22 unwind label %.thread

22:                                               ; preds = %20
  invoke void @_ZN4KZip13ZipLogicErrorC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %23 unwind label %25

23:                                               ; preds = %22
  invoke void @__cxa_throw(ptr nonnull %21, ptr nonnull @_ZTIN4KZip13ZipLogicErrorE, ptr nonnull @_ZNSt11logic_errorD2Ev) #7
          to label %94 unwind label %25

.thread:                                          ; preds = %20
  %24 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  br label %27

25:                                               ; preds = %22, %23
  %.029 = phi i1 [ false, %23 ], [ true, %22 ]
  %26 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  br i1 %.029, label %27, label %93

27:                                               ; preds = %.thread, %25
  %.pn46 = phi { ptr, i32 } [ %24, %.thread ], [ %26, %25 ]
  call void @__cxa_free_exception(ptr %21) #6
  br label %93

28:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #6
  call void @_ZNK4KZip4Impl10ZipArchive10entryNamesB5cxx11ENS_8ZipFlagsE(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.14") align 8 %5, ptr noundef nonnull align 8 dereferenceable(184) %0, i8 noundef zeroext 1)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %29 = getelementptr inbounds i8, ptr %0, i64 112
  %30 = call ptr @_ZNSt6vectorIN4KZip4Impl15ZipEntryWrapperESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #6
  %31 = call ptr @_ZNSt6vectorIN4KZip4Impl15ZipEntryWrapperESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #6
  %32 = invoke ptr @"_ZSt7find_ifIN9__gnu_cxx17__normal_iteratorIPN4KZip4Impl15ZipEntryWrapperESt6vectorIS4_SaIS4_EEEEZNS3_10ZipArchive8addEntryERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE3$_0ET_SK_SK_T0_"(ptr %30, ptr %31, ptr nonnull %1)
          to label %33 unwind label %48

33:                                               ; preds = %28
  store ptr %32, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #6
  invoke void @_ZNK4KZip4Impl10ZipArchive10entryNamesB5cxx11ENS_8ZipFlagsE(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.14") align 8 %7, ptr noundef nonnull align 8 dereferenceable(184) %0, i8 noundef zeroext 2)
          to label %.preheader unwind label %50

.preheader:                                       ; preds = %33
  %34 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm(ptr noundef nonnull align 8 dereferenceable(32) %1, i8 noundef signext 47, i64 noundef 0) #6
  %.not47 = icmp eq i64 %34, -1
  br i1 %.not47, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader, %61
  %.01848 = phi i64 [ %36, %61 ], [ 0, %.preheader ]
  %35 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm(ptr noundef nonnull align 8 dereferenceable(32) %1, i8 noundef signext 47, i64 noundef %.01848) #6
  %36 = add i64 %35, 1
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #6
  invoke void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %8, ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0, i64 noundef %36)
          to label %37 unwind label %52

37:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %38 = call ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  %39 = call ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  %40 = invoke ptr @_ZSt4findIN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS7_SaIS7_EEEES7_ET_SD_SD_RKT0_(ptr %38, ptr %39, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %41 unwind label %54

41:                                               ; preds = %37
  store ptr %40, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %42 = call ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  store ptr %42, ptr %10, align 8
  %43 = call noundef zeroext i1 @_ZN9__gnu_cxxeqIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br i1 %43, label %44, label %61

44:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 1160, ptr nonnull %11) #6
  call void @_ZN4KZip4Impl10ZipArchive10createInfoERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%struct.mz_zip_archive_file_stat) align 8 %12, ptr noundef nonnull align 8 dereferenceable(184) %0, ptr noundef nonnull align 8 dereferenceable(32) %8)
  invoke void @_ZN4KZip13ZipEntryProxyC1EPNS_4Impl10ZipArchiveE24mz_zip_archive_file_stat(ptr noundef nonnull align 8 dereferenceable(1160) %11, ptr noundef nonnull %0, ptr noundef nonnull byval(%struct.mz_zip_archive_file_stat) align 8 %12)
          to label %45 unwind label %56

45:                                               ; preds = %44
  %46 = invoke noundef nonnull align 8 dereferenceable(1160) ptr @_ZNSt6vectorIN4KZip4Impl15ZipEntryWrapperESaIS2_EE12emplace_backIJNS0_13ZipEntryProxyEEEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 8 dereferenceable(1160) %11)
          to label %47 unwind label %58

47:                                               ; preds = %45
  call void @_ZN4KZip13ZipEntryProxyD1Ev(ptr noundef nonnull align 8 dereferenceable(1160) %11) #6
  call void @llvm.lifetime.end.p0(i64 1160, ptr nonnull %11) #6
  br label %61

48:                                               ; preds = %28
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %92

50:                                               ; preds = %33
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %91

52:                                               ; preds = %.lr.ph
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %64

54:                                               ; preds = %37
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br label %63

56:                                               ; preds = %44
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %60

58:                                               ; preds = %45
  %59 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4KZip13ZipEntryProxyD1Ev(ptr noundef nonnull align 8 dereferenceable(1160) %11) #6
  br label %60

60:                                               ; preds = %58, %56
  %.pn36 = phi { ptr, i32 } [ %59, %58 ], [ %57, %56 ]
  call void @llvm.lifetime.end.p0(i64 1160, ptr nonnull %11) #6
  br label %63

61:                                               ; preds = %47, %41
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #6
  %62 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm(ptr noundef nonnull align 8 dereferenceable(32) %1, i8 noundef signext 47, i64 noundef %36) #6
  %.not = icmp eq i64 %62, -1
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !5

63:                                               ; preds = %60, %54
  %.pn36.pn = phi { ptr, i32 } [ %.pn36, %60 ], [ %55, %54 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  br label %64

64:                                               ; preds = %63, %52
  %.pn36.pn.pn = phi { ptr, i32 } [ %.pn36.pn, %63 ], [ %53, %52 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #6
  br label %90

._crit_edge:                                      ; preds = %61, %.preheader
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #6
  %65 = call ptr @_ZNSt6vectorIN4KZip4Impl15ZipEntryWrapperESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #6
  store ptr %65, ptr %13, align 8
  %66 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN4KZip4Impl15ZipEntryWrapperESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  br i1 %66, label %67, label %79

67:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 1160, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 1160, ptr nonnull %15) #6
  call void @_ZN4KZip4Impl10ZipArchive10createInfoERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%struct.mz_zip_archive_file_stat) align 8 %16, ptr noundef nonnull align 8 dereferenceable(184) %0, ptr noundef nonnull align 8 dereferenceable(32) %1)
  invoke void @_ZN4KZip13ZipEntryProxyC1EPNS_4Impl10ZipArchiveE24mz_zip_archive_file_stat(ptr noundef nonnull align 8 dereferenceable(1160) %15, ptr noundef nonnull %0, ptr noundef nonnull byval(%struct.mz_zip_archive_file_stat) align 8 %16)
          to label %68 unwind label %74

68:                                               ; preds = %67
  invoke void @_ZN4KZip4Impl15ZipEntryWrapperC1ERKNS_13ZipEntryProxyE(ptr noundef nonnull align 8 dereferenceable(1160) %14, ptr noundef nonnull align 8 dereferenceable(1160) %15)
          to label %69 unwind label %76

69:                                               ; preds = %68
  %70 = call noundef nonnull align 8 dereferenceable(1160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN4KZip4Impl15ZipEntryWrapperESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  %71 = call noundef nonnull align 8 dereferenceable(1160) ptr @_ZN4KZip4Impl15ZipEntryWrapperaSEOS1_(ptr noundef nonnull align 8 dereferenceable(1160) %70, ptr noundef nonnull align 8 dereferenceable(1160) %14) #6
  call void @_ZN4KZip4Impl15ZipEntryWrapperD2Ev(ptr noundef nonnull align 8 dereferenceable(1160) %14) #6
  call void @_ZN4KZip13ZipEntryProxyD1Ev(ptr noundef nonnull align 8 dereferenceable(1160) %15) #6
  call void @llvm.lifetime.end.p0(i64 1160, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 1160, ptr nonnull %14) #6
  %72 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN4KZip4Impl15ZipEntryWrapperESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  %73 = call noundef nonnull align 8 dereferenceable(1160) ptr @_ZN4KZip4Impl15ZipEntryWrapper5entryEv(ptr noundef nonnull align 8 dereferenceable(1160) %72)
  br label %89

74:                                               ; preds = %67
  %75 = landingpad { ptr, i32 }
          cleanup
  br label %78

76:                                               ; preds = %68
  %77 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4KZip13ZipEntryProxyD1Ev(ptr noundef nonnull align 8 dereferenceable(1160) %15) #6
  br label %78

78:                                               ; preds = %76, %74
  %.pn34 = phi { ptr, i32 } [ %77, %76 ], [ %75, %74 ]
  call void @llvm.lifetime.end.p0(i64 1160, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 1160, ptr nonnull %14) #6
  br label %90

79:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 1160, ptr nonnull %17) #6
  call void @_ZN4KZip4Impl10ZipArchive10createInfoERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%struct.mz_zip_archive_file_stat) align 8 %18, ptr noundef nonnull align 8 dereferenceable(184) %0, ptr noundef nonnull align 8 dereferenceable(32) %1)
  invoke void @_ZN4KZip13ZipEntryProxyC1EPNS_4Impl10ZipArchiveE24mz_zip_archive_file_stat(ptr noundef nonnull align 8 dereferenceable(1160) %17, ptr noundef nonnull %0, ptr noundef nonnull byval(%struct.mz_zip_archive_file_stat) align 8 %18)
          to label %80 unwind label %84

80:                                               ; preds = %79
  %81 = invoke noundef nonnull align 8 dereferenceable(1160) ptr @_ZNSt6vectorIN4KZip4Impl15ZipEntryWrapperESaIS2_EE12emplace_backIJNS0_13ZipEntryProxyEEEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 8 dereferenceable(1160) %17)
          to label %82 unwind label %86

82:                                               ; preds = %80
  %83 = call noundef nonnull align 8 dereferenceable(1160) ptr @_ZN4KZip4Impl15ZipEntryWrapper5entryEv(ptr noundef nonnull align 8 dereferenceable(1160) %81)
  call void @_ZN4KZip13ZipEntryProxyD1Ev(ptr noundef nonnull align 8 dereferenceable(1160) %17) #6
  call void @llvm.lifetime.end.p0(i64 1160, ptr nonnull %17) #6
  br label %89

84:                                               ; preds = %79
  %85 = landingpad { ptr, i32 }
          cleanup
  br label %88

86:                                               ; preds = %80
  %87 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4KZip13ZipEntryProxyD1Ev(ptr noundef nonnull align 8 dereferenceable(1160) %17) #6
  br label %88

88:                                               ; preds = %86, %84
  %.pn32 = phi { ptr, i32 } [ %87, %86 ], [ %85, %84 ]
  call void @llvm.lifetime.end.p0(i64 1160, ptr nonnull %17) #6
  br label %90

89:                                               ; preds = %82, %69
  %.0 = phi ptr [ %73, %69 ], [ %83, %82 ]
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  ret ptr %.0

90:                                               ; preds = %88, %78, %64
  %.pn36.pn.pn.pn = phi { ptr, i32 } [ %.pn36.pn.pn, %64 ], [ %.pn34, %78 ], [ %.pn32, %88 ]
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  br label %91

91:                                               ; preds = %90, %50
  %.pn36.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn36.pn.pn.pn, %90 ], [ %51, %50 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  br label %92

92:                                               ; preds = %91, %48
  %.pn36.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn36.pn.pn.pn.pn, %91 ], [ %49, %48 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  br label %93

93:                                               ; preds = %25, %27, %92
  %.pn36.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn36.pn.pn.pn.pn.pn, %92 ], [ %.pn46, %27 ], [ %26, %25 ]
  resume { ptr, i32 } %.pn36.pn.pn.pn.pn.pn.pn

94:                                               ; preds = %23
  unreachable
}

; Function Attrs: mustprogress uwtable
declare void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, i64 noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden ptr @"_ZSt7find_ifIN9__gnu_cxx17__normal_iteratorIPN4KZip4Impl15ZipEntryWrapperESt6vectorIS4_SaIS4_EEEEZNS3_10ZipArchive8addEntryERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE3$_0ET_SK_SK_T0_"(ptr, ptr, ptr) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxeqIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4KZip4Impl10ZipArchive10createInfoERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind noalias writable sret(%struct.mz_zip_archive_file_stat) align 8, ptr noundef nonnull align 8 dereferenceable(184), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPN4KZip4Impl15ZipEntryWrapperESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(1160) ptr @_ZN4KZip4Impl15ZipEntryWrapperaSEOS1_(ptr noundef nonnull align 8 dereferenceable(1160), ptr noundef nonnull align 8 dereferenceable(1160)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4KZip4Impl15ZipEntryWrapperD2Ev(ptr noundef nonnull align 8 dereferenceable(1160)) unnamed_addr #5 align 2

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

declare void @_ZN4KZip13ZipEntryProxyD1Ev(ptr) local_unnamed_addr

declare void @_ZN4KZip13ZipEntryProxyC1EPNS_4Impl10ZipArchiveE24mz_zip_archive_file_stat(ptr, ptr, ptr) local_unnamed_addr

declare void @_ZN4KZip4Impl15ZipEntryWrapperC1ERKNS_13ZipEntryProxyE(ptr, ptr) local_unnamed_addr

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

!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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass