	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function haswell_set_pipeconf
_haswell_set_pipeconf:                  ## @haswell_set_pipeconf
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	callq	_to_intel_crtc
	movl	(%rax), %r15d
	movl	%r15d, %edi
	callq	_PIPECONF
	movl	%eax, %edi
	callq	_I915_READ
	movq	_PIPECONF_DITHER_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_PIPECONF_DITHER_TYPE_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%ecx, %edx
	notl	%edx
	andl	%eax, %edx
	movq	_PIPECONF_DITHER_TYPE_SP@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	testl	%ebx, %ebx
	cmovel	%ebx, %ecx
	orl	%edx, %ecx
	movq	_PIPECONF_INTERLACE_MASK_HSW@GOTPCREL(%rip), %rax
	movq	_DRM_MODE_FLAG_INTERLACE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	(%r14), %edx
	movl	(%rax), %ebx
	notl	%ebx
	andl	%ecx, %ebx
	testl	%edx, %edx
	jne	LBB0_1
## %bb.2:
	movq	_PIPECONF_PROGRESSIVE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_PIPECONF_INTERLACED_ILK@GOTPCREL(%rip), %rax
LBB0_3:
	orl	(%rax), %ebx
	movl	%r15d, %edi
	callq	_PIPECONF
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movl	%r15d, %edi
	callq	_PIPECONF
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_POSTING_READ                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PIPECONF_DITHER_EN,4,2         ## @PIPECONF_DITHER_EN
	.comm	_PIPECONF_DITHER_TYPE_MASK,4,2  ## @PIPECONF_DITHER_TYPE_MASK
	.comm	_PIPECONF_DITHER_TYPE_SP,4,2    ## @PIPECONF_DITHER_TYPE_SP
	.comm	_PIPECONF_INTERLACE_MASK_HSW,4,2 ## @PIPECONF_INTERLACE_MASK_HSW
	.comm	_DRM_MODE_FLAG_INTERLACE,4,2    ## @DRM_MODE_FLAG_INTERLACE
	.comm	_PIPECONF_INTERLACED_ILK,4,2    ## @PIPECONF_INTERLACED_ILK
	.comm	_PIPECONF_PROGRESSIVE,4,2       ## @PIPECONF_PROGRESSIVE
	.no_dead_strip	_haswell_set_pipeconf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function haswell_set_pipeconf
_haswell_set_pipeconf:                  ; @haswell_set_pipeconf
	.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	x19, x2
	mov	x20, x1
	bl	_to_intel_crtc
	ldr	w21, [x0]
	mov	x0, x21
	bl	_PIPECONF
	bl	_I915_READ
Lloh0:
	adrp	x8, _PIPECONF_DITHER_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PIPECONF_DITHER_EN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _PIPECONF_DITHER_TYPE_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PIPECONF_DITHER_TYPE_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w9, w9, w8
	bic	w9, w0, w9
Lloh6:
	adrp	x10, _PIPECONF_DITHER_TYPE_SP@GOTPAGE
Lloh7:
	ldr	x10, [x10, _PIPECONF_DITHER_TYPE_SP@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w8, w10, w8
	cmp	w19, #0
	csel	w8, wzr, w8, eq
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _PIPECONF_INTERLACE_MASK_HSW@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PIPECONF_INTERLACE_MASK_HSW@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	ldr	w10, [x20]
Lloh12:
	adrp	x11, _DRM_MODE_FLAG_INTERLACE@GOTPAGE
Lloh13:
	ldr	x11, [x11, _DRM_MODE_FLAG_INTERLACE@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	bic	w8, w8, w9
Lloh15:
	adrp	x9, _PIPECONF_PROGRESSIVE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PIPECONF_PROGRESSIVE@GOTPAGEOFF]
Lloh17:
	adrp	x12, _PIPECONF_INTERLACED_ILK@GOTPAGE
Lloh18:
	ldr	x12, [x12, _PIPECONF_INTERLACED_ILK@GOTPAGEOFF]
	tst	w11, w10
	csel	x9, x9, x12, eq
	ldr	w9, [x9]
	orr	w19, w9, w8
	mov	x0, x21
	bl	_PIPECONF
	mov	x1, x19
	bl	_I915_WRITE
	mov	x0, x21
	bl	_PIPECONF
	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	_POSTING_READ
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PIPECONF_DITHER_EN,4,2         ; @PIPECONF_DITHER_EN
	.comm	_PIPECONF_DITHER_TYPE_MASK,4,2  ; @PIPECONF_DITHER_TYPE_MASK
	.comm	_PIPECONF_DITHER_TYPE_SP,4,2    ; @PIPECONF_DITHER_TYPE_SP
	.comm	_PIPECONF_INTERLACE_MASK_HSW,4,2 ; @PIPECONF_INTERLACE_MASK_HSW
	.comm	_DRM_MODE_FLAG_INTERLACE,4,2    ; @DRM_MODE_FLAG_INTERLACE
	.comm	_PIPECONF_INTERLACED_ILK,4,2    ; @PIPECONF_INTERLACED_ILK
	.comm	_PIPECONF_PROGRESSIVE,4,2       ; @PIPECONF_PROGRESSIVE
	.no_dead_strip	_haswell_set_pipeconf
.subsections_via_symbols
