	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bdw_get_pipemisc_bpp           ## -- Begin function bdw_get_pipemisc_bpp
	.p2align	4, 0x90
_bdw_get_pipemisc_bpp:                  ## @bdw_get_pipemisc_bpp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	callq	_to_i915
	movl	(%rbx), %edi
	callq	_PIPEMISC
	movl	%eax, %edi
	callq	_I915_READ
	movq	_PIPEMISC_DITHER_BPC_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	addl	$-128, %ecx
	cmpl	$4, %ecx
	jae	LBB0_1
## %bb.2:
	movslq	%ecx, %rax
	leaq	L_switch.table.bdw_get_pipemisc_bpp(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
	jmp	LBB0_3
LBB0_1:
	movl	%eax, %edi
	callq	_MISSING_CASE
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PIPEMISC_DITHER_BPC_MASK,4,2   ## @PIPEMISC_DITHER_BPC_MASK
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.bdw_get_pipemisc_bpp
L_switch.table.bdw_get_pipemisc_bpp:
	.long	24                              ## 0x18
	.long	18                              ## 0x12
	.long	36                              ## 0x24
	.long	30                              ## 0x1e

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bdw_get_pipemisc_bpp           ; -- Begin function bdw_get_pipemisc_bpp
	.p2align	2
_bdw_get_pipemisc_bpp:                  ; @bdw_get_pipemisc_bpp
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_to_i915
	ldr	w0, [x19]
	bl	_PIPEMISC
	bl	_I915_READ
Lloh0:
	adrp	x8, _PIPEMISC_DITHER_BPC_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PIPEMISC_DITHER_BPC_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w0
	sub	w8, w8, #128
	cmp	w8, #4
	b.hs	LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, l_switch.table.bdw_get_pipemisc_bpp@PAGE
Lloh4:
	add	x9, x9, l_switch.table.bdw_get_pipemisc_bpp@PAGEOFF
	ldr	w0, [x9, w8, sxtw #2]
	b	LBB0_3
LBB0_2:
	bl	_MISSING_CASE
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PIPEMISC_DITHER_BPC_MASK,4,2   ; @PIPEMISC_DITHER_BPC_MASK
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.bdw_get_pipemisc_bpp
l_switch.table.bdw_get_pipemisc_bpp:
	.long	24                              ; 0x18
	.long	18                              ; 0x12
	.long	36                              ; 0x24
	.long	30                              ; 0x1e

.subsections_via_symbols
