	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_crtc_enable_pipe_crc     ## -- Begin function intel_crtc_enable_pipe_crc
	.p2align	4, 0x90
_intel_crtc_enable_pipe_crc:            ## @intel_crtc_enable_pipe_crc
	.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	%rdi, %rbx
	movl	12(%rdi), %edi
	callq	_to_i915
	movq	(%rax), %r14
	movq	(%rbx), %rsi
	movl	$0, -28(%rbp)
	cmpl	$0, 8(%rbx)
	je	LBB0_3
## %bb.1:
	movq	%rsi, %r15
	shlq	$4, %r15
	leaq	(%r14,%r15), %rdx
	addq	$8, %rdx
	leaq	-28(%rbp), %rcx
	movq	%rax, %rdi
	callq	_get_new_crc_ctl_reg
	testq	%rax, %rax
	js	LBB0_3
## %bb.2:
	movq	$0, (%r14,%r15)
	movq	(%rbx), %rdi
	callq	_PIPE_CRC_CTL
	movl	-28(%rbp), %esi
	movl	%eax, %edi
	callq	_I915_WRITE
	movq	(%rbx), %rdi
	callq	_PIPE_CRC_CTL
	movl	%eax, %edi
	callq	_POSTING_READ
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_crtc_enable_pipe_crc     ; -- Begin function intel_crtc_enable_pipe_crc
	.p2align	2
_intel_crtc_enable_pipe_crc:            ; @intel_crtc_enable_pipe_crc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	w0, [x0, #12]
	bl	_to_i915
	ldr	x21, [x0]
	ldr	x20, [x19]
	str	wzr, [sp, #12]
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_3
; %bb.1:
	add	x8, x21, x20, lsl #4
	add	x2, x8, #8
	add	x3, sp, #12
	mov	x1, x20
	bl	_get_new_crc_ctl_reg
	tbnz	x0, #63, LBB0_3
; %bb.2:
	lsl	x8, x20, #4
	str	xzr, [x21, x8]
	ldr	x0, [x19]
	bl	_PIPE_CRC_CTL
	ldr	w1, [sp, #12]
	bl	_I915_WRITE
	ldr	x0, [x19]
	bl	_PIPE_CRC_CTL
	bl	_POSTING_READ
LBB0_3:
	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
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
