	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_hdmi_cec_hardirq
_dw_hdmi_cec_hardirq:                   ## @dw_hdmi_cec_hardirq
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rdi
	callq	_cec_get_drvdata
	movq	%rax, %r12
	movq	_HDMI_IH_CEC_STAT0@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movq	%rax, %rdi
	callq	_dw_hdmi_read
	movq	%rax, %r14
	testl	%r14d, %r14d
	je	LBB0_1
## %bb.2:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	(%rbx), %rdx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_dw_hdmi_write
	movq	_CEC_STAT_ERROR_INIT@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_CEC_TX_STATUS_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_4:
	movq	_CEC_STAT_DONE@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_CEC_TX_STATUS_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_CEC_STAT_NACK@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_9
## %bb.7:
	movq	_CEC_TX_STATUS_NACK@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movl	$1, (%r12)
	movq	_IRQ_WAKE_THREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_9:
	movq	_CEC_STAT_EOM@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_15
## %bb.10:
	movq	_HDMI_CEC_RX_CNT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdi
	callq	_dw_hdmi_read
	cmpl	$9, %eax
	movl	$8, %r14d
	cmovbl	%eax, %r14d
	testl	%r14d, %r14d
	je	LBB0_13
## %bb.11:
	movl	%r14d, %r15d
	xorl	%ebx, %ebx
	movq	_HDMI_CEC_RX_DATA0@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rsi
	addq	%rbx, %rsi
	movq	%r12, %rdi
	callq	_dw_hdmi_read
	movq	16(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_12
LBB0_13:
	movq	_HDMI_CEC_LOCK@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_dw_hdmi_write
	movl	%r14d, 8(%r12)
	xorl	%eax, %eax
	callq	_smp_wmb
	movl	$1, 4(%r12)
	movq	_IRQ_WAKE_THREAD@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %r15d
LBB0_15:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_IH_CEC_STAT0,8,3          ## @HDMI_IH_CEC_STAT0
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_CEC_STAT_ERROR_INIT,4,2        ## @CEC_STAT_ERROR_INIT
	.comm	_CEC_TX_STATUS_ERROR,4,2        ## @CEC_TX_STATUS_ERROR
	.comm	_IRQ_WAKE_THREAD,4,2            ## @IRQ_WAKE_THREAD
	.comm	_CEC_STAT_DONE,4,2              ## @CEC_STAT_DONE
	.comm	_CEC_TX_STATUS_OK,4,2           ## @CEC_TX_STATUS_OK
	.comm	_CEC_STAT_NACK,4,2              ## @CEC_STAT_NACK
	.comm	_CEC_TX_STATUS_NACK,4,2         ## @CEC_TX_STATUS_NACK
	.comm	_CEC_STAT_EOM,4,2               ## @CEC_STAT_EOM
	.comm	_HDMI_CEC_RX_CNT,8,3            ## @HDMI_CEC_RX_CNT
	.comm	_HDMI_CEC_RX_DATA0,8,3          ## @HDMI_CEC_RX_DATA0
	.comm	_HDMI_CEC_LOCK,8,3              ## @HDMI_CEC_LOCK
	.no_dead_strip	_dw_hdmi_cec_hardirq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dw_hdmi_cec_hardirq
_dw_hdmi_cec_hardirq:                   ; @dw_hdmi_cec_hardirq
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x0, x1
	bl	_cec_get_drvdata
	mov	x19, x0
Lloh0:
	adrp	x22, _HDMI_IH_CEC_STAT0@GOTPAGE
Lloh1:
	ldr	x22, [x22, _HDMI_IH_CEC_STAT0@GOTPAGEOFF]
	ldr	x1, [x22]
	bl	_dw_hdmi_read
	mov	x20, x0
	cbz	w20, LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh4:
	ldr	w21, [x8]
	ldr	x2, [x22]
	mov	x0, x19
	mov	x1, x20
	bl	_dw_hdmi_write
Lloh5:
	adrp	x8, _CEC_STAT_ERROR_INIT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CEC_STAT_ERROR_INIT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x22, _IRQ_WAKE_THREAD@GOTPAGE
Lloh9:
	ldr	x22, [x22, _IRQ_WAKE_THREAD@GOTPAGEOFF]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.2:
Lloh10:
	adrp	x8, _CEC_TX_STATUS_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CEC_TX_STATUS_ERROR@GOTPAGEOFF]
	b	LBB0_8
LBB0_3:
Lloh12:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
Lloh14:
	ldr	w21, [x8]
	b	LBB0_14
LBB0_4:
Lloh15:
	adrp	x8, _CEC_STAT_DONE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CEC_STAT_DONE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.5:
Lloh18:
	adrp	x8, _CEC_TX_STATUS_OK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CEC_TX_STATUS_OK@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh20:
	adrp	x8, _CEC_STAT_NACK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CEC_STAT_NACK@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_9
; %bb.7:
Lloh23:
	adrp	x8, _CEC_TX_STATUS_NACK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CEC_TX_STATUS_NACK@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	mov	w8, #1
	str	w8, [x19]
	ldr	w21, [x22]
LBB0_9:
Lloh25:
	adrp	x8, _CEC_STAT_EOM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CEC_STAT_EOM@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_14
; %bb.10:
Lloh28:
	adrp	x8, _HDMI_CEC_RX_CNT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _HDMI_CEC_RX_CNT@GOTPAGEOFF]
Lloh30:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_dw_hdmi_read
	and	x8, x0, #0xffffffff
	cmp	x8, #8
	mov	w8, #8
	csel	w20, w8, w0, hi
	cbz	w20, LBB0_13
; %bb.11:
	mov	x21, #0
Lloh31:
	adrp	x23, _HDMI_CEC_RX_DATA0@GOTPAGE
Lloh32:
	ldr	x23, [x23, _HDMI_CEC_RX_DATA0@GOTPAGEOFF]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	add	x1, x21, x8
	mov	x0, x19
	bl	_dw_hdmi_read
	ldr	x8, [x19, #16]
	str	x0, [x8, x21, lsl #3]
	add	x21, x21, #1
	cmp	x20, x21
	b.ne	LBB0_12
LBB0_13:
Lloh33:
	adrp	x8, _HDMI_CEC_LOCK@GOTPAGE
Lloh34:
	ldr	x8, [x8, _HDMI_CEC_LOCK@GOTPAGEOFF]
Lloh35:
	ldr	x2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_dw_hdmi_write
	str	w20, [x19, #8]
	bl	_smp_wmb
	mov	w8, #1
	str	w8, [x19, #4]
	ldr	w21, [x22]
LBB0_14:
	mov	x0, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_IH_CEC_STAT0,8,3          ; @HDMI_IH_CEC_STAT0
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_CEC_STAT_ERROR_INIT,4,2        ; @CEC_STAT_ERROR_INIT
	.comm	_CEC_TX_STATUS_ERROR,4,2        ; @CEC_TX_STATUS_ERROR
	.comm	_IRQ_WAKE_THREAD,4,2            ; @IRQ_WAKE_THREAD
	.comm	_CEC_STAT_DONE,4,2              ; @CEC_STAT_DONE
	.comm	_CEC_TX_STATUS_OK,4,2           ; @CEC_TX_STATUS_OK
	.comm	_CEC_STAT_NACK,4,2              ; @CEC_STAT_NACK
	.comm	_CEC_TX_STATUS_NACK,4,2         ; @CEC_TX_STATUS_NACK
	.comm	_CEC_STAT_EOM,4,2               ; @CEC_STAT_EOM
	.comm	_HDMI_CEC_RX_CNT,8,3            ; @HDMI_CEC_RX_CNT
	.comm	_HDMI_CEC_RX_DATA0,8,3          ; @HDMI_CEC_RX_DATA0
	.comm	_HDMI_CEC_LOCK,8,3              ; @HDMI_CEC_LOCK
	.no_dead_strip	_dw_hdmi_cec_hardirq
.subsections_via_symbols
