	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ironlake_set_pipeconf
_ironlake_set_pipeconf:                 ## @ironlake_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	20(%rdi), %edi
	callq	_to_intel_crtc
	movq	%rax, %rbx
	movl	4(%rax), %edi
	callq	_to_i915
	movl	(%rbx), %r14d
	movl	(%r15), %eax
	addl	$-18, %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	_PIPECONF_6BPC@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_3:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_BUG
	jmp	LBB0_8
LBB0_4:
	movq	_PIPECONF_8BPC@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_PIPECONF_10BPC@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_PIPECONF_12BPC@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %r13d
LBB0_8:
	movq	_PIPECONF_DITHER_EN@GOTPCREL(%rip), %rax
	movq	_PIPECONF_DITHER_TYPE_SP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	xorl	%r12d, %r12d
	cmpq	$0, 24(%r15)
	cmovel	%r12d, %ebx
	orl	%r13d, %ebx
	movq	_DRM_MODE_FLAG_INTERLACE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	16(%r15), %eax
	jne	LBB0_10
## %bb.9:
	movq	_PIPECONF_PROGRESSIVE@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_10:
	movq	_PIPECONF_INTERLACED_ILK@GOTPCREL(%rip), %rax
LBB0_11:
	orl	(%rax), %ebx
	cmpq	$0, 8(%r15)
	je	LBB0_13
## %bb.12:
	movq	_PIPECONF_COLOR_RANGE_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_13:
	movl	4(%r15), %edi
	callq	_PIPECONF_GAMMA_MODE
	orl	%eax, %r12d
	orl	%r12d, %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	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_POSTING_READ                   ## 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	_PIPECONF_6BPC,4,2              ## @PIPECONF_6BPC
	.comm	_PIPECONF_8BPC,4,2              ## @PIPECONF_8BPC
	.comm	_PIPECONF_10BPC,4,2             ## @PIPECONF_10BPC
	.comm	_PIPECONF_12BPC,4,2             ## @PIPECONF_12BPC
	.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
	.comm	_PIPECONF_COLOR_RANGE_SELECT,4,2 ## @PIPECONF_COLOR_RANGE_SELECT
	.no_dead_strip	_ironlake_set_pipeconf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ironlake_set_pipeconf
_ironlake_set_pipeconf:                 ; @ironlake_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	x20, x0
	ldr	w0, [x0, #20]
	bl	_to_intel_crtc
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_to_i915
	ldr	w19, [x19]
	ldr	w8, [x20]
	sub	w8, w8, #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, _PIPECONF_6BPC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PIPECONF_6BPC@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:
	bl	_BUG
	mov	w8, #0
	b	LBB0_8
LBB0_4:
Lloh4:
	adrp	x8, _PIPECONF_8BPC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PIPECONF_8BPC@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh6:
	adrp	x8, _PIPECONF_10BPC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PIPECONF_10BPC@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x8, _PIPECONF_12BPC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PIPECONF_12BPC@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
LBB0_8:
	ldr	x9, [x20, #24]
Lloh10:
	adrp	x10, _PIPECONF_DITHER_EN@GOTPAGE
Lloh11:
	ldr	x10, [x10, _PIPECONF_DITHER_EN@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
Lloh13:
	adrp	x11, _PIPECONF_DITHER_TYPE_SP@GOTPAGE
Lloh14:
	ldr	x11, [x11, _PIPECONF_DITHER_TYPE_SP@GOTPAGEOFF]
Lloh15:
	ldr	w11, [x11]
	orr	w10, w11, w10
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w8, w9, w8
Lloh16:
	adrp	x9, _DRM_MODE_FLAG_INTERLACE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _DRM_MODE_FLAG_INTERLACE@GOTPAGEOFF]
	ldr	w10, [x20, #16]
Lloh18:
	ldr	w9, [x9]
Lloh19:
	adrp	x11, _PIPECONF_PROGRESSIVE@GOTPAGE
Lloh20:
	ldr	x11, [x11, _PIPECONF_PROGRESSIVE@GOTPAGEOFF]
Lloh21:
	adrp	x12, _PIPECONF_INTERLACED_ILK@GOTPAGE
Lloh22:
	ldr	x12, [x12, _PIPECONF_INTERLACED_ILK@GOTPAGEOFF]
	tst	w9, w10
	csel	x9, x11, x12, eq
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh23:
	adrp	x9, _PIPECONF_COLOR_RANGE_SELECT@GOTPAGE
Lloh24:
	ldr	x9, [x9, _PIPECONF_COLOR_RANGE_SELECT@GOTPAGEOFF]
	ldr	x10, [x20, #8]
Lloh25:
	ldr	w9, [x9]
	cmp	x10, #0
	csel	w9, wzr, w9, eq
	orr	w21, w8, w9
	ldr	w0, [x20, #4]
	bl	_PIPECONF_GAMMA_MODE
	orr	w20, w21, w0
	mov	x0, x19
	bl	_PIPECONF
	mov	x1, x20
	bl	_I915_WRITE
	mov	x0, x19
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.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	_PIPECONF_6BPC,4,2              ; @PIPECONF_6BPC
	.comm	_PIPECONF_8BPC,4,2              ; @PIPECONF_8BPC
	.comm	_PIPECONF_10BPC,4,2             ; @PIPECONF_10BPC
	.comm	_PIPECONF_12BPC,4,2             ; @PIPECONF_12BPC
	.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
	.comm	_PIPECONF_COLOR_RANGE_SELECT,4,2 ; @PIPECONF_COLOR_RANGE_SELECT
	.no_dead_strip	_ironlake_set_pipeconf
.subsections_via_symbols
