	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdmi_cec_adap_enable
_hdmi_cec_adap_enable:                  ## @hdmi_cec_adap_enable
	.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
	movl	%esi, %ebx
	movq	%rdi, %r12
	callq	_cec_get_drvdata
	movq	%rax, %r15
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	callq	_hdmi4_core_enable
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.3:
	movq	(%r15), %rax
	movl	(%rax), %edi
	movq	_HDMI_WP_CLK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	xorl	%r14d, %r14d
	movl	$24, %edx
	movl	$5, %ecx
	xorl	%r8d, %r8d
	callq	_REG_FLD_MOD
	movq	%r12, %rdi
	callq	_hdmi_cec_clear_tx_fifo
	testl	%eax, %eax
	je	LBB0_4
## %bb.7:
	movq	%r12, %rdi
	callq	_hdmi_cec_clear_rx_fifo
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movl	8(%r15), %r14d
	movq	_HDMI_CEC_INT_STATUS_1@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_hdmi_read_reg
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_hdmi_write_reg
	movl	8(%r15), %r14d
	movq	_HDMI_CEC_INT_STATUS_0@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_hdmi_read_reg
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_hdmi_write_reg
	movq	(%r15), %rdi
	movq	_HDMI_IRQ_CORE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_hdmi_wp_set_irqenable
	movl	8(%r15), %edi
	movq	_HDMI_CORE_SYS_INTR_UNMASK4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	movl	$3, %ecx
	movl	$3, %r8d
	callq	_REG_FLD_MOD
	movl	8(%r15), %edi
	movq	_HDMI_CEC_INT_ENABLE_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$34, %edx
	callq	_hdmi_write_reg
	movl	8(%r15), %edi
	movq	_HDMI_CEC_INT_ENABLE_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$2, %edx
	callq	_hdmi_write_reg
	movl	8(%r15), %edi
	movq	_HDMI_CEC_SETUP@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	$3, %edx
	callq	_hdmi_write_reg
	movl	$20, %edi
	callq	_msleep
	movl	8(%r15), %edi
	movl	(%r13), %esi
	movl	$4, %edx
	callq	_hdmi_write_reg
	movl	8(%r15), %edi
	movl	(%r13), %esi
	callq	_hdmi_read_reg
	movl	%eax, %ebx
	movl	%eax, %edi
	movl	$4, %esi
	movl	$4, %edx
	callq	_FLD_GET
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	%ebx, %edi
	xorl	%esi, %esi
	movl	$4, %edx
	movl	$4, %ecx
	callq	_FLD_MOD
	movl	8(%r15), %edi
	movl	(%r13), %esi
	movl	%eax, %edx
	callq	_hdmi_write_reg
	movl	8(%r15), %edi
	movl	(%r12), %esi
	callq	_hdmi_read_reg
	xorl	%edi, %edi
	movl	$5, %esi
	movl	$2, %edx
	xorl	%ecx, %ecx
	callq	_FLD_MOD
	movl	8(%r15), %edi
	movl	(%r12), %esi
	movl	%eax, %edx
	callq	_hdmi_write_reg
	jmp	LBB0_11
LBB0_1:
	movl	8(%r15), %edi
	movq	_HDMI_CEC_INT_ENABLE_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	callq	_hdmi_write_reg
	movl	8(%r15), %edi
	movq	_HDMI_CEC_INT_ENABLE_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_hdmi_write_reg
	movl	8(%r15), %edi
	movq	_HDMI_CORE_SYS_INTR_UNMASK4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	movl	$3, %ecx
	movl	$3, %r8d
	callq	_REG_FLD_MOD
	movq	(%r15), %rdi
	movq	_HDMI_IRQ_CORE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_hdmi_wp_clear_irqenable
	movq	(%r15), %rdi
	movl	(%rbx), %esi
	callq	_hdmi_wp_set_irqstatus
	movq	(%r15), %rax
	movl	(%rax), %edi
	movq	_HDMI_WP_CLK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_5
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
LBB0_5:
	movl	(%r12), %esi
	callq	_pr_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movq	(%r15), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
LBB0_6:
	xorl	%edx, %edx
	movl	$5, %ecx
	xorl	%r8d, %r8d
	callq	_REG_FLD_MOD
	movq	%r15, %rdi
	callq	_hdmi4_core_disable
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_CEC_INT_ENABLE_0,4,2      ## @HDMI_CEC_INT_ENABLE_0
	.comm	_HDMI_CEC_INT_ENABLE_1,4,2      ## @HDMI_CEC_INT_ENABLE_1
	.comm	_HDMI_CORE_SYS_INTR_UNMASK4,4,2 ## @HDMI_CORE_SYS_INTR_UNMASK4
	.comm	_HDMI_IRQ_CORE,4,2              ## @HDMI_IRQ_CORE
	.comm	_HDMI_WP_CLK,4,2                ## @HDMI_WP_CLK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cec-%s: could not clear TX FIFO\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.1:                               ## @.str.1
	.asciz	"cec-%s: could not clear RX FIFO\n"

	.comm	_HDMI_CEC_INT_STATUS_1,4,2      ## @HDMI_CEC_INT_STATUS_1
	.comm	_HDMI_CEC_INT_STATUS_0,4,2      ## @HDMI_CEC_INT_STATUS_0
	.comm	_HDMI_CEC_SETUP,4,2             ## @HDMI_CEC_SETUP
	.no_dead_strip	_hdmi_cec_adap_enable
.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_enable
_hdmi_cec_adap_enable:                  ; @hdmi_cec_adap_enable
	.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
	mov	x21, x1
	mov	x20, x0
	bl	_cec_get_drvdata
	mov	x19, x0
	cbz	w21, LBB0_7
; %bb.1:
	mov	x0, x19
	bl	_hdmi4_core_enable
	mov	x21, x0
	cbnz	w0, LBB0_12
; %bb.2:
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh0:
	adrp	x22, _HDMI_WP_CLK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _HDMI_WP_CLK@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w2, #24
	mov	w3, #5
	mov	w4, #0
	bl	_REG_FLD_MOD
	mov	x0, x20
	bl	_hdmi_cec_clear_tx_fifo
	cbz	w0, LBB0_8
; %bb.3:
	mov	x0, x20
	bl	_hdmi_cec_clear_rx_fifo
	cbz	w0, LBB0_9
; %bb.4:
	ldr	w20, [x19, #8]
Lloh2:
	adrp	x22, _HDMI_CEC_INT_STATUS_1@GOTPAGE
Lloh3:
	ldr	x22, [x22, _HDMI_CEC_INT_STATUS_1@GOTPAGEOFF]
	ldr	w21, [x22]
	mov	x0, x20
	mov	x1, x21
	bl	_hdmi_read_reg
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_hdmi_write_reg
	ldr	w20, [x19, #8]
Lloh4:
	adrp	x8, _HDMI_CEC_INT_STATUS_0@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HDMI_CEC_INT_STATUS_0@GOTPAGEOFF]
Lloh6:
	ldr	w21, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_hdmi_read_reg
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_hdmi_write_reg
	ldr	x0, [x19]
Lloh7:
	adrp	x8, _HDMI_IRQ_CORE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HDMI_IRQ_CORE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_hdmi_wp_set_irqenable
	ldr	w0, [x19, #8]
Lloh10:
	adrp	x8, _HDMI_CORE_SYS_INTR_UNMASK4@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HDMI_CORE_SYS_INTR_UNMASK4@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	w2, #1
	mov	w3, #3
	mov	w4, #3
	bl	_REG_FLD_MOD
	ldr	w0, [x19, #8]
Lloh13:
	adrp	x8, _HDMI_CEC_INT_ENABLE_0@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HDMI_CEC_INT_ENABLE_0@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	w2, #34
	bl	_hdmi_write_reg
	ldr	w0, [x19, #8]
Lloh16:
	adrp	x8, _HDMI_CEC_INT_ENABLE_1@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HDMI_CEC_INT_ENABLE_1@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	w2, #2
	bl	_hdmi_write_reg
	ldr	w0, [x19, #8]
Lloh19:
	adrp	x21, _HDMI_CEC_SETUP@GOTPAGE
Lloh20:
	ldr	x21, [x21, _HDMI_CEC_SETUP@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w2, #3
	bl	_hdmi_write_reg
	mov	w0, #20
	bl	_msleep
	ldr	w0, [x19, #8]
	ldr	w1, [x21]
	mov	w2, #4
	bl	_hdmi_write_reg
	ldr	w0, [x19, #8]
	ldr	w1, [x21]
	bl	_hdmi_read_reg
	mov	x20, x0
	mov	w1, #4
	mov	w2, #4
	bl	_FLD_GET
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #4
	mov	w3, #4
	bl	_FLD_MOD
	mov	x2, x0
	ldr	w0, [x19, #8]
	ldr	w1, [x21]
	bl	_hdmi_write_reg
	ldr	w0, [x19, #8]
	ldr	w1, [x22]
	bl	_hdmi_read_reg
	mov	w0, #0
	mov	w1, #5
	mov	w2, #2
	mov	w3, #0
	bl	_FLD_MOD
	mov	x2, x0
	ldr	w0, [x19, #8]
	ldr	w1, [x22]
	bl	_hdmi_write_reg
LBB0_6:
	mov	w21, #0
	b	LBB0_12
LBB0_7:
	ldr	w0, [x19, #8]
Lloh21:
	adrp	x8, _HDMI_CEC_INT_ENABLE_0@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HDMI_CEC_INT_ENABLE_0@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_hdmi_write_reg
	ldr	w0, [x19, #8]
Lloh24:
	adrp	x8, _HDMI_CEC_INT_ENABLE_1@GOTPAGE
Lloh25:
	ldr	x8, [x8, _HDMI_CEC_INT_ENABLE_1@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_hdmi_write_reg
	ldr	w0, [x19, #8]
Lloh27:
	adrp	x8, _HDMI_CORE_SYS_INTR_UNMASK4@GOTPAGE
Lloh28:
	ldr	x8, [x8, _HDMI_CORE_SYS_INTR_UNMASK4@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #3
	mov	w4, #3
	bl	_REG_FLD_MOD
	ldr	x0, [x19]
Lloh30:
	adrp	x20, _HDMI_IRQ_CORE@GOTPAGE
Lloh31:
	ldr	x20, [x20, _HDMI_IRQ_CORE@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_hdmi_wp_clear_irqenable
	ldr	x0, [x19]
	ldr	w1, [x20]
	bl	_hdmi_wp_set_irqstatus
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh32:
	adrp	x8, _HDMI_WP_CLK@GOTPAGE
Lloh33:
	ldr	x8, [x8, _HDMI_WP_CLK@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	b	LBB0_11
LBB0_8:
Lloh35:
	adrp	x0, l_.str@PAGE
Lloh36:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh37:
	adrp	x0, l_.str.1@PAGE
Lloh38:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_10:
	ldr	w1, [x20]
	bl	_pr_err
Lloh39:
	adrp	x8, _EIO@GOTPAGE
Lloh40:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	neg	w21, w8
	ldr	x8, [x19]
	ldr	w0, [x8]
	ldr	w1, [x22]
LBB0_11:
	mov	w2, #0
	mov	w3, #5
	mov	w4, #0
	bl	_REG_FLD_MOD
	mov	x0, x19
	bl	_hdmi4_core_disable
LBB0_12:
	mov	x0, x21
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_CEC_INT_ENABLE_0,4,2      ; @HDMI_CEC_INT_ENABLE_0
	.comm	_HDMI_CEC_INT_ENABLE_1,4,2      ; @HDMI_CEC_INT_ENABLE_1
	.comm	_HDMI_CORE_SYS_INTR_UNMASK4,4,2 ; @HDMI_CORE_SYS_INTR_UNMASK4
	.comm	_HDMI_IRQ_CORE,4,2              ; @HDMI_IRQ_CORE
	.comm	_HDMI_WP_CLK,4,2                ; @HDMI_WP_CLK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cec-%s: could not clear TX FIFO\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.1:                               ; @.str.1
	.asciz	"cec-%s: could not clear RX FIFO\n"

	.comm	_HDMI_CEC_INT_STATUS_1,4,2      ; @HDMI_CEC_INT_STATUS_1
	.comm	_HDMI_CEC_INT_STATUS_0,4,2      ; @HDMI_CEC_INT_STATUS_0
	.comm	_HDMI_CEC_SETUP,4,2             ; @HDMI_CEC_SETUP
	.no_dead_strip	_hdmi_cec_adap_enable
.subsections_via_symbols
