	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_cec_clear_htplg_irq
_mtk_cec_clear_htplg_irq:               ## @mtk_cec_clear_htplg_irq
	.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	%rdi, %rbx
	movq	_TR_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CLEAR_CEC_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_mtk_cec_set_bits
	movq	_NORMAL_INT_CTRL@GOTPCREL(%rip), %r13
	movq	_HDMI_HTPLG_INT_CLR@GOTPCREL(%rip), %r12
	movq	_HDMI_PORD_INT_CLR@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	orl	(%r12), %edx
	movl	(%r13), %esi
	movq	_HDMI_FULL_INT_CLR@GOTPCREL(%rip), %r15
	orl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_mtk_cec_set_bits
	movq	_RX_GEN_WD@GOTPCREL(%rip), %rcx
	movq	_HDMI_PORD_INT_32K_CLR@GOTPCREL(%rip), %rax
	movq	_RX_INT_32K_CLR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	movl	(%rcx), %esi
	movq	_HDMI_HTPLG_INT_32K_CLR@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_mtk_cec_set_bits
	movl	$5, %edi
	movl	$10, %esi
	callq	_usleep_range
	movl	(%r13), %esi
	movl	(%r14), %edx
	orl	(%r12), %edx
	orl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_mtk_cec_clear_bits
	movq	_TR_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CLEAR_CEC_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_mtk_cec_clear_bits
	movq	_RX_GEN_WD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RX_INT_32K_CLR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_HDMI_PORD_INT_32K_CLR@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_HDMI_HTPLG_INT_32K_CLR@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mtk_cec_clear_bits             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TR_CONFIG,4,2                  ## @TR_CONFIG
	.comm	_CLEAR_CEC_IRQ,4,2              ## @CLEAR_CEC_IRQ
	.comm	_NORMAL_INT_CTRL,4,2            ## @NORMAL_INT_CTRL
	.comm	_HDMI_HTPLG_INT_CLR,4,2         ## @HDMI_HTPLG_INT_CLR
	.comm	_HDMI_PORD_INT_CLR,4,2          ## @HDMI_PORD_INT_CLR
	.comm	_HDMI_FULL_INT_CLR,4,2          ## @HDMI_FULL_INT_CLR
	.comm	_RX_GEN_WD,4,2                  ## @RX_GEN_WD
	.comm	_HDMI_PORD_INT_32K_CLR,4,2      ## @HDMI_PORD_INT_32K_CLR
	.comm	_RX_INT_32K_CLR,4,2             ## @RX_INT_32K_CLR
	.comm	_HDMI_HTPLG_INT_32K_CLR,4,2     ## @HDMI_HTPLG_INT_32K_CLR
	.no_dead_strip	_mtk_cec_clear_htplg_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_cec_clear_htplg_irq
_mtk_cec_clear_htplg_irq:               ; @mtk_cec_clear_htplg_irq
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, _TR_CONFIG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TR_CONFIG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x21, _CLEAR_CEC_IRQ@GOTPAGE
Lloh4:
	ldr	x21, [x21, _CLEAR_CEC_IRQ@GOTPAGEOFF]
	ldr	w2, [x21]
	bl	_mtk_cec_set_bits
Lloh5:
	adrp	x22, _NORMAL_INT_CTRL@GOTPAGE
Lloh6:
	ldr	x22, [x22, _NORMAL_INT_CTRL@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh7:
	adrp	x23, _HDMI_HTPLG_INT_CLR@GOTPAGE
Lloh8:
	ldr	x23, [x23, _HDMI_HTPLG_INT_CLR@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh9:
	adrp	x24, _HDMI_PORD_INT_CLR@GOTPAGE
Lloh10:
	ldr	x24, [x24, _HDMI_PORD_INT_CLR@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w8, w9, w8
Lloh11:
	adrp	x25, _HDMI_FULL_INT_CLR@GOTPAGE
Lloh12:
	ldr	x25, [x25, _HDMI_FULL_INT_CLR@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_mtk_cec_set_bits
Lloh13:
	adrp	x26, _RX_GEN_WD@GOTPAGE
Lloh14:
	ldr	x26, [x26, _RX_GEN_WD@GOTPAGEOFF]
	ldr	w1, [x26]
Lloh15:
	adrp	x27, _HDMI_PORD_INT_32K_CLR@GOTPAGE
Lloh16:
	ldr	x27, [x27, _HDMI_PORD_INT_32K_CLR@GOTPAGEOFF]
	ldr	w8, [x27]
Lloh17:
	adrp	x28, _RX_INT_32K_CLR@GOTPAGE
Lloh18:
	ldr	x28, [x28, _RX_INT_32K_CLR@GOTPAGEOFF]
	ldr	w9, [x28]
	orr	w8, w9, w8
Lloh19:
	adrp	x20, _HDMI_HTPLG_INT_32K_CLR@GOTPAGE
Lloh20:
	ldr	x20, [x20, _HDMI_HTPLG_INT_32K_CLR@GOTPAGEOFF]
	ldr	w9, [x20]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_mtk_cec_set_bits
	mov	w0, #5
	mov	w1, #10
	bl	_usleep_range
	ldr	w1, [x22]
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w8, w9, w8
	ldr	w9, [x25]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_mtk_cec_clear_bits
Lloh21:
	adrp	x8, _TR_CONFIG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TR_CONFIG@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_mtk_cec_clear_bits
	ldr	w1, [x26]
	ldr	w8, [x27]
	ldr	w9, [x28]
	orr	w8, w9, w8
	ldr	w9, [x20]
	orr	w2, w8, w9
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_mtk_cec_clear_bits
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TR_CONFIG,4,2                  ; @TR_CONFIG
	.comm	_CLEAR_CEC_IRQ,4,2              ; @CLEAR_CEC_IRQ
	.comm	_NORMAL_INT_CTRL,4,2            ; @NORMAL_INT_CTRL
	.comm	_HDMI_HTPLG_INT_CLR,4,2         ; @HDMI_HTPLG_INT_CLR
	.comm	_HDMI_PORD_INT_CLR,4,2          ; @HDMI_PORD_INT_CLR
	.comm	_HDMI_FULL_INT_CLR,4,2          ; @HDMI_FULL_INT_CLR
	.comm	_RX_GEN_WD,4,2                  ; @RX_GEN_WD
	.comm	_HDMI_PORD_INT_32K_CLR,4,2      ; @HDMI_PORD_INT_32K_CLR
	.comm	_RX_INT_32K_CLR,4,2             ; @RX_INT_32K_CLR
	.comm	_HDMI_HTPLG_INT_32K_CLR,4,2     ; @HDMI_HTPLG_INT_32K_CLR
	.no_dead_strip	_mtk_cec_clear_htplg_irq
.subsections_via_symbols
