	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drm_dp_cec_received
_drm_dp_cec_received:                   ## @drm_dp_cec_received
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	movq	_DP_CEC_RX_MESSAGE_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_drm_dp_dpcd_readb
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movl	-28(%rbp), %ecx
	movq	_DP_CEC_RX_MESSAGE_ENDED@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	testl	%ecx, (%rax)
	je	LBB0_6
## %bb.3:
	movq	_DP_CEC_RX_MESSAGE_LEN_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ecx
	incl	%ecx
	movl	%ecx, -40(%rbp)
	movq	_DP_CEC_RX_MESSAGE_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_drm_dp_dpcd_read
	testq	%rax, %rax
	js	LBB0_4
## %bb.5:
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_cec_received_msg
	jmp	LBB0_6
LBB0_1:
	movq	%rax, %r15
	jmp	LBB0_6
LBB0_4:
	movl	%eax, %r15d
LBB0_6:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_CEC_RX_MESSAGE_INFO,4,2     ## @DP_CEC_RX_MESSAGE_INFO
	.comm	_DP_CEC_RX_MESSAGE_ENDED,4,2    ## @DP_CEC_RX_MESSAGE_ENDED
	.comm	_DP_CEC_RX_MESSAGE_LEN_MASK,4,2 ## @DP_CEC_RX_MESSAGE_LEN_MASK
	.comm	_DP_CEC_RX_MESSAGE_BUFFER,4,2   ## @DP_CEC_RX_MESSAGE_BUFFER
	.no_dead_strip	_drm_dp_cec_received
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drm_dp_cec_received
_drm_dp_cec_received:                   ; @drm_dp_cec_received
	.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	x20, x0
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _DP_CEC_RX_MESSAGE_INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DP_CEC_RX_MESSAGE_INFO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #4
	bl	_drm_dp_dpcd_readb
	tbnz	x0, #63, LBB0_6
; %bb.1:
	ldr	w8, [sp, #4]
Lloh3:
	adrp	x9, _DP_CEC_RX_MESSAGE_ENDED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DP_CEC_RX_MESSAGE_ENDED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
Lloh6:
	adrp	x9, _DP_CEC_RX_MESSAGE_LEN_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DP_CEC_RX_MESSAGE_LEN_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w8, w9, w8
	add	w3, w8, #1
	str	w3, [sp, #8]
Lloh9:
	adrp	x8, _DP_CEC_RX_MESSAGE_BUFFER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DP_CEC_RX_MESSAGE_BUFFER@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_drm_dp_dpcd_read
	tbnz	x0, #63, LBB0_5
; %bb.3:
	add	x1, sp, #8
	mov	x0, x19
	bl	_cec_received_msg
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
LBB0_6:
                                        ; kill: def $w0 killed $w0 killed $x0
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DP_CEC_RX_MESSAGE_INFO,4,2     ; @DP_CEC_RX_MESSAGE_INFO
	.comm	_DP_CEC_RX_MESSAGE_ENDED,4,2    ; @DP_CEC_RX_MESSAGE_ENDED
	.comm	_DP_CEC_RX_MESSAGE_LEN_MASK,4,2 ; @DP_CEC_RX_MESSAGE_LEN_MASK
	.comm	_DP_CEC_RX_MESSAGE_BUFFER,4,2   ; @DP_CEC_RX_MESSAGE_BUFFER
	.no_dead_strip	_drm_dp_cec_received
.subsections_via_symbols
