; LLVM IR from liyuming1978/NativeLibCompression :: DecRawso/jni/7zC (7zIn)

; 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.CSzArEx = type { %struct.CSzAr, i64, i64, ptr, ptr, ptr, ptr, ptr, %struct.CBuf }
%struct.CSzAr = type { ptr, ptr, ptr, ptr, ptr, i32, i32, i32 }
%struct.CBuf = type { ptr, i64 }
%struct.ISzAlloc = type { ptr, ptr }
%struct.CSzFolder = type { ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32 }
%struct.CSzFileItem = type { %struct.CNtfsFileTime, i64, i32, i32, i8, i8, i8, i8, i8, i8 }
%struct.CNtfsFileTime = type { 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: nounwind uwtable
declare dso_local i64 @SzFolder_GetUnpackSize(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i64 @SzArEx_GetFolderStreamPos(ptr noundef, i32 noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @SzArEx_Extract(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9) #1 {
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca ptr, align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca ptr, align 8
  store ptr %0, ptr %12, align 8, !tbaa !5
  store ptr %1, ptr %13, align 8, !tbaa !5
  store i32 %2, ptr %14, align 4, !tbaa !9
  store ptr %3, ptr %15, align 8, !tbaa !5
  store ptr %4, ptr %16, align 8, !tbaa !5
  store ptr %5, ptr %17, align 8, !tbaa !5
  store ptr %6, ptr %18, align 8, !tbaa !5
  store ptr %7, ptr %19, align 8, !tbaa !5
  store ptr %8, ptr %20, align 8, !tbaa !5
  store ptr %9, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #3
  %32 = load ptr, ptr %12, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.CSzArEx, ptr %32, i32 0, i32 6
  %34 = load ptr, ptr %33, align 8, !tbaa !11
  %35 = load i32, ptr %14, align 4, !tbaa !9
  %36 = zext i32 %35 to i64
  %37 = getelementptr inbounds i32, ptr %34, i64 %36
  %38 = load i32, ptr %37, align 4, !tbaa !9
  store i32 %38, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  store i32 0, ptr %23, align 4, !tbaa !9
  %39 = load ptr, ptr %18, align 8, !tbaa !5
  store i64 0, ptr %39, align 8, !tbaa !17
  %40 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 0, ptr %40, align 8, !tbaa !17
  %41 = load i32, ptr %22, align 4, !tbaa !9
  %42 = icmp eq i32 %41, -1
  br i1 %42, label %43, label %54

43:                                               ; preds = %10
  %44 = load ptr, ptr %20, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.ISzAlloc, ptr %44, i32 0, i32 1
  %46 = load ptr, ptr %45, align 8, !tbaa !18
  %47 = load ptr, ptr %20, align 8, !tbaa !5
  %48 = load ptr, ptr %16, align 8, !tbaa !5
  %49 = load ptr, ptr %48, align 8, !tbaa !5
  call void %46(ptr noundef %47, ptr noundef %49)
  %50 = load i32, ptr %22, align 4, !tbaa !9
  %51 = load ptr, ptr %15, align 8, !tbaa !5
  store i32 %50, ptr %51, align 4, !tbaa !9
  %52 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr null, ptr %52, align 8, !tbaa !5
  %53 = load ptr, ptr %17, align 8, !tbaa !5
  store i64 0, ptr %53, align 8, !tbaa !17
  store i32 0, ptr %11, align 4
  store i32 1, ptr %24, align 4
  br label %253

54:                                               ; preds = %10
  %55 = load ptr, ptr %16, align 8, !tbaa !5
  %56 = load ptr, ptr %55, align 8, !tbaa !5
  %57 = icmp eq ptr %56, null
  br i1 %57, label %63, label %58

58:                                               ; preds = %54
  %59 = load ptr, ptr %15, align 8, !tbaa !5
  %60 = load i32, ptr %59, align 4, !tbaa !9
  %61 = load i32, ptr %22, align 4, !tbaa !9
  %62 = icmp ne i32 %60, %61
  br i1 %62, label %63, label %172

63:                                               ; preds = %58, %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #3
  %64 = load ptr, ptr %12, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.CSzArEx, ptr %64, i32 0, i32 0
  %66 = getelementptr inbounds %struct.CSzAr, ptr %65, i32 0, i32 3
  %67 = load ptr, ptr %66, align 8, !tbaa !20
  %68 = load i32, ptr %22, align 4, !tbaa !9
  %69 = zext i32 %68 to i64
  %70 = getelementptr inbounds %struct.CSzFolder, ptr %67, i64 %69
  store ptr %70, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #3
  %71 = load ptr, ptr %25, align 8, !tbaa !5
  %72 = call i64 @SzFolder_GetUnpackSize(ptr noundef %71)
  store i64 %72, ptr %26, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #3
  %73 = load i64, ptr %26, align 8, !tbaa !21
  store i64 %73, ptr %27, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #3
  %74 = load ptr, ptr %12, align 8, !tbaa !5
  %75 = load i32, ptr %22, align 4, !tbaa !9
  %76 = call i64 @SzArEx_GetFolderStreamPos(ptr noundef %74, i32 noundef %75, i32 noundef 0)
  store i64 %76, ptr %28, align 8, !tbaa !21
  %77 = load i64, ptr %27, align 8, !tbaa !17
  %78 = load i64, ptr %26, align 8, !tbaa !21
  %79 = icmp ne i64 %77, %78
  br i1 %79, label %80, label %81

80:                                               ; preds = %63
  store i32 2, ptr %11, align 4
  store i32 1, ptr %24, align 4
  br label %169

81:                                               ; preds = %63
  %82 = load i32, ptr %22, align 4, !tbaa !9
  %83 = load ptr, ptr %15, align 8, !tbaa !5
  store i32 %82, ptr %83, align 4, !tbaa !9
  %84 = load ptr, ptr %20, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.ISzAlloc, ptr %84, i32 0, i32 1
  %86 = load ptr, ptr %85, align 8, !tbaa !18
  %87 = load ptr, ptr %20, align 8, !tbaa !5
  %88 = load ptr, ptr %16, align 8, !tbaa !5
  %89 = load ptr, ptr %88, align 8, !tbaa !5
  call void %86(ptr noundef %87, ptr noundef %89)
  %90 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr null, ptr %90, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #3
  %91 = load ptr, ptr %13, align 8, !tbaa !5
  %92 = load i64, ptr %28, align 8, !tbaa !21
  %93 = call i32 @LookInStream_SeekTo(ptr noundef %91, i64 noundef %92)
  store i32 %93, ptr %29, align 4, !tbaa !9
  %94 = load i32, ptr %29, align 4, !tbaa !9
  %95 = icmp ne i32 %94, 0
  br i1 %95, label %96, label %98

96:                                               ; preds = %81
  %97 = load i32, ptr %29, align 4, !tbaa !9
  store i32 %97, ptr %11, align 4
  store i32 1, ptr %24, align 4
  br label %99

98:                                               ; preds = %81
  store i32 0, ptr %24, align 4
  br label %99

99:                                               ; preds = %98, %96
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #3
  %100 = load i32, ptr %24, align 4
  switch i32 %100, label %169 [
    i32 0, label %101
  ]

101:                                              ; preds = %99
  %102 = load i32, ptr %23, align 4, !tbaa !9
  %103 = icmp eq i32 %102, 0
  br i1 %103, label %104, label %168

104:                                              ; preds = %101
  %105 = load i64, ptr %27, align 8, !tbaa !17
  %106 = load ptr, ptr %17, align 8, !tbaa !5
  store i64 %105, ptr %106, align 8, !tbaa !17
  %107 = load i64, ptr %27, align 8, !tbaa !17
  %108 = icmp ne i64 %107, 0
  br i1 %108, label %109, label %122

109:                                              ; preds = %104
  %110 = load ptr, ptr %20, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.ISzAlloc, ptr %110, i32 0, i32 0
  %112 = load ptr, ptr %111, align 8, !tbaa !22
  %113 = load ptr, ptr %20, align 8, !tbaa !5
  %114 = load i64, ptr %27, align 8, !tbaa !17
  %115 = call ptr %112(ptr noundef %113, i64 noundef %114)
  %116 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %115, ptr %116, align 8, !tbaa !5
  %117 = load ptr, ptr %16, align 8, !tbaa !5
  %118 = load ptr, ptr %117, align 8, !tbaa !5
  %119 = icmp eq ptr %118, null
  br i1 %119, label %120, label %121

120:                                              ; preds = %109
  store i32 2, ptr %23, align 4, !tbaa !9
  br label %121

121:                                              ; preds = %120, %109
  br label %122

122:                                              ; preds = %121, %104
  %123 = load i32, ptr %23, align 4, !tbaa !9
  %124 = icmp eq i32 %123, 0
  br i1 %124, label %125, label %167

125:                                              ; preds = %122
  %126 = load ptr, ptr %25, align 8, !tbaa !5
  %127 = load ptr, ptr %12, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.CSzArEx, ptr %127, i32 0, i32 0
  %129 = getelementptr inbounds %struct.CSzAr, ptr %128, i32 0, i32 0
  %130 = load ptr, ptr %129, align 8, !tbaa !23
  %131 = load ptr, ptr %12, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.CSzArEx, ptr %131, i32 0, i32 3
  %133 = load ptr, ptr %132, align 8, !tbaa !24
  %134 = load i32, ptr %22, align 4, !tbaa !9
  %135 = zext i32 %134 to i64
  %136 = getelementptr inbounds i32, ptr %133, i64 %135
  %137 = load i32, ptr %136, align 4, !tbaa !9
  %138 = zext i32 %137 to i64
  %139 = getelementptr inbounds i64, ptr %130, i64 %138
  %140 = load ptr, ptr %13, align 8, !tbaa !5
  %141 = load i64, ptr %28, align 8, !tbaa !21
  %142 = load ptr, ptr %16, align 8, !tbaa !5
  %143 = load ptr, ptr %142, align 8, !tbaa !5
  %144 = load i64, ptr %27, align 8, !tbaa !17
  %145 = load ptr, ptr %21, align 8, !tbaa !5
  %146 = call i32 @SzFolder_Decode(ptr noundef %126, ptr noundef %139, ptr noundef %140, i64 noundef %141, ptr noundef %143, i64 noundef %144, ptr noundef %145)
  store i32 %146, ptr %23, align 4, !tbaa !9
  %147 = load i32, ptr %23, align 4, !tbaa !9
  %148 = icmp eq i32 %147, 0
  br i1 %148, label %149, label %166

149:                                              ; preds = %125
  %150 = load ptr, ptr %25, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.CSzFolder, ptr %150, i32 0, i32 7
  %152 = load i32, ptr %151, align 4, !tbaa !25
  %153 = icmp ne i32 %152, 0
  br i1 %153, label %154, label %165

154:                                              ; preds = %149
  %155 = load ptr, ptr %16, align 8, !tbaa !5
  %156 = load ptr, ptr %155, align 8, !tbaa !5
  %157 = load i64, ptr %27, align 8, !tbaa !17
  %158 = call i32 @CrcCalc(ptr noundef %156, i64 noundef %157)
  %159 = load ptr, ptr %25, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.CSzFolder, ptr %159, i32 0, i32 8
  %161 = load i32, ptr %160, align 8, !tbaa !27
  %162 = icmp ne i32 %158, %161
  br i1 %162, label %163, label %164

163:                                              ; preds = %154
  store i32 3, ptr %23, align 4, !tbaa !9
  br label %164

164:                                              ; preds = %163, %154
  br label %165

165:                                              ; preds = %164, %149
  br label %166

166:                                              ; preds = %165, %125
  br label %167

167:                                              ; preds = %166, %122
  br label %168

168:                                              ; preds = %167, %101
  store i32 0, ptr %24, align 4
  br label %169

169:                                              ; preds = %168, %99, %80
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #3
  %170 = load i32, ptr %24, align 4
  switch i32 %170, label %253 [
    i32 0, label %171
  ]

171:                                              ; preds = %169
  br label %172

172:                                              ; preds = %171, %58
  %173 = load i32, ptr %23, align 4, !tbaa !9
  %174 = icmp eq i32 %173, 0
  br i1 %174, label %175, label %251

175:                                              ; preds = %172
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #3
  %176 = load ptr, ptr %12, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.CSzArEx, ptr %176, i32 0, i32 0
  %178 = getelementptr inbounds %struct.CSzAr, ptr %177, i32 0, i32 4
  %179 = load ptr, ptr %178, align 8, !tbaa !28
  %180 = load i32, ptr %14, align 4, !tbaa !9
  %181 = zext i32 %180 to i64
  %182 = getelementptr inbounds %struct.CSzFileItem, ptr %179, i64 %181
  store ptr %182, ptr %31, align 8, !tbaa !5
  %183 = load ptr, ptr %18, align 8, !tbaa !5
  store i64 0, ptr %183, align 8, !tbaa !17
  %184 = load ptr, ptr %12, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.CSzArEx, ptr %184, i32 0, i32 5
  %186 = load ptr, ptr %185, align 8, !tbaa !29
  %187 = load i32, ptr %22, align 4, !tbaa !9
  %188 = zext i32 %187 to i64
  %189 = getelementptr inbounds i32, ptr %186, i64 %188
  %190 = load i32, ptr %189, align 4, !tbaa !9
  store i32 %190, ptr %30, align 4, !tbaa !9
  br label %191

191:                                              ; preds = %210, %175
  %192 = load i32, ptr %30, align 4, !tbaa !9
  %193 = load i32, ptr %14, align 4, !tbaa !9
  %194 = icmp ult i32 %192, %193
  br i1 %194, label %195, label %213

195:                                              ; preds = %191
  %196 = load ptr, ptr %12, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.CSzArEx, ptr %196, i32 0, i32 0
  %198 = getelementptr inbounds %struct.CSzAr, ptr %197, i32 0, i32 4
  %199 = load ptr, ptr %198, align 8, !tbaa !28
  %200 = load i32, ptr %30, align 4, !tbaa !9
  %201 = zext i32 %200 to i64
  %202 = getelementptr inbounds %struct.CSzFileItem, ptr %199, i64 %201
  %203 = getelementptr inbounds %struct.CSzFileItem, ptr %202, i32 0, i32 1
  %204 = load i64, ptr %203, align 8, !tbaa !30
  %205 = trunc i64 %204 to i32
  %206 = zext i32 %205 to i64
  %207 = load ptr, ptr %18, align 8, !tbaa !5
  %208 = load i64, ptr %207, align 8, !tbaa !17
  %209 = add i64 %208, %206
  store i64 %209, ptr %207, align 8, !tbaa !17
  br label %210

210:                                              ; preds = %195
  %211 = load i32, ptr %30, align 4, !tbaa !9
  %212 = add i32 %211, 1
  store i32 %212, ptr %30, align 4, !tbaa !9
  br label %191, !llvm.loop !33

213:                                              ; preds = %191
  %214 = load ptr, ptr %31, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.CSzFileItem, ptr %214, i32 0, i32 1
  %216 = load i64, ptr %215, align 8, !tbaa !30
  %217 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 %216, ptr %217, align 8, !tbaa !17
  %218 = load ptr, ptr %18, align 8, !tbaa !5
  %219 = load i64, ptr %218, align 8, !tbaa !17
  %220 = load ptr, ptr %19, align 8, !tbaa !5
  %221 = load i64, ptr %220, align 8, !tbaa !17
  %222 = add i64 %219, %221
  %223 = load ptr, ptr %17, align 8, !tbaa !5
  %224 = load i64, ptr %223, align 8, !tbaa !17
  %225 = icmp ugt i64 %222, %224
  br i1 %225, label %226, label %227

226:                                              ; preds = %213
  store i32 11, ptr %11, align 4
  store i32 1, ptr %24, align 4
  br label %248

227:                                              ; preds = %213
  %228 = load ptr, ptr %31, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.CSzFileItem, ptr %228, i32 0, i32 7
  %230 = load i8, ptr %229, align 1, !tbaa !35
  %231 = zext i8 %230 to i32
  %232 = icmp ne i32 %231, 0
  br i1 %232, label %233, label %247

233:                                              ; preds = %227
  %234 = load ptr, ptr %16, align 8, !tbaa !5
  %235 = load ptr, ptr %234, align 8, !tbaa !5
  %236 = load ptr, ptr %18, align 8, !tbaa !5
  %237 = load i64, ptr %236, align 8, !tbaa !17
  %238 = getelementptr inbounds i8, ptr %235, i64 %237
  %239 = load ptr, ptr %19, align 8, !tbaa !5
  %240 = load i64, ptr %239, align 8, !tbaa !17
  %241 = call i32 @CrcCalc(ptr noundef %238, i64 noundef %240)
  %242 = load ptr, ptr %31, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.CSzFileItem, ptr %242, i32 0, i32 2
  %244 = load i32, ptr %243, align 8, !tbaa !36
  %245 = icmp ne i32 %241, %244
  br i1 %245, label %246, label %247

246:                                              ; preds = %233
  store i32 3, ptr %23, align 4, !tbaa !9
  br label %247

247:                                              ; preds = %246, %233, %227
  store i32 0, ptr %24, align 4
  br label %248

248:                                              ; preds = %247, %226
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #3
  %249 = load i32, ptr %24, align 4
  switch i32 %249, label %253 [
    i32 0, label %250
  ]

250:                                              ; preds = %248
  br label %251

251:                                              ; preds = %250, %172
  %252 = load i32, ptr %23, align 4, !tbaa !9
  store i32 %252, ptr %11, align 4
  store i32 1, ptr %24, align 4
  br label %253

253:                                              ; preds = %251, %248, %169, %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #3
  %254 = load i32, ptr %11, align 4
  ret i32 %254
}

declare i32 @LookInStream_SeekTo(ptr noundef, i64 noundef) #2

declare i32 @SzFolder_Decode(ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef) #2

declare i32 @CrcCalc(ptr noundef, i64 noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { "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 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 96}
!12 = !{!"", !13, i64 0, !14, i64 56, !14, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !15, i64 112}
!13 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !10, i64 40, !10, i64 44, !10, i64 48}
!14 = !{!"long long", !7, i64 0}
!15 = !{!"", !6, i64 0, !16, i64 8}
!16 = !{!"long", !7, i64 0}
!17 = !{!16, !16, i64 0}
!18 = !{!19, !6, i64 8}
!19 = !{!"", !6, i64 0, !6, i64 8}
!20 = !{!12, !6, i64 24}
!21 = !{!14, !14, i64 0}
!22 = !{!19, !6, i64 0}
!23 = !{!12, !6, i64 0}
!24 = !{!12, !6, i64 72}
!25 = !{!26, !10, i64 44}
!26 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52}
!27 = !{!26, !10, i64 48}
!28 = !{!12, !6, i64 32}
!29 = !{!12, !6, i64 88}
!30 = !{!31, !14, i64 8}
!31 = !{!"", !32, i64 0, !14, i64 8, !10, i64 16, !10, i64 20, !7, i64 24, !7, i64 25, !7, i64 26, !7, i64 27, !7, i64 28, !7, i64 29}
!32 = !{!"", !10, i64 0, !10, i64 4}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = !{!31, !7, i64 27}
!36 = !{!31, !10, i64 16}


; 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.CSzFolder = type { ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32 }
%struct.CSzFileItem = type { %struct.CNtfsFileTime, i64, i32, i32, i8, i8, i8, i8, i8, i8 }
%struct.CNtfsFileTime = type { i32, i32 }

; Function Attrs: nounwind uwtable
declare dso_local i64 @SzFolder_GetUnpackSize(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i64 @SzArEx_GetFolderStreamPos(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local i32 @SzArEx_Extract(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr nocapture noundef %3, ptr nocapture noundef %4, ptr nocapture noundef %5, ptr nocapture noundef %6, ptr nocapture noundef writeonly %7, ptr noundef %8, ptr noundef %9) local_unnamed_addr #0 {
  %11 = getelementptr inbounds i8, ptr %0, i64 96
  %12 = load ptr, ptr %11, align 8, !tbaa !5
  %13 = zext i32 %2 to i64
  %14 = getelementptr inbounds i32, ptr %12, i64 %13
  %15 = load i32, ptr %14, align 4, !tbaa !15
  store i64 0, ptr %6, align 8, !tbaa !16
  store i64 0, ptr %7, align 8, !tbaa !16
  %16 = icmp eq i32 %15, -1
  br i1 %16, label %17, label %21

17:                                               ; preds = %10
  %18 = getelementptr inbounds i8, ptr %8, i64 8
  %19 = load ptr, ptr %18, align 8, !tbaa !17
  %20 = load ptr, ptr %4, align 8, !tbaa !19
  tail call void %19(ptr noundef %8, ptr noundef %20) #3
  store i32 -1, ptr %3, align 4, !tbaa !15
  store ptr null, ptr %4, align 8, !tbaa !19
  store i64 0, ptr %5, align 8, !tbaa !16
  br label %.thread120

21:                                               ; preds = %10
  %22 = load ptr, ptr %4, align 8, !tbaa !19
  %23 = icmp eq ptr %22, null
  br i1 %23, label %26, label %24

24:                                               ; preds = %21
  %25 = load i32, ptr %3, align 4, !tbaa !15
  %.not = icmp eq i32 %25, %15
  br i1 %.not, label %..thread112_crit_edge, label %26

..thread112_crit_edge:                            ; preds = %24
  %.pre125 = zext i32 %15 to i64
  br label %.thread112

26:                                               ; preds = %24, %21
  %27 = getelementptr inbounds i8, ptr %0, i64 24
  %28 = load ptr, ptr %27, align 8, !tbaa !20
  %29 = zext i32 %15 to i64
  %30 = getelementptr inbounds %struct.CSzFolder, ptr %28, i64 %29
  %31 = tail call i64 @SzFolder_GetUnpackSize(ptr noundef %30)
  %32 = tail call i64 @SzArEx_GetFolderStreamPos(ptr noundef nonnull %0, i32 noundef %15, i32 noundef 0)
  store i32 %15, ptr %3, align 4, !tbaa !15
  %33 = getelementptr inbounds i8, ptr %8, i64 8
  %34 = load ptr, ptr %33, align 8, !tbaa !17
  %35 = load ptr, ptr %4, align 8, !tbaa !19
  tail call void %34(ptr noundef %8, ptr noundef %35) #3
  store ptr null, ptr %4, align 8, !tbaa !19
  %36 = tail call i32 @LookInStream_SeekTo(ptr noundef %1, i64 noundef %32) #3
  %.not98 = icmp eq i32 %36, 0
  br i1 %.not98, label %37, label %.thread120

37:                                               ; preds = %26
  store i64 %31, ptr %5, align 8, !tbaa !16
  %.not99 = icmp eq i64 %31, 0
  br i1 %.not99, label %..thread_crit_edge, label %38

..thread_crit_edge:                               ; preds = %37
  %.pre = load ptr, ptr %4, align 8, !tbaa !19
  br label %.thread

38:                                               ; preds = %37
  %39 = load ptr, ptr %8, align 8, !tbaa !21
  %40 = tail call ptr %39(ptr noundef nonnull %8, i64 noundef %31) #3
  store ptr %40, ptr %4, align 8, !tbaa !19
  %.not122 = icmp eq ptr %40, null
  br i1 %.not122, label %.thread120, label %.thread

.thread:                                          ; preds = %..thread_crit_edge, %38
  %41 = phi ptr [ %.pre, %..thread_crit_edge ], [ %40, %38 ]
  %42 = load ptr, ptr %0, align 8, !tbaa !22
  %43 = getelementptr inbounds i8, ptr %0, i64 72
  %44 = load ptr, ptr %43, align 8, !tbaa !23
  %45 = getelementptr inbounds i32, ptr %44, i64 %29
  %46 = load i32, ptr %45, align 4, !tbaa !15
  %47 = zext i32 %46 to i64
  %48 = getelementptr inbounds i64, ptr %42, i64 %47
  %49 = tail call i32 @SzFolder_Decode(ptr noundef %30, ptr noundef %48, ptr noundef %1, i64 noundef %32, ptr noundef %41, i64 noundef %31, ptr noundef %9) #3
  %50 = icmp eq i32 %49, 0
  br i1 %50, label %51, label %.thread120

51:                                               ; preds = %.thread
  %52 = getelementptr inbounds i8, ptr %30, i64 44
  %53 = load i32, ptr %52, align 4, !tbaa !24
  %.not100 = icmp eq i32 %53, 0
  br i1 %.not100, label %.thread112, label %54

54:                                               ; preds = %51
  %55 = load ptr, ptr %4, align 8, !tbaa !19
  %56 = tail call i32 @CrcCalc(ptr noundef %55, i64 noundef %31) #3
  %57 = getelementptr inbounds i8, ptr %30, i64 48
  %58 = load i32, ptr %57, align 8, !tbaa !26
  %.not101 = icmp eq i32 %56, %58
  br i1 %.not101, label %.thread112, label %.thread120

.thread112:                                       ; preds = %..thread112_crit_edge, %54, %51
  %.pre-phi = phi i64 [ %.pre125, %..thread112_crit_edge ], [ %29, %54 ], [ %29, %51 ]
  %59 = getelementptr inbounds i8, ptr %0, i64 32
  %60 = load ptr, ptr %59, align 8, !tbaa !27
  %61 = getelementptr inbounds %struct.CSzFileItem, ptr %60, i64 %13
  store i64 0, ptr %6, align 8, !tbaa !16
  %62 = getelementptr inbounds i8, ptr %0, i64 88
  %63 = load ptr, ptr %62, align 8, !tbaa !28
  %64 = getelementptr inbounds i32, ptr %63, i64 %.pre-phi
  %65 = load i32, ptr %64, align 4, !tbaa !15
  %66 = icmp ult i32 %65, %2
  br i1 %66, label %.lr.ph, label %97

.lr.ph:                                           ; preds = %.thread112
  %67 = zext i32 %65 to i64
  %68 = sub nsw i64 %13, %67
  %min.iters.check = icmp ult i64 %68, 5
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph
  %n.mod.vf = and i64 %68, 3
  %69 = icmp eq i64 %n.mod.vf, 0
  %70 = select i1 %69, i64 4, i64 %n.mod.vf
  %n.vec = sub nsw i64 %68, %70
  %ind.end = add nsw i64 %n.vec, %67
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %88, %vector.body ]
  %vec.phi126 = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %89, %vector.body ]
  %offset.idx = add i64 %index, %67
  %71 = add i64 %offset.idx, 1
  %72 = add i64 %offset.idx, 2
  %73 = add i64 %offset.idx, 3
  %74 = getelementptr inbounds %struct.CSzFileItem, ptr %60, i64 %offset.idx, i32 1
  %75 = getelementptr inbounds %struct.CSzFileItem, ptr %60, i64 %71, i32 1
  %76 = getelementptr inbounds %struct.CSzFileItem, ptr %60, i64 %72, i32 1
  %77 = getelementptr inbounds %struct.CSzFileItem, ptr %60, i64 %73, i32 1
  %78 = load i64, ptr %74, align 8, !tbaa !29
  %79 = load i64, ptr %75, align 8, !tbaa !29
  %80 = insertelement <2 x i64> poison, i64 %78, i64 0
  %81 = insertelement <2 x i64> %80, i64 %79, i64 1
  %82 = load i64, ptr %76, align 8, !tbaa !29
  %83 = load i64, ptr %77, align 8, !tbaa !29
  %84 = insertelement <2 x i64> poison, i64 %82, i64 0
  %85 = insertelement <2 x i64> %84, i64 %83, i64 1
  %86 = and <2 x i64> %81, <i64 4294967295, i64 4294967295>
  %87 = and <2 x i64> %85, <i64 4294967295, i64 4294967295>
  %88 = add <2 x i64> %vec.phi, %86
  %89 = add <2 x i64> %vec.phi126, %87
  %index.next = add nuw i64 %index, 4
  %90 = icmp eq i64 %index.next, %n.vec
  br i1 %90, label %middle.block, label %vector.body, !llvm.loop !32

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <2 x i64> %89, %88
  %91 = tail call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx)
  br label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph
  %indvars.iv.ph = phi i64 [ %67, %.lr.ph ], [ %ind.end, %middle.block ]
  %.ph = phi i64 [ 0, %.lr.ph ], [ %91, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %scalar.ph ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %92 = phi i64 [ %96, %scalar.ph ], [ %.ph, %scalar.ph.preheader ]
  %93 = getelementptr inbounds %struct.CSzFileItem, ptr %60, i64 %indvars.iv, i32 1
  %94 = load i64, ptr %93, align 8, !tbaa !29
  %95 = and i64 %94, 4294967295
  %96 = add i64 %92, %95
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %13
  br i1 %exitcond.not, label %._crit_edge, label %scalar.ph, !llvm.loop !36

._crit_edge:                                      ; preds = %scalar.ph
  store i64 %96, ptr %6, align 8, !tbaa !16
  br label %97

97:                                               ; preds = %._crit_edge, %.thread112
  %98 = getelementptr inbounds i8, ptr %61, i64 8
  %99 = load i64, ptr %98, align 8, !tbaa !29
  store i64 %99, ptr %7, align 8, !tbaa !16
  %100 = load i64, ptr %6, align 8, !tbaa !16
  %101 = add i64 %100, %99
  %102 = load i64, ptr %5, align 8, !tbaa !16
  %.not104 = icmp ugt i64 %101, %102
  br i1 %.not104, label %.thread120, label %103

103:                                              ; preds = %97
  %104 = getelementptr inbounds i8, ptr %61, i64 27
  %105 = load i8, ptr %104, align 1, !tbaa !37
  %.not102 = icmp eq i8 %105, 0
  br i1 %.not102, label %.thread120, label %106

106:                                              ; preds = %103
  %107 = load ptr, ptr %4, align 8, !tbaa !19
  %108 = getelementptr inbounds i8, ptr %107, i64 %100
  %109 = tail call i32 @CrcCalc(ptr noundef %108, i64 noundef %99) #3
  %110 = getelementptr inbounds i8, ptr %61, i64 16
  %111 = load i32, ptr %110, align 8, !tbaa !38
  %.not103 = icmp eq i32 %109, %111
  %spec.select107 = select i1 %.not103, i32 0, i32 3
  br label %.thread120

.thread120:                                       ; preds = %97, %103, %106, %38, %.thread, %54, %26, %17
  %.4 = phi i32 [ 0, %17 ], [ %36, %26 ], [ %49, %.thread ], [ 3, %54 ], [ 2, %38 ], [ 11, %97 ], [ 0, %103 ], [ %spec.select107, %106 ]
  ret i32 %.4
}

declare i32 @LookInStream_SeekTo(ptr noundef, i64 noundef) local_unnamed_addr #1

declare i32 @SzFolder_Decode(ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

declare i32 @CrcCalc(ptr noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.vector.reduce.add.v2i64(<2 x i64>) #2

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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, !8, i64 96}
!6 = !{!"", !7, i64 0, !12, i64 56, !12, i64 64, !8, i64 72, !8, i64 80, !8, i64 88, !8, i64 96, !8, i64 104, !13, i64 112}
!7 = !{!"", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !8, i64 32, !11, i64 40, !11, i64 44, !11, i64 48}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"long long", !9, i64 0}
!13 = !{!"", !8, i64 0, !14, i64 8}
!14 = !{!"long", !9, i64 0}
!15 = !{!11, !11, i64 0}
!16 = !{!14, !14, i64 0}
!17 = !{!18, !8, i64 8}
!18 = !{!"", !8, i64 0, !8, i64 8}
!19 = !{!8, !8, i64 0}
!20 = !{!6, !8, i64 24}
!21 = !{!18, !8, i64 0}
!22 = !{!6, !8, i64 0}
!23 = !{!6, !8, i64 72}
!24 = !{!25, !11, i64 44}
!25 = !{!"", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52}
!26 = !{!25, !11, i64 48}
!27 = !{!6, !8, i64 32}
!28 = !{!6, !8, i64 88}
!29 = !{!30, !12, i64 8}
!30 = !{!"", !31, i64 0, !12, i64 8, !11, i64 16, !11, i64 20, !9, i64 24, !9, i64 25, !9, i64 26, !9, i64 27, !9, i64 28, !9, i64 29}
!31 = !{!"", !11, i64 0, !11, i64 4}
!32 = distinct !{!32, !33, !34, !35}
!33 = !{!"llvm.loop.mustprogress"}
!34 = !{!"llvm.loop.isvectorized", i32 1}
!35 = !{!"llvm.loop.unroll.runtime.disable"}
!36 = distinct !{!36, !33, !35, !34}
!37 = !{!30, !9, i64 27}
!38 = !{!30, !11, i64 16}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass