	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_hdmi_rk3328_setup_hpd
_dw_hdmi_rk3328_setup_hpd:              ## @dw_hdmi_rk3328_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
	movq	_RK3328_HDMI_HPD_SARADC@GOTPCREL(%rip), %rax
	movq	_RK3328_HDMI_CEC_5V@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movl	(%rbx), %r14d
	movq	_RK3328_HDMI_SDA_5V@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_RK3328_GRF_SOC_CON4@GOTPCREL(%rip), %rax
	movq	_RK3328_HDMI_SCL_5V@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movl	(%rax), %r15d
	movq	_RK3328_HDMI_HPD_5V@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	xorl	%edi, %edi
	callq	_HIWORD_UPDATE
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_regmap_write
	movl	(%rbx), %r14d
	movq	_RK3328_HDMI_SDA5V_GRF@GOTPCREL(%rip), %rax
	movq	_RK3328_HDMI_SCL5V_GRF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_RK3328_GRF_SOC_CON3@GOTPCREL(%rip), %rax
	movq	_RK3328_HDMI_HPD5V_GRF@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movl	(%rax), %r15d
	movq	_RK3328_HDMI_CEC5V_GRF@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	xorl	%edi, %edi
	callq	_HIWORD_UPDATE
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_regmap_write
	movl	(%rbx), %r14d
	movq	_RK3328_GRF_SOC_CON2@GOTPCREL(%rip), %rax
	movq	_RK3328_HDMI_SDAIN_MSK@GOTPCREL(%rip), %rcx
	movq	_RK3328_HDMI_SCLIN_MSK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	orl	(%rcx), %edi
	movl	(%rax), %ebx
	movq	_RK3328_HDMI_HPD_IOE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	%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	_RK3328_GRF_SOC_CON4,4,2        ## @RK3328_GRF_SOC_CON4
	.comm	_RK3328_HDMI_HPD_SARADC,4,2     ## @RK3328_HDMI_HPD_SARADC
	.comm	_RK3328_HDMI_CEC_5V,4,2         ## @RK3328_HDMI_CEC_5V
	.comm	_RK3328_HDMI_SDA_5V,4,2         ## @RK3328_HDMI_SDA_5V
	.comm	_RK3328_HDMI_SCL_5V,4,2         ## @RK3328_HDMI_SCL_5V
	.comm	_RK3328_HDMI_HPD_5V,4,2         ## @RK3328_HDMI_HPD_5V
	.comm	_RK3328_GRF_SOC_CON3,4,2        ## @RK3328_GRF_SOC_CON3
	.comm	_RK3328_HDMI_SDA5V_GRF,4,2      ## @RK3328_HDMI_SDA5V_GRF
	.comm	_RK3328_HDMI_SCL5V_GRF,4,2      ## @RK3328_HDMI_SCL5V_GRF
	.comm	_RK3328_HDMI_HPD5V_GRF,4,2      ## @RK3328_HDMI_HPD5V_GRF
	.comm	_RK3328_HDMI_CEC5V_GRF,4,2      ## @RK3328_HDMI_CEC5V_GRF
	.comm	_RK3328_GRF_SOC_CON2,4,2        ## @RK3328_GRF_SOC_CON2
	.comm	_RK3328_HDMI_SDAIN_MSK,4,2      ## @RK3328_HDMI_SDAIN_MSK
	.comm	_RK3328_HDMI_SCLIN_MSK,4,2      ## @RK3328_HDMI_SCLIN_MSK
	.comm	_RK3328_HDMI_HPD_IOE,4,2        ## @RK3328_HDMI_HPD_IOE
	.no_dead_strip	_dw_hdmi_rk3328_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_rk3328_setup_hpd
_dw_hdmi_rk3328_setup_hpd:              ; @dw_hdmi_rk3328_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, _RK3328_GRF_SOC_CON4@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RK3328_GRF_SOC_CON4@GOTPAGEOFF]
Lloh2:
	adrp	x9, _RK3328_HDMI_HPD_SARADC@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RK3328_HDMI_HPD_SARADC@GOTPAGEOFF]
Lloh4:
	ldr	w21, [x8]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _RK3328_HDMI_CEC_5V@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RK3328_HDMI_CEC_5V@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _RK3328_HDMI_SDA_5V@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RK3328_HDMI_SDA_5V@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _RK3328_HDMI_SCL_5V@GOTPAGE
Lloh13:
	ldr	x9, [x9, _RK3328_HDMI_SCL_5V@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _RK3328_HDMI_HPD_5V@GOTPAGE
Lloh16:
	ldr	x9, [x9, _RK3328_HDMI_HPD_5V@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	w0, #0
	bl	_HIWORD_UPDATE
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_regmap_write
	ldr	w20, [x19]
Lloh18:
	adrp	x8, _RK3328_GRF_SOC_CON3@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RK3328_GRF_SOC_CON3@GOTPAGEOFF]
Lloh20:
	ldr	w21, [x8]
Lloh21:
	adrp	x8, _RK3328_HDMI_SDA5V_GRF@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RK3328_HDMI_SDA5V_GRF@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _RK3328_HDMI_SCL5V_GRF@GOTPAGE
Lloh25:
	ldr	x9, [x9, _RK3328_HDMI_SCL5V_GRF@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh27:
	adrp	x9, _RK3328_HDMI_HPD5V_GRF@GOTPAGE
Lloh28:
	ldr	x9, [x9, _RK3328_HDMI_HPD5V_GRF@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh30:
	adrp	x9, _RK3328_HDMI_CEC5V_GRF@GOTPAGE
Lloh31:
	ldr	x9, [x9, _RK3328_HDMI_CEC5V_GRF@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	w0, #0
	bl	_HIWORD_UPDATE
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_regmap_write
	ldr	w19, [x19]
Lloh33:
	adrp	x8, _RK3328_GRF_SOC_CON2@GOTPAGE
Lloh34:
	ldr	x8, [x8, _RK3328_GRF_SOC_CON2@GOTPAGEOFF]
Lloh35:
	ldr	w20, [x8]
Lloh36:
	adrp	x8, _RK3328_HDMI_SDAIN_MSK@GOTPAGE
Lloh37:
	ldr	x8, [x8, _RK3328_HDMI_SDAIN_MSK@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
Lloh39:
	adrp	x9, _RK3328_HDMI_SCLIN_MSK@GOTPAGE
Lloh40:
	ldr	x9, [x9, _RK3328_HDMI_SCLIN_MSK@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	orr	w0, w9, w8
Lloh42:
	adrp	x8, _RK3328_HDMI_HPD_IOE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _RK3328_HDMI_HPD_IOE@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	orr	w1, w0, w8
	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	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_RK3328_GRF_SOC_CON4,4,2        ; @RK3328_GRF_SOC_CON4
	.comm	_RK3328_HDMI_HPD_SARADC,4,2     ; @RK3328_HDMI_HPD_SARADC
	.comm	_RK3328_HDMI_CEC_5V,4,2         ; @RK3328_HDMI_CEC_5V
	.comm	_RK3328_HDMI_SDA_5V,4,2         ; @RK3328_HDMI_SDA_5V
	.comm	_RK3328_HDMI_SCL_5V,4,2         ; @RK3328_HDMI_SCL_5V
	.comm	_RK3328_HDMI_HPD_5V,4,2         ; @RK3328_HDMI_HPD_5V
	.comm	_RK3328_GRF_SOC_CON3,4,2        ; @RK3328_GRF_SOC_CON3
	.comm	_RK3328_HDMI_SDA5V_GRF,4,2      ; @RK3328_HDMI_SDA5V_GRF
	.comm	_RK3328_HDMI_SCL5V_GRF,4,2      ; @RK3328_HDMI_SCL5V_GRF
	.comm	_RK3328_HDMI_HPD5V_GRF,4,2      ; @RK3328_HDMI_HPD5V_GRF
	.comm	_RK3328_HDMI_CEC5V_GRF,4,2      ; @RK3328_HDMI_CEC5V_GRF
	.comm	_RK3328_GRF_SOC_CON2,4,2        ; @RK3328_GRF_SOC_CON2
	.comm	_RK3328_HDMI_SDAIN_MSK,4,2      ; @RK3328_HDMI_SDAIN_MSK
	.comm	_RK3328_HDMI_SCLIN_MSK,4,2      ; @RK3328_HDMI_SCLIN_MSK
	.comm	_RK3328_HDMI_HPD_IOE,4,2        ; @RK3328_HDMI_HPD_IOE
	.no_dead_strip	_dw_hdmi_rk3328_setup_hpd
.subsections_via_symbols
