	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_hdmi_rk3328_read_hpd
_dw_hdmi_rk3328_read_hpd:               ## @dw_hdmi_rk3328_read_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_read_hpd
	movl	%eax, %r14d
	movq	_connector_status_connected@GOTPCREL(%rip), %rax
	movq	_RK3328_HDMI_SDA_5V@GOTPCREL(%rip), %rcx
	movq	_RK3328_HDMI_SCL_5V@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	xorl	%edi, %edi
	cmpl	(%rax), %r14d
	movl	(%rbx), %r15d
	movq	_RK3328_GRF_SOC_CON4@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	cmovel	%esi, %edi
	callq	_HIWORD_UPDATE
	movl	%r15d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_regmap_write
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_connector_status_connected,4,2 ## @connector_status_connected
	.comm	_RK3328_GRF_SOC_CON4,4,2        ## @RK3328_GRF_SOC_CON4
	.comm	_RK3328_HDMI_SDA_5V,4,2         ## @RK3328_HDMI_SDA_5V
	.comm	_RK3328_HDMI_SCL_5V,4,2         ## @RK3328_HDMI_SCL_5V
	.no_dead_strip	_dw_hdmi_rk3328_read_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_rk3328_read_hpd
_dw_hdmi_rk3328_read_hpd:               ; @dw_hdmi_rk3328_read_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_read_hpd
	mov	x20, x0
Lloh0:
	adrp	x8, _connector_status_connected@GOTPAGE
Lloh1:
	ldr	x8, [x8, _connector_status_connected@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w19, [x19]
Lloh3:
	adrp	x9, _RK3328_GRF_SOC_CON4@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RK3328_GRF_SOC_CON4@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x9]
Lloh6:
	adrp	x9, _RK3328_HDMI_SDA_5V@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RK3328_HDMI_SDA_5V@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _RK3328_HDMI_SCL_5V@GOTPAGE
Lloh10:
	ldr	x10, [x10, _RK3328_HDMI_SCL_5V@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w1, w10, w9
	cmp	w0, w8
	csel	w0, w1, wzr, eq
	bl	_HIWORD_UPDATE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_regmap_write
	mov	x0, 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
	ret
	.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	_connector_status_connected,4,2 ; @connector_status_connected
	.comm	_RK3328_GRF_SOC_CON4,4,2        ; @RK3328_GRF_SOC_CON4
	.comm	_RK3328_HDMI_SDA_5V,4,2         ; @RK3328_HDMI_SDA_5V
	.comm	_RK3328_HDMI_SCL_5V,4,2         ; @RK3328_HDMI_SCL_5V
	.no_dead_strip	_dw_hdmi_rk3328_read_hpd
.subsections_via_symbols
