	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i9xx_pipe_crc_ctl_reg
_i9xx_pipe_crc_ctl_reg:                 ## @i9xx_pipe_crc_ctl_reg
	.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	%rcx, %r14
	movq	%rdi, %r15
	movl	(%rdx), %eax
	movq	_INTEL_PIPE_CRC_SOURCE_AUTO@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.1:
	movq	%rdx, %rbx
	movq	%r15, %rdi
	callq	_i9xx_pipe_crc_auto_source
	testl	%eax, %eax
	jne	LBB0_13
## %bb.2:
	movl	(%rbx), %eax
LBB0_3:
	cmpl	$128, %eax
	je	LBB0_7
## %bb.4:
	cmpl	$130, %eax
	je	LBB0_11
## %bb.5:
	cmpl	$129, %eax
	jne	LBB0_10
## %bb.6:
	movq	_PIPE_CRC_ENABLE@GOTPCREL(%rip), %rax
	movq	_PIPE_CRC_SOURCE_PIPE_I9XX@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_7:
	movq	%r15, %rdi
	callq	_SUPPORTS_TV
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movq	_PIPE_CRC_ENABLE@GOTPCREL(%rip), %rax
	movq	_PIPE_CRC_SOURCE_TV_PRE@GOTPCREL(%rip), %rcx
LBB0_9:
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%r14)
	jmp	LBB0_12
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_13
LBB0_11:
	movl	$0, (%r14)
LBB0_12:
	xorl	%eax, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INTEL_PIPE_CRC_SOURCE_AUTO,4,2 ## @INTEL_PIPE_CRC_SOURCE_AUTO
	.comm	_PIPE_CRC_ENABLE,4,2            ## @PIPE_CRC_ENABLE
	.comm	_PIPE_CRC_SOURCE_PIPE_I9XX,4,2  ## @PIPE_CRC_SOURCE_PIPE_I9XX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PIPE_CRC_SOURCE_TV_PRE,4,2     ## @PIPE_CRC_SOURCE_TV_PRE
	.no_dead_strip	_i9xx_pipe_crc_ctl_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i9xx_pipe_crc_ctl_reg
_i9xx_pipe_crc_ctl_reg:                 ; @i9xx_pipe_crc_ctl_reg
	.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, x3
	mov	x20, x0
	ldr	w8, [x2]
Lloh0:
	adrp	x9, _INTEL_PIPE_CRC_SOURCE_AUTO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INTEL_PIPE_CRC_SOURCE_AUTO@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.1:
	mov	x21, x2
	mov	x0, x20
	bl	_i9xx_pipe_crc_auto_source
	cbnz	w0, LBB0_12
; %bb.2:
	ldr	w8, [x21]
LBB0_3:
	cmp	w8, #128
	b.eq	LBB0_7
; %bb.4:
	cmp	w8, #130
	b.eq	LBB0_11
; %bb.5:
	cmp	w8, #129
	b.ne	LBB0_10
; %bb.6:
	mov	w0, #0
Lloh3:
	adrp	x8, _PIPE_CRC_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PIPE_CRC_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _PIPE_CRC_SOURCE_PIPE_I9XX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PIPE_CRC_SOURCE_PIPE_I9XX@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	mov	x0, x20
	bl	_SUPPORTS_TV
	cbz	w0, LBB0_10
; %bb.8:
	mov	w0, #0
Lloh8:
	adrp	x8, _PIPE_CRC_ENABLE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PIPE_CRC_ENABLE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _PIPE_CRC_SOURCE_TV_PRE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PIPE_CRC_SOURCE_TV_PRE@GOTPAGEOFF]
LBB0_9:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_12
LBB0_10:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_11:
	mov	w0, #0
	str	wzr, [x19]
LBB0_12:
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_INTEL_PIPE_CRC_SOURCE_AUTO,4,2 ; @INTEL_PIPE_CRC_SOURCE_AUTO
	.comm	_PIPE_CRC_ENABLE,4,2            ; @PIPE_CRC_ENABLE
	.comm	_PIPE_CRC_SOURCE_PIPE_I9XX,4,2  ; @PIPE_CRC_SOURCE_PIPE_I9XX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PIPE_CRC_SOURCE_TV_PRE,4,2     ; @PIPE_CRC_SOURCE_TV_PRE
	.no_dead_strip	_i9xx_pipe_crc_ctl_reg
.subsections_via_symbols
