	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i9xx_set_pipeconf
_i9xx_set_pipeconf:                     ## @i9xx_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	20(%rdi), %edi
	callq	_to_intel_crtc
	movq	%rax, %r14
	movl	4(%rax), %edi
	callq	_to_i915
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_I830
	movq	%rax, %rcx
	xorl	%ebx, %ebx
	movl	$0, %eax
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	callq	_PIPECONF
	movl	%eax, %edi
	callq	_I915_READ
	movq	_PIPECONF_ENABLE@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
LBB0_2:
	cmpq	$0, 32(%r15)
	je	LBB0_4
## %bb.3:
	movq	_PIPECONF_DOUBLE_WIDE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_4:
	orl	%eax, %ebx
	movq	%r12, %rdi
	callq	_IS_G4X
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	movq	%r12, %rdi
	callq	_IS_VALLEYVIEW
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	callq	_IS_CHERRYVIEW
	testq	%rax, %rax
	je	LBB0_17
LBB0_7:
	cmpq	$0, 24(%r15)
	movl	(%r15), %eax
	je	LBB0_10
## %bb.8:
	cmpl	$30, %eax
	je	LBB0_14
## %bb.9:
	movq	_PIPECONF_DITHER_EN@GOTPCREL(%rip), %rcx
	movq	_PIPECONF_DITHER_TYPE_SP@GOTPCREL(%rip), %rdx
	orl	(%rcx), %ebx
	orl	(%rdx), %ebx
LBB0_10:
	cmpl	$30, %eax
	je	LBB0_14
## %bb.11:
	cmpl	$24, %eax
	je	LBB0_15
## %bb.12:
	cmpl	$18, %eax
	jne	LBB0_16
## %bb.13:
	movq	_PIPECONF_6BPC@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	jmp	LBB0_17
LBB0_14:
	movq	_PIPECONF_10BPC@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	jmp	LBB0_17
LBB0_15:
	movq	_PIPECONF_8BPC@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	jmp	LBB0_17
LBB0_16:
	xorl	%eax, %eax
	callq	_BUG
LBB0_17:
	movq	_DRM_MODE_FLAG_INTERLACE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%r15)
	je	LBB0_20
## %bb.18:
	movq	%r12, %rdi
	callq	_INTEL_GEN
	cmpl	$4, %eax
	jl	LBB0_23
## %bb.21:
	movq	_INTEL_OUTPUT_SDVO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_intel_crtc_has_type
	testq	%rax, %rax
	jne	LBB0_23
## %bb.22:
	movq	_PIPECONF_INTERLACE_W_SYNC_SHIFT@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_23:
	movq	_PIPECONF_INTERLACE_W_FIELD_INDICATION@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_20:
	movq	_PIPECONF_PROGRESSIVE@GOTPCREL(%rip), %rax
LBB0_24:
	orl	(%rax), %ebx
	movq	%r12, %rdi
	callq	_IS_VALLEYVIEW
	testq	%rax, %rax
	jne	LBB0_26
## %bb.25:
	movq	%r12, %rdi
	callq	_IS_CHERRYVIEW
	testq	%rax, %rax
	je	LBB0_28
LBB0_26:
	cmpq	$0, 8(%r15)
	je	LBB0_28
## %bb.27:
	movq	_PIPECONF_COLOR_RANGE_SELECT@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_28:
	movl	4(%r15), %edi
	callq	_PIPECONF_GAMMA_MODE
	orl	%eax, %ebx
	movl	(%r14), %edi
	callq	_PIPECONF
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movl	(%r14), %edi
	callq	_PIPECONF
	movl	%eax, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_POSTING_READ                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PIPECONF_ENABLE,4,2            ## @PIPECONF_ENABLE
	.comm	_PIPECONF_DOUBLE_WIDE,4,2       ## @PIPECONF_DOUBLE_WIDE
	.comm	_PIPECONF_DITHER_EN,4,2         ## @PIPECONF_DITHER_EN
	.comm	_PIPECONF_DITHER_TYPE_SP,4,2    ## @PIPECONF_DITHER_TYPE_SP
	.comm	_PIPECONF_6BPC,4,2              ## @PIPECONF_6BPC
	.comm	_PIPECONF_8BPC,4,2              ## @PIPECONF_8BPC
	.comm	_PIPECONF_10BPC,4,2             ## @PIPECONF_10BPC
	.comm	_DRM_MODE_FLAG_INTERLACE,4,2    ## @DRM_MODE_FLAG_INTERLACE
	.comm	_INTEL_OUTPUT_SDVO,4,2          ## @INTEL_OUTPUT_SDVO
	.comm	_PIPECONF_INTERLACE_W_FIELD_INDICATION,4,2 ## @PIPECONF_INTERLACE_W_FIELD_INDICATION
	.comm	_PIPECONF_INTERLACE_W_SYNC_SHIFT,4,2 ## @PIPECONF_INTERLACE_W_SYNC_SHIFT
	.comm	_PIPECONF_PROGRESSIVE,4,2       ## @PIPECONF_PROGRESSIVE
	.comm	_PIPECONF_COLOR_RANGE_SELECT,4,2 ## @PIPECONF_COLOR_RANGE_SELECT
	.no_dead_strip	_i9xx_set_pipeconf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i9xx_set_pipeconf
_i9xx_set_pipeconf:                     ; @i9xx_set_pipeconf
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	ldr	w0, [x0, #20]
	bl	_to_intel_crtc
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_to_i915
	mov	x21, x0
	bl	_IS_I830
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19]
	bl	_PIPECONF
	bl	_I915_READ
Lloh0:
	adrp	x8, _PIPECONF_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PIPECONF_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w0
	b	LBB0_3
LBB0_2:
	mov	w8, #0
LBB0_3:
	ldr	x9, [x20, #32]
Lloh3:
	adrp	x10, _PIPECONF_DOUBLE_WIDE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PIPECONF_DOUBLE_WIDE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w22, w9, w8
	mov	x0, x21
	bl	_IS_G4X
	cbnz	x0, LBB0_6
; %bb.4:
	mov	x0, x21
	bl	_IS_VALLEYVIEW
	cbnz	x0, LBB0_6
; %bb.5:
	mov	x0, x21
	bl	_IS_CHERRYVIEW
	cbz	x0, LBB0_16
LBB0_6:
	ldr	x9, [x20, #24]
	ldr	w8, [x20]
	cbz	x9, LBB0_9
; %bb.7:
	cmp	w8, #30
	b.eq	LBB0_13
; %bb.8:
Lloh6:
	adrp	x9, _PIPECONF_DITHER_EN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PIPECONF_DITHER_EN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _PIPECONF_DITHER_TYPE_SP@GOTPAGE
Lloh10:
	ldr	x10, [x10, _PIPECONF_DITHER_TYPE_SP@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w9, w22
	orr	w22, w9, w10
LBB0_9:
	cmp	w8, #30
	b.eq	LBB0_13
; %bb.10:
	cmp	w8, #24
	b.eq	LBB0_14
; %bb.11:
	cmp	w8, #18
	b.ne	LBB0_25
; %bb.12:
Lloh12:
	adrp	x8, _PIPECONF_6BPC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PIPECONF_6BPC@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:
Lloh14:
	adrp	x8, _PIPECONF_10BPC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PIPECONF_10BPC@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
Lloh16:
	adrp	x8, _PIPECONF_8BPC@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PIPECONF_8BPC@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	orr	w22, w8, w22
LBB0_16:
	ldr	w8, [x20, #16]
Lloh18:
	adrp	x9, _DRM_MODE_FLAG_INTERLACE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _DRM_MODE_FLAG_INTERLACE@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.17:
	mov	x0, x21
	bl	_INTEL_GEN
Lloh21:
	adrp	x23, _PIPECONF_INTERLACE_W_FIELD_INDICATION@GOTPAGE
Lloh22:
	ldr	x23, [x23, _PIPECONF_INTERLACE_W_FIELD_INDICATION@GOTPAGEOFF]
	cmp	w0, #4
	b.lt	LBB0_20
; %bb.18:
Lloh23:
	adrp	x8, _INTEL_OUTPUT_SDVO@GOTPAGE
Lloh24:
	ldr	x8, [x8, _INTEL_OUTPUT_SDVO@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_intel_crtc_has_type
Lloh26:
	adrp	x8, _PIPECONF_INTERLACE_W_SYNC_SHIFT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PIPECONF_INTERLACE_W_SYNC_SHIFT@GOTPAGEOFF]
	cmp	x0, #0
	csel	x23, x8, x23, eq
	b	LBB0_20
LBB0_19:
Lloh28:
	adrp	x23, _PIPECONF_PROGRESSIVE@GOTPAGE
Lloh29:
	ldr	x23, [x23, _PIPECONF_PROGRESSIVE@GOTPAGEOFF]
LBB0_20:
	ldr	w8, [x23]
	orr	w22, w8, w22
	mov	x0, x21
	bl	_IS_VALLEYVIEW
	cbnz	x0, LBB0_22
; %bb.21:
	mov	x0, x21
	bl	_IS_CHERRYVIEW
	cbz	x0, LBB0_24
LBB0_22:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_24
; %bb.23:
Lloh30:
	adrp	x8, _PIPECONF_COLOR_RANGE_SELECT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _PIPECONF_COLOR_RANGE_SELECT@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	orr	w22, w8, w22
LBB0_24:
	ldr	w0, [x20, #4]
	bl	_PIPECONF_GAMMA_MODE
	orr	w20, w0, w22
	ldr	w0, [x19]
	bl	_PIPECONF
	mov	x1, x20
	bl	_I915_WRITE
	ldr	w0, [x19]
	bl	_PIPECONF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_POSTING_READ
LBB0_25:
	bl	_BUG
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_PIPECONF_ENABLE,4,2            ; @PIPECONF_ENABLE
	.comm	_PIPECONF_DOUBLE_WIDE,4,2       ; @PIPECONF_DOUBLE_WIDE
	.comm	_PIPECONF_DITHER_EN,4,2         ; @PIPECONF_DITHER_EN
	.comm	_PIPECONF_DITHER_TYPE_SP,4,2    ; @PIPECONF_DITHER_TYPE_SP
	.comm	_PIPECONF_6BPC,4,2              ; @PIPECONF_6BPC
	.comm	_PIPECONF_8BPC,4,2              ; @PIPECONF_8BPC
	.comm	_PIPECONF_10BPC,4,2             ; @PIPECONF_10BPC
	.comm	_DRM_MODE_FLAG_INTERLACE,4,2    ; @DRM_MODE_FLAG_INTERLACE
	.comm	_INTEL_OUTPUT_SDVO,4,2          ; @INTEL_OUTPUT_SDVO
	.comm	_PIPECONF_INTERLACE_W_FIELD_INDICATION,4,2 ; @PIPECONF_INTERLACE_W_FIELD_INDICATION
	.comm	_PIPECONF_INTERLACE_W_SYNC_SHIFT,4,2 ; @PIPECONF_INTERLACE_W_SYNC_SHIFT
	.comm	_PIPECONF_PROGRESSIVE,4,2       ; @PIPECONF_PROGRESSIVE
	.comm	_PIPECONF_COLOR_RANGE_SELECT,4,2 ; @PIPECONF_COLOR_RANGE_SELECT
	.no_dead_strip	_i9xx_set_pipeconf
.subsections_via_symbols
