; LLVM IR from vul337/PrIntFuzz :: config/linux/firmware/carl9170fw/tools/lib (carlfw)

; 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.carlfw = type { %struct.carlfw_file, %struct.carlfw_file, %struct.list_head, i32, i32 }
%struct.carlfw_file = type { ptr, i64, ptr }
%struct.list_head = type { ptr, ptr }

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @carlfw_release(ptr noundef) #0

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @ERR_PTR(i64 noundef) #2

; Function Attrs: nounwind allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #3

; Function Attrs: nounwind uwtable
define dso_local ptr @carlfw_load(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca [256 x i8], align 16
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %15 = call noalias ptr @calloc(i64 noundef 1, i64 noundef 72) #7
  store ptr %15, ptr %5, align 8, !tbaa !5
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = icmp ne ptr %16, null
  br i1 %17, label %20, label %18

18:                                               ; preds = %1
  %19 = call ptr @ERR_PTR(i64 noundef -12)
  store ptr %19, ptr %2, align 8
  store i32 1, ptr %14, align 4
  br label %154

20:                                               ; preds = %1
  br label %21

21:                                               ; preds = %20
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.carlfw, ptr %22, i32 0, i32 2
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.carlfw, ptr %24, i32 0, i32 2
  %26 = getelementptr inbounds %struct.list_head, ptr %25, i32 0, i32 0
  store ptr %23, ptr %26, align 8, !tbaa !9
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.carlfw, ptr %27, i32 0, i32 2
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.carlfw, ptr %29, i32 0, i32 2
  %31 = getelementptr inbounds %struct.list_head, ptr %30, i32 0, i32 1
  store ptr %28, ptr %31, align 8, !tbaa !15
  br label %32

32:                                               ; preds = %21
  br label %33

33:                                               ; preds = %32
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.carlfw, ptr %34, i32 0, i32 0
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = call i32 @__carlfw_load(ptr noundef %35, ptr noundef %36, ptr noundef @.str)
  store i32 %37, ptr %13, align 4, !tbaa !16
  %38 = load i32, ptr %13, align 4, !tbaa !16
  %39 = icmp ne i32 %38, 0
  br i1 %39, label %40, label %41

40:                                               ; preds = %33
  br label %149

41:                                               ; preds = %33
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.carlfw, ptr %42, i32 0, i32 1
  %44 = getelementptr inbounds %struct.carlfw_file, ptr %43, i32 0, i32 0
  %45 = load ptr, ptr %44, align 8, !tbaa !17
  %46 = icmp ne ptr %45, null
  br i1 %46, label %47, label %50

47:                                               ; preds = %41
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.carlfw, ptr %48, i32 0, i32 1
  store ptr %49, ptr %8, align 8, !tbaa !5
  br label %53

50:                                               ; preds = %41
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.carlfw, ptr %51, i32 0, i32 0
  store ptr %52, ptr %8, align 8, !tbaa !5
  br label %53

53:                                               ; preds = %50, %47
  %54 = load ptr, ptr %8, align 8, !tbaa !5
  %55 = call ptr @__carlfw_find_desc(ptr noundef %54, ptr noundef @.str.1, i32 noundef 32, i8 noundef zeroext 7)
  store ptr %55, ptr %6, align 8, !tbaa !5
  %56 = load ptr, ptr %8, align 8, !tbaa !5
  %57 = call ptr @__carlfw_find_desc(ptr noundef %56, ptr noundef @.str.2, i32 noundef 8, i8 noundef zeroext 2)
  store ptr %57, ptr %7, align 8, !tbaa !5
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = icmp ne ptr %58, null
  br i1 %59, label %60, label %69

60:                                               ; preds = %53
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = icmp ne ptr %61, null
  br i1 %62, label %63, label %69

63:                                               ; preds = %60
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = ptrtoint ptr %64 to i64
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  %67 = ptrtoint ptr %66 to i64
  %68 = icmp ugt i64 %65, %67
  br i1 %68, label %69, label %70

69:                                               ; preds = %63, %60, %53
  store i32 -61, ptr %13, align 4, !tbaa !16
  br label %149

70:                                               ; preds = %63
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = call i32 @carlfw_parse_descs(ptr noundef %71, ptr noundef %72)
  store i32 %73, ptr %13, align 4, !tbaa !16
  %74 = load i32, ptr %13, align 4, !tbaa !16
  %75 = icmp ne i32 %74, 0
  br i1 %75, label %76, label %77

76:                                               ; preds = %70
  br label %149

77:                                               ; preds = %70
  %78 = load ptr, ptr %7, align 8, !tbaa !5
  %79 = ptrtoint ptr %78 to i64
  %80 = add i64 %79, 8
  store i64 %80, ptr %9, align 8, !tbaa !18
  %81 = load i64, ptr %9, align 8, !tbaa !18
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = ptrtoint ptr %82 to i64
  %84 = sub i64 %81, %83
  store i64 %84, ptr %10, align 8, !tbaa !18
  %85 = load ptr, ptr %8, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.carlfw_file, ptr %85, i32 0, i32 1
  %87 = load i64, ptr %86, align 8, !tbaa !19
  %88 = load i64, ptr %9, align 8, !tbaa !18
  %89 = load ptr, ptr %8, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.carlfw_file, ptr %89, i32 0, i32 2
  %91 = load ptr, ptr %90, align 8, !tbaa !20
  %92 = ptrtoint ptr %91 to i64
  %93 = sub i64 %88, %92
  %94 = sub i64 %87, %93
  store i64 %94, ptr %12, align 8, !tbaa !18
  %95 = load i64, ptr %12, align 8, !tbaa !18
  %96 = icmp ne i64 %95, 0
  br i1 %96, label %97, label %113

97:                                               ; preds = %77
  %98 = load ptr, ptr %6, align 8, !tbaa !5
  %99 = ptrtoint ptr %98 to i64
  %100 = load ptr, ptr %8, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.carlfw_file, ptr %100, i32 0, i32 2
  %102 = load ptr, ptr %101, align 8, !tbaa !20
  %103 = ptrtoint ptr %102 to i64
  %104 = sub i64 %99, %103
  store i64 %104, ptr %11, align 8, !tbaa !18
  %105 = load ptr, ptr %8, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.carlfw_file, ptr %105, i32 0, i32 2
  %107 = load ptr, ptr %106, align 8, !tbaa !20
  %108 = load i64, ptr %11, align 8, !tbaa !18
  %109 = getelementptr inbounds i8, ptr %107, i64 %108
  %110 = load ptr, ptr %7, align 8, !tbaa !5
  %111 = getelementptr inbounds i8, ptr %110, i64 8
  %112 = load i64, ptr %12, align 8, !tbaa !18
  call void @llvm.memmove.p0.p0.i64(ptr align 1 %109, ptr align 1 %111, i64 %112, i1 false)
  br label %113

113:                                              ; preds = %97, %77
  %114 = load i64, ptr %10, align 8, !tbaa !18
  %115 = load ptr, ptr %8, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.carlfw_file, ptr %115, i32 0, i32 1
  %117 = load i64, ptr %116, align 8, !tbaa !19
  %118 = sub i64 %117, %114
  store i64 %118, ptr %116, align 8, !tbaa !19
  %119 = load ptr, ptr %8, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.carlfw_file, ptr %119, i32 0, i32 2
  %121 = load ptr, ptr %120, align 8, !tbaa !20
  %122 = load ptr, ptr %8, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.carlfw_file, ptr %122, i32 0, i32 1
  %124 = load i64, ptr %123, align 8, !tbaa !19
  %125 = call ptr @realloc(ptr noundef %121, i64 noundef %124) #8
  %126 = load ptr, ptr %8, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.carlfw_file, ptr %126, i32 0, i32 2
  store ptr %125, ptr %127, align 8, !tbaa !20
  %128 = load ptr, ptr %8, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.carlfw_file, ptr %128, i32 0, i32 2
  %130 = load ptr, ptr %129, align 8, !tbaa !20
  %131 = icmp ne ptr %130, null
  br i1 %131, label %138, label %132

132:                                              ; preds = %113
  %133 = load ptr, ptr %8, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.carlfw_file, ptr %133, i32 0, i32 1
  %135 = load i64, ptr %134, align 8, !tbaa !19
  %136 = icmp ne i64 %135, 0
  br i1 %136, label %137, label %138

137:                                              ; preds = %132
  store i32 -12, ptr %13, align 4, !tbaa !16
  br label %149

138:                                              ; preds = %132, %113
  %139 = load ptr, ptr %5, align 8, !tbaa !5
  %140 = call i32 @carlfw_check_crc32s(ptr noundef %139)
  store i32 %140, ptr %13, align 4, !tbaa !16
  %141 = load i32, ptr %13, align 4, !tbaa !16
  %142 = icmp ne i32 %141, 0
  br i1 %142, label %143, label %147

143:                                              ; preds = %138
  %144 = load i32, ptr %13, align 4, !tbaa !16
  %145 = icmp ne i32 %144, -61
  br i1 %145, label %146, label %147

146:                                              ; preds = %143
  br label %149

147:                                              ; preds = %143, %138
  %148 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %148, ptr %2, align 8
  store i32 1, ptr %14, align 4
  br label %154

149:                                              ; preds = %146, %137, %76, %69, %40
  %150 = load ptr, ptr %5, align 8, !tbaa !5
  call void @carlfw_release(ptr noundef %150)
  %151 = load i32, ptr %13, align 4, !tbaa !16
  %152 = sext i32 %151 to i64
  %153 = call ptr @ERR_PTR(i64 noundef %152)
  store ptr %153, ptr %2, align 8
  store i32 1, ptr %14, align 4
  br label %154

154:                                              ; preds = %149, %147, %18
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr %4) #6
  %155 = load ptr, ptr %2, align 8
  ret ptr %155
}

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #4

; Function Attrs: nounwind uwtable
declare hidden i32 @__carlfw_load(ptr noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden ptr @__carlfw_find_desc(ptr noundef, ptr noundef, i32 noundef, i8 noundef zeroext) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @carlfw_parse_descs(ptr noundef, ptr noundef) #0

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memmove.p0.p0.i64(ptr nocapture writeonly, ptr nocapture readonly, i64, i1 immarg) #5

; Function Attrs: nounwind uwtable
declare hidden i32 @carlfw_check_crc32s(ptr noundef) #0

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint 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 allocsize(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 #4 = { nounwind allocsize(0,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 #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nounwind }
attributes #7 = { nounwind allocsize(0,1) }
attributes #8 = { nounwind allocsize(1) }

!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, !6, i64 48}
!10 = !{!"carlfw", !11, i64 0, !11, i64 24, !13, i64 48, !14, i64 64, !14, i64 68}
!11 = !{!"carlfw_file", !6, i64 0, !12, i64 8, !6, i64 16}
!12 = !{!"long", !7, i64 0}
!13 = !{!"list_head", !6, i64 0, !6, i64 8}
!14 = !{!"int", !7, i64 0}
!15 = !{!10, !6, i64 56}
!16 = !{!14, !14, i64 0}
!17 = !{!10, !6, i64 24}
!18 = !{!12, !12, i64 0}
!19 = !{!11, !12, i64 8}
!20 = !{!11, !6, 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"

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @ERR_PTR(i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias noundef ptr @realloc(ptr allocptr nocapture noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local ptr @carlfw_load(ptr noundef %0) local_unnamed_addr #0 {
  %2 = tail call noalias dereferenceable_or_null(72) ptr @calloc(i64 noundef 1, i64 noundef 72) #5
  %.not = icmp eq ptr %2, null
  br i1 %.not, label %.sink.split, label %3

3:                                                ; preds = %1
  %4 = getelementptr inbounds i8, ptr %2, i64 48
  store ptr %4, ptr %4, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %2, i64 56
  store ptr %4, ptr %5, align 8, !tbaa !14
  %6 = tail call i32 @__carlfw_load(ptr noundef nonnull %2, ptr noundef %0, ptr noundef nonnull @.str)
  %.not60 = icmp eq i32 %6, 0
  br i1 %.not60, label %7, label %41

7:                                                ; preds = %3
  %8 = getelementptr inbounds i8, ptr %2, i64 24
  %9 = load ptr, ptr %8, align 8, !tbaa !15
  %.not61 = icmp eq ptr %9, null
  %. = select i1 %.not61, ptr %2, ptr %8
  %10 = tail call ptr @__carlfw_find_desc(ptr noundef nonnull %., ptr noundef nonnull @.str.1, i32 noundef 32, i8 noundef zeroext 7)
  %11 = tail call ptr @__carlfw_find_desc(ptr noundef nonnull %., ptr noundef nonnull @.str.2, i32 noundef 8, i8 noundef zeroext 2)
  %12 = icmp ne ptr %10, null
  %13 = icmp ne ptr %11, null
  %or.cond = select i1 %12, i1 %13, i1 false
  br i1 %or.cond, label %14, label %41

14:                                               ; preds = %7
  %15 = ptrtoint ptr %10 to i64
  %16 = ptrtoint ptr %11 to i64
  %17 = icmp ugt ptr %10, %11
  br i1 %17, label %41, label %18

18:                                               ; preds = %14
  %19 = tail call i32 @carlfw_parse_descs(ptr noundef nonnull %2, ptr noundef nonnull %10)
  %.not62 = icmp eq i32 %19, 0
  br i1 %.not62, label %20, label %41

20:                                               ; preds = %18
  %21 = add i64 %16, 8
  %.neg64 = sub i64 %15, %21
  %22 = getelementptr inbounds i8, ptr %., i64 8
  %23 = load i64, ptr %22, align 8, !tbaa !16
  %24 = getelementptr inbounds i8, ptr %., i64 16
  %25 = load ptr, ptr %24, align 8, !tbaa !17
  %26 = ptrtoint ptr %25 to i64
  %.neg = sub i64 %26, %21
  %27 = add i64 %.neg, %23
  %.not63 = icmp eq i64 %27, 0
  br i1 %.not63, label %32, label %28

28:                                               ; preds = %20
  %29 = sub i64 %15, %26
  %30 = getelementptr inbounds i8, ptr %25, i64 %29
  %31 = getelementptr inbounds i8, ptr %11, i64 8
  tail call void @llvm.memmove.p0.p0.i64(ptr align 1 %30, ptr nonnull align 1 %31, i64 %27, i1 false)
  %.pre = load i64, ptr %22, align 8, !tbaa !16
  %.pre67 = load ptr, ptr %24, align 8, !tbaa !17
  br label %32

32:                                               ; preds = %28, %20
  %33 = phi ptr [ %.pre67, %28 ], [ %25, %20 ]
  %34 = phi i64 [ %.pre, %28 ], [ %23, %20 ]
  %35 = add i64 %34, %.neg64
  store i64 %35, ptr %22, align 8, !tbaa !16
  %36 = tail call ptr @realloc(ptr noundef %33, i64 noundef %35) #6
  store ptr %36, ptr %24, align 8, !tbaa !17
  %.not65 = icmp eq ptr %36, null
  br i1 %.not65, label %37, label %39

37:                                               ; preds = %32
  %38 = load i64, ptr %22, align 8, !tbaa !16
  %.not66 = icmp eq i64 %38, 0
  br i1 %.not66, label %39, label %41

39:                                               ; preds = %37, %32
  %40 = tail call i32 @carlfw_check_crc32s(ptr noundef nonnull %2)
  switch i32 %40, label %41 [
    i32 -61, label %44
    i32 0, label %44
  ]

41:                                               ; preds = %39, %37, %7, %14, %18, %3
  %.0 = phi i32 [ %6, %3 ], [ %19, %18 ], [ %40, %39 ], [ -61, %14 ], [ -61, %7 ], [ -12, %37 ]
  tail call void @carlfw_release(ptr noundef nonnull %2)
  %42 = sext i32 %.0 to i64
  br label %.sink.split

.sink.split:                                      ; preds = %1, %41
  %.sink = phi i64 [ %42, %41 ], [ -12, %1 ]
  %43 = tail call ptr @ERR_PTR(i64 noundef %.sink)
  br label %44

44:                                               ; preds = %.sink.split, %39, %39
  %.049 = phi ptr [ %2, %39 ], [ %2, %39 ], [ %43, %.sink.split ]
  ret ptr %.049
}

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden i32 @__carlfw_load(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden ptr @__carlfw_find_desc(ptr noundef, ptr noundef, i32 noundef, i8 noundef zeroext) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @carlfw_parse_descs(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memmove.p0.p0.i64(ptr nocapture writeonly, ptr nocapture readonly, i64, i1 immarg) #4

; Function Attrs: nounwind uwtable
declare hidden i32 @carlfw_check_crc32s(ptr noundef) local_unnamed_addr #0

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 = { inlinehint 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 nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind allocsize(0,1) }
attributes #6 = { nounwind allocsize(1) }

!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 48}
!6 = !{!"carlfw", !7, i64 0, !7, i64 24, !12, i64 48, !13, i64 64, !13, i64 68}
!7 = !{!"carlfw_file", !8, i64 0, !11, i64 8, !8, i64 16}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"long", !9, i64 0}
!12 = !{!"list_head", !8, i64 0, !8, i64 8}
!13 = !{!"int", !9, i64 0}
!14 = !{!6, !8, i64 56}
!15 = !{!6, !8, i64 24}
!16 = !{!7, !11, i64 8}
!17 = !{!7, !8, i64 16}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass