	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdmi_cec_clear_tx_fifo
_hdmi_cec_clear_tx_fifo:                ## @hdmi_cec_clear_tx_fifo
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_cec_get_drvdata
	movq	%rax, %r15
	movq	_HDMI_CORE_CEC_RETRY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r15), %edi
	movq	_HDMI_CEC_DBG_3@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	$1, %edx
	movl	$7, %ecx
	movl	$7, %r8d
	callq	_REG_FLD_MOD
	xorl	%r14d, %r14d
	testl	%ebx, %ebx
	je	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movl	(%r12), %esi
	callq	_hdmi_read_reg
	movl	%eax, %edi
	movl	$7, %esi
	movl	$7, %edx
	callq	_FLD_GET
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	decl	%ebx
	jne	LBB0_2
	jmp	LBB0_4
LBB0_3:
	movl	$1, %r14d
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_CORE_CEC_RETRY,4,2        ## @HDMI_CORE_CEC_RETRY
	.comm	_HDMI_CEC_DBG_3,4,2             ## @HDMI_CEC_DBG_3
	.no_dead_strip	_hdmi_cec_clear_tx_fifo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdmi_cec_clear_tx_fifo
_hdmi_cec_clear_tx_fifo:                ; @hdmi_cec_clear_tx_fifo
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	bl	_cec_get_drvdata
	mov	x19, x0
Lloh0:
	adrp	x8, _HDMI_CORE_CEC_RETRY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDMI_CORE_CEC_RETRY@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldr	w0, [x0]
Lloh3:
	adrp	x21, _HDMI_CEC_DBG_3@GOTPAGE
Lloh4:
	ldr	x21, [x21, _HDMI_CEC_DBG_3@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w2, #1
	mov	w3, #7
	mov	w4, #7
	bl	_REG_FLD_MOD
	cbz	w20, LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	ldr	w1, [x21]
	bl	_hdmi_read_reg
	mov	w1, #7
	mov	w2, #7
	bl	_FLD_GET
	cbz	x0, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	subs	w20, w20, #1
	b.ne	LBB0_1
LBB0_3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	mov	w0, #1
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_CORE_CEC_RETRY,4,2        ; @HDMI_CORE_CEC_RETRY
	.comm	_HDMI_CEC_DBG_3,4,2             ; @HDMI_CEC_DBG_3
	.no_dead_strip	_hdmi_cec_clear_tx_fifo
.subsections_via_symbols
