	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i9xx_get_pipe_color_config
_i9xx_get_pipe_color_config:            ## @i9xx_get_pipe_color_config
	.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, %r14
	movl	8(%rdi), %edi
	callq	_to_intel_crtc
	movq	%rax, %rbx
	movl	4(%rax), %edi
	callq	_to_intel_plane
	movq	%rax, %r12
	movl	(%rbx), %edi
	callq	_to_i915
	movq	%rax, %r15
	movl	(%r12), %edi
	callq	_DSPCNTR
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, %ebx
	movq	_DISPPLANE_GAMMA_ENABLE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_2
## %bb.1:
	movl	$1, (%r14)
LBB0_2:
	movq	%r15, %rdi
	callq	_HAS_GMCH
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	_DISPPLANE_PIPE_CSC_ENABLE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_5
## %bb.4:
	movl	$1, 4(%r14)
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DISPPLANE_GAMMA_ENABLE,4,2     ## @DISPPLANE_GAMMA_ENABLE
	.comm	_DISPPLANE_PIPE_CSC_ENABLE,4,2  ## @DISPPLANE_PIPE_CSC_ENABLE
	.no_dead_strip	_i9xx_get_pipe_color_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i9xx_get_pipe_color_config
_i9xx_get_pipe_color_config:            ; @i9xx_get_pipe_color_config
	.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, x0
	ldr	w0, [x0, #8]
	bl	_to_intel_crtc
	mov	x20, x0
	ldr	w0, [x0, #4]
	bl	_to_intel_plane
	mov	x21, x0
	ldr	w0, [x20]
	bl	_to_i915
	mov	x20, x0
	ldr	w0, [x21]
	bl	_DSPCNTR
	bl	_I915_READ
	mov	x21, x0
Lloh0:
	adrp	x8, _DISPPLANE_GAMMA_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DISPPLANE_GAMMA_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	mov	w8, #1
	str	w8, [x19]
LBB0_2:
	mov	x0, x20
	bl	_HAS_GMCH
	cbnz	w0, LBB0_5
; %bb.3:
Lloh3:
	adrp	x8, _DISPPLANE_PIPE_CSC_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DISPPLANE_PIPE_CSC_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_5
; %bb.4:
	mov	w8, #1
	str	w8, [x19, #4]
LBB0_5:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DISPPLANE_GAMMA_ENABLE,4,2     ; @DISPPLANE_GAMMA_ENABLE
	.comm	_DISPPLANE_PIPE_CSC_ENABLE,4,2  ; @DISPPLANE_PIPE_CSC_ENABLE
	.no_dead_strip	_i9xx_get_pipe_color_config
.subsections_via_symbols
