	.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
	movq	%rdi, %r15
	movl	8(%rdi), %edi
	callq	_to_intel_crtc
	movl	(%rax), %edi
	callq	_to_i915
	movl	(%r15), %r14d
	movq	%rax, %rdi
	callq	_IS_HASWELL
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	cmpq	$0, 16(%r15)
	je	LBB0_3
## %bb.2:
	movq	_PIPECONF_DITHER_EN@GOTPCREL(%rip), %rax
	movq	_PIPECONF_DITHER_TYPE_SP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
LBB0_3:
	movq	_DRM_MODE_FLAG_INTERLACE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	4(%r15), %eax
	jne	LBB0_4
## %bb.5:
	movq	_PIPECONF_PROGRESSIVE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_PIPECONF_INTERLACED_ILK@GOTPCREL(%rip), %rax
LBB0_6:
	orl	(%rax), %ebx
	movl	%r14d, %edi
	callq	_PIPECONF
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movl	%r14d, %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_SP,4,2    ## @PIPECONF_DITHER_TYPE_SP
	.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	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	x20, x0
	ldr	w0, [x0, #8]
	bl	_to_intel_crtc
	ldr	w0, [x0]
	bl	_to_i915
	ldr	w19, [x20]
	bl	_IS_HASWELL
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_4
; %bb.2:
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_SP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PIPECONF_DITHER_TYPE_SP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	b	LBB0_4
LBB0_3:
	mov	w8, #0
LBB0_4:
	ldr	w9, [x20, #4]
Lloh6:
	adrp	x10, _DRM_MODE_FLAG_INTERLACE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _DRM_MODE_FLAG_INTERLACE@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, _PIPECONF_PROGRESSIVE@GOTPAGE
Lloh10:
	ldr	x11, [x11, _PIPECONF_PROGRESSIVE@GOTPAGEOFF]
Lloh11:
	adrp	x12, _PIPECONF_INTERLACED_ILK@GOTPAGE
Lloh12:
	ldr	x12, [x12, _PIPECONF_INTERLACED_ILK@GOTPAGEOFF]
	tst	w10, w9
	csel	x9, x11, x12, eq
	ldr	w9, [x9]
	orr	w20, w9, w8
	mov	x0, x19
	bl	_PIPECONF
	mov	x1, x20
	bl	_I915_WRITE
	mov	x0, x19
	bl	_PIPECONF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_POSTING_READ
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PIPECONF_DITHER_EN,4,2         ; @PIPECONF_DITHER_EN
	.comm	_PIPECONF_DITHER_TYPE_SP,4,2    ; @PIPECONF_DITHER_TYPE_SP
	.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
