	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drm_dp_cec_handle_irq
_drm_dp_cec_handle_irq:                 ## @drm_dp_cec_handle_irq
	.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
	movq	(%rdi), %r14
	movq	_DP_CEC_TUNNELING_IRQ_FLAGS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdx
	callq	_drm_dp_dpcd_readb
	testq	%rax, %rax
	js	LBB0_12
## %bb.1:
	movl	-28(%rbp), %eax
	movq	_DP_CEC_RX_MESSAGE_INFO_VALID@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_drm_dp_cec_received
	movl	-28(%rbp), %eax
LBB0_3:
	movq	_DP_CEC_TX_MESSAGE_SENT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	_CEC_TX_STATUS_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_10
LBB0_5:
	movq	_DP_CEC_TX_LINE_ERROR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movq	_CEC_TX_STATUS_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_DP_CEC_TX_ADDRESS_NACK_ERROR@GOTPCREL(%rip), %rcx
	movq	_DP_CEC_TX_DATA_NACK_ERROR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_11
## %bb.8:
	movq	_CEC_TX_STATUS_NACK@GOTPCREL(%rip), %rax
LBB0_9:
	movq	_CEC_TX_STATUS_MAX_RETRIES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
LBB0_10:
	movq	%r14, %rdi
	callq	_cec_transmit_attempt_done
LBB0_11:
	movl	(%r15), %esi
	movl	-28(%rbp), %edx
	movq	%rbx, %rdi
	callq	_drm_dp_dpcd_writeb
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_CEC_TUNNELING_IRQ_FLAGS,4,2 ## @DP_CEC_TUNNELING_IRQ_FLAGS
	.comm	_DP_CEC_RX_MESSAGE_INFO_VALID,4,2 ## @DP_CEC_RX_MESSAGE_INFO_VALID
	.comm	_DP_CEC_TX_MESSAGE_SENT,4,2     ## @DP_CEC_TX_MESSAGE_SENT
	.comm	_CEC_TX_STATUS_OK,4,2           ## @CEC_TX_STATUS_OK
	.comm	_DP_CEC_TX_LINE_ERROR,4,2       ## @DP_CEC_TX_LINE_ERROR
	.comm	_CEC_TX_STATUS_ERROR,4,2        ## @CEC_TX_STATUS_ERROR
	.comm	_CEC_TX_STATUS_MAX_RETRIES,4,2  ## @CEC_TX_STATUS_MAX_RETRIES
	.comm	_DP_CEC_TX_ADDRESS_NACK_ERROR,4,2 ## @DP_CEC_TX_ADDRESS_NACK_ERROR
	.comm	_DP_CEC_TX_DATA_NACK_ERROR,4,2  ## @DP_CEC_TX_DATA_NACK_ERROR
	.comm	_CEC_TX_STATUS_NACK,4,2         ## @CEC_TX_STATUS_NACK
	.no_dead_strip	_drm_dp_cec_handle_irq
.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_handle_irq
_drm_dp_cec_handle_irq:                 ; @drm_dp_cec_handle_irq
	.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	x20, [x0]
Lloh0:
	adrp	x21, _DP_CEC_TUNNELING_IRQ_FLAGS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _DP_CEC_TUNNELING_IRQ_FLAGS@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	bl	_drm_dp_dpcd_readb
	tbnz	x0, #63, LBB0_12
; %bb.1:
	ldr	w8, [sp, #12]
Lloh2:
	adrp	x9, _DP_CEC_RX_MESSAGE_INFO_VALID@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DP_CEC_RX_MESSAGE_INFO_VALID@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_drm_dp_cec_received
	ldr	w8, [sp, #12]
LBB0_3:
Lloh5:
	adrp	x9, _DP_CEC_TX_MESSAGE_SENT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DP_CEC_TX_MESSAGE_SENT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
Lloh8:
	adrp	x8, _CEC_TX_STATUS_OK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CEC_TX_STATUS_OK@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	b	LBB0_10
LBB0_5:
Lloh11:
	adrp	x9, _DP_CEC_TX_LINE_ERROR@GOTPAGE
Lloh12:
	ldr	x9, [x9, _DP_CEC_TX_LINE_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
Lloh14:
	adrp	x8, _CEC_TX_STATUS_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CEC_TX_STATUS_ERROR@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh16:
	adrp	x9, _DP_CEC_TX_ADDRESS_NACK_ERROR@GOTPAGE
Lloh17:
	ldr	x9, [x9, _DP_CEC_TX_ADDRESS_NACK_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
Lloh19:
	adrp	x10, _DP_CEC_TX_DATA_NACK_ERROR@GOTPAGE
Lloh20:
	ldr	x10, [x10, _DP_CEC_TX_DATA_NACK_ERROR@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_11
; %bb.8:
Lloh22:
	adrp	x8, _CEC_TX_STATUS_NACK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CEC_TX_STATUS_NACK@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _CEC_TX_STATUS_MAX_RETRIES@GOTPAGE
Lloh25:
	ldr	x9, [x9, _CEC_TX_STATUS_MAX_RETRIES@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w1, w9, w8
LBB0_10:
	mov	x0, x20
	bl	_cec_transmit_attempt_done
LBB0_11:
	ldr	w1, [x21]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_drm_dp_dpcd_writeb
LBB0_12:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_DP_CEC_TUNNELING_IRQ_FLAGS,4,2 ; @DP_CEC_TUNNELING_IRQ_FLAGS
	.comm	_DP_CEC_RX_MESSAGE_INFO_VALID,4,2 ; @DP_CEC_RX_MESSAGE_INFO_VALID
	.comm	_DP_CEC_TX_MESSAGE_SENT,4,2     ; @DP_CEC_TX_MESSAGE_SENT
	.comm	_CEC_TX_STATUS_OK,4,2           ; @CEC_TX_STATUS_OK
	.comm	_DP_CEC_TX_LINE_ERROR,4,2       ; @DP_CEC_TX_LINE_ERROR
	.comm	_CEC_TX_STATUS_ERROR,4,2        ; @CEC_TX_STATUS_ERROR
	.comm	_CEC_TX_STATUS_MAX_RETRIES,4,2  ; @CEC_TX_STATUS_MAX_RETRIES
	.comm	_DP_CEC_TX_ADDRESS_NACK_ERROR,4,2 ; @DP_CEC_TX_ADDRESS_NACK_ERROR
	.comm	_DP_CEC_TX_DATA_NACK_ERROR,4,2  ; @DP_CEC_TX_DATA_NACK_ERROR
	.comm	_CEC_TX_STATUS_NACK,4,2         ; @CEC_TX_STATUS_NACK
	.no_dead_strip	_drm_dp_cec_handle_irq
.subsections_via_symbols
