	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bdw_set_pipemisc
_bdw_set_pipemisc:                      ## @bdw_set_pipemisc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	32(%rdi), %edi
	callq	_to_intel_crtc
	movq	%rax, %r14
	movl	4(%rax), %edi
	callq	_to_i915
	movq	%rax, %r15
	movl	(%r12), %edi
	leal	-18(%rdi), %eax
	rorl	%eax
	cmpl	$9, %eax
	ja	LBB0_3
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movq	_PIPEMISC_DITHER_6_BPC@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_3:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_MISSING_CASE
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_4:
	movq	_PIPEMISC_DITHER_8_BPC@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_PIPEMISC_DITHER_10_BPC@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_PIPEMISC_DITHER_12_BPC@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
LBB0_8:
	movq	_PIPEMISC_DITHER_ENABLE@GOTPCREL(%rip), %rcx
	movq	_PIPEMISC_DITHER_TYPE_SP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	xorl	%r9d, %r9d
	cmpq	$0, 24(%r12)
	cmovel	%r9d, %edx
	orl	%eax, %edx
	movq	8(%r12), %rax
	movq	_INTEL_OUTPUT_FORMAT_YCBCR420@GOTPCREL(%rip), %r8
	movq	_INTEL_OUTPUT_FORMAT_YCBCR444@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rax
	movq	_PIPEMISC_OUTPUT_COLORSPACE_YUV@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	movl	$0, %ebx
	cmovel	%edi, %ebx
	movq	_PIPEMISC_YUV420_ENABLE@GOTPCREL(%rip), %rsi
	movq	_PIPEMISC_YUV420_MODE_FULL_BLEND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rsi), %ecx
	cmpq	(%r8), %rax
	cmovel	%edi, %ebx
	cmovnel	%r9d, %ecx
	orl	%edx, %ebx
	orl	%ecx, %ebx
	movq	%r15, %rdi
	callq	_INTEL_GEN
	cmpl	$11, %eax
	jl	LBB0_11
## %bb.9:
	movl	16(%r12), %r12d
	xorl	%eax, %eax
	callq	_icl_hdr_plane_mask
	movl	%eax, %r15d
	movq	_PLANE_CURSOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%r15d, %eax
	notl	%eax
	testl	%eax, %r12d
	jne	LBB0_11
## %bb.10:
	movq	_PIPEMISC_HDR_MODE_PRECISION@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_11:
	movl	(%r14), %edi
	callq	_PIPEMISC
	movl	%eax, %edi
	movl	%ebx, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_5
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_PIPEMISC_DITHER_6_BPC,4,2      ## @PIPEMISC_DITHER_6_BPC
	.comm	_PIPEMISC_DITHER_8_BPC,4,2      ## @PIPEMISC_DITHER_8_BPC
	.comm	_PIPEMISC_DITHER_10_BPC,4,2     ## @PIPEMISC_DITHER_10_BPC
	.comm	_PIPEMISC_DITHER_12_BPC,4,2     ## @PIPEMISC_DITHER_12_BPC
	.comm	_PIPEMISC_DITHER_ENABLE,4,2     ## @PIPEMISC_DITHER_ENABLE
	.comm	_PIPEMISC_DITHER_TYPE_SP,4,2    ## @PIPEMISC_DITHER_TYPE_SP
	.comm	_INTEL_OUTPUT_FORMAT_YCBCR420,8,3 ## @INTEL_OUTPUT_FORMAT_YCBCR420
	.comm	_INTEL_OUTPUT_FORMAT_YCBCR444,8,3 ## @INTEL_OUTPUT_FORMAT_YCBCR444
	.comm	_PIPEMISC_OUTPUT_COLORSPACE_YUV,4,2 ## @PIPEMISC_OUTPUT_COLORSPACE_YUV
	.comm	_PIPEMISC_YUV420_ENABLE,4,2     ## @PIPEMISC_YUV420_ENABLE
	.comm	_PIPEMISC_YUV420_MODE_FULL_BLEND,4,2 ## @PIPEMISC_YUV420_MODE_FULL_BLEND
	.comm	_PLANE_CURSOR,4,2               ## @PLANE_CURSOR
	.comm	_PIPEMISC_HDR_MODE_PRECISION,4,2 ## @PIPEMISC_HDR_MODE_PRECISION
	.no_dead_strip	_bdw_set_pipemisc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bdw_set_pipemisc
_bdw_set_pipemisc:                      ; @bdw_set_pipemisc
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
	ldr	w0, [x0, #32]
	bl	_to_intel_crtc
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_to_i915
	mov	x21, x0
	ldr	w0, [x20]
	sub	w8, w0, #18
	ror	w8, w8, #1
	cmp	w8, #9
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _PIPEMISC_DITHER_6_BPC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PIPEMISC_DITHER_6_BPC@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:
	bl	_MISSING_CASE
	mov	w8, #0
	b	LBB0_8
LBB0_4:
Lloh4:
	adrp	x8, _PIPEMISC_DITHER_8_BPC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PIPEMISC_DITHER_8_BPC@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh6:
	adrp	x8, _PIPEMISC_DITHER_10_BPC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PIPEMISC_DITHER_10_BPC@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x8, _PIPEMISC_DITHER_12_BPC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PIPEMISC_DITHER_12_BPC@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
LBB0_8:
	ldr	x9, [x20, #24]
Lloh10:
	adrp	x10, _PIPEMISC_DITHER_ENABLE@GOTPAGE
Lloh11:
	ldr	x10, [x10, _PIPEMISC_DITHER_ENABLE@GOTPAGEOFF]
Lloh12:
	adrp	x11, _PIPEMISC_DITHER_TYPE_SP@GOTPAGE
Lloh13:
	ldr	x11, [x11, _PIPEMISC_DITHER_TYPE_SP@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
Lloh15:
	ldr	w11, [x11]
	orr	w10, w11, w10
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w8, w9, w8
	ldr	x9, [x20, #8]
Lloh16:
	adrp	x10, _INTEL_OUTPUT_FORMAT_YCBCR420@GOTPAGE
Lloh17:
	ldr	x10, [x10, _INTEL_OUTPUT_FORMAT_YCBCR420@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
Lloh19:
	adrp	x11, _INTEL_OUTPUT_FORMAT_YCBCR444@GOTPAGE
Lloh20:
	ldr	x11, [x11, _INTEL_OUTPUT_FORMAT_YCBCR444@GOTPAGEOFF]
Lloh21:
	ldr	x11, [x11]
	cmp	x9, x11
	ccmp	x9, x10, #4, ne
Lloh22:
	adrp	x11, _PIPEMISC_OUTPUT_COLORSPACE_YUV@GOTPAGE
Lloh23:
	ldr	x11, [x11, _PIPEMISC_OUTPUT_COLORSPACE_YUV@GOTPAGEOFF]
Lloh24:
	ldr	w11, [x11]
	csel	w11, w11, wzr, eq
	orr	w8, w8, w11
Lloh25:
	adrp	x11, _PIPEMISC_YUV420_ENABLE@GOTPAGE
Lloh26:
	ldr	x11, [x11, _PIPEMISC_YUV420_ENABLE@GOTPAGEOFF]
Lloh27:
	adrp	x12, _PIPEMISC_YUV420_MODE_FULL_BLEND@GOTPAGE
Lloh28:
	ldr	x12, [x12, _PIPEMISC_YUV420_MODE_FULL_BLEND@GOTPAGEOFF]
Lloh29:
	ldr	w11, [x11]
Lloh30:
	ldr	w12, [x12]
	orr	w11, w12, w11
	cmp	x9, x10
	csel	w9, w11, wzr, eq
	orr	w22, w8, w9
	mov	x0, x21
	bl	_INTEL_GEN
	cmp	w0, #11
	b.lt	LBB0_11
; %bb.9:
	ldr	w21, [x20, #16]
	bl	_icl_hdr_plane_mask
	mov	x20, x0
Lloh31:
	adrp	x8, _PLANE_CURSOR@GOTPAGE
Lloh32:
	ldr	x8, [x8, _PLANE_CURSOR@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	bl	_BIT
	orr	w8, w0, w20
	bics	wzr, w21, w8
	b.ne	LBB0_11
; %bb.10:
Lloh34:
	adrp	x8, _PIPEMISC_HDR_MODE_PRECISION@GOTPAGE
Lloh35:
	ldr	x8, [x8, _PIPEMISC_HDR_MODE_PRECISION@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	orr	w22, w8, w22
LBB0_11:
	ldr	w0, [x19]
	bl	_PIPEMISC
	mov	x1, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_I915_WRITE
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh29
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh14
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_PIPEMISC_DITHER_6_BPC,4,2      ; @PIPEMISC_DITHER_6_BPC
	.comm	_PIPEMISC_DITHER_8_BPC,4,2      ; @PIPEMISC_DITHER_8_BPC
	.comm	_PIPEMISC_DITHER_10_BPC,4,2     ; @PIPEMISC_DITHER_10_BPC
	.comm	_PIPEMISC_DITHER_12_BPC,4,2     ; @PIPEMISC_DITHER_12_BPC
	.comm	_PIPEMISC_DITHER_ENABLE,4,2     ; @PIPEMISC_DITHER_ENABLE
	.comm	_PIPEMISC_DITHER_TYPE_SP,4,2    ; @PIPEMISC_DITHER_TYPE_SP
	.comm	_INTEL_OUTPUT_FORMAT_YCBCR420,8,3 ; @INTEL_OUTPUT_FORMAT_YCBCR420
	.comm	_INTEL_OUTPUT_FORMAT_YCBCR444,8,3 ; @INTEL_OUTPUT_FORMAT_YCBCR444
	.comm	_PIPEMISC_OUTPUT_COLORSPACE_YUV,4,2 ; @PIPEMISC_OUTPUT_COLORSPACE_YUV
	.comm	_PIPEMISC_YUV420_ENABLE,4,2     ; @PIPEMISC_YUV420_ENABLE
	.comm	_PIPEMISC_YUV420_MODE_FULL_BLEND,4,2 ; @PIPEMISC_YUV420_MODE_FULL_BLEND
	.comm	_PLANE_CURSOR,4,2               ; @PLANE_CURSOR
	.comm	_PIPEMISC_HDR_MODE_PRECISION,4,2 ; @PIPEMISC_HDR_MODE_PRECISION
	.no_dead_strip	_bdw_set_pipemisc
.subsections_via_symbols
