	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdmi_cec_adap_transmit
_hdmi_cec_adap_transmit:                ## @hdmi_cec_adap_transmit
	.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	%rcx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r12
	callq	_cec_get_drvdata
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_hdmi_cec_clear_tx_fifo
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	(%r14), %edi
	movq	_HDMI_CEC_INT_STATUS_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_HDMI_CEC_TX_FIFO_INT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_hdmi_write_reg
	movl	(%r14), %edi
	movq	_HDMI_CEC_INT_STATUS_1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_HDMI_CEC_RETRANSMIT_CNT_INT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_hdmi_write_reg
	movl	(%r14), %edi
	movq	_HDMI_CEC_DBG_3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	decq	%r15
	movq	%r15, %rdx
	movl	$6, %ecx
	movl	$4, %r8d
	callq	_REG_FLD_MOD
	movl	(%r14), %r15d
	movq	_HDMI_CEC_TX_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%r13, %rdi
	callq	_cec_msg_initiator
	movl	%r15d, %edi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_hdmi_write_reg
	movq	%r13, %rdi
	callq	_cec_msg_destination
	movl	%eax, %edx
	orl	$128, %edx
	cmpl	$1, (%r13)
	cmovnel	%eax, %edx
	movl	(%r14), %edi
	movq	_HDMI_CEC_TX_DEST@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_hdmi_write_reg
	xorl	%ebx, %ebx
	cmpl	$1, (%r13)
	je	LBB0_9
## %bb.3:
	movl	(%r14), %edi
	movq	_HDMI_CEC_TX_COMMAND@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	8(%r13), %rax
	movl	4(%rax), %edx
	callq	_hdmi_write_reg
	movl	(%r13), %edx
	cmpl	$3, %edx
	jl	LBB0_4
## %bb.5:
	xorl	%ebx, %ebx
	movq	_HDMI_CEC_TX_OPERAND@GOTPCREL(%rip), %r12
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movq	(%r12), %rsi
	addq	%rbx, %rsi
	movq	8(%r13), %rax
	movl	8(%rax,%rbx), %edx
	callq	_hdmi_write_reg
	incq	%r15
	movslq	(%r13), %rdx
	addq	$-2, %rdx
	addq	$4, %rbx
	cmpq	%rdx, %r15
	jl	LBB0_6
## %bb.7:
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_1:
	movl	(%r12), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_4:
	addl	$-2, %edx
LBB0_8:
	movl	(%r14), %edi
	movq	_HDMI_CEC_TRANSMIT_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	orl	$16, %edx
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_hdmi_write_reg
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cec-%s: could not clear TX FIFO for transmit\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_HDMI_CEC_INT_STATUS_0,8,3      ## @HDMI_CEC_INT_STATUS_0
	.comm	_HDMI_CEC_TX_FIFO_INT_MASK,4,2  ## @HDMI_CEC_TX_FIFO_INT_MASK
	.comm	_HDMI_CEC_INT_STATUS_1,8,3      ## @HDMI_CEC_INT_STATUS_1
	.comm	_HDMI_CEC_RETRANSMIT_CNT_INT_MASK,4,2 ## @HDMI_CEC_RETRANSMIT_CNT_INT_MASK
	.comm	_HDMI_CEC_DBG_3,4,2             ## @HDMI_CEC_DBG_3
	.comm	_HDMI_CEC_TX_INIT,8,3           ## @HDMI_CEC_TX_INIT
	.comm	_HDMI_CEC_TX_DEST,8,3           ## @HDMI_CEC_TX_DEST
	.comm	_HDMI_CEC_TX_COMMAND,8,3        ## @HDMI_CEC_TX_COMMAND
	.comm	_HDMI_CEC_TX_OPERAND,8,3        ## @HDMI_CEC_TX_OPERAND
	.comm	_HDMI_CEC_TRANSMIT_DATA,8,3     ## @HDMI_CEC_TRANSMIT_DATA
	.no_dead_strip	_hdmi_cec_adap_transmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdmi_cec_adap_transmit
_hdmi_cec_adap_transmit:                ; @hdmi_cec_adap_transmit
	.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	x20, x3
	mov	x21, x1
	mov	x22, x0
	bl	_cec_get_drvdata
	mov	x19, x0
	mov	x0, x22
	bl	_hdmi_cec_clear_tx_fifo
	cbz	w0, LBB0_5
; %bb.1:
	ldr	w0, [x19]
Lloh0:
	adrp	x8, _HDMI_CEC_INT_STATUS_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDMI_CEC_INT_STATUS_0@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x8]
Lloh3:
	adrp	x8, _HDMI_CEC_TX_FIFO_INT_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HDMI_CEC_TX_FIFO_INT_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_hdmi_write_reg
	ldr	w0, [x19]
Lloh6:
	adrp	x8, _HDMI_CEC_INT_STATUS_1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HDMI_CEC_INT_STATUS_1@GOTPAGEOFF]
Lloh8:
	ldr	x1, [x8]
Lloh9:
	adrp	x8, _HDMI_CEC_RETRANSMIT_CNT_INT_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HDMI_CEC_RETRANSMIT_CNT_INT_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	bl	_hdmi_write_reg
	ldr	w0, [x19]
Lloh12:
	adrp	x8, _HDMI_CEC_DBG_3@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HDMI_CEC_DBG_3@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	sub	x2, x21, #1
	mov	w3, #6
	mov	w4, #4
	bl	_REG_FLD_MOD
	ldr	w21, [x19]
Lloh15:
	adrp	x8, _HDMI_CEC_TX_INIT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HDMI_CEC_TX_INIT@GOTPAGEOFF]
Lloh17:
	ldr	x22, [x8]
	mov	x0, x20
	bl	_cec_msg_initiator
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_hdmi_write_reg
	mov	x0, x20
	bl	_cec_msg_destination
	ldr	w8, [x20]
	orr	w9, w0, #0x80
	cmp	w8, #1
	csel	w2, w9, w0, eq
	ldr	w0, [x19]
Lloh18:
	adrp	x8, _HDMI_CEC_TX_DEST@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HDMI_CEC_TX_DEST@GOTPAGEOFF]
Lloh20:
	ldr	x1, [x8]
	bl	_hdmi_write_reg
	ldr	w8, [x20]
	cmp	w8, #1
	b.eq	LBB0_8
; %bb.2:
	ldr	w0, [x19]
Lloh21:
	adrp	x8, _HDMI_CEC_TX_COMMAND@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HDMI_CEC_TX_COMMAND@GOTPAGEOFF]
Lloh23:
	ldr	x1, [x8]
	ldr	x8, [x20, #8]
	ldr	w2, [x8, #4]
	bl	_hdmi_write_reg
	ldr	w8, [x20]
	cmp	w8, #3
	b.lt	LBB0_6
; %bb.3:
	mov	x21, #0
	mov	w22, #8
Lloh24:
	adrp	x23, _HDMI_CEC_TX_OPERAND@GOTPAGE
Lloh25:
	ldr	x23, [x23, _HDMI_CEC_TX_OPERAND@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	ldr	x8, [x23]
	add	x8, x22, x8
	sub	x1, x8, #8
	ldr	x8, [x20, #8]
	ldr	w2, [x8, x22]
	bl	_hdmi_write_reg
	add	x21, x21, #1
	ldrsw	x8, [x20]
	sub	x8, x8, #2
	add	x22, x22, #4
	cmp	x21, x8
	b.lt	LBB0_4
	b	LBB0_7
LBB0_5:
	ldr	w1, [x22]
Lloh26:
	adrp	x0, l_.str@PAGE
Lloh27:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh28:
	adrp	x8, _EIO@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_6:
	sub	w8, w8, #2
LBB0_7:
	ldr	w0, [x19]
Lloh31:
	adrp	x9, _HDMI_CEC_TRANSMIT_DATA@GOTPAGE
Lloh32:
	ldr	x9, [x9, _HDMI_CEC_TRANSMIT_DATA@GOTPAGEOFF]
Lloh33:
	ldr	x1, [x9]
	orr	w2, w8, #0x10
	bl	_hdmi_write_reg
LBB0_8:
	mov	w0, #0
LBB0_9:
	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 AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cec-%s: could not clear TX FIFO for transmit\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_HDMI_CEC_INT_STATUS_0,8,3      ; @HDMI_CEC_INT_STATUS_0
	.comm	_HDMI_CEC_TX_FIFO_INT_MASK,4,2  ; @HDMI_CEC_TX_FIFO_INT_MASK
	.comm	_HDMI_CEC_INT_STATUS_1,8,3      ; @HDMI_CEC_INT_STATUS_1
	.comm	_HDMI_CEC_RETRANSMIT_CNT_INT_MASK,4,2 ; @HDMI_CEC_RETRANSMIT_CNT_INT_MASK
	.comm	_HDMI_CEC_DBG_3,4,2             ; @HDMI_CEC_DBG_3
	.comm	_HDMI_CEC_TX_INIT,8,3           ; @HDMI_CEC_TX_INIT
	.comm	_HDMI_CEC_TX_DEST,8,3           ; @HDMI_CEC_TX_DEST
	.comm	_HDMI_CEC_TX_COMMAND,8,3        ; @HDMI_CEC_TX_COMMAND
	.comm	_HDMI_CEC_TX_OPERAND,8,3        ; @HDMI_CEC_TX_OPERAND
	.comm	_HDMI_CEC_TRANSMIT_DATA,8,3     ; @HDMI_CEC_TRANSMIT_DATA
	.no_dead_strip	_hdmi_cec_adap_transmit
.subsections_via_symbols
