; LLVM IR from intel/qpl :: sources/core-sw/dispatcher (dispatcher)

; 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.std::array" = type { [64 x ptr] }
%"struct.std::array.0" = type { [3 x ptr] }
%"struct.std::array.1" = type { [8 x ptr] }
%"struct.std::array.2" = type { [70 x ptr] }
%"struct.std::array.3" = type { [24 x ptr] }
%"struct.std::array.4" = type { [24 x ptr] }
%"struct.std::array.6" = type { [3 x ptr] }
%"struct.std::array.7" = type { [3 x ptr] }
%"struct.std::array.5" = type { [4 x ptr] }
%"struct.std::array.8" = type { [3 x ptr] }
%"struct.std::array.9" = type { [3 x ptr] }
%"struct.std::array.17" = type { [3 x ptr] }
%"struct.std::array.10" = type { [3 x ptr] }
%"struct.std::array.11" = type { [1 x ptr] }
%"struct.std::array.12" = type { [1 x ptr] }
%"struct.std::array.13" = type { [1 x ptr] }
%"struct.std::array.14" = type { [1 x ptr] }
%"struct.std::array.15" = type { [3 x ptr] }
%"struct.std::array.16" = type { [1 x ptr] }
%"class.qpl::core_sw::dispatcher::kernels_dispatcher" = type <{ ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, [7 x i8] }>

@_ZN3qpl7core_sw10dispatcher19avx512_unpack_tableE = external global %"struct.std::array", align 8
@_ZN3qpl7core_sw10dispatcher20px_unpack_prle_tableE = external global %"struct.std::array.0", align 8
@_ZN3qpl7core_sw10dispatcher23avx512_pack_index_tableE = external global %"struct.std::array.1", align 8
@_ZN3qpl7core_sw10dispatcher17avx512_pack_tableE = external global %"struct.std::array.2", align 8
@_ZN3qpl7core_sw10dispatcher19avx512_scan_i_tableE = external global %"struct.std::array.3", align 8
@_ZN3qpl7core_sw10dispatcher17avx512_scan_tableE = external global %"struct.std::array.4", align 8
@_ZN3qpl7core_sw10dispatcher20avx512_extract_tableE = external global %"struct.std::array.6", align 8
@_ZN3qpl7core_sw10dispatcher22avx512_extract_i_tableE = external global %"struct.std::array.7", align 8
@_ZN3qpl7core_sw10dispatcher23avx512_aggregates_tableE = external global %"struct.std::array.5", align 8
@_ZN3qpl7core_sw10dispatcher19avx512_select_tableE = external global %"struct.std::array.8", align 8
@_ZN3qpl7core_sw10dispatcher21avx512_select_i_tableE = external global %"struct.std::array.9", align 8
@_ZN3qpl7core_sw10dispatcher19avx512_expand_tableE = external global %"struct.std::array.17", align 8
@_ZN3qpl7core_sw10dispatcher24avx512_memory_copy_tableE = external global %"struct.std::array.10", align 8
@_ZN3qpl7core_sw10dispatcher17avx512_zero_tableE = external global %"struct.std::array.11", align 8
@_ZN3qpl7core_sw10dispatcher17avx512_move_tableE = external global %"struct.std::array.12", align 8
@_ZN3qpl7core_sw10dispatcher18avx512_crc64_tableE = external global %"struct.std::array.13", align 8
@_ZN3qpl7core_sw10dispatcher25avx512_xor_checksum_tableE = external global %"struct.std::array.14", align 8
@_ZN3qpl7core_sw10dispatcher20avx512_deflate_tableE = external global %"struct.std::array.15", align 8
@_ZN3qpl7core_sw10dispatcher24avx512_deflate_fix_tableE = external global %"struct.std::array.16", align 8
@_ZN3qpl7core_sw10dispatcher29avx512_setup_dictionary_tableE = external global %"struct.std::array.16", align 8
@_ZN3qpl7core_sw10dispatcher15px_unpack_tableE = external global %"struct.std::array", align 8
@_ZN3qpl7core_sw10dispatcher19px_pack_index_tableE = external global %"struct.std::array.1", align 8
@_ZN3qpl7core_sw10dispatcher13px_pack_tableE = external global %"struct.std::array.2", align 8
@_ZN3qpl7core_sw10dispatcher15px_scan_i_tableE = external global %"struct.std::array.3", align 8
@_ZN3qpl7core_sw10dispatcher13px_scan_tableE = external global %"struct.std::array.4", align 8
@_ZN3qpl7core_sw10dispatcher16px_extract_tableE = external global %"struct.std::array.6", align 8
@_ZN3qpl7core_sw10dispatcher18px_extract_i_tableE = external global %"struct.std::array.7", align 8
@_ZN3qpl7core_sw10dispatcher19px_aggregates_tableE = external global %"struct.std::array.5", align 8
@_ZN3qpl7core_sw10dispatcher15px_select_tableE = external global %"struct.std::array.8", align 8
@_ZN3qpl7core_sw10dispatcher17px_select_i_tableE = external global %"struct.std::array.9", align 8
@_ZN3qpl7core_sw10dispatcher15px_expand_tableE = external global %"struct.std::array.17", align 8
@_ZN3qpl7core_sw10dispatcher20px_memory_copy_tableE = external global %"struct.std::array.10", align 8
@_ZN3qpl7core_sw10dispatcher13px_zero_tableE = external global %"struct.std::array.11", align 8
@_ZN3qpl7core_sw10dispatcher13px_move_tableE = external global %"struct.std::array.12", align 8
@_ZN3qpl7core_sw10dispatcher14px_crc64_tableE = external global %"struct.std::array.13", align 8
@_ZN3qpl7core_sw10dispatcher21px_xor_checksum_tableE = external global %"struct.std::array.14", align 8
@_ZN3qpl7core_sw10dispatcher16px_deflate_tableE = external global %"struct.std::array.15", align 8
@_ZN3qpl7core_sw10dispatcher20px_deflate_fix_tableE = external global %"struct.std::array.16", align 8
@_ZN3qpl7core_sw10dispatcher25px_setup_dictionary_tableE = external global %"struct.std::array.16", align 8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i8 @_ZN3qpl7core_sw10dispatcher15detect_platformEv() #0

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN3qpl7core_sw10dispatcher18kernels_dispatcherC2Ev(ptr noundef nonnull align 8 dereferenceable(168) %0) unnamed_addr #0 align 2 {
  %2 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %3 = load ptr, ptr %2, align 8
  %4 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 0
  store ptr null, ptr %4, align 8, !tbaa !9
  %5 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 1
  store ptr null, ptr %5, align 8, !tbaa !12
  %6 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 2
  store ptr null, ptr %6, align 8, !tbaa !13
  %7 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 3
  store ptr null, ptr %7, align 8, !tbaa !14
  %8 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 4
  store ptr null, ptr %8, align 8, !tbaa !15
  %9 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 5
  store ptr null, ptr %9, align 8, !tbaa !16
  %10 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 6
  store ptr null, ptr %10, align 8, !tbaa !17
  %11 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 7
  store ptr null, ptr %11, align 8, !tbaa !18
  %12 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 8
  store ptr null, ptr %12, align 8, !tbaa !19
  %13 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 9
  store ptr null, ptr %13, align 8, !tbaa !20
  %14 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 10
  store ptr null, ptr %14, align 8, !tbaa !21
  %15 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 11
  store ptr null, ptr %15, align 8, !tbaa !22
  %16 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 12
  store ptr null, ptr %16, align 8, !tbaa !23
  %17 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 13
  store ptr null, ptr %17, align 8, !tbaa !24
  %18 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 14
  store ptr null, ptr %18, align 8, !tbaa !25
  %19 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 15
  store ptr null, ptr %19, align 8, !tbaa !26
  %20 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 16
  store ptr null, ptr %20, align 8, !tbaa !27
  %21 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 17
  store ptr null, ptr %21, align 8, !tbaa !28
  %22 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 18
  store ptr null, ptr %22, align 8, !tbaa !29
  %23 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 19
  store ptr null, ptr %23, align 8, !tbaa !30
  %24 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 20
  %25 = call noundef zeroext i8 @_ZN3qpl7core_sw10dispatcher15detect_platformEv()
  store i8 %25, ptr %24, align 8, !tbaa !31
  %26 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 20
  %27 = load i8, ptr %26, align 8, !tbaa !31
  %28 = zext i8 %27 to i32
  switch i32 %28, label %50 [
    i32 2, label %29
  ]

29:                                               ; preds = %1
  %30 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 0
  store ptr @_ZN3qpl7core_sw10dispatcher19avx512_unpack_tableE, ptr %30, align 8, !tbaa !9
  %31 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 1
  store ptr @_ZN3qpl7core_sw10dispatcher20px_unpack_prle_tableE, ptr %31, align 8, !tbaa !12
  %32 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 2
  store ptr @_ZN3qpl7core_sw10dispatcher23avx512_pack_index_tableE, ptr %32, align 8, !tbaa !13
  %33 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 3
  store ptr @_ZN3qpl7core_sw10dispatcher17avx512_pack_tableE, ptr %33, align 8, !tbaa !14
  %34 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 4
  store ptr @_ZN3qpl7core_sw10dispatcher19avx512_scan_i_tableE, ptr %34, align 8, !tbaa !15
  %35 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 5
  store ptr @_ZN3qpl7core_sw10dispatcher17avx512_scan_tableE, ptr %35, align 8, !tbaa !16
  %36 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 6
  store ptr @_ZN3qpl7core_sw10dispatcher20avx512_extract_tableE, ptr %36, align 8, !tbaa !17
  %37 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 7
  store ptr @_ZN3qpl7core_sw10dispatcher22avx512_extract_i_tableE, ptr %37, align 8, !tbaa !18
  %38 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 8
  store ptr @_ZN3qpl7core_sw10dispatcher23avx512_aggregates_tableE, ptr %38, align 8, !tbaa !19
  %39 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 9
  store ptr @_ZN3qpl7core_sw10dispatcher19avx512_select_tableE, ptr %39, align 8, !tbaa !20
  %40 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 10
  store ptr @_ZN3qpl7core_sw10dispatcher21avx512_select_i_tableE, ptr %40, align 8, !tbaa !21
  %41 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 11
  store ptr @_ZN3qpl7core_sw10dispatcher19avx512_expand_tableE, ptr %41, align 8, !tbaa !22
  %42 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 12
  store ptr @_ZN3qpl7core_sw10dispatcher24avx512_memory_copy_tableE, ptr %42, align 8, !tbaa !23
  %43 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 13
  store ptr @_ZN3qpl7core_sw10dispatcher17avx512_zero_tableE, ptr %43, align 8, !tbaa !24
  %44 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 14
  store ptr @_ZN3qpl7core_sw10dispatcher17avx512_move_tableE, ptr %44, align 8, !tbaa !25
  %45 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 15
  store ptr @_ZN3qpl7core_sw10dispatcher18avx512_crc64_tableE, ptr %45, align 8, !tbaa !26
  %46 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 16
  store ptr @_ZN3qpl7core_sw10dispatcher25avx512_xor_checksum_tableE, ptr %46, align 8, !tbaa !27
  %47 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 17
  store ptr @_ZN3qpl7core_sw10dispatcher20avx512_deflate_tableE, ptr %47, align 8, !tbaa !28
  %48 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 18
  store ptr @_ZN3qpl7core_sw10dispatcher24avx512_deflate_fix_tableE, ptr %48, align 8, !tbaa !29
  %49 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 19
  store ptr @_ZN3qpl7core_sw10dispatcher29avx512_setup_dictionary_tableE, ptr %49, align 8, !tbaa !30
  br label %71

50:                                               ; preds = %1
  %51 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 0
  store ptr @_ZN3qpl7core_sw10dispatcher15px_unpack_tableE, ptr %51, align 8, !tbaa !9
  %52 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 1
  store ptr @_ZN3qpl7core_sw10dispatcher20px_unpack_prle_tableE, ptr %52, align 8, !tbaa !12
  %53 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 2
  store ptr @_ZN3qpl7core_sw10dispatcher19px_pack_index_tableE, ptr %53, align 8, !tbaa !13
  %54 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 3
  store ptr @_ZN3qpl7core_sw10dispatcher13px_pack_tableE, ptr %54, align 8, !tbaa !14
  %55 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 4
  store ptr @_ZN3qpl7core_sw10dispatcher15px_scan_i_tableE, ptr %55, align 8, !tbaa !15
  %56 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 5
  store ptr @_ZN3qpl7core_sw10dispatcher13px_scan_tableE, ptr %56, align 8, !tbaa !16
  %57 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 6
  store ptr @_ZN3qpl7core_sw10dispatcher16px_extract_tableE, ptr %57, align 8, !tbaa !17
  %58 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 7
  store ptr @_ZN3qpl7core_sw10dispatcher18px_extract_i_tableE, ptr %58, align 8, !tbaa !18
  %59 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 8
  store ptr @_ZN3qpl7core_sw10dispatcher19px_aggregates_tableE, ptr %59, align 8, !tbaa !19
  %60 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 9
  store ptr @_ZN3qpl7core_sw10dispatcher15px_select_tableE, ptr %60, align 8, !tbaa !20
  %61 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 10
  store ptr @_ZN3qpl7core_sw10dispatcher17px_select_i_tableE, ptr %61, align 8, !tbaa !21
  %62 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 11
  store ptr @_ZN3qpl7core_sw10dispatcher15px_expand_tableE, ptr %62, align 8, !tbaa !22
  %63 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 12
  store ptr @_ZN3qpl7core_sw10dispatcher20px_memory_copy_tableE, ptr %63, align 8, !tbaa !23
  %64 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 13
  store ptr @_ZN3qpl7core_sw10dispatcher13px_zero_tableE, ptr %64, align 8, !tbaa !24
  %65 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 14
  store ptr @_ZN3qpl7core_sw10dispatcher13px_move_tableE, ptr %65, align 8, !tbaa !25
  %66 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 15
  store ptr @_ZN3qpl7core_sw10dispatcher14px_crc64_tableE, ptr %66, align 8, !tbaa !26
  %67 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 16
  store ptr @_ZN3qpl7core_sw10dispatcher21px_xor_checksum_tableE, ptr %67, align 8, !tbaa !27
  %68 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 17
  store ptr @_ZN3qpl7core_sw10dispatcher16px_deflate_tableE, ptr %68, align 8, !tbaa !28
  %69 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 18
  store ptr @_ZN3qpl7core_sw10dispatcher20px_deflate_fix_tableE, ptr %69, align 8, !tbaa !29
  %70 = getelementptr inbounds %"class.qpl::core_sw::dispatcher::kernels_dispatcher", ptr %3, i32 0, i32 19
  store ptr @_ZN3qpl7core_sw10dispatcher25px_setup_dictionary_tableE, ptr %70, align 8, !tbaa !30
  br label %71

71:                                               ; preds = %50, %29
  ret void
}

attributes #0 = { 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" }

!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, !6, i64 0}
!10 = !{!"_ZTSN3qpl7core_sw10dispatcher18kernels_dispatcherE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !11, i64 160}
!11 = !{!"_ZTSN3qpl7core_sw10dispatcher6arch_tE", !7, i64 0}
!12 = !{!10, !6, i64 8}
!13 = !{!10, !6, i64 16}
!14 = !{!10, !6, i64 24}
!15 = !{!10, !6, i64 32}
!16 = !{!10, !6, i64 40}
!17 = !{!10, !6, i64 48}
!18 = !{!10, !6, i64 56}
!19 = !{!10, !6, i64 64}
!20 = !{!10, !6, i64 72}
!21 = !{!10, !6, i64 80}
!22 = !{!10, !6, i64 88}
!23 = !{!10, !6, i64 96}
!24 = !{!10, !6, i64 104}
!25 = !{!10, !6, i64 112}
!26 = !{!10, !6, i64 120}
!27 = !{!10, !6, i64 128}
!28 = !{!10, !6, i64 136}
!29 = !{!10, !6, i64 144}
!30 = !{!10, !6, i64 152}
!31 = !{!10, !11, i64 160}


; 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.std::array" = type { [64 x ptr] }
%"struct.std::array.0" = type { [3 x ptr] }
%"struct.std::array.1" = type { [8 x ptr] }
%"struct.std::array.2" = type { [70 x ptr] }
%"struct.std::array.3" = type { [24 x ptr] }
%"struct.std::array.4" = type { [24 x ptr] }
%"struct.std::array.6" = type { [3 x ptr] }
%"struct.std::array.7" = type { [3 x ptr] }
%"struct.std::array.5" = type { [4 x ptr] }
%"struct.std::array.8" = type { [3 x ptr] }
%"struct.std::array.9" = type { [3 x ptr] }
%"struct.std::array.17" = type { [3 x ptr] }
%"struct.std::array.10" = type { [3 x ptr] }
%"struct.std::array.11" = type { [1 x ptr] }
%"struct.std::array.12" = type { [1 x ptr] }
%"struct.std::array.13" = type { [1 x ptr] }
%"struct.std::array.14" = type { [1 x ptr] }
%"struct.std::array.15" = type { [3 x ptr] }
%"struct.std::array.16" = type { [1 x ptr] }

@_ZN3qpl7core_sw10dispatcher19avx512_unpack_tableE = external global %"struct.std::array", align 8
@_ZN3qpl7core_sw10dispatcher20px_unpack_prle_tableE = external global %"struct.std::array.0", align 8
@_ZN3qpl7core_sw10dispatcher23avx512_pack_index_tableE = external global %"struct.std::array.1", align 8
@_ZN3qpl7core_sw10dispatcher17avx512_pack_tableE = external global %"struct.std::array.2", align 8
@_ZN3qpl7core_sw10dispatcher19avx512_scan_i_tableE = external global %"struct.std::array.3", align 8
@_ZN3qpl7core_sw10dispatcher17avx512_scan_tableE = external global %"struct.std::array.4", align 8
@_ZN3qpl7core_sw10dispatcher20avx512_extract_tableE = external global %"struct.std::array.6", align 8
@_ZN3qpl7core_sw10dispatcher22avx512_extract_i_tableE = external global %"struct.std::array.7", align 8
@_ZN3qpl7core_sw10dispatcher23avx512_aggregates_tableE = external global %"struct.std::array.5", align 8
@_ZN3qpl7core_sw10dispatcher19avx512_select_tableE = external global %"struct.std::array.8", align 8
@_ZN3qpl7core_sw10dispatcher21avx512_select_i_tableE = external global %"struct.std::array.9", align 8
@_ZN3qpl7core_sw10dispatcher19avx512_expand_tableE = external global %"struct.std::array.17", align 8
@_ZN3qpl7core_sw10dispatcher24avx512_memory_copy_tableE = external global %"struct.std::array.10", align 8
@_ZN3qpl7core_sw10dispatcher17avx512_zero_tableE = external global %"struct.std::array.11", align 8
@_ZN3qpl7core_sw10dispatcher17avx512_move_tableE = external global %"struct.std::array.12", align 8
@_ZN3qpl7core_sw10dispatcher18avx512_crc64_tableE = external global %"struct.std::array.13", align 8
@_ZN3qpl7core_sw10dispatcher25avx512_xor_checksum_tableE = external global %"struct.std::array.14", align 8
@_ZN3qpl7core_sw10dispatcher20avx512_deflate_tableE = external global %"struct.std::array.15", align 8
@_ZN3qpl7core_sw10dispatcher24avx512_deflate_fix_tableE = external global %"struct.std::array.16", align 8
@_ZN3qpl7core_sw10dispatcher29avx512_setup_dictionary_tableE = external global %"struct.std::array.16", align 8
@_ZN3qpl7core_sw10dispatcher15px_unpack_tableE = external global %"struct.std::array", align 8
@_ZN3qpl7core_sw10dispatcher19px_pack_index_tableE = external global %"struct.std::array.1", align 8
@_ZN3qpl7core_sw10dispatcher13px_pack_tableE = external global %"struct.std::array.2", align 8
@_ZN3qpl7core_sw10dispatcher15px_scan_i_tableE = external global %"struct.std::array.3", align 8
@_ZN3qpl7core_sw10dispatcher13px_scan_tableE = external global %"struct.std::array.4", align 8
@_ZN3qpl7core_sw10dispatcher16px_extract_tableE = external global %"struct.std::array.6", align 8
@_ZN3qpl7core_sw10dispatcher18px_extract_i_tableE = external global %"struct.std::array.7", align 8
@_ZN3qpl7core_sw10dispatcher19px_aggregates_tableE = external global %"struct.std::array.5", align 8
@_ZN3qpl7core_sw10dispatcher15px_select_tableE = external global %"struct.std::array.8", align 8
@_ZN3qpl7core_sw10dispatcher17px_select_i_tableE = external global %"struct.std::array.9", align 8
@_ZN3qpl7core_sw10dispatcher15px_expand_tableE = external global %"struct.std::array.17", align 8
@_ZN3qpl7core_sw10dispatcher20px_memory_copy_tableE = external global %"struct.std::array.10", align 8
@_ZN3qpl7core_sw10dispatcher13px_zero_tableE = external global %"struct.std::array.11", align 8
@_ZN3qpl7core_sw10dispatcher13px_move_tableE = external global %"struct.std::array.12", align 8
@_ZN3qpl7core_sw10dispatcher14px_crc64_tableE = external global %"struct.std::array.13", align 8
@_ZN3qpl7core_sw10dispatcher21px_xor_checksum_tableE = external global %"struct.std::array.14", align 8
@_ZN3qpl7core_sw10dispatcher16px_deflate_tableE = external global %"struct.std::array.15", align 8
@_ZN3qpl7core_sw10dispatcher20px_deflate_fix_tableE = external global %"struct.std::array.16", align 8
@_ZN3qpl7core_sw10dispatcher25px_setup_dictionary_tableE = external global %"struct.std::array.16", align 8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i8 @_ZN3qpl7core_sw10dispatcher15detect_platformEv() local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN3qpl7core_sw10dispatcher18kernels_dispatcherC2Ev(ptr nocapture noundef nonnull writeonly align 8 dereferenceable(168) %0) unnamed_addr #0 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 8
  %3 = getelementptr inbounds i8, ptr %0, i64 16
  %4 = getelementptr inbounds i8, ptr %0, i64 24
  %5 = getelementptr inbounds i8, ptr %0, i64 32
  %6 = getelementptr inbounds i8, ptr %0, i64 40
  %7 = getelementptr inbounds i8, ptr %0, i64 48
  %8 = getelementptr inbounds i8, ptr %0, i64 56
  %9 = getelementptr inbounds i8, ptr %0, i64 64
  %10 = getelementptr inbounds i8, ptr %0, i64 72
  %11 = getelementptr inbounds i8, ptr %0, i64 80
  %12 = getelementptr inbounds i8, ptr %0, i64 88
  %13 = getelementptr inbounds i8, ptr %0, i64 96
  %14 = getelementptr inbounds i8, ptr %0, i64 104
  %15 = getelementptr inbounds i8, ptr %0, i64 112
  %16 = getelementptr inbounds i8, ptr %0, i64 120
  %17 = getelementptr inbounds i8, ptr %0, i64 128
  %18 = getelementptr inbounds i8, ptr %0, i64 136
  %19 = getelementptr inbounds i8, ptr %0, i64 144
  %20 = getelementptr inbounds i8, ptr %0, i64 152
  %21 = getelementptr inbounds i8, ptr %0, i64 160
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(160) %0, i8 0, i64 160, i1 false)
  %22 = tail call noundef zeroext i8 @_ZN3qpl7core_sw10dispatcher15detect_platformEv()
  store i8 %22, ptr %21, align 8, !tbaa !5
  %cond = icmp eq i8 %22, 2
  %_ZN3qpl7core_sw10dispatcher19avx512_unpack_tableE._ZN3qpl7core_sw10dispatcher15px_unpack_tableE = select i1 %cond, ptr @_ZN3qpl7core_sw10dispatcher19avx512_unpack_tableE, ptr @_ZN3qpl7core_sw10dispatcher15px_unpack_tableE
  %_ZN3qpl7core_sw10dispatcher23avx512_pack_index_tableE._ZN3qpl7core_sw10dispatcher19px_pack_index_tableE = select i1 %cond, ptr @_ZN3qpl7core_sw10dispatcher23avx512_pack_index_tableE, ptr @_ZN3qpl7core_sw10dispatcher19px_pack_index_tableE
  %_ZN3qpl7core_sw10dispatcher17avx512_pack_tableE._ZN3qpl7core_sw10dispatcher13px_pack_tableE = select i1 %cond, ptr @_ZN3qpl7core_sw10dispatcher17avx512_pack_tableE, ptr @_ZN3qpl7core_sw10dispatcher13px_pack_tableE
  %_ZN3qpl7core_sw10dispatcher19avx512_scan_i_tableE._ZN3qpl7core_sw10dispatcher15px_scan_i_tableE = select i1 %cond, ptr @_ZN3qpl7core_sw10dispatcher19avx512_scan_i_tableE, ptr @_ZN3qpl7core_sw10dispatcher15px_scan_i_tableE
  %_ZN3qpl7core_sw10dispatcher17avx512_scan_tableE._ZN3qpl7core_sw10dispatcher13px_scan_tableE = select i1 %cond, ptr @_ZN3qpl7core_sw10dispatcher17avx512_scan_tableE, ptr @_ZN3qpl7core_sw10dispatcher13px_scan_tableE
  %_ZN3qpl7core_sw10dispatcher20avx512_extract_tableE._ZN3qpl7core_sw10dispatcher16px_extract_tableE = select i1 %cond, ptr @_ZN3qpl7core_sw10dispatcher20avx512_extract_tableE, ptr @_ZN3qpl7core_sw10dispatcher16px_extract_tableE
  %_ZN3qpl7core_sw10dispatcher22avx512_extract_i_tableE._ZN3qpl7core_sw10dispatcher18px_extract_i_tableE = select i1 %cond, ptr @_ZN3qpl7core_sw10dispatcher22avx512_extract_i_tableE, ptr @_ZN3qpl7core_sw10dispatcher18px_extract_i_tableE
  %_ZN3qpl7core_sw10dispatcher23avx512_aggregates_tableE._ZN3qpl7core_sw10dispatcher19px_aggregates_tableE = select i1 %cond, ptr @_ZN3qpl7core_sw10dispatcher23avx512_aggregates_tableE, ptr @_ZN3qpl7core_sw10dispatcher19px_aggregates_tableE
  %_ZN3qpl7core_sw10dispatcher19avx512_select_tableE._ZN3qpl7core_sw10dispatcher15px_select_tableE = select i1 %cond, ptr @_ZN3qpl7core_sw10dispatcher19avx512_select_tableE, ptr @_ZN3qpl7core_sw10dispatcher15px_select_tableE
  %_ZN3qpl7core_sw10dispatcher21avx512_select_i_tableE._ZN3qpl7core_sw10dispatcher17px_select_i_tableE = select i1 %cond, ptr @_ZN3qpl7core_sw10dispatcher21avx512_select_i_tableE, ptr @_ZN3qpl7core_sw10dispatcher17px_select_i_tableE
  %_ZN3qpl7core_sw10dispatcher19avx512_expand_tableE._ZN3qpl7core_sw10dispatcher15px_expand_tableE = select i1 %cond, ptr @_ZN3qpl7core_sw10dispatcher19avx512_expand_tableE, ptr @_ZN3qpl7core_sw10dispatcher15px_expand_tableE
  %_ZN3qpl7core_sw10dispatcher24avx512_memory_copy_tableE._ZN3qpl7core_sw10dispatcher20px_memory_copy_tableE = select i1 %cond, ptr @_ZN3qpl7core_sw10dispatcher24avx512_memory_copy_tableE, ptr @_ZN3qpl7core_sw10dispatcher20px_memory_copy_tableE
  %_ZN3qpl7core_sw10dispatcher17avx512_zero_tableE._ZN3qpl7core_sw10dispatcher13px_zero_tableE = select i1 %cond, ptr @_ZN3qpl7core_sw10dispatcher17avx512_zero_tableE, ptr @_ZN3qpl7core_sw10dispatcher13px_zero_tableE
  %_ZN3qpl7core_sw10dispatcher17avx512_move_tableE._ZN3qpl7core_sw10dispatcher13px_move_tableE = select i1 %cond, ptr @_ZN3qpl7core_sw10dispatcher17avx512_move_tableE, ptr @_ZN3qpl7core_sw10dispatcher13px_move_tableE
  %_ZN3qpl7core_sw10dispatcher18avx512_crc64_tableE._ZN3qpl7core_sw10dispatcher14px_crc64_tableE = select i1 %cond, ptr @_ZN3qpl7core_sw10dispatcher18avx512_crc64_tableE, ptr @_ZN3qpl7core_sw10dispatcher14px_crc64_tableE
  %_ZN3qpl7core_sw10dispatcher25avx512_xor_checksum_tableE._ZN3qpl7core_sw10dispatcher21px_xor_checksum_tableE = select i1 %cond, ptr @_ZN3qpl7core_sw10dispatcher25avx512_xor_checksum_tableE, ptr @_ZN3qpl7core_sw10dispatcher21px_xor_checksum_tableE
  %_ZN3qpl7core_sw10dispatcher20avx512_deflate_tableE._ZN3qpl7core_sw10dispatcher16px_deflate_tableE = select i1 %cond, ptr @_ZN3qpl7core_sw10dispatcher20avx512_deflate_tableE, ptr @_ZN3qpl7core_sw10dispatcher16px_deflate_tableE
  %_ZN3qpl7core_sw10dispatcher24avx512_deflate_fix_tableE._ZN3qpl7core_sw10dispatcher20px_deflate_fix_tableE = select i1 %cond, ptr @_ZN3qpl7core_sw10dispatcher24avx512_deflate_fix_tableE, ptr @_ZN3qpl7core_sw10dispatcher20px_deflate_fix_tableE
  %_ZN3qpl7core_sw10dispatcher29avx512_setup_dictionary_tableE._ZN3qpl7core_sw10dispatcher25px_setup_dictionary_tableE = select i1 %cond, ptr @_ZN3qpl7core_sw10dispatcher29avx512_setup_dictionary_tableE, ptr @_ZN3qpl7core_sw10dispatcher25px_setup_dictionary_tableE
  store ptr %_ZN3qpl7core_sw10dispatcher19avx512_unpack_tableE._ZN3qpl7core_sw10dispatcher15px_unpack_tableE, ptr %0, align 8, !tbaa !11
  store ptr @_ZN3qpl7core_sw10dispatcher20px_unpack_prle_tableE, ptr %2, align 8, !tbaa !12
  store ptr %_ZN3qpl7core_sw10dispatcher23avx512_pack_index_tableE._ZN3qpl7core_sw10dispatcher19px_pack_index_tableE, ptr %3, align 8, !tbaa !13
  store ptr %_ZN3qpl7core_sw10dispatcher17avx512_pack_tableE._ZN3qpl7core_sw10dispatcher13px_pack_tableE, ptr %4, align 8, !tbaa !14
  store ptr %_ZN3qpl7core_sw10dispatcher19avx512_scan_i_tableE._ZN3qpl7core_sw10dispatcher15px_scan_i_tableE, ptr %5, align 8, !tbaa !15
  store ptr %_ZN3qpl7core_sw10dispatcher17avx512_scan_tableE._ZN3qpl7core_sw10dispatcher13px_scan_tableE, ptr %6, align 8, !tbaa !16
  store ptr %_ZN3qpl7core_sw10dispatcher20avx512_extract_tableE._ZN3qpl7core_sw10dispatcher16px_extract_tableE, ptr %7, align 8, !tbaa !17
  store ptr %_ZN3qpl7core_sw10dispatcher22avx512_extract_i_tableE._ZN3qpl7core_sw10dispatcher18px_extract_i_tableE, ptr %8, align 8, !tbaa !18
  store ptr %_ZN3qpl7core_sw10dispatcher23avx512_aggregates_tableE._ZN3qpl7core_sw10dispatcher19px_aggregates_tableE, ptr %9, align 8, !tbaa !19
  store ptr %_ZN3qpl7core_sw10dispatcher19avx512_select_tableE._ZN3qpl7core_sw10dispatcher15px_select_tableE, ptr %10, align 8, !tbaa !20
  store ptr %_ZN3qpl7core_sw10dispatcher21avx512_select_i_tableE._ZN3qpl7core_sw10dispatcher17px_select_i_tableE, ptr %11, align 8, !tbaa !21
  store ptr %_ZN3qpl7core_sw10dispatcher19avx512_expand_tableE._ZN3qpl7core_sw10dispatcher15px_expand_tableE, ptr %12, align 8, !tbaa !22
  store ptr %_ZN3qpl7core_sw10dispatcher24avx512_memory_copy_tableE._ZN3qpl7core_sw10dispatcher20px_memory_copy_tableE, ptr %13, align 8, !tbaa !23
  store ptr %_ZN3qpl7core_sw10dispatcher17avx512_zero_tableE._ZN3qpl7core_sw10dispatcher13px_zero_tableE, ptr %14, align 8, !tbaa !24
  store ptr %_ZN3qpl7core_sw10dispatcher17avx512_move_tableE._ZN3qpl7core_sw10dispatcher13px_move_tableE, ptr %15, align 8, !tbaa !25
  store ptr %_ZN3qpl7core_sw10dispatcher18avx512_crc64_tableE._ZN3qpl7core_sw10dispatcher14px_crc64_tableE, ptr %16, align 8, !tbaa !26
  store ptr %_ZN3qpl7core_sw10dispatcher25avx512_xor_checksum_tableE._ZN3qpl7core_sw10dispatcher21px_xor_checksum_tableE, ptr %17, align 8, !tbaa !27
  store ptr %_ZN3qpl7core_sw10dispatcher20avx512_deflate_tableE._ZN3qpl7core_sw10dispatcher16px_deflate_tableE, ptr %18, align 8, !tbaa !28
  store ptr %_ZN3qpl7core_sw10dispatcher24avx512_deflate_fix_tableE._ZN3qpl7core_sw10dispatcher20px_deflate_fix_tableE, ptr %19, align 8, !tbaa !29
  store ptr %_ZN3qpl7core_sw10dispatcher29avx512_setup_dictionary_tableE._ZN3qpl7core_sw10dispatcher25px_setup_dictionary_tableE, ptr %20, align 8, !tbaa !30
  ret void
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

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

!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, !10, i64 160}
!6 = !{!"_ZTSN3qpl7core_sw10dispatcher18kernels_dispatcherE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !10, i64 160}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN3qpl7core_sw10dispatcher6arch_tE", !8, i64 0}
!11 = !{!6, !7, i64 0}
!12 = !{!6, !7, i64 8}
!13 = !{!6, !7, i64 16}
!14 = !{!6, !7, i64 24}
!15 = !{!6, !7, i64 32}
!16 = !{!6, !7, i64 40}
!17 = !{!6, !7, i64 48}
!18 = !{!6, !7, i64 56}
!19 = !{!6, !7, i64 64}
!20 = !{!6, !7, i64 72}
!21 = !{!6, !7, i64 80}
!22 = !{!6, !7, i64 88}
!23 = !{!6, !7, i64 96}
!24 = !{!6, !7, i64 104}
!25 = !{!6, !7, i64 112}
!26 = !{!6, !7, i64 120}
!27 = !{!6, !7, i64 128}
!28 = !{!6, !7, i64 136}
!29 = !{!6, !7, i64 144}
!30 = !{!6, !7, i64 152}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InstCombinePass,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass