	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_hdmi_hw_reset
_mtk_hdmi_hw_reset:                     ## @mtk_hdmi_hw_reset
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	movq	_HDMI_SYS_CFG1C@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	addq	(%rbx), %rsi
	movq	_HDMI_RST@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movl	%ecx, %edx
	callq	_regmap_update_bits
	movl	8(%rbx), %edi
	movq	(%r14), %rsi
	addq	(%rbx), %rsi
	movl	(%r15), %edx
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
	movq	_GRL_CFG3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CFG3_CONTROL_PACKET_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_mtk_hdmi_clear_bits
	movl	8(%rbx), %edi
	movq	(%r14), %rsi
	addq	(%rbx), %rsi
	movq	_ANLG_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regmap_update_bits             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_SYS_CFG1C,8,3             ## @HDMI_SYS_CFG1C
	.comm	_HDMI_RST,4,2                   ## @HDMI_RST
	.comm	_GRL_CFG3,4,2                   ## @GRL_CFG3
	.comm	_CFG3_CONTROL_PACKET_DELAY,4,2  ## @CFG3_CONTROL_PACKET_DELAY
	.comm	_ANLG_ON,4,2                    ## @ANLG_ON
	.no_dead_strip	_mtk_hdmi_hw_reset
.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_reset
_mtk_hdmi_hw_reset:                     ; @mtk_hdmi_hw_reset
	.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]
Lloh0:
	adrp	x20, _HDMI_SYS_CFG1C@GOTPAGE
Lloh1:
	ldr	x20, [x20, _HDMI_SYS_CFG1C@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
Lloh2:
	adrp	x21, _HDMI_RST@GOTPAGE
Lloh3:
	ldr	x21, [x21, _HDMI_RST@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x3, x2
	bl	_regmap_update_bits
	ldr	w0, [x19, #8]
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	ldr	w2, [x21]
	mov	w3, #0
	bl	_regmap_update_bits
Lloh4:
	adrp	x8, _GRL_CFG3@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GRL_CFG3@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _CFG3_CONTROL_PACKET_DELAY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CFG3_CONTROL_PACKET_DELAY@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mtk_hdmi_clear_bits
	ldr	w0, [x19, #8]
	ldr	x8, [x19]
	ldr	x9, [x20]
Lloh10:
	adrp	x10, _ANLG_ON@GOTPAGE
Lloh11:
	ldr	x10, [x10, _ANLG_ON@GOTPAGEOFF]
	add	x1, x9, x8
Lloh12:
	ldr	w2, [x10]
	mov	x3, x2
	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 AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_SYS_CFG1C,8,3             ; @HDMI_SYS_CFG1C
	.comm	_HDMI_RST,4,2                   ; @HDMI_RST
	.comm	_GRL_CFG3,4,2                   ; @GRL_CFG3
	.comm	_CFG3_CONTROL_PACKET_DELAY,4,2  ; @CFG3_CONTROL_PACKET_DELAY
	.comm	_ANLG_ON,4,2                    ; @ANLG_ON
	.no_dead_strip	_mtk_hdmi_hw_reset
.subsections_via_symbols
