; LLVM IR from facebookresearch/habitat-sim :: src/deps/basis-universal/encoder (basisu_etc)

; 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.basisu::pack_eac_a8_results" = type { i32, i32, i32, %"class.basisu::vector.5", %"class.basisu::vector.5" }
%"class.basisu::vector.5" = 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu6vectorIhEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN6basisu11pack_eac_a8ERNS_19pack_eac_a8_resultsEPKhjjjj(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6basisu11pack_eac_a8EPNS_12eac_a8_blockEPKhjjj(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"struct.basisu::pack_eac_a8_results", align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !9
  store i32 %4, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 48, ptr %11) #4
  call void @_ZN6basisu19pack_eac_a8_resultsC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11)
  %17 = load ptr, ptr %7, align 8, !tbaa !5
  %18 = load i32, ptr %8, align 4, !tbaa !9
  %19 = load i32, ptr %9, align 4, !tbaa !9
  %20 = load i32, ptr %10, align 4, !tbaa !9
  %21 = invoke noundef i64 @_ZN6basisu11pack_eac_a8ERNS_19pack_eac_a8_resultsEPKhjjjj(ptr noundef nonnull align 8 dereferenceable(48) %11, ptr noundef %17, i32 noundef 16, i32 noundef %18, i32 noundef %19, i32 noundef %20)
          to label %22 unwind label %53

22:                                               ; preds = %5
  %23 = getelementptr inbounds %"struct.basisu::pack_eac_a8_results", ptr %11, i32 0, i32 0
  %24 = load i32, ptr %23, align 8, !tbaa !11
  %25 = trunc i32 %24 to i16
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = load i16, ptr %26, align 2
  %28 = and i16 %25, 255
  %29 = and i16 %27, -256
  %30 = or i16 %29, %28
  store i16 %30, ptr %26, align 2
  %31 = getelementptr inbounds %"struct.basisu::pack_eac_a8_results", ptr %11, i32 0, i32 2
  %32 = load i32, ptr %31, align 8, !tbaa !14
  %33 = trunc i32 %32 to i16
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = load i16, ptr %34, align 2
  %36 = and i16 %33, 15
  %37 = shl i16 %36, 12
  %38 = and i16 %35, 4095
  %39 = or i16 %38, %37
  store i16 %39, ptr %34, align 2
  %40 = getelementptr inbounds %"struct.basisu::pack_eac_a8_results", ptr %11, i32 0, i32 1
  %41 = load i32, ptr %40, align 4, !tbaa !15
  %42 = trunc i32 %41 to i16
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = load i16, ptr %43, align 2
  %45 = and i16 %42, 15
  %46 = shl i16 %45, 8
  %47 = and i16 %44, -3841
  %48 = or i16 %47, %46
  store i16 %48, ptr %43, align 2
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %49

49:                                               ; preds = %85, %22
  %50 = load i32, ptr %14, align 4, !tbaa !9
  %51 = icmp ult i32 %50, 4
  br i1 %51, label %57, label %52

52:                                               ; preds = %49
  store i32 2, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %88

53:                                               ; preds = %5
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %12, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %13, align 4
  br label %89

57:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %58

58:                                               ; preds = %77, %57
  %59 = load i32, ptr %16, align 4, !tbaa !9
  %60 = icmp ult i32 %59, 4
  br i1 %60, label %62, label %61

61:                                               ; preds = %58
  store i32 5, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br label %84

62:                                               ; preds = %58
  %63 = load ptr, ptr %6, align 8, !tbaa !5
  %64 = load i32, ptr %16, align 4, !tbaa !9
  %65 = load i32, ptr %14, align 4, !tbaa !9
  %66 = getelementptr inbounds %"struct.basisu::pack_eac_a8_results", ptr %11, i32 0, i32 3
  %67 = load i32, ptr %16, align 4, !tbaa !9
  %68 = load i32, ptr %14, align 4, !tbaa !9
  %69 = mul i32 %68, 4
  %70 = add i32 %67, %69
  %71 = zext i32 %70 to i64
  %72 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu6vectorIhEixEm(ptr noundef nonnull align 8 dereferenceable(16) %66, i64 noundef %71)
          to label %73 unwind label %80

73:                                               ; preds = %62
  %74 = load i8, ptr %72, align 1, !tbaa !16
  %75 = zext i8 %74 to i32
  invoke void @_ZN6basisu12eac_a8_block12set_selectorEjjj(ptr noundef nonnull align 2 dereferenceable(8) %63, i32 noundef %64, i32 noundef %65, i32 noundef %75)
          to label %76 unwind label %80

76:                                               ; preds = %73
  br label %77

77:                                               ; preds = %76
  %78 = load i32, ptr %16, align 4, !tbaa !9
  %79 = add i32 %78, 1
  store i32 %79, ptr %16, align 4, !tbaa !9
  br label %58, !llvm.loop !17

80:                                               ; preds = %73, %62
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %12, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %89

84:                                               ; preds = %61
  br label %85

85:                                               ; preds = %84
  %86 = load i32, ptr %14, align 4, !tbaa !9
  %87 = add i32 %86, 1
  store i32 %87, ptr %14, align 4, !tbaa !9
  br label %49, !llvm.loop !19

88:                                               ; preds = %52
  call void @_ZN6basisu19pack_eac_a8_resultsD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %11) #4
  ret void

89:                                               ; preds = %80, %53
  call void @_ZN6basisu19pack_eac_a8_resultsD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %11) #4
  br label %90

90:                                               ; preds = %89
  %91 = load ptr, ptr %12, align 8
  %92 = load i32, ptr %13, align 4
  %93 = insertvalue { ptr, i32 } poison, ptr %91, 0
  %94 = insertvalue { ptr, i32 } %93, i32 %92, 1
  resume { ptr, i32 } %94
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6basisu19pack_eac_a8_resultsC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6basisu12eac_a8_block12set_selectorEjjj(ptr noundef nonnull align 2 dereferenceable(8), i32 noundef, i32 noundef, i32 noundef) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6basisu19pack_eac_a8_resultsD2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint 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 #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, !10, i64 0}
!12 = !{!"_ZTSN6basisu19pack_eac_a8_resultsE", !10, i64 0, !10, i64 4, !10, i64 8, !13, i64 16, !13, i64 32}
!13 = !{!"_ZTSN6basisu6vectorIhEE", !6, i64 0, !10, i64 8, !10, i64 12}
!14 = !{!12, !10, i64 8}
!15 = !{!12, !10, i64 4}
!16 = !{!7, !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}


; 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.basisu::pack_eac_a8_results" = type { i32, i32, i32, %"class.basisu::vector.5", %"class.basisu::vector.5" }
%"class.basisu::vector.5" = type { ptr, i32, i32 }

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu6vectorIhEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN6basisu11pack_eac_a8ERNS_19pack_eac_a8_resultsEPKhjjjj(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6basisu11pack_eac_a8EPNS_12eac_a8_blockEPKhjjj(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"struct.basisu::pack_eac_a8_results", align 8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %6) #4
  call void @_ZN6basisu19pack_eac_a8_resultsC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6)
  %7 = invoke noundef i64 @_ZN6basisu11pack_eac_a8ERNS_19pack_eac_a8_resultsEPKhjjjj(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef %1, i32 noundef 16, i32 noundef %2, i32 noundef %3, i32 noundef %4)
          to label %.preheader unwind label %26

.preheader:                                       ; preds = %5
  %8 = load i32, ptr %6, align 8, !tbaa !5
  %9 = trunc i32 %8 to i16
  %10 = and i16 %9, 255
  %11 = getelementptr inbounds i8, ptr %6, i64 8
  %12 = load i32, ptr %11, align 8, !tbaa !12
  %13 = trunc i32 %12 to i16
  %14 = shl i16 %13, 12
  %15 = getelementptr inbounds i8, ptr %6, i64 4
  %16 = load i32, ptr %15, align 4, !tbaa !13
  %17 = trunc i32 %16 to i16
  %18 = shl i16 %17, 8
  %19 = and i16 %18, 3840
  %20 = or disjoint i16 %10, %19
  %21 = or disjoint i16 %20, %14
  store i16 %21, ptr %0, align 2
  %22 = getelementptr inbounds i8, ptr %6, i64 16
  %23 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu6vectorIhEixEm(ptr noundef nonnull align 8 dereferenceable(16) %22, i64 noundef 0)
  %24 = load i8, ptr %23, align 1, !tbaa !14
  %25 = zext i8 %24 to i32
  invoke void @_ZN6basisu12eac_a8_block12set_selectorEjjj(ptr noundef nonnull align 2 dereferenceable(8) %0, i32 noundef 0, i32 noundef 0, i32 noundef %25)
          to label %28 unwind label %86

26:                                               ; preds = %5
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %88

28:                                               ; preds = %.preheader
  %29 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu6vectorIhEixEm(ptr noundef nonnull align 8 dereferenceable(16) %22, i64 noundef 1)
  %30 = load i8, ptr %29, align 1, !tbaa !14
  %31 = zext i8 %30 to i32
  invoke void @_ZN6basisu12eac_a8_block12set_selectorEjjj(ptr noundef nonnull align 2 dereferenceable(8) %0, i32 noundef 1, i32 noundef 0, i32 noundef %31)
          to label %32 unwind label %86

32:                                               ; preds = %28
  %33 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu6vectorIhEixEm(ptr noundef nonnull align 8 dereferenceable(16) %22, i64 noundef 2)
  %34 = load i8, ptr %33, align 1, !tbaa !14
  %35 = zext i8 %34 to i32
  invoke void @_ZN6basisu12eac_a8_block12set_selectorEjjj(ptr noundef nonnull align 2 dereferenceable(8) %0, i32 noundef 2, i32 noundef 0, i32 noundef %35)
          to label %36 unwind label %86

36:                                               ; preds = %32
  %37 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu6vectorIhEixEm(ptr noundef nonnull align 8 dereferenceable(16) %22, i64 noundef 3)
  %38 = load i8, ptr %37, align 1, !tbaa !14
  %39 = zext i8 %38 to i32
  invoke void @_ZN6basisu12eac_a8_block12set_selectorEjjj(ptr noundef nonnull align 2 dereferenceable(8) %0, i32 noundef 3, i32 noundef 0, i32 noundef %39)
          to label %.preheader.1 unwind label %86

.preheader.1:                                     ; preds = %36
  %40 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu6vectorIhEixEm(ptr noundef nonnull align 8 dereferenceable(16) %22, i64 noundef 4)
  %41 = load i8, ptr %40, align 1, !tbaa !14
  %42 = zext i8 %41 to i32
  invoke void @_ZN6basisu12eac_a8_block12set_selectorEjjj(ptr noundef nonnull align 2 dereferenceable(8) %0, i32 noundef 0, i32 noundef 1, i32 noundef %42)
          to label %43 unwind label %86

43:                                               ; preds = %.preheader.1
  %44 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu6vectorIhEixEm(ptr noundef nonnull align 8 dereferenceable(16) %22, i64 noundef 5)
  %45 = load i8, ptr %44, align 1, !tbaa !14
  %46 = zext i8 %45 to i32
  invoke void @_ZN6basisu12eac_a8_block12set_selectorEjjj(ptr noundef nonnull align 2 dereferenceable(8) %0, i32 noundef 1, i32 noundef 1, i32 noundef %46)
          to label %47 unwind label %86

47:                                               ; preds = %43
  %48 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu6vectorIhEixEm(ptr noundef nonnull align 8 dereferenceable(16) %22, i64 noundef 6)
  %49 = load i8, ptr %48, align 1, !tbaa !14
  %50 = zext i8 %49 to i32
  invoke void @_ZN6basisu12eac_a8_block12set_selectorEjjj(ptr noundef nonnull align 2 dereferenceable(8) %0, i32 noundef 2, i32 noundef 1, i32 noundef %50)
          to label %51 unwind label %86

51:                                               ; preds = %47
  %52 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu6vectorIhEixEm(ptr noundef nonnull align 8 dereferenceable(16) %22, i64 noundef 7)
  %53 = load i8, ptr %52, align 1, !tbaa !14
  %54 = zext i8 %53 to i32
  invoke void @_ZN6basisu12eac_a8_block12set_selectorEjjj(ptr noundef nonnull align 2 dereferenceable(8) %0, i32 noundef 3, i32 noundef 1, i32 noundef %54)
          to label %.preheader.2 unwind label %86

.preheader.2:                                     ; preds = %51
  %55 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu6vectorIhEixEm(ptr noundef nonnull align 8 dereferenceable(16) %22, i64 noundef 8)
  %56 = load i8, ptr %55, align 1, !tbaa !14
  %57 = zext i8 %56 to i32
  invoke void @_ZN6basisu12eac_a8_block12set_selectorEjjj(ptr noundef nonnull align 2 dereferenceable(8) %0, i32 noundef 0, i32 noundef 2, i32 noundef %57)
          to label %58 unwind label %86

58:                                               ; preds = %.preheader.2
  %59 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu6vectorIhEixEm(ptr noundef nonnull align 8 dereferenceable(16) %22, i64 noundef 9)
  %60 = load i8, ptr %59, align 1, !tbaa !14
  %61 = zext i8 %60 to i32
  invoke void @_ZN6basisu12eac_a8_block12set_selectorEjjj(ptr noundef nonnull align 2 dereferenceable(8) %0, i32 noundef 1, i32 noundef 2, i32 noundef %61)
          to label %62 unwind label %86

62:                                               ; preds = %58
  %63 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu6vectorIhEixEm(ptr noundef nonnull align 8 dereferenceable(16) %22, i64 noundef 10)
  %64 = load i8, ptr %63, align 1, !tbaa !14
  %65 = zext i8 %64 to i32
  invoke void @_ZN6basisu12eac_a8_block12set_selectorEjjj(ptr noundef nonnull align 2 dereferenceable(8) %0, i32 noundef 2, i32 noundef 2, i32 noundef %65)
          to label %66 unwind label %86

66:                                               ; preds = %62
  %67 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu6vectorIhEixEm(ptr noundef nonnull align 8 dereferenceable(16) %22, i64 noundef 11)
  %68 = load i8, ptr %67, align 1, !tbaa !14
  %69 = zext i8 %68 to i32
  invoke void @_ZN6basisu12eac_a8_block12set_selectorEjjj(ptr noundef nonnull align 2 dereferenceable(8) %0, i32 noundef 3, i32 noundef 2, i32 noundef %69)
          to label %.preheader.3 unwind label %86

.preheader.3:                                     ; preds = %66
  %70 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu6vectorIhEixEm(ptr noundef nonnull align 8 dereferenceable(16) %22, i64 noundef 12)
  %71 = load i8, ptr %70, align 1, !tbaa !14
  %72 = zext i8 %71 to i32
  invoke void @_ZN6basisu12eac_a8_block12set_selectorEjjj(ptr noundef nonnull align 2 dereferenceable(8) %0, i32 noundef 0, i32 noundef 3, i32 noundef %72)
          to label %73 unwind label %86

73:                                               ; preds = %.preheader.3
  %74 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu6vectorIhEixEm(ptr noundef nonnull align 8 dereferenceable(16) %22, i64 noundef 13)
  %75 = load i8, ptr %74, align 1, !tbaa !14
  %76 = zext i8 %75 to i32
  invoke void @_ZN6basisu12eac_a8_block12set_selectorEjjj(ptr noundef nonnull align 2 dereferenceable(8) %0, i32 noundef 1, i32 noundef 3, i32 noundef %76)
          to label %77 unwind label %86

77:                                               ; preds = %73
  %78 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu6vectorIhEixEm(ptr noundef nonnull align 8 dereferenceable(16) %22, i64 noundef 14)
  %79 = load i8, ptr %78, align 1, !tbaa !14
  %80 = zext i8 %79 to i32
  invoke void @_ZN6basisu12eac_a8_block12set_selectorEjjj(ptr noundef nonnull align 2 dereferenceable(8) %0, i32 noundef 2, i32 noundef 3, i32 noundef %80)
          to label %81 unwind label %86

81:                                               ; preds = %77
  %82 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu6vectorIhEixEm(ptr noundef nonnull align 8 dereferenceable(16) %22, i64 noundef 15)
  %83 = load i8, ptr %82, align 1, !tbaa !14
  %84 = zext i8 %83 to i32
  invoke void @_ZN6basisu12eac_a8_block12set_selectorEjjj(ptr noundef nonnull align 2 dereferenceable(8) %0, i32 noundef 3, i32 noundef 3, i32 noundef %84)
          to label %85 unwind label %86

85:                                               ; preds = %81
  call void @_ZN6basisu19pack_eac_a8_resultsD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #4
  ret void

86:                                               ; preds = %81, %77, %73, %.preheader.3, %66, %62, %58, %.preheader.2, %51, %47, %43, %.preheader.1, %36, %32, %28, %.preheader
  %87 = landingpad { ptr, i32 }
          cleanup
  br label %88

88:                                               ; preds = %86, %26
  %.pn = phi { ptr, i32 } [ %87, %86 ], [ %27, %26 ]
  call void @_ZN6basisu19pack_eac_a8_resultsD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #4
  resume { ptr, i32 } %.pn
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6basisu19pack_eac_a8_resultsC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6basisu12eac_a8_block12set_selectorEjjj(ptr noundef nonnull align 2 dereferenceable(8), i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6basisu19pack_eac_a8_resultsD2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint 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 #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, !7, i64 0}
!6 = !{!"_ZTSN6basisu19pack_eac_a8_resultsE", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16, !10, i64 32}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN6basisu6vectorIhEE", !11, i64 0, !7, i64 8, !7, i64 12}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!6, !7, i64 8}
!13 = !{!6, !7, i64 4}
!14 = !{!8, !8, i64 0}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,LoopSimplifyPass,ReassociatePass,SROAPass,SimplifyCFGPass