	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_hdmi_rk3228_setup_hpd
_dw_hdmi_rk3228_setup_hpd:              ## @dw_hdmi_rk3228_setup_hpd
	.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	%rsi, %rbx
	callq	_dw_hdmi_phy_setup_hpd
	movl	(%rbx), %r14d
	movq	_RK3228_GRF_SOC_CON6@GOTPCREL(%rip), %rax
	movq	_RK3228_HDMI_HPD_VSEL@GOTPCREL(%rip), %rcx
	movq	_RK3228_HDMI_SDA_VSEL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	orl	(%rcx), %edi
	movl	(%rax), %r15d
	movq	_RK3228_HDMI_SCL_VSEL@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movl	%edi, %esi
	callq	_HIWORD_UPDATE
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_regmap_write
	movl	(%rbx), %r14d
	movq	_RK3228_GRF_SOC_CON2@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_RK3228_HDMI_SDAIN_MSK@GOTPCREL(%rip), %rax
	movq	_RK3228_HDMI_SCLIN_MSK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movl	%edi, %esi
	callq	_HIWORD_UPDATE
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regmap_write                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RK3228_GRF_SOC_CON6,4,2        ## @RK3228_GRF_SOC_CON6
	.comm	_RK3228_HDMI_HPD_VSEL,4,2       ## @RK3228_HDMI_HPD_VSEL
	.comm	_RK3228_HDMI_SDA_VSEL,4,2       ## @RK3228_HDMI_SDA_VSEL
	.comm	_RK3228_HDMI_SCL_VSEL,4,2       ## @RK3228_HDMI_SCL_VSEL
	.comm	_RK3228_GRF_SOC_CON2,4,2        ## @RK3228_GRF_SOC_CON2
	.comm	_RK3228_HDMI_SDAIN_MSK,4,2      ## @RK3228_HDMI_SDAIN_MSK
	.comm	_RK3228_HDMI_SCLIN_MSK,4,2      ## @RK3228_HDMI_SCLIN_MSK
	.no_dead_strip	_dw_hdmi_rk3228_setup_hpd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dw_hdmi_rk3228_setup_hpd
_dw_hdmi_rk3228_setup_hpd:              ; @dw_hdmi_rk3228_setup_hpd
	.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, x1
	bl	_dw_hdmi_phy_setup_hpd
	ldr	w20, [x19]
Lloh0:
	adrp	x8, _RK3228_GRF_SOC_CON6@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RK3228_GRF_SOC_CON6@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _RK3228_HDMI_HPD_VSEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RK3228_HDMI_HPD_VSEL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _RK3228_HDMI_SDA_VSEL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RK3228_HDMI_SDA_VSEL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _RK3228_HDMI_SCL_VSEL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RK3228_HDMI_SCL_VSEL@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w0, w8, w9
	mov	x1, x0
	bl	_HIWORD_UPDATE
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_regmap_write
	ldr	w19, [x19]
Lloh12:
	adrp	x8, _RK3228_GRF_SOC_CON2@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RK3228_GRF_SOC_CON2@GOTPAGEOFF]
Lloh14:
	adrp	x9, _RK3228_HDMI_SDAIN_MSK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _RK3228_HDMI_SDAIN_MSK@GOTPAGEOFF]
Lloh16:
	ldr	w20, [x8]
Lloh17:
	ldr	w8, [x9]
Lloh18:
	adrp	x9, _RK3228_HDMI_SCLIN_MSK@GOTPAGE
Lloh19:
	ldr	x9, [x9, _RK3228_HDMI_SCLIN_MSK@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w0, w9, w8
	mov	x1, x0
	bl	_HIWORD_UPDATE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	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_write
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RK3228_GRF_SOC_CON6,4,2        ; @RK3228_GRF_SOC_CON6
	.comm	_RK3228_HDMI_HPD_VSEL,4,2       ; @RK3228_HDMI_HPD_VSEL
	.comm	_RK3228_HDMI_SDA_VSEL,4,2       ; @RK3228_HDMI_SDA_VSEL
	.comm	_RK3228_HDMI_SCL_VSEL,4,2       ; @RK3228_HDMI_SCL_VSEL
	.comm	_RK3228_GRF_SOC_CON2,4,2        ; @RK3228_GRF_SOC_CON2
	.comm	_RK3228_HDMI_SDAIN_MSK,4,2      ; @RK3228_HDMI_SDAIN_MSK
	.comm	_RK3228_HDMI_SCLIN_MSK,4,2      ; @RK3228_HDMI_SCLIN_MSK
	.no_dead_strip	_dw_hdmi_rk3228_setup_hpd
.subsections_via_symbols
