	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i8xx_pipe_crc_ctl_reg
_i8xx_pipe_crc_ctl_reg:                 ## @i8xx_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
	movl	(%rdi), %eax
	movq	_INTEL_PIPE_CRC_SOURCE_AUTO@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	movl	$128, (%rdi)
	jmp	LBB0_5
LBB0_2:
	cmpl	$129, %eax
	je	LBB0_3
## %bb.4:
	cmpl	$128, %eax
	jne	LBB0_8
LBB0_5:
	movq	_PIPE_CRC_ENABLE@GOTPCREL(%rip), %rcx
	movq	_PIPE_CRC_INCLUDE_BORDER_I8XX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	jmp	LBB0_6
LBB0_3:
	xorl	%eax, %eax
LBB0_6:
	movl	%eax, (%rsi)
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	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_INCLUDE_BORDER_I8XX,4,2 ## @PIPE_CRC_INCLUDE_BORDER_I8XX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_i8xx_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 i8xx_pipe_crc_ctl_reg
_i8xx_pipe_crc_ctl_reg:                 ; @i8xx_pipe_crc_ctl_reg
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
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_2
; %bb.1:
	mov	w8, #128
	str	w8, [x0]
	b	LBB0_4
LBB0_2:
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.3:
	cmp	w8, #128
	b.ne	LBB0_7
LBB0_4:
Lloh3:
	adrp	x8, _PIPE_CRC_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PIPE_CRC_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _PIPE_CRC_INCLUDE_BORDER_I8XX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PIPE_CRC_INCLUDE_BORDER_I8XX@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	b	LBB0_6
LBB0_5:
	mov	w8, #0
LBB0_6:
	mov	w0, #0
	str	w8, [x1]
	ret
LBB0_7:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.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_INCLUDE_BORDER_I8XX,4,2 ; @PIPE_CRC_INCLUDE_BORDER_I8XX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_i8xx_pipe_crc_ctl_reg
.subsections_via_symbols
