	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_hdmi_hw_config_sys
_mtk_hdmi_hw_config_sys:                ## @mtk_hdmi_hw_config_sys
	.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
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	movq	_HDMI_SYS_CFG20@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	addq	(%rbx), %rsi
	movq	_HDMI_OUT_FIFO_EN@GOTPCREL(%rip), %r15
	movq	_MHL_MODE_ON@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	orl	(%r15), %edx
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
	movl	$2000, %edi                     ## imm = 0x7D0
	movl	$4000, %esi                     ## imm = 0xFA0
	callq	_usleep_range
	movq	(%r14), %rsi
	addq	(%rbx), %rsi
	movl	8(%rbx), %edi
	movl	(%r15), %ecx
	movl	(%r12), %edx
	orl	%ecx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regmap_update_bits             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_SYS_CFG20,8,3             ## @HDMI_SYS_CFG20
	.comm	_HDMI_OUT_FIFO_EN,4,2           ## @HDMI_OUT_FIFO_EN
	.comm	_MHL_MODE_ON,4,2                ## @MHL_MODE_ON
	.no_dead_strip	_mtk_hdmi_hw_config_sys
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_hdmi_hw_config_sys
_mtk_hdmi_hw_config_sys:                ; @mtk_hdmi_hw_config_sys
	.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	x19, x0
	ldr	w0, [x0, #8]
	ldr	x8, [x19]
Lloh0:
	adrp	x20, _HDMI_SYS_CFG20@GOTPAGE
Lloh1:
	ldr	x20, [x20, _HDMI_SYS_CFG20@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh2:
	adrp	x21, _HDMI_OUT_FIFO_EN@GOTPAGE
Lloh3:
	ldr	x21, [x21, _HDMI_OUT_FIFO_EN@GOTPAGEOFF]
	add	x1, x9, x8
	ldr	w8, [x21]
Lloh4:
	adrp	x22, _MHL_MODE_ON@GOTPAGE
Lloh5:
	ldr	x22, [x22, _MHL_MODE_ON@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w2, w9, w8
	mov	w3, #0
	bl	_regmap_update_bits
	mov	w0, #2000
	mov	w1, #4000
	bl	_usleep_range
	ldr	w0, [x19, #8]
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	ldr	w3, [x21]
	ldr	w8, [x22]
	orr	w2, w8, w3
	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
	b	_regmap_update_bits
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_SYS_CFG20,8,3             ; @HDMI_SYS_CFG20
	.comm	_HDMI_OUT_FIFO_EN,4,2           ; @HDMI_OUT_FIFO_EN
	.comm	_MHL_MODE_ON,4,2                ; @MHL_MODE_ON
	.no_dead_strip	_mtk_hdmi_hw_config_sys
.subsections_via_symbols
