; LLVM IR from SSBMTonberry/pocketlzma :: ref_spec/lzma1900/CPP/7zip/Archive (LzmaHandler)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.NArchive::NLzma::CHeader" = type { i64, i8, [5 x i8] }
%"class.NArchive::NLzma::CDecoder" = type { %class.CMyComPtr, ptr, %class.CMyComPtr.0, ptr }
%class.CMyComPtr = type { ptr }
%class.CMyComPtr.0 = type { ptr }

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN8NArchive5NLzma8CDecoder4CodeERKNS0_7CHeaderEP20ISequentialOutStreamP21ICompressProgressInfo(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef %2, ptr noundef %3) #2 align 2 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i8, align 1
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  %20 = load ptr, ptr %6, align 8
  %21 = load ptr, ptr %7, align 8, !tbaa !5
  %22 = getelementptr inbounds %"struct.NArchive::NLzma::CHeader", ptr %21, i32 0, i32 1
  %23 = load i8, ptr %22, align 8, !tbaa !9
  %24 = zext i8 %23 to i32
  %25 = icmp sgt i32 %24, 1
  br i1 %25, label %26, label %27

26:                                               ; preds = %4
  store i32 -2147467263, ptr %5, align 4
  br label %150

27:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %28 = getelementptr inbounds %"class.NArchive::NLzma::CDecoder", ptr %20, i32 0, i32 3
  %29 = load ptr, ptr %28, align 8, !tbaa !12
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.NArchive::NLzma::CHeader", ptr %30, i32 0, i32 2
  %32 = getelementptr inbounds [5 x i8], ptr %31, i64 0, i64 0
  %33 = load ptr, ptr %29, align 8, !tbaa !16
  %34 = getelementptr inbounds ptr, ptr %33, i64 6
  %35 = load ptr, ptr %34, align 8
  %36 = call noundef i32 %35(ptr noundef nonnull align 8 dereferenceable(272) %29, ptr noundef %32, i32 noundef 5)
  store i32 %36, ptr %10, align 4, !tbaa !18
  %37 = load i32, ptr %10, align 4, !tbaa !18
  %38 = icmp ne i32 %37, 0
  br i1 %38, label %39, label %41

39:                                               ; preds = %27
  %40 = load i32, ptr %10, align 4, !tbaa !18
  store i32 %40, ptr %5, align 4
  store i32 1, ptr %11, align 4
  br label %42

41:                                               ; preds = %27
  store i32 0, ptr %11, align 4
  br label %42

42:                                               ; preds = %41, %39
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  %43 = load i32, ptr %11, align 4
  switch i32 %43, label %152 [
    i32 0, label %44
    i32 1, label %150
  ]

44:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #4
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = getelementptr inbounds %"struct.NArchive::NLzma::CHeader", ptr %45, i32 0, i32 1
  %47 = load i8, ptr %46, align 8, !tbaa !9
  %48 = zext i8 %47 to i32
  %49 = icmp eq i32 %48, 1
  %50 = zext i1 %49 to i8
  store i8 %50, ptr %12, align 1, !tbaa !20
  %51 = load i8, ptr %12, align 1, !tbaa !20, !range !22, !noundef !23
  %52 = trunc i8 %51 to i1
  br i1 %52, label %53, label %85

53:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %54 = getelementptr inbounds %"class.NArchive::NLzma::CDecoder", ptr %20, i32 0, i32 1
  %55 = load ptr, ptr %54, align 8, !tbaa !24
  %56 = load ptr, ptr %8, align 8, !tbaa !5
  %57 = load ptr, ptr %55, align 8, !tbaa !16
  %58 = getelementptr inbounds ptr, ptr %57, i64 11
  %59 = load ptr, ptr %58, align 8
  %60 = call noundef i32 %59(ptr noundef nonnull align 8 dereferenceable(256) %55, ptr noundef %56)
  store i32 %60, ptr %13, align 4, !tbaa !18
  %61 = load i32, ptr %13, align 4, !tbaa !18
  %62 = icmp ne i32 %61, 0
  br i1 %62, label %63, label %65

63:                                               ; preds = %53
  %64 = load i32, ptr %13, align 4, !tbaa !18
  store i32 %64, ptr %5, align 4
  store i32 1, ptr %11, align 4
  br label %66

65:                                               ; preds = %53
  store i32 0, ptr %11, align 4
  br label %66

66:                                               ; preds = %65, %63
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  %67 = load i32, ptr %11, align 4
  switch i32 %67, label %149 [
    i32 0, label %68
  ]

68:                                               ; preds = %66
  %69 = getelementptr inbounds %"class.NArchive::NLzma::CDecoder", ptr %20, i32 0, i32 0
  %70 = call noundef ptr @_ZNK9CMyComPtrI20ISequentialOutStreamEcvPS0_Ev(ptr noundef nonnull align 8 dereferenceable(8) %69)
  store ptr %70, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %71 = getelementptr inbounds %"class.NArchive::NLzma::CDecoder", ptr %20, i32 0, i32 1
  %72 = load ptr, ptr %71, align 8, !tbaa !24
  %73 = load ptr, ptr %72, align 8, !tbaa !16
  %74 = getelementptr inbounds ptr, ptr %73, i64 6
  %75 = load ptr, ptr %74, align 8
  %76 = call noundef i32 %75(ptr noundef nonnull align 8 dereferenceable(256) %72, ptr noundef null)
  store i32 %76, ptr %14, align 4, !tbaa !18
  %77 = load i32, ptr %14, align 4, !tbaa !18
  %78 = icmp ne i32 %77, 0
  br i1 %78, label %79, label %81

79:                                               ; preds = %68
  %80 = load i32, ptr %14, align 4, !tbaa !18
  store i32 %80, ptr %5, align 4
  store i32 1, ptr %11, align 4
  br label %82

81:                                               ; preds = %68
  store i32 0, ptr %11, align 4
  br label %82

82:                                               ; preds = %81, %79
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  %83 = load i32, ptr %11, align 4
  switch i32 %83, label %149 [
    i32 0, label %84
  ]

84:                                               ; preds = %82
  br label %85

85:                                               ; preds = %84, %44
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  %87 = call noundef zeroext i1 @_ZNK8NArchive5NLzma7CHeader7HasSizeEv(ptr noundef nonnull align 8 dereferenceable(16) %86)
  br i1 %87, label %88, label %91

88:                                               ; preds = %85
  %89 = load ptr, ptr %7, align 8, !tbaa !5
  %90 = getelementptr inbounds %"struct.NArchive::NLzma::CHeader", ptr %89, i32 0, i32 0
  br label %92

91:                                               ; preds = %85
  br label %92

92:                                               ; preds = %91, %88
  %93 = phi ptr [ %90, %88 ], [ null, %91 ]
  store ptr %93, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %94 = getelementptr inbounds %"class.NArchive::NLzma::CDecoder", ptr %20, i32 0, i32 3
  %95 = load ptr, ptr %94, align 8, !tbaa !12
  %96 = load ptr, ptr %8, align 8, !tbaa !5
  %97 = load ptr, ptr %15, align 8, !tbaa !5
  %98 = load ptr, ptr %9, align 8, !tbaa !5
  %99 = call noundef i32 @_ZN9NCompress5NLzma8CDecoder10CodeResumeEP20ISequentialOutStreamPKyP21ICompressProgressInfo(ptr noundef nonnull align 8 dereferenceable(272) %95, ptr noundef %96, ptr noundef %97, ptr noundef %98)
  store i32 %99, ptr %16, align 4, !tbaa !18
  %100 = load i8, ptr %12, align 1, !tbaa !20, !range !22, !noundef !23
  %101 = trunc i8 %100 to i1
  br i1 %101, label %102, label %125

102:                                              ; preds = %92
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %103 = getelementptr inbounds %"class.NArchive::NLzma::CDecoder", ptr %20, i32 0, i32 1
  %104 = load ptr, ptr %103, align 8, !tbaa !24
  %105 = load ptr, ptr %104, align 8, !tbaa !16
  %106 = getelementptr inbounds ptr, ptr %105, i64 14
  %107 = load ptr, ptr %106, align 8
  %108 = call noundef i32 %107(ptr noundef nonnull align 8 dereferenceable(256) %104)
  store i32 %108, ptr %17, align 4, !tbaa !18
  %109 = load i32, ptr %16, align 4, !tbaa !18
  %110 = icmp eq i32 %109, 0
  br i1 %110, label %111, label %113

111:                                              ; preds = %102
  %112 = load i32, ptr %17, align 4, !tbaa !18
  store i32 %112, ptr %16, align 4, !tbaa !18
  br label %113

113:                                              ; preds = %111, %102
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %114 = getelementptr inbounds %"class.NArchive::NLzma::CDecoder", ptr %20, i32 0, i32 1
  %115 = load ptr, ptr %114, align 8, !tbaa !24
  %116 = load ptr, ptr %115, align 8, !tbaa !16
  %117 = getelementptr inbounds ptr, ptr %116, i64 12
  %118 = load ptr, ptr %117, align 8
  %119 = call noundef i32 %118(ptr noundef nonnull align 8 dereferenceable(256) %115)
  store i32 %119, ptr %18, align 4, !tbaa !18
  %120 = load i32, ptr %16, align 4, !tbaa !18
  %121 = icmp eq i32 %120, 0
  br i1 %121, label %122, label %124

122:                                              ; preds = %113
  %123 = load i32, ptr %18, align 4, !tbaa !18
  store i32 %123, ptr %16, align 4, !tbaa !18
  br label %124

124:                                              ; preds = %122, %113
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  br label %125

125:                                              ; preds = %124, %92
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %126 = load i32, ptr %16, align 4, !tbaa !18
  store i32 %126, ptr %19, align 4, !tbaa !18
  %127 = load i32, ptr %19, align 4, !tbaa !18
  %128 = icmp ne i32 %127, 0
  br i1 %128, label %129, label %131

129:                                              ; preds = %125
  %130 = load i32, ptr %19, align 4, !tbaa !18
  store i32 %130, ptr %5, align 4
  store i32 1, ptr %11, align 4
  br label %132

131:                                              ; preds = %125
  store i32 0, ptr %11, align 4
  br label %132

132:                                              ; preds = %131, %129
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  %133 = load i32, ptr %11, align 4
  switch i32 %133, label %148 [
    i32 0, label %134
  ]

134:                                              ; preds = %132
  %135 = load ptr, ptr %7, align 8, !tbaa !5
  %136 = call noundef zeroext i1 @_ZNK8NArchive5NLzma7CHeader7HasSizeEv(ptr noundef nonnull align 8 dereferenceable(16) %135)
  br i1 %136, label %137, label %147

137:                                              ; preds = %134
  %138 = getelementptr inbounds %"class.NArchive::NLzma::CDecoder", ptr %20, i32 0, i32 3
  %139 = load ptr, ptr %138, align 8, !tbaa !12
  %140 = call noundef i64 @_ZNK9NCompress5NLzma8CDecoder22GetOutputProcessedSizeEv(ptr noundef nonnull align 8 dereferenceable(272) %139)
  %141 = load ptr, ptr %7, align 8, !tbaa !5
  %142 = getelementptr inbounds %"struct.NArchive::NLzma::CHeader", ptr %141, i32 0, i32 0
  %143 = load i64, ptr %142, align 8, !tbaa !25
  %144 = icmp ne i64 %140, %143
  br i1 %144, label %145, label %146

145:                                              ; preds = %137
  store i32 1, ptr %5, align 4
  store i32 1, ptr %11, align 4
  br label %148

146:                                              ; preds = %137
  br label %147

147:                                              ; preds = %146, %134
  store i32 0, ptr %5, align 4
  store i32 1, ptr %11, align 4
  br label %148

148:                                              ; preds = %147, %145, %132
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  br label %149

149:                                              ; preds = %148, %82, %66
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #4
  br label %150

150:                                              ; preds = %149, %42, %26
  %151 = load i32, ptr %5, align 4
  ret i32 %151

152:                                              ; preds = %42
  unreachable
}

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

declare noundef i32 @_ZN9NCompress5NLzma8CDecoder10CodeResumeEP20ISequentialOutStreamPKyP21ICompressProgressInfo(ptr noundef nonnull align 8 dereferenceable(272), ptr noundef, ptr noundef, ptr noundef) #3

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

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 = { "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 }

!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, !7, i64 8}
!10 = !{!"_ZTSN8NArchive5NLzma7CHeaderE", !11, i64 0, !7, i64 8, !7, i64 9}
!11 = !{!"long long", !7, i64 0}
!12 = !{!13, !6, i64 24}
!13 = !{!"_ZTSN8NArchive5NLzma8CDecoderE", !14, i64 0, !6, i64 8, !15, i64 16, !6, i64 24}
!14 = !{!"_ZTS9CMyComPtrI20ISequentialOutStreamE", !6, i64 0}
!15 = !{!"_ZTS9CMyComPtrI14ICompressCoderE", !6, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"vtable pointer", !8, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"int", !7, i64 0}
!20 = !{!21, !21, i64 0}
!21 = !{!"bool", !7, i64 0}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = !{!13, !6, i64 8}
!25 = !{!10, !11, i64 0}


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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN8NArchive5NLzma8CDecoder4CodeERKNS0_7CHeaderEP20ISequentialOutStreamP21ICompressProgressInfo(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #1 align 2 {
  %5 = getelementptr inbounds i8, ptr %1, i64 8
  %6 = load i8, ptr %5, align 8, !tbaa !5
  %7 = icmp ugt i8 %6, 1
  br i1 %7, label %60, label %8

8:                                                ; preds = %4
  %9 = getelementptr inbounds i8, ptr %0, i64 24
  %10 = load ptr, ptr %9, align 8, !tbaa !10
  %11 = getelementptr inbounds i8, ptr %1, i64 9
  %12 = load ptr, ptr %10, align 8, !tbaa !15
  %13 = getelementptr inbounds i8, ptr %12, i64 48
  %14 = load ptr, ptr %13, align 8
  %15 = tail call noundef i32 %14(ptr noundef nonnull align 8 dereferenceable(272) %10, ptr noundef nonnull %11, i32 noundef 5)
  %.not.not = icmp eq i32 %15, 0
  br i1 %.not.not, label %16, label %60

16:                                               ; preds = %8
  %17 = load i8, ptr %5, align 8, !tbaa !5
  %18 = icmp eq i8 %17, 1
  br i1 %18, label %19, label %33

19:                                               ; preds = %16
  %20 = getelementptr inbounds i8, ptr %0, i64 8
  %21 = load ptr, ptr %20, align 8, !tbaa !17
  %22 = load ptr, ptr %21, align 8, !tbaa !15
  %23 = getelementptr inbounds i8, ptr %22, i64 88
  %24 = load ptr, ptr %23, align 8
  %25 = tail call noundef i32 %24(ptr noundef nonnull align 8 dereferenceable(256) %21, ptr noundef %2)
  %.not43 = icmp eq i32 %25, 0
  br i1 %.not43, label %26, label %60

26:                                               ; preds = %19
  %27 = tail call noundef ptr @_ZNK9CMyComPtrI20ISequentialOutStreamEcvPS0_Ev(ptr noundef nonnull align 8 dereferenceable(8) %0)
  %28 = load ptr, ptr %20, align 8, !tbaa !17
  %29 = load ptr, ptr %28, align 8, !tbaa !15
  %30 = getelementptr inbounds i8, ptr %29, i64 48
  %31 = load ptr, ptr %30, align 8
  %32 = tail call noundef i32 %31(ptr noundef nonnull align 8 dereferenceable(256) %28, ptr noundef null)
  %.not44 = icmp eq i32 %32, 0
  br i1 %.not44, label %33, label %60

33:                                               ; preds = %26, %16
  %.033 = phi ptr [ %27, %26 ], [ %2, %16 ]
  %34 = tail call noundef zeroext i1 @_ZNK8NArchive5NLzma7CHeader7HasSizeEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %35 = select i1 %34, ptr %1, ptr null
  %36 = load ptr, ptr %9, align 8, !tbaa !10
  %37 = tail call noundef i32 @_ZN9NCompress5NLzma8CDecoder10CodeResumeEP20ISequentialOutStreamPKyP21ICompressProgressInfo(ptr noundef nonnull align 8 dereferenceable(272) %36, ptr noundef %.033, ptr noundef %35, ptr noundef %3)
  br i1 %18, label %38, label %52

38:                                               ; preds = %33
  %39 = getelementptr inbounds i8, ptr %0, i64 8
  %40 = load ptr, ptr %39, align 8, !tbaa !17
  %41 = load ptr, ptr %40, align 8, !tbaa !15
  %42 = getelementptr inbounds i8, ptr %41, i64 112
  %43 = load ptr, ptr %42, align 8
  %44 = tail call noundef i32 %43(ptr noundef nonnull align 8 dereferenceable(256) %40)
  %45 = icmp eq i32 %37, 0
  %spec.select = select i1 %45, i32 %44, i32 %37
  %46 = load ptr, ptr %39, align 8, !tbaa !17
  %47 = load ptr, ptr %46, align 8, !tbaa !15
  %48 = getelementptr inbounds i8, ptr %47, i64 96
  %49 = load ptr, ptr %48, align 8
  %50 = tail call noundef i32 %49(ptr noundef nonnull align 8 dereferenceable(256) %46)
  %51 = icmp eq i32 %spec.select, 0
  %.139 = select i1 %51, i32 %50, i32 %spec.select
  br label %52

52:                                               ; preds = %38, %33
  %.240 = phi i32 [ %.139, %38 ], [ %37, %33 ]
  %.not45 = icmp eq i32 %.240, 0
  br i1 %.not45, label %53, label %60

53:                                               ; preds = %52
  %54 = tail call noundef zeroext i1 @_ZNK8NArchive5NLzma7CHeader7HasSizeEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  br i1 %54, label %55, label %59

55:                                               ; preds = %53
  %56 = load ptr, ptr %9, align 8, !tbaa !10
  %57 = tail call noundef i64 @_ZNK9NCompress5NLzma8CDecoder22GetOutputProcessedSizeEv(ptr noundef nonnull align 8 dereferenceable(272) %56)
  %58 = load i64, ptr %1, align 8, !tbaa !18
  %.not46 = icmp eq i64 %57, %58
  br i1 %.not46, label %59, label %60

59:                                               ; preds = %55, %53
  br label %60

60:                                               ; preds = %8, %19, %26, %55, %52, %59, %4
  %.7 = phi i32 [ %15, %8 ], [ -2147467263, %4 ], [ %32, %26 ], [ %25, %19 ], [ 0, %59 ], [ %.240, %52 ], [ 1, %55 ]
  ret i32 %.7
}

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

declare noundef i32 @_ZN9NCompress5NLzma8CDecoder10CodeResumeEP20ISequentialOutStreamPKyP21ICompressProgressInfo(ptr noundef nonnull align 8 dereferenceable(272), ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

attributes #0 = { 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 #1 = { 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 #2 = { "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" }

!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, !8, i64 8}
!6 = !{!"_ZTSN8NArchive5NLzma7CHeaderE", !7, i64 0, !8, i64 8, !8, i64 9}
!7 = !{!"long long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !13, i64 24}
!11 = !{!"_ZTSN8NArchive5NLzma8CDecoderE", !12, i64 0, !13, i64 8, !14, i64 16, !13, i64 24}
!12 = !{!"_ZTS9CMyComPtrI20ISequentialOutStreamE", !13, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!"_ZTS9CMyComPtrI14ICompressCoderE", !13, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"vtable pointer", !9, i64 0}
!17 = !{!11, !13, i64 8}
!18 = !{!6, !7, i64 0}


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