	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_hdmi_cec_transmit
_dw_hdmi_cec_transmit:                  ## @dw_hdmi_cec_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movl	%edx, %r15d
	callq	_cec_get_drvdata
	movq	%rax, %r12
	movq	_CEC_CTRL_RETRY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_CEC_CTRL_IMMED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CEC_CTRL_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	cmpl	$0, (%rbx)
	je	LBB0_1
## %bb.2:
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	xorl	%r13d, %r13d
	movq	_HDMI_CEC_TX_DATA0@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	movl	(%rax,%r13,4), %esi
	movq	(%r15), %rdx
	addq	%r13, %rdx
	movq	%r12, %rdi
	callq	_dw_hdmi_write
	incq	%r13
	movl	(%rbx), %esi
	cmpq	%rsi, %r13
	jb	LBB0_3
## %bb.4:
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	jmp	LBB0_5
LBB0_1:
	xorl	%esi, %esi
LBB0_5:
	cmpl	$129, %r15d
	cmovel	%edx, %r14d
	cmpl	$128, %r15d
	cmovel	%ecx, %r14d
	movq	_HDMI_CEC_TX_CNT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r12, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_dw_hdmi_write
	movq	_CEC_CTRL_START@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	_HDMI_CEC_CTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_dw_hdmi_write
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CEC_CTRL_RETRY,4,2             ## @CEC_CTRL_RETRY
	.comm	_CEC_CTRL_NORMAL,4,2            ## @CEC_CTRL_NORMAL
	.comm	_CEC_CTRL_IMMED,4,2             ## @CEC_CTRL_IMMED
	.comm	_HDMI_CEC_TX_DATA0,8,3          ## @HDMI_CEC_TX_DATA0
	.comm	_HDMI_CEC_TX_CNT,8,3            ## @HDMI_CEC_TX_CNT
	.comm	_CEC_CTRL_START,4,2             ## @CEC_CTRL_START
	.comm	_HDMI_CEC_CTRL,8,3              ## @HDMI_CEC_CTRL
	.no_dead_strip	_dw_hdmi_cec_transmit
.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_transmit
_dw_hdmi_cec_transmit:                  ; @dw_hdmi_cec_transmit
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x3
	mov	x20, x2
	bl	_cec_get_drvdata
	mov	x19, x0
Lloh0:
	adrp	x8, _CEC_CTRL_RETRY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CEC_CTRL_RETRY@GOTPAGEOFF]
Lloh2:
	adrp	x9, _CEC_CTRL_IMMED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CEC_CTRL_IMMED@GOTPAGEOFF]
Lloh4:
	ldr	w22, [x8]
Lloh5:
	ldr	w23, [x9]
Lloh6:
	adrp	x8, _CEC_CTRL_NORMAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CEC_CTRL_NORMAL@GOTPAGEOFF]
Lloh8:
	ldr	w24, [x8]
	ldr	w8, [x21]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x25, #0
Lloh9:
	adrp	x26, _HDMI_CEC_TX_DATA0@GOTPAGE
Lloh10:
	ldr	x26, [x26, _HDMI_CEC_TX_DATA0@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldr	w1, [x8, x25, lsl #2]
	ldr	x8, [x26]
	add	x2, x25, x8
	mov	x0, x19
	bl	_dw_hdmi_write
	add	x25, x25, #1
	ldr	w1, [x21]
	cmp	x25, x1
	b.lo	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w1, #0
LBB0_4:
	cmp	w20, #129
	csel	w8, w23, w24, eq
	cmp	w20, #128
	csel	w20, w22, w8, eq
Lloh11:
	adrp	x8, _HDMI_CEC_TX_CNT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HDMI_CEC_TX_CNT@GOTPAGEOFF]
Lloh13:
	ldr	x2, [x8]
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_dw_hdmi_write
Lloh14:
	adrp	x8, _CEC_CTRL_START@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CEC_CTRL_START@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	orr	w1, w8, w20
Lloh17:
	adrp	x8, _HDMI_CEC_CTRL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _HDMI_CEC_CTRL@GOTPAGEOFF]
Lloh19:
	ldr	x2, [x8]
	mov	x0, x19
	bl	_dw_hdmi_write
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_CEC_CTRL_RETRY,4,2             ; @CEC_CTRL_RETRY
	.comm	_CEC_CTRL_NORMAL,4,2            ; @CEC_CTRL_NORMAL
	.comm	_CEC_CTRL_IMMED,4,2             ; @CEC_CTRL_IMMED
	.comm	_HDMI_CEC_TX_DATA0,8,3          ; @HDMI_CEC_TX_DATA0
	.comm	_HDMI_CEC_TX_CNT,8,3            ; @HDMI_CEC_TX_CNT
	.comm	_CEC_CTRL_START,4,2             ; @CEC_CTRL_START
	.comm	_HDMI_CEC_CTRL,8,3              ; @HDMI_CEC_CTRL
	.no_dead_strip	_dw_hdmi_cec_transmit
.subsections_via_symbols
