	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drm_dp_aux_get_crc
_drm_dp_aux_get_crc:                    ## @drm_dp_aux_get_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_DP_TEST_SINK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_drm_dp_dpcd_readb
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movq	_DP_TEST_SINK_START@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	-20(%rbp), %eax
	sete	%dil
	callq	_WARN_ON
	movq	_DP_TEST_SINK_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_drm_dp_dpcd_readb
	testl	%eax, %eax
	js	LBB0_5
## %bb.2:
	movq	_DP_TEST_COUNT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-20(%rbp), %eax
	cmpl	(%rbx), %eax
	jne	LBB0_4
## %bb.3:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
LBB0_4:
	movl	%eax, (%rbx)
	movq	_DP_TEST_CRC_R_CR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	movl	$6, %ecx
	callq	_drm_dp_dpcd_read
	movl	%eax, %ecx
	sarl	$31, %eax
	andl	%ecx, %eax
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_TEST_SINK,4,2               ## @DP_TEST_SINK
	.comm	_DP_TEST_SINK_START,4,2         ## @DP_TEST_SINK_START
	.comm	_DP_TEST_SINK_MISC,4,2          ## @DP_TEST_SINK_MISC
	.comm	_DP_TEST_COUNT_MASK,4,2         ## @DP_TEST_COUNT_MASK
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_DP_TEST_CRC_R_CR,4,2           ## @DP_TEST_CRC_R_CR
	.no_dead_strip	_drm_dp_aux_get_crc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drm_dp_aux_get_crc
_drm_dp_aux_get_crc:                    ; @drm_dp_aux_get_crc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _DP_TEST_SINK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DP_TEST_SINK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_drm_dp_dpcd_readb
	tbnz	w0, #31, LBB0_5
; %bb.1:
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _DP_TEST_SINK_START@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DP_TEST_SINK_START@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	bl	_WARN_ON
Lloh6:
	adrp	x8, _DP_TEST_SINK_MISC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DP_TEST_SINK_MISC@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_drm_dp_dpcd_readb
	tbnz	w0, #31, LBB0_5
; %bb.2:
	ldr	w8, [sp, #12]
Lloh9:
	adrp	x9, _DP_TEST_COUNT_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DP_TEST_COUNT_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w8, w9, w8
	ldr	w9, [x20]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.3:
Lloh12:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	str	w8, [x20]
Lloh15:
	adrp	x8, _DP_TEST_CRC_R_CR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DP_TEST_CRC_R_CR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	mov	w3, #6
	bl	_drm_dp_dpcd_read
	cmp	w0, #0
	csel	w0, w0, wzr, lt
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_DP_TEST_SINK,4,2               ; @DP_TEST_SINK
	.comm	_DP_TEST_SINK_START,4,2         ; @DP_TEST_SINK_START
	.comm	_DP_TEST_SINK_MISC,4,2          ; @DP_TEST_SINK_MISC
	.comm	_DP_TEST_COUNT_MASK,4,2         ; @DP_TEST_COUNT_MASK
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_DP_TEST_CRC_R_CR,4,2           ; @DP_TEST_CRC_R_CR
	.no_dead_strip	_drm_dp_aux_get_crc
.subsections_via_symbols
