; LLVM IR from mncoppola/rpef :: utilities_src/squashfs4.1/squashfs-tools (read_fs)

; 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.squashfs_super_block = type { i32, i32, i32, i32, i32, i16, i16, i16, i16, i16, i16, i64, i64, i64, i64, i64, i64, i64, i64 }
%struct.compressor = type { ptr, ptr, i32, ptr, i32 }

@comp = external hidden global ptr, align 8
@stderr = external global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [155 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [2 x i8], align 1

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

declare i32 @read_fs_bytes(i32 noundef, i64 noundef, i32 noundef, ptr noundef) #1

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #2

; 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
define dso_local ptr @read_super(i32 noundef %0, ptr noundef %1, ptr noundef %2) #3 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  store i32 %0, ptr %5, align 4, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %10 = load i32, ptr %5, align 4, !tbaa !5
  %11 = load ptr, ptr %6, align 8, !tbaa !9
  %12 = call i32 @read_fs_bytes(i32 noundef %10, i64 noundef 0, i32 noundef 96, ptr noundef %11)
  store i32 %12, ptr %8, align 4, !tbaa !5
  %13 = load i32, ptr %8, align 4, !tbaa !5
  %14 = icmp eq i32 %13, 0
  br i1 %14, label %15, label %16

15:                                               ; preds = %3
  br label %224

16:                                               ; preds = %3
  %17 = load ptr, ptr %6, align 8, !tbaa !9
  %18 = getelementptr inbounds %struct.squashfs_super_block, ptr %17, i32 0, i32 0
  %19 = load i32, ptr %18, align 8, !tbaa !11
  %20 = icmp ne i32 %19, 1936814952
  br i1 %20, label %21, label %41

21:                                               ; preds = %16
  %22 = load ptr, ptr %6, align 8, !tbaa !9
  %23 = getelementptr inbounds %struct.squashfs_super_block, ptr %22, i32 0, i32 0
  %24 = load i32, ptr %23, align 8, !tbaa !11
  %25 = icmp eq i32 %24, 1752396147
  br i1 %25, label %26, label %33

26:                                               ; preds = %21
  br label %27

27:                                               ; preds = %26
  %28 = load ptr, ptr @stderr, align 8, !tbaa !9
  %29 = load ptr, ptr %7, align 8, !tbaa !9
  %30 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %28, ptr noundef @.str.3, ptr noundef %29) #4
  br label %31

31:                                               ; preds = %27
  br label %32

32:                                               ; preds = %31
  br label %40

33:                                               ; preds = %21
  br label %34

34:                                               ; preds = %33
  %35 = load ptr, ptr @stderr, align 8, !tbaa !9
  %36 = load ptr, ptr %7, align 8, !tbaa !9
  %37 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %35, ptr noundef @.str.4, ptr noundef %36) #4
  br label %38

38:                                               ; preds = %34
  br label %39

39:                                               ; preds = %38
  br label %40

40:                                               ; preds = %39, %32
  br label %224

41:                                               ; preds = %16
  %42 = load ptr, ptr %6, align 8, !tbaa !9
  %43 = getelementptr inbounds %struct.squashfs_super_block, ptr %42, i32 0, i32 9
  %44 = load i16, ptr %43, align 4, !tbaa !15
  %45 = zext i16 %44 to i32
  %46 = icmp ne i32 %45, 4
  br i1 %46, label %53, label %47

47:                                               ; preds = %41
  %48 = load ptr, ptr %6, align 8, !tbaa !9
  %49 = getelementptr inbounds %struct.squashfs_super_block, ptr %48, i32 0, i32 10
  %50 = load i16, ptr %49, align 2, !tbaa !16
  %51 = zext i16 %50 to i32
  %52 = icmp sgt i32 %51, 0
  br i1 %52, label %53, label %98

53:                                               ; preds = %47, %41
  %54 = load ptr, ptr %6, align 8, !tbaa !9
  %55 = getelementptr inbounds %struct.squashfs_super_block, ptr %54, i32 0, i32 9
  %56 = load i16, ptr %55, align 4, !tbaa !15
  %57 = zext i16 %56 to i32
  %58 = icmp slt i32 %57, 4
  br i1 %58, label %59, label %82

59:                                               ; preds = %53
  br label %60

60:                                               ; preds = %59
  %61 = load ptr, ptr @stderr, align 8, !tbaa !9
  %62 = load ptr, ptr %7, align 8, !tbaa !9
  %63 = load ptr, ptr %6, align 8, !tbaa !9
  %64 = getelementptr inbounds %struct.squashfs_super_block, ptr %63, i32 0, i32 9
  %65 = load i16, ptr %64, align 4, !tbaa !15
  %66 = zext i16 %65 to i32
  %67 = load ptr, ptr %6, align 8, !tbaa !9
  %68 = getelementptr inbounds %struct.squashfs_super_block, ptr %67, i32 0, i32 10
  %69 = load i16, ptr %68, align 2, !tbaa !16
  %70 = zext i16 %69 to i32
  %71 = load ptr, ptr %6, align 8, !tbaa !9
  %72 = getelementptr inbounds %struct.squashfs_super_block, ptr %71, i32 0, i32 9
  %73 = load i16, ptr %72, align 4, !tbaa !15
  %74 = zext i16 %73 to i32
  %75 = load ptr, ptr %6, align 8, !tbaa !9
  %76 = getelementptr inbounds %struct.squashfs_super_block, ptr %75, i32 0, i32 10
  %77 = load i16, ptr %76, align 2, !tbaa !16
  %78 = zext i16 %77 to i32
  %79 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %61, ptr noundef @.str.5, ptr noundef %62, i32 noundef %66, i32 noundef %70, i32 noundef %74, i32 noundef %78) #4
  br label %80

80:                                               ; preds = %60
  br label %81

81:                                               ; preds = %80
  br label %97

82:                                               ; preds = %53
  br label %83

83:                                               ; preds = %82
  %84 = load ptr, ptr @stderr, align 8, !tbaa !9
  %85 = load ptr, ptr %7, align 8, !tbaa !9
  %86 = load ptr, ptr %6, align 8, !tbaa !9
  %87 = getelementptr inbounds %struct.squashfs_super_block, ptr %86, i32 0, i32 9
  %88 = load i16, ptr %87, align 4, !tbaa !15
  %89 = zext i16 %88 to i32
  %90 = load ptr, ptr %6, align 8, !tbaa !9
  %91 = getelementptr inbounds %struct.squashfs_super_block, ptr %90, i32 0, i32 10
  %92 = load i16, ptr %91, align 2, !tbaa !16
  %93 = zext i16 %92 to i32
  %94 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %84, ptr noundef @.str.6, ptr noundef %85, i32 noundef %89, i32 noundef %93) #4
  br label %95

95:                                               ; preds = %83
  br label %96

96:                                               ; preds = %95
  br label %97

97:                                               ; preds = %96, %81
  br label %224

98:                                               ; preds = %47
  %99 = load ptr, ptr %6, align 8, !tbaa !9
  %100 = getelementptr inbounds %struct.squashfs_super_block, ptr %99, i32 0, i32 5
  %101 = load i16, ptr %100, align 4, !tbaa !17
  %102 = zext i16 %101 to i32
  %103 = call ptr @lookup_compressor_id(i32 noundef %102)
  store ptr %103, ptr @comp, align 8, !tbaa !9
  %104 = load ptr, ptr @comp, align 8, !tbaa !9
  %105 = getelementptr inbounds %struct.compressor, ptr %104, i32 0, i32 4
  %106 = load i32, ptr %105, align 8, !tbaa !18
  %107 = icmp ne i32 %106, 0
  br i1 %107, label %118, label %108

108:                                              ; preds = %98
  br label %109

109:                                              ; preds = %108
  %110 = load ptr, ptr @stderr, align 8, !tbaa !9
  %111 = load ptr, ptr %7, align 8, !tbaa !9
  %112 = load ptr, ptr @comp, align 8, !tbaa !9
  %113 = getelementptr inbounds %struct.compressor, ptr %112, i32 0, i32 3
  %114 = load ptr, ptr %113, align 8, !tbaa !20
  %115 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %110, ptr noundef @.str.7, ptr noundef %111, ptr noundef %114) #4
  br label %116

116:                                              ; preds = %109
  br label %117

117:                                              ; preds = %116
  call void @display_compressors(ptr noundef @.str.8, ptr noundef @.str.8)
  br label %224

118:                                              ; preds = %98
  %119 = load ptr, ptr %6, align 8, !tbaa !9
  %120 = getelementptr inbounds %struct.squashfs_super_block, ptr %119, i32 0, i32 7
  %121 = load i16, ptr %120, align 8, !tbaa !21
  %122 = zext i16 %121 to i32
  %123 = ashr i32 %122, 7
  %124 = and i32 %123, 1
  %125 = icmp ne i32 %124, 0
  %126 = zext i1 %125 to i64
  %127 = select i1 %125, ptr @.str.10, ptr @.str.8
  %128 = load ptr, ptr %7, align 8, !tbaa !9
  %129 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %127, ptr noundef %128)
  %130 = load ptr, ptr @comp, align 8, !tbaa !9
  %131 = getelementptr inbounds %struct.compressor, ptr %130, i32 0, i32 3
  %132 = load ptr, ptr %131, align 8, !tbaa !20
  %133 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, ptr noundef %132)
  %134 = load ptr, ptr %6, align 8, !tbaa !9
  %135 = getelementptr inbounds %struct.squashfs_super_block, ptr %134, i32 0, i32 7
  %136 = load i16, ptr %135, align 8, !tbaa !21
  %137 = zext i16 %136 to i32
  %138 = ashr i32 %137, 0
  %139 = and i32 %138, 1
  %140 = icmp ne i32 %139, 0
  %141 = zext i1 %140 to i64
  %142 = select i1 %140, ptr @.str.13, ptr @.str.8
  %143 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, ptr noundef %142)
  %144 = load ptr, ptr %6, align 8, !tbaa !9
  %145 = getelementptr inbounds %struct.squashfs_super_block, ptr %144, i32 0, i32 7
  %146 = load i16, ptr %145, align 8, !tbaa !21
  %147 = zext i16 %146 to i32
  %148 = ashr i32 %147, 1
  %149 = and i32 %148, 1
  %150 = icmp ne i32 %149, 0
  %151 = zext i1 %150 to i64
  %152 = select i1 %150, ptr @.str.13, ptr @.str.8
  %153 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, ptr noundef %152)
  %154 = load ptr, ptr %6, align 8, !tbaa !9
  %155 = getelementptr inbounds %struct.squashfs_super_block, ptr %154, i32 0, i32 7
  %156 = load i16, ptr %155, align 8, !tbaa !21
  %157 = zext i16 %156 to i32
  %158 = ashr i32 %157, 3
  %159 = and i32 %158, 1
  %160 = icmp ne i32 %159, 0
  %161 = zext i1 %160 to i64
  %162 = select i1 %160, ptr @.str.13, ptr @.str.8
  %163 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, ptr noundef %162)
  %164 = load ptr, ptr %6, align 8, !tbaa !9
  %165 = getelementptr inbounds %struct.squashfs_super_block, ptr %164, i32 0, i32 7
  %166 = load i16, ptr %165, align 8, !tbaa !21
  %167 = zext i16 %166 to i32
  %168 = ashr i32 %167, 4
  %169 = and i32 %168, 1
  %170 = icmp ne i32 %169, 0
  %171 = zext i1 %170 to i64
  %172 = select i1 %170, ptr @.str.17, ptr @.str.8
  %173 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, ptr noundef %172)
  %174 = load ptr, ptr %6, align 8, !tbaa !9
  %175 = getelementptr inbounds %struct.squashfs_super_block, ptr %174, i32 0, i32 7
  %176 = load i16, ptr %175, align 8, !tbaa !21
  %177 = zext i16 %176 to i32
  %178 = ashr i32 %177, 5
  %179 = and i32 %178, 1
  %180 = icmp ne i32 %179, 0
  %181 = zext i1 %180 to i64
  %182 = select i1 %180, ptr @.str.8, ptr @.str.17
  %183 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, ptr noundef %182)
  %184 = load ptr, ptr %6, align 8, !tbaa !9
  %185 = getelementptr inbounds %struct.squashfs_super_block, ptr %184, i32 0, i32 7
  %186 = load i16, ptr %185, align 8, !tbaa !21
  %187 = zext i16 %186 to i32
  %188 = ashr i32 %187, 6
  %189 = and i32 %188, 1
  %190 = icmp ne i32 %189, 0
  %191 = zext i1 %190 to i64
  %192 = select i1 %190, ptr @.str.8, ptr @.str.17
  %193 = call i32 (ptr, ...) @printf(ptr noundef @.str.19, ptr noundef %192)
  %194 = load ptr, ptr %6, align 8, !tbaa !9
  %195 = getelementptr inbounds %struct.squashfs_super_block, ptr %194, i32 0, i32 12
  %196 = load i64, ptr %195, align 8, !tbaa !22
  %197 = sitofp i64 %196 to double
  %198 = fdiv double %197, 1.024000e+03
  %199 = load ptr, ptr %6, align 8, !tbaa !9
  %200 = getelementptr inbounds %struct.squashfs_super_block, ptr %199, i32 0, i32 12
  %201 = load i64, ptr %200, align 8, !tbaa !22
  %202 = sitofp i64 %201 to double
  %203 = fdiv double %202, 0x4130000000000000
  %204 = call i32 (ptr, ...) @printf(ptr noundef @.str.20, double noundef %198, double noundef %203)
  %205 = load ptr, ptr %6, align 8, !tbaa !9
  %206 = getelementptr inbounds %struct.squashfs_super_block, ptr %205, i32 0, i32 3
  %207 = load i32, ptr %206, align 4, !tbaa !23
  %208 = call i32 (ptr, ...) @printf(ptr noundef @.str.21, i32 noundef %207)
  %209 = load ptr, ptr %6, align 8, !tbaa !9
  %210 = getelementptr inbounds %struct.squashfs_super_block, ptr %209, i32 0, i32 4
  %211 = load i32, ptr %210, align 8, !tbaa !24
  %212 = call i32 (ptr, ...) @printf(ptr noundef @.str.22, i32 noundef %211)
  %213 = load ptr, ptr %6, align 8, !tbaa !9
  %214 = getelementptr inbounds %struct.squashfs_super_block, ptr %213, i32 0, i32 1
  %215 = load i32, ptr %214, align 4, !tbaa !25
  %216 = call i32 (ptr, ...) @printf(ptr noundef @.str.23, i32 noundef %215)
  %217 = load ptr, ptr %6, align 8, !tbaa !9
  %218 = getelementptr inbounds %struct.squashfs_super_block, ptr %217, i32 0, i32 8
  %219 = load i16, ptr %218, align 2, !tbaa !26
  %220 = zext i16 %219 to i32
  %221 = call i32 (ptr, ...) @printf(ptr noundef @.str.24, i32 noundef %220)
  %222 = call i32 (ptr, ...) @printf(ptr noundef @.str.25)
  %223 = load ptr, ptr @comp, align 8, !tbaa !9
  store ptr %223, ptr %4, align 8
  store i32 1, ptr %9, align 4
  br label %225

224:                                              ; preds = %117, %97, %40, %15
  store ptr null, ptr %4, align 8
  store i32 1, ptr %9, align 4
  br label %225

225:                                              ; preds = %224, %118
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  %226 = load ptr, ptr %4, align 8
  ret ptr %226
}

declare ptr @lookup_compressor_id(i32 noundef) #1

declare void @display_compressors(ptr noundef, ptr noundef) #1

declare i32 @printf(ptr noundef, ...) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #3 = { 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"squashfs_super_block", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !13, i64 20, !13, i64 22, !13, i64 24, !13, i64 26, !13, i64 28, !13, i64 30, !14, i64 32, !14, i64 40, !14, i64 48, !14, i64 56, !14, i64 64, !14, i64 72, !14, i64 80, !14, i64 88}
!13 = !{!"short", !7, i64 0}
!14 = !{!"long long", !7, i64 0}
!15 = !{!12, !13, i64 28}
!16 = !{!12, !13, i64 30}
!17 = !{!12, !13, i64 20}
!18 = !{!19, !6, i64 32}
!19 = !{!"compressor", !10, i64 0, !10, i64 8, !6, i64 16, !10, i64 24, !6, i64 32}
!20 = !{!19, !10, i64 24}
!21 = !{!12, !13, i64 24}
!22 = !{!12, !14, i64 40}
!23 = !{!12, !6, i64 12}
!24 = !{!12, !6, i64 16}
!25 = !{!12, !6, i64 4}
!26 = !{!12, !13, i64 26}


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

@comp = external hidden local_unnamed_addr global ptr, align 8
@stderr = external local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [155 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [2 x i8], align 1

declare i32 @read_fs_bytes(i32 noundef, i64 noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local ptr @read_super(i32 noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #2 {
  %4 = tail call i32 @read_fs_bytes(i32 noundef %0, i64 noundef 0, i32 noundef 96, ptr noundef %1) #3
  %5 = icmp eq i32 %4, 0
  br i1 %5, label %101, label %6

6:                                                ; preds = %3
  %7 = load i32, ptr %1, align 8, !tbaa !5
  switch i32 %7, label %11 [
    i32 1936814952, label %14
    i32 1752396147, label %8
  ]

8:                                                ; preds = %6
  %9 = load ptr, ptr @stderr, align 8, !tbaa !12
  %10 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str.3, ptr noundef %2) #4
  br label %101

11:                                               ; preds = %6
  %12 = load ptr, ptr @stderr, align 8, !tbaa !12
  %13 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %12, ptr noundef nonnull @.str.4, ptr noundef %2) #4
  br label %101

14:                                               ; preds = %6
  %15 = getelementptr inbounds i8, ptr %1, i64 28
  %16 = load i16, ptr %15, align 4, !tbaa !14
  %.not36 = icmp eq i16 %16, 4
  br i1 %.not36, label %17, label %20

17:                                               ; preds = %14
  %18 = getelementptr inbounds i8, ptr %1, i64 30
  %19 = load i16, ptr %18, align 2, !tbaa !15
  %.not37 = icmp eq i16 %19, 0
  br i1 %.not37, label %34, label %.thread

20:                                               ; preds = %14
  %21 = zext i16 %16 to i32
  %22 = icmp ult i16 %16, 4
  br i1 %22, label %23, label %..thread_crit_edge

..thread_crit_edge:                               ; preds = %20
  %.phi.trans.insert = getelementptr inbounds i8, ptr %1, i64 30
  %.pre = load i16, ptr %.phi.trans.insert, align 2, !tbaa !15
  br label %.thread

23:                                               ; preds = %20
  %24 = load ptr, ptr @stderr, align 8, !tbaa !12
  %25 = getelementptr inbounds i8, ptr %1, i64 30
  %26 = load i16, ptr %25, align 2, !tbaa !15
  %27 = zext i16 %26 to i32
  %28 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %24, ptr noundef nonnull @.str.5, ptr noundef %2, i32 noundef %21, i32 noundef %27, i32 noundef %21, i32 noundef %27) #4
  br label %101

.thread:                                          ; preds = %..thread_crit_edge, %17
  %29 = phi i16 [ %.pre, %..thread_crit_edge ], [ %19, %17 ]
  %30 = phi i32 [ %21, %..thread_crit_edge ], [ 4, %17 ]
  %31 = load ptr, ptr @stderr, align 8, !tbaa !12
  %32 = zext i16 %29 to i32
  %33 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef nonnull @.str.6, ptr noundef %2, i32 noundef %30, i32 noundef %32) #4
  br label %101

34:                                               ; preds = %17
  %35 = getelementptr inbounds i8, ptr %1, i64 20
  %36 = load i16, ptr %35, align 4, !tbaa !16
  %37 = zext i16 %36 to i32
  %38 = tail call ptr @lookup_compressor_id(i32 noundef %37) #3
  store ptr %38, ptr @comp, align 8, !tbaa !12
  %39 = getelementptr inbounds i8, ptr %38, i64 32
  %40 = load i32, ptr %39, align 8, !tbaa !17
  %.not38 = icmp eq i32 %40, 0
  br i1 %.not38, label %41, label %46

41:                                               ; preds = %34
  %42 = load ptr, ptr @stderr, align 8, !tbaa !12
  %43 = getelementptr inbounds i8, ptr %38, i64 24
  %44 = load ptr, ptr %43, align 8, !tbaa !19
  %45 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.7, ptr noundef %2, ptr noundef %44) #4
  tail call void @display_compressors(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.8) #3
  br label %101

46:                                               ; preds = %34
  %47 = getelementptr inbounds i8, ptr %1, i64 24
  %48 = load i16, ptr %47, align 8, !tbaa !20
  %49 = and i16 %48, 128
  %.not39 = icmp eq i16 %49, 0
  %50 = select i1 %.not39, ptr @.str.8, ptr @.str.10
  %51 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, ptr noundef nonnull %50, ptr noundef %2)
  %52 = load ptr, ptr @comp, align 8, !tbaa !12
  %53 = getelementptr inbounds i8, ptr %52, i64 24
  %54 = load ptr, ptr %53, align 8, !tbaa !19
  %55 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, ptr noundef %54)
  %56 = load i16, ptr %47, align 8, !tbaa !20
  %57 = and i16 %56, 1
  %.not40 = icmp eq i16 %57, 0
  %58 = select i1 %.not40, ptr @.str.8, ptr @.str.13
  %59 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, ptr noundef nonnull %58)
  %60 = load i16, ptr %47, align 8, !tbaa !20
  %61 = and i16 %60, 2
  %.not41 = icmp eq i16 %61, 0
  %62 = select i1 %.not41, ptr @.str.8, ptr @.str.13
  %63 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, ptr noundef nonnull %62)
  %64 = load i16, ptr %47, align 8, !tbaa !20
  %65 = and i16 %64, 8
  %.not42 = icmp eq i16 %65, 0
  %66 = select i1 %.not42, ptr @.str.8, ptr @.str.13
  %67 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, ptr noundef nonnull %66)
  %68 = load i16, ptr %47, align 8, !tbaa !20
  %69 = and i16 %68, 16
  %.not43 = icmp eq i16 %69, 0
  %70 = select i1 %.not43, ptr @.str.8, ptr @.str.17
  %71 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, ptr noundef nonnull %70)
  %72 = load i16, ptr %47, align 8, !tbaa !20
  %73 = and i16 %72, 32
  %.not44 = icmp eq i16 %73, 0
  %74 = select i1 %.not44, ptr @.str.17, ptr @.str.8
  %75 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, ptr noundef nonnull %74)
  %76 = load i16, ptr %47, align 8, !tbaa !20
  %77 = and i16 %76, 64
  %.not45 = icmp eq i16 %77, 0
  %78 = select i1 %.not45, ptr @.str.17, ptr @.str.8
  %79 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.19, ptr noundef nonnull %78)
  %80 = getelementptr inbounds i8, ptr %1, i64 40
  %81 = load i64, ptr %80, align 8, !tbaa !21
  %82 = sitofp i64 %81 to double
  %83 = fmul double %82, 0x3F50000000000000
  %84 = fmul double %82, 0x3EB0000000000000
  %85 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.20, double noundef %83, double noundef %84)
  %86 = getelementptr inbounds i8, ptr %1, i64 12
  %87 = load i32, ptr %86, align 4, !tbaa !22
  %88 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.21, i32 noundef %87)
  %89 = getelementptr inbounds i8, ptr %1, i64 16
  %90 = load i32, ptr %89, align 8, !tbaa !23
  %91 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.22, i32 noundef %90)
  %92 = getelementptr inbounds i8, ptr %1, i64 4
  %93 = load i32, ptr %92, align 4, !tbaa !24
  %94 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.23, i32 noundef %93)
  %95 = getelementptr inbounds i8, ptr %1, i64 26
  %96 = load i16, ptr %95, align 2, !tbaa !25
  %97 = zext i16 %96 to i32
  %98 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.24, i32 noundef %97)
  %99 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.25)
  %100 = load ptr, ptr @comp, align 8, !tbaa !12
  br label %101

101:                                              ; preds = %41, %3, %11, %8, %.thread, %23, %46
  %.0 = phi ptr [ %100, %46 ], [ null, %23 ], [ null, %.thread ], [ null, %8 ], [ null, %11 ], [ null, %3 ], [ null, %41 ]
  ret ptr %.0
}

declare ptr @lookup_compressor_id(i32 noundef) local_unnamed_addr #0

declare void @display_compressors(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #1

attributes #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 = { nofree 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 #2 = { 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 = { nounwind }
attributes #4 = { cold nounwind }

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

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


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