	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function meson_ao_cec_irq_tx
_meson_ao_cec_irq_tx:                   ## @meson_ao_cec_irq_tx
	.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	%rdi, %rbx
	movl	$0, -20(%rbp)
	movq	_CEC_TX_MSG_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdx
	leaq	-20(%rbp), %rcx
	callq	_meson_ao_cec_read
	cmpl	$0, -20(%rbp)
	jne	LBB0_6
## %bb.1:
	movl	-24(%rbp), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_2
## %bb.3:
	cltq
	leaq	l_switch.table.meson_ao_cec_irq_tx(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_CEC_TX_STATUS_NACK@GOTPCREL(%rip), %rax
LBB0_4:
	movq	(%rax), %r14
	movq	_CEC_INTR_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CEC_INTR_CLR_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	callq	_writel_relaxed
	movq	_CEC_TX_MSG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TX_NO_OP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-20(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_meson_ao_cec_write
	cmpl	$0, -20(%rbp)
	je	LBB0_5
LBB0_6:
	movl	(%rbx), %edi
	movq	_CEC_TX_STATUS_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
LBB0_7:
	callq	_cec_transmit_attempt_done
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movl	(%rbx), %edi
	movq	%r14, %rsi
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_CEC_TX_MSG_STATUS,4,2          ## @CEC_TX_MSG_STATUS
	.comm	_CEC_TX_STATUS_OK,8,3           ## @CEC_TX_STATUS_OK
	.comm	_CEC_TX_STATUS_ARB_LOST,8,3     ## @CEC_TX_STATUS_ARB_LOST
	.comm	_CEC_TX_STATUS_LOW_DRIVE,8,3    ## @CEC_TX_STATUS_LOW_DRIVE
	.comm	_CEC_TX_STATUS_NACK,8,3         ## @CEC_TX_STATUS_NACK
	.comm	_CEC_INTR_TX,4,2                ## @CEC_INTR_TX
	.comm	_CEC_INTR_CLR_REG,8,3           ## @CEC_INTR_CLR_REG
	.comm	_CEC_TX_MSG_CMD,4,2             ## @CEC_TX_MSG_CMD
	.comm	_TX_NO_OP,4,2                   ## @TX_NO_OP
	.comm	_CEC_TX_STATUS_ERROR,8,3        ## @CEC_TX_STATUS_ERROR
	.no_dead_strip	_meson_ao_cec_irq_tx
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.meson_ao_cec_irq_tx
l_switch.table.meson_ao_cec_irq_tx:
	.quad	_CEC_TX_STATUS_LOW_DRIVE
	.quad	_CEC_TX_STATUS_NACK
	.quad	_CEC_TX_STATUS_OK
	.quad	_CEC_TX_STATUS_ARB_LOST

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function meson_ao_cec_irq_tx
_meson_ao_cec_irq_tx:                   ; @meson_ao_cec_irq_tx
	.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, x0
	str	wzr, [sp, #8]
Lloh0:
	adrp	x8, _CEC_TX_MSG_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CEC_TX_MSG_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	add	x3, sp, #8
	bl	_meson_ao_cec_read
	ldr	w8, [sp, #8]
	cbnz	w8, LBB0_5
; %bb.1:
	ldr	w8, [sp, #12]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_3
; %bb.2:
Lloh3:
	adrp	x9, l_switch.table.meson_ao_cec_irq_tx@PAGE
Lloh4:
	add	x9, x9, l_switch.table.meson_ao_cec_irq_tx@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _CEC_TX_STATUS_NACK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CEC_TX_STATUS_NACK@GOTPAGEOFF]
LBB0_4:
	ldr	x20, [x8]
Lloh7:
	adrp	x8, _CEC_INTR_TX@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CEC_INTR_TX@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
Lloh10:
	adrp	x9, _CEC_INTR_CLR_REG@GOTPAGE
Lloh11:
	ldr	x9, [x9, _CEC_INTR_CLR_REG@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
Lloh13:
	adrp	x8, _CEC_TX_MSG_CMD@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CEC_TX_MSG_CMD@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _TX_NO_OP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TX_NO_OP@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x19
	bl	_meson_ao_cec_write
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_7
LBB0_5:
	ldr	w0, [x19]
Lloh19:
	adrp	x8, _CEC_TX_STATUS_ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CEC_TX_STATUS_ERROR@GOTPAGEOFF]
Lloh21:
	ldr	x1, [x8]
LBB0_6:
	bl	_cec_transmit_attempt_done
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_7:
	ldr	w0, [x19]
	mov	x1, x20
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_CEC_TX_MSG_STATUS,4,2          ; @CEC_TX_MSG_STATUS
	.comm	_CEC_TX_STATUS_OK,8,3           ; @CEC_TX_STATUS_OK
	.comm	_CEC_TX_STATUS_ARB_LOST,8,3     ; @CEC_TX_STATUS_ARB_LOST
	.comm	_CEC_TX_STATUS_LOW_DRIVE,8,3    ; @CEC_TX_STATUS_LOW_DRIVE
	.comm	_CEC_TX_STATUS_NACK,8,3         ; @CEC_TX_STATUS_NACK
	.comm	_CEC_INTR_TX,4,2                ; @CEC_INTR_TX
	.comm	_CEC_INTR_CLR_REG,8,3           ; @CEC_INTR_CLR_REG
	.comm	_CEC_TX_MSG_CMD,4,2             ; @CEC_TX_MSG_CMD
	.comm	_TX_NO_OP,4,2                   ; @TX_NO_OP
	.comm	_CEC_TX_STATUS_ERROR,8,3        ; @CEC_TX_STATUS_ERROR
	.no_dead_strip	_meson_ao_cec_irq_tx
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.meson_ao_cec_irq_tx
l_switch.table.meson_ao_cec_irq_tx:
	.quad	_CEC_TX_STATUS_LOW_DRIVE
	.quad	_CEC_TX_STATUS_NACK
	.quad	_CEC_TX_STATUS_OK
	.quad	_CEC_TX_STATUS_ARB_LOST

.subsections_via_symbols
