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

; 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::N7z::CInByte2" = type { ptr, i64, i64 }
%"class.NArchive::N7z::CHandler" = type { %struct.IInArchive, %struct.IArchiveGetRawProps, %struct.ISetProperties, %struct.IOutArchive, %class.CMyUnknownImp, %"class.NArchive::N7z::COutHandler", %class.CMyComPtr, %"struct.NArchive::N7z::CDbEx", i8, i8, %class.UString, %class.CRecordVector.8, %class.CRecordVector.6 }
%struct.IInArchive = type { %struct.IUnknown }
%struct.IUnknown = type { ptr }
%struct.IArchiveGetRawProps = type { %struct.IUnknown }
%struct.ISetProperties = type { %struct.IUnknown }
%struct.IOutArchive = type { %struct.IUnknown }
%class.CMyUnknownImp = type { i32 }
%"class.NArchive::N7z::COutHandler" = type { %"class.NArchive::CMultiMethodProps.base", i64, i64, i8, i8, i8, i8, i8, i8, %struct.CBoolPair, %struct.CBoolPair, %struct.CBoolPair, %struct.CBoolPair, i8, i8 }
%"class.NArchive::CMultiMethodProps.base" = type <{ %"class.NArchive::CCommonMethodProps", i32, i32, i32, [4 x i8], %class.CObjectVector, %class.COneMethodInfo, i8 }>
%"class.NArchive::CCommonMethodProps" = type { i32, i32, i64, i64 }
%class.CObjectVector = type { %class.CRecordVector }
%class.CRecordVector = type { ptr, i32, i32 }
%class.COneMethodInfo = type { %class.CMethodProps, %class.AString, %class.UString }
%class.CMethodProps = type { %struct.CProps }
%struct.CProps = type { %class.CObjectVector.0 }
%class.CObjectVector.0 = type { %class.CRecordVector }
%class.AString = type { ptr, i32, i32 }
%struct.CBoolPair = type { i8, i8 }
%class.CMyComPtr = type { ptr }
%"struct.NArchive::N7z::CDbEx" = type <{ %"struct.NArchive::N7z::CDatabase", %"struct.NArchive::N7z::CInArchiveInfo", %class.CObjArray.3, %class.CObjArray.3, i64, i64, i8, i8, i8, i8, i8, i8, i8, i8 }>
%"struct.NArchive::N7z::CDatabase" = type { %"struct.NArchive::N7z::CFolders", %class.CRecordVector.7, %"struct.NArchive::N7z::CUInt64DefVector", %"struct.NArchive::N7z::CUInt64DefVector", %"struct.NArchive::N7z::CUInt64DefVector", %"struct.NArchive::N7z::CUInt64DefVector", %"struct.NArchive::N7z::CUInt32DefVector", %class.CRecordVector.1, %class.CBuffer, %class.CObjArray.5 }
%"struct.NArchive::N7z::CFolders" = type { i32, i32, %class.CObjArray, %"struct.NArchive::N7z::CUInt32DefVector", %class.CObjArray.3, %class.CObjArray, %class.CObjArray.3, %class.CObjArray.3, %class.CObjArray.4, %class.CObjArray.5, %class.CBuffer, %"struct.NArchive::N7z::CParsedMethods" }
%class.CObjArray = type { ptr }
%class.CObjArray.4 = type { ptr }
%"struct.NArchive::N7z::CParsedMethods" = type { i8, i32, %class.CRecordVector.6 }
%class.CRecordVector.7 = type { ptr, i32, i32 }
%"struct.NArchive::N7z::CUInt64DefVector" = type { %class.CRecordVector.1, %class.CRecordVector.6 }
%"struct.NArchive::N7z::CUInt32DefVector" = type { %class.CRecordVector.1, %class.CRecordVector.2 }
%class.CRecordVector.2 = type { ptr, i32, i32 }
%class.CRecordVector.1 = type { ptr, i32, i32 }
%class.CBuffer = type { ptr, i64 }
%class.CObjArray.5 = type { ptr }
%"struct.NArchive::N7z::CInArchiveInfo" = type { %"struct.NArchive::N7z::CArchiveVersion", i64, i64, i64, i64, %class.CRecordVector.6 }
%"struct.NArchive::N7z::CArchiveVersion" = type { i8, i8 }
%class.CObjArray.3 = type { ptr }
%class.UString = type { ptr, i32, i32 }
%class.CRecordVector.8 = type { ptr, i32, i32 }
%class.CRecordVector.6 = type { ptr, i32, i32 }

; 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 uwtable
define dso_local noundef zeroext i1 @_ZNK8NArchive3N7z8CHandler17IsFolderEncryptedEj(ptr noundef nonnull align 8 dereferenceable(696) %0, i32 noundef %1) #1 align 2 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca %"struct.NArchive::N7z::CInByte2", align 8
  %10 = alloca i32, align 4
  %11 = alloca i8, align 1
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  %17 = load ptr, ptr %4, align 8
  %18 = load i32, ptr %5, align 4, !tbaa !9
  %19 = icmp eq i32 %18, -1
  br i1 %19, label %20, label %21

20:                                               ; preds = %2
  store i1 false, ptr %3, align 1
  br label %97

21:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %22 = getelementptr inbounds %"class.NArchive::N7z::CHandler", ptr %17, i32 0, i32 7
  %23 = getelementptr inbounds %"struct.NArchive::N7z::CFolders", ptr %22, i32 0, i32 9
  %24 = call noundef ptr @_ZNK9CObjArrayImEcvPKmEv(ptr noundef nonnull align 8 dereferenceable(8) %23)
  %25 = load i32, ptr %5, align 4, !tbaa !9
  %26 = zext i32 %25 to i64
  %27 = getelementptr inbounds i64, ptr %24, i64 %26
  %28 = load i64, ptr %27, align 8, !tbaa !11
  store i64 %28, ptr %6, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %29 = getelementptr inbounds %"class.NArchive::N7z::CHandler", ptr %17, i32 0, i32 7
  %30 = getelementptr inbounds %"struct.NArchive::N7z::CFolders", ptr %29, i32 0, i32 10
  %31 = call noundef ptr @_ZNK7CBufferIhEcvPKhEv(ptr noundef nonnull align 8 dereferenceable(16) %30)
  %32 = load i64, ptr %6, align 8, !tbaa !11
  %33 = getelementptr inbounds i8, ptr %31, i64 %32
  store ptr %33, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %34 = getelementptr inbounds %"class.NArchive::N7z::CHandler", ptr %17, i32 0, i32 7
  %35 = getelementptr inbounds %"struct.NArchive::N7z::CFolders", ptr %34, i32 0, i32 9
  %36 = call noundef ptr @_ZNK9CObjArrayImEcvPKmEv(ptr noundef nonnull align 8 dereferenceable(8) %35)
  %37 = load i32, ptr %5, align 4, !tbaa !9
  %38 = add i32 %37, 1
  %39 = zext i32 %38 to i64
  %40 = getelementptr inbounds i64, ptr %36, i64 %39
  %41 = load i64, ptr %40, align 8, !tbaa !11
  %42 = load i64, ptr %6, align 8, !tbaa !11
  %43 = sub i64 %41, %42
  store i64 %43, ptr %8, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #4
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = load i64, ptr %8, align 8, !tbaa !11
  call void @_ZN8NArchive3N7z8CInByte24InitEPKhm(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef %44, i64 noundef %45)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %46 = call noundef i32 @_ZN8NArchive3N7z8CInByte27ReadNumEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
  store i32 %46, ptr %10, align 4, !tbaa !9
  br label %47

47:                                               ; preds = %92, %21
  %48 = load i32, ptr %10, align 4, !tbaa !9
  %49 = icmp ne i32 %48, 0
  br i1 %49, label %50, label %95

50:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #4
  %51 = call noundef zeroext i8 @_ZN8NArchive3N7z8CInByte28ReadByteEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
  store i8 %51, ptr %11, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %52 = load i8, ptr %11, align 1, !tbaa !13
  %53 = zext i8 %52 to i32
  %54 = and i32 %53, 15
  store i32 %54, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %55 = call noundef ptr @_ZNK8NArchive3N7z8CInByte26GetPtrEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
  store ptr %55, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  store i64 0, ptr %14, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %56

56:                                               ; preds = %71, %50
  %57 = load i32, ptr %15, align 4, !tbaa !9
  %58 = load i32, ptr %12, align 4, !tbaa !9
  %59 = icmp ult i32 %57, %58
  br i1 %59, label %61, label %60

60:                                               ; preds = %56
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %74

61:                                               ; preds = %56
  %62 = load i64, ptr %14, align 8, !tbaa !14
  %63 = shl i64 %62, 8
  %64 = load ptr, ptr %13, align 8, !tbaa !5
  %65 = load i32, ptr %15, align 4, !tbaa !9
  %66 = zext i32 %65 to i64
  %67 = getelementptr inbounds i8, ptr %64, i64 %66
  %68 = load i8, ptr %67, align 1, !tbaa !13
  %69 = zext i8 %68 to i64
  %70 = or i64 %63, %69
  store i64 %70, ptr %14, align 8, !tbaa !14
  br label %71

71:                                               ; preds = %61
  %72 = load i32, ptr %15, align 4, !tbaa !9
  %73 = add i32 %72, 1
  store i32 %73, ptr %15, align 4, !tbaa !9
  br label %56, !llvm.loop !16

74:                                               ; preds = %60
  %75 = load i32, ptr %12, align 4, !tbaa !9
  %76 = zext i32 %75 to i64
  call void @_ZN8NArchive3N7z8CInByte215SkipDataNoCheckEy(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %76)
  %77 = load i64, ptr %14, align 8, !tbaa !14
  %78 = icmp eq i64 %77, 116459265
  br i1 %78, label %79, label %80

79:                                               ; preds = %74
  store i1 true, ptr %3, align 1
  store i32 1, ptr %16, align 4
  br label %89

80:                                               ; preds = %74
  %81 = load i8, ptr %11, align 1, !tbaa !13
  %82 = zext i8 %81 to i32
  %83 = and i32 %82, 32
  %84 = icmp ne i32 %83, 0
  br i1 %84, label %85, label %88

85:                                               ; preds = %80
  %86 = call noundef i32 @_ZN8NArchive3N7z8CInByte27ReadNumEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
  %87 = zext i32 %86 to i64
  call void @_ZN8NArchive3N7z8CInByte215SkipDataNoCheckEy(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %87)
  br label %88

88:                                               ; preds = %85, %80
  store i32 0, ptr %16, align 4
  br label %89

89:                                               ; preds = %88, %79
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #4
  %90 = load i32, ptr %16, align 4
  switch i32 %90, label %96 [
    i32 0, label %91
  ]

91:                                               ; preds = %89
  br label %92

92:                                               ; preds = %91
  %93 = load i32, ptr %10, align 4, !tbaa !9
  %94 = add i32 %93, -1
  store i32 %94, ptr %10, align 4, !tbaa !9
  br label %47, !llvm.loop !18

95:                                               ; preds = %47
  store i1 false, ptr %3, align 1
  store i32 1, ptr %16, align 4
  br label %96

96:                                               ; preds = %95, %89
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  br label %97

97:                                               ; preds = %96, %20
  %98 = load i1, ptr %3, align 1
  ret i1 %98
}

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

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

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

declare noundef i32 @_ZN8NArchive3N7z8CInByte27ReadNumEv(ptr noundef nonnull align 8 dereferenceable(24)) #3

declare noundef zeroext i8 @_ZN8NArchive3N7z8CInByte28ReadByteEv(ptr noundef nonnull align 8 dereferenceable(24)) #3

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { "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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"long long", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}


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

%"struct.NArchive::N7z::CInByte2" = type { ptr, i64, i64 }

; 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK8NArchive3N7z8CHandler17IsFolderEncryptedEj(ptr noundef nonnull align 8 dereferenceable(696) %0, i32 noundef %1) local_unnamed_addr #1 align 2 {
  %3 = alloca %"struct.NArchive::N7z::CInByte2", align 8
  %4 = icmp eq i32 %1, -1
  br i1 %4, label %58, label %5

5:                                                ; preds = %2
  %6 = getelementptr inbounds i8, ptr %0, i64 280
  %7 = tail call noundef ptr @_ZNK9CObjArrayImEcvPKmEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
  %8 = zext i32 %1 to i64
  %9 = getelementptr inbounds i64, ptr %7, i64 %8
  %10 = load i64, ptr %9, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %0, i64 288
  %12 = tail call noundef ptr @_ZNK7CBufferIhEcvPKhEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
  %13 = getelementptr inbounds i8, ptr %12, i64 %10
  %14 = tail call noundef ptr @_ZNK9CObjArrayImEcvPKmEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
  %15 = add nuw i32 %1, 1
  %16 = zext i32 %15 to i64
  %17 = getelementptr inbounds i64, ptr %14, i64 %16
  %18 = load i64, ptr %17, align 8, !tbaa !5
  %19 = sub i64 %18, %10
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #4
  call void @_ZN8NArchive3N7z8CInByte24InitEPKhm(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef %13, i64 noundef %19)
  %20 = call noundef i32 @_ZN8NArchive3N7z8CInByte27ReadNumEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
  %.not31.not = icmp eq i32 %20, 0
  br i1 %.not31.not, label %.critedge, label %.lr.ph35

.lr.ph35:                                         ; preds = %5, %56
  %.02432 = phi i32 [ %57, %56 ], [ %20, %5 ]
  %21 = call noundef zeroext i8 @_ZN8NArchive3N7z8CInByte28ReadByteEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
  %22 = zext i8 %21 to i32
  %23 = and i32 %22, 15
  %24 = call noundef ptr @_ZNK8NArchive3N7z8CInByte26GetPtrEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
  %.not39 = icmp eq i32 %23, 0
  %.pre = zext nneg i32 %23 to i64
  br i1 %.not39, label %._crit_edge.thread, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.lr.ph35
  %xtraiter = and i64 %.pre, 3
  %25 = icmp ult i32 %23, 4
  br i1 %25, label %._crit_edge.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %.pre, 12
  br label %.lr.ph

._crit_edge.thread:                               ; preds = %.lr.ph35
  call void @_ZN8NArchive3N7z8CInByte215SkipDataNoCheckEy(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.pre)
  br label %51

._crit_edge.unr-lcssa:                            ; preds = %.lr.ph, %.lr.ph.preheader
  %.lcssa.ph = phi i64 [ poison, %.lr.ph.preheader ], [ %50, %.lr.ph ]
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next.3, %.lr.ph ]
  %.02229.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %50, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.unr-lcssa, %.lr.ph.epil
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.lr.ph.epil ], [ %indvars.iv.unr, %._crit_edge.unr-lcssa ]
  %.02229.epil = phi i64 [ %30, %.lr.ph.epil ], [ %.02229.unr, %._crit_edge.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %._crit_edge.unr-lcssa ]
  %26 = shl i64 %.02229.epil, 8
  %27 = getelementptr inbounds i8, ptr %24, i64 %indvars.iv.epil
  %28 = load i8, ptr %27, align 1, !tbaa !9
  %29 = zext i8 %28 to i64
  %30 = or disjoint i64 %26, %29
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.lr.ph.epil, !llvm.loop !10

._crit_edge:                                      ; preds = %.lr.ph.epil, %._crit_edge.unr-lcssa
  %.lcssa = phi i64 [ %.lcssa.ph, %._crit_edge.unr-lcssa ], [ %30, %.lr.ph.epil ]
  call void @_ZN8NArchive3N7z8CInByte215SkipDataNoCheckEy(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.pre)
  %.not28 = icmp eq i64 %.lcssa, 116459265
  br i1 %.not28, label %.critedge, label %51

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader.new ], [ %indvars.iv.next.3, %.lr.ph ]
  %.02229 = phi i64 [ 0, %.lr.ph.preheader.new ], [ %50, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.3, %.lr.ph ]
  %31 = getelementptr inbounds i8, ptr %24, i64 %indvars.iv
  %32 = load i8, ptr %31, align 1, !tbaa !9
  %33 = zext i8 %32 to i64
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %34 = shl i64 %.02229, 16
  %35 = shl nuw nsw i64 %33, 8
  %36 = or disjoint i64 %34, %35
  %37 = getelementptr inbounds i8, ptr %24, i64 %indvars.iv.next
  %38 = load i8, ptr %37, align 1, !tbaa !9
  %39 = zext i8 %38 to i64
  %40 = or disjoint i64 %36, %39
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %41 = getelementptr inbounds i8, ptr %24, i64 %indvars.iv.next.1
  %42 = load i8, ptr %41, align 1, !tbaa !9
  %43 = zext i8 %42 to i64
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %44 = shl i64 %40, 16
  %45 = shl nuw nsw i64 %43, 8
  %46 = or disjoint i64 %44, %45
  %47 = getelementptr inbounds i8, ptr %24, i64 %indvars.iv.next.2
  %48 = load i8, ptr %47, align 1, !tbaa !9
  %49 = zext i8 %48 to i64
  %50 = or disjoint i64 %46, %49
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.unr-lcssa, label %.lr.ph, !llvm.loop !12

51:                                               ; preds = %._crit_edge.thread, %._crit_edge
  %52 = and i32 %22, 32
  %.not27 = icmp eq i32 %52, 0
  br i1 %.not27, label %56, label %53

53:                                               ; preds = %51
  %54 = call noundef i32 @_ZN8NArchive3N7z8CInByte27ReadNumEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
  %55 = zext i32 %54 to i64
  call void @_ZN8NArchive3N7z8CInByte215SkipDataNoCheckEy(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %55)
  br label %56

56:                                               ; preds = %53, %51
  %57 = add i32 %.02432, -1
  %.not.not = icmp eq i32 %57, 0
  br i1 %.not.not, label %.critedge, label %.lr.ph35, !llvm.loop !14

.critedge:                                        ; preds = %56, %._crit_edge, %5
  %.not.lcssa = phi i1 [ false, %5 ], [ false, %56 ], [ true, %._crit_edge ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #4
  br label %58

58:                                               ; preds = %2, %.critedge
  %.3 = phi i1 [ %.not.lcssa, %.critedge ], [ false, %2 ]
  ret i1 %.3
}

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

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

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

declare noundef i32 @_ZN8NArchive3N7z8CInByte27ReadNumEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3

declare noundef zeroext i8 @_ZN8NArchive3N7z8CInByte28ReadByteEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { "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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.unroll.disable"}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass