	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_hdmi_cec_enable
_dw_hdmi_cec_enable:                    ## @dw_hdmi_cec_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	callq	_cec_get_drvdata
	movq	%rax, %r14
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.2:
	movq	_HDMI_CEC_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_dw_hdmi_write
	movq	_HDMI_IH_CEC_STAT0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$-1, %esi
	callq	_dw_hdmi_write
	movq	_HDMI_CEC_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_dw_hdmi_write
	movl	16(%r14), %edi
	movq	_CEC_LOG_ADDR_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dw_hdmi_cec_log_addr
	movq	8(%r14), %rax
	movl	(%r14), %edi
	callq	*(%rax)
	movq	_CEC_STAT_ERROR_INIT@GOTPCREL(%rip), %rax
	movq	_CEC_STAT_NACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_CEC_STAT_EOM@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_CEC_STAT_DONE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_HDMI_CEC_POLARITY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_dw_hdmi_write
	notl	%ebx
	movq	_HDMI_CEC_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_dw_hdmi_write
	movq	_HDMI_IH_MUTE_CEC_STAT0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_dw_hdmi_write
	jmp	LBB0_3
LBB0_1:
	movq	_HDMI_CEC_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$-1, %esi
	callq	_dw_hdmi_write
	movq	_HDMI_IH_MUTE_CEC_STAT0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$-1, %esi
	callq	_dw_hdmi_write
	movq	_HDMI_CEC_POLARITY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_dw_hdmi_write
	movq	8(%r14), %rax
	movl	(%r14), %edi
	callq	*8(%rax)
LBB0_3:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_CEC_MASK,4,2              ## @HDMI_CEC_MASK
	.comm	_HDMI_IH_MUTE_CEC_STAT0,4,2     ## @HDMI_IH_MUTE_CEC_STAT0
	.comm	_HDMI_CEC_POLARITY,4,2          ## @HDMI_CEC_POLARITY
	.comm	_HDMI_CEC_CTRL,4,2              ## @HDMI_CEC_CTRL
	.comm	_HDMI_IH_CEC_STAT0,4,2          ## @HDMI_IH_CEC_STAT0
	.comm	_HDMI_CEC_LOCK,4,2              ## @HDMI_CEC_LOCK
	.comm	_CEC_LOG_ADDR_INVALID,4,2       ## @CEC_LOG_ADDR_INVALID
	.comm	_CEC_STAT_ERROR_INIT,4,2        ## @CEC_STAT_ERROR_INIT
	.comm	_CEC_STAT_NACK,4,2              ## @CEC_STAT_NACK
	.comm	_CEC_STAT_EOM,4,2               ## @CEC_STAT_EOM
	.comm	_CEC_STAT_DONE,4,2              ## @CEC_STAT_DONE
	.no_dead_strip	_dw_hdmi_cec_enable
.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_enable
_dw_hdmi_cec_enable:                    ; @dw_hdmi_cec_enable
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	bl	_cec_get_drvdata
	mov	x19, x0
	cbz	w20, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _HDMI_CEC_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDMI_CEC_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_dw_hdmi_write
Lloh3:
	adrp	x8, _HDMI_IH_CEC_STAT0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HDMI_IH_CEC_STAT0@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #-1
	bl	_dw_hdmi_write
Lloh6:
	adrp	x8, _HDMI_CEC_LOCK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HDMI_CEC_LOCK@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_dw_hdmi_write
	ldr	w0, [x19, #16]
Lloh9:
	adrp	x8, _CEC_LOG_ADDR_INVALID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CEC_LOG_ADDR_INVALID@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_dw_hdmi_cec_log_addr
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w0, [x19]
	blr	x8
Lloh12:
	adrp	x8, _CEC_STAT_ERROR_INIT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CEC_STAT_ERROR_INIT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _CEC_STAT_NACK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CEC_STAT_NACK@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh18:
	adrp	x9, _CEC_STAT_EOM@GOTPAGE
Lloh19:
	ldr	x9, [x9, _CEC_STAT_EOM@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	adrp	x10, _CEC_STAT_DONE@GOTPAGE
Lloh22:
	ldr	x10, [x10, _CEC_STAT_DONE@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh23:
	ldr	w9, [x10]
	orr	w20, w8, w9
Lloh24:
	adrp	x8, _HDMI_CEC_POLARITY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _HDMI_CEC_POLARITY@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_dw_hdmi_write
	mvn	w20, w20
Lloh27:
	adrp	x8, _HDMI_CEC_MASK@GOTPAGE
Lloh28:
	ldr	x8, [x8, _HDMI_CEC_MASK@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_dw_hdmi_write
Lloh30:
	adrp	x8, _HDMI_IH_MUTE_CEC_STAT0@GOTPAGE
Lloh31:
	ldr	x8, [x8, _HDMI_IH_MUTE_CEC_STAT0@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_dw_hdmi_write
	b	LBB0_3
LBB0_2:
Lloh33:
	adrp	x8, _HDMI_CEC_MASK@GOTPAGE
Lloh34:
	ldr	x8, [x8, _HDMI_CEC_MASK@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #-1
	bl	_dw_hdmi_write
Lloh36:
	adrp	x8, _HDMI_IH_MUTE_CEC_STAT0@GOTPAGE
Lloh37:
	ldr	x8, [x8, _HDMI_IH_MUTE_CEC_STAT0@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #-1
	bl	_dw_hdmi_write
Lloh39:
	adrp	x8, _HDMI_CEC_POLARITY@GOTPAGE
Lloh40:
	ldr	x8, [x8, _HDMI_CEC_POLARITY@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_dw_hdmi_write
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	ldr	w0, [x19]
	blr	x8
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.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	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_CEC_MASK,4,2              ; @HDMI_CEC_MASK
	.comm	_HDMI_IH_MUTE_CEC_STAT0,4,2     ; @HDMI_IH_MUTE_CEC_STAT0
	.comm	_HDMI_CEC_POLARITY,4,2          ; @HDMI_CEC_POLARITY
	.comm	_HDMI_CEC_CTRL,4,2              ; @HDMI_CEC_CTRL
	.comm	_HDMI_IH_CEC_STAT0,4,2          ; @HDMI_IH_CEC_STAT0
	.comm	_HDMI_CEC_LOCK,4,2              ; @HDMI_CEC_LOCK
	.comm	_CEC_LOG_ADDR_INVALID,4,2       ; @CEC_LOG_ADDR_INVALID
	.comm	_CEC_STAT_ERROR_INIT,4,2        ; @CEC_STAT_ERROR_INIT
	.comm	_CEC_STAT_NACK,4,2              ; @CEC_STAT_NACK
	.comm	_CEC_STAT_EOM,4,2               ; @CEC_STAT_EOM
	.comm	_CEC_STAT_DONE,4,2              ; @CEC_STAT_DONE
	.no_dead_strip	_dw_hdmi_cec_enable
.subsections_via_symbols
