	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function inno_hdmi_phy_rk3328_init
_inno_hdmi_phy_rk3328_init:             ## @inno_hdmi_phy_rk3328_init
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_RK3328_BYPASS_RXSENSE_EN@GOTPCREL(%rip), %rax
	movq	_RK3328_BYPASS_POWERON_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%rdi, %r12
	movq	_RK3328_BYPASS_PLLPD_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	$1, %esi
	callq	_inno_write
	movq	_RK3328_INT_POL_HIGH@GOTPCREL(%rip), %rax
	movq	_RK3328_BYPASS_PDATA_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_RK3328_PDATA_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_inno_write
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	movl	$5, %esi
	xorl	%edx, %edx
	callq	_inno_write
	movq	%r12, %rdi
	movl	$7, %esi
	xorl	%edx, %edx
	callq	_inno_write
	movl	$1, (%r12)
	movl	4(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_nvmem_cell_get
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	subl	(%rcx), %edx
	cmpl	%edx, %eax
	cmovel	%edx, %r14d
	jmp	LBB0_6
LBB0_2:
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_nvmem_cell_read
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_nvmem_cell_put
	movq	%r15, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	cmpq	$1, -40(%rbp)
	jne	LBB0_5
## %bb.4:
	movzbl	(%r15), %eax
	incl	%eax
	movl	%eax, (%r12)
LBB0_5:
	movq	%r15, %rdi
	callq	_kfree
LBB0_6:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RK3328_BYPASS_RXSENSE_EN,4,2   ## @RK3328_BYPASS_RXSENSE_EN
	.comm	_RK3328_BYPASS_POWERON_EN,4,2   ## @RK3328_BYPASS_POWERON_EN
	.comm	_RK3328_BYPASS_PLLPD_EN,4,2     ## @RK3328_BYPASS_PLLPD_EN
	.comm	_RK3328_INT_POL_HIGH,4,2        ## @RK3328_INT_POL_HIGH
	.comm	_RK3328_BYPASS_PDATA_EN,4,2     ## @RK3328_BYPASS_PDATA_EN
	.comm	_RK3328_PDATA_EN,4,2            ## @RK3328_PDATA_EN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cpu-version"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.no_dead_strip	_inno_hdmi_phy_rk3328_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function inno_hdmi_phy_rk3328_init
_inno_hdmi_phy_rk3328_init:             ; @inno_hdmi_phy_rk3328_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _RK3328_BYPASS_RXSENSE_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RK3328_BYPASS_RXSENSE_EN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _RK3328_BYPASS_POWERON_EN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RK3328_BYPASS_POWERON_EN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _RK3328_BYPASS_PLLPD_EN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RK3328_BYPASS_PLLPD_EN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	w20, #1
	mov	w1, #1
	bl	_inno_write
Lloh9:
	adrp	x8, _RK3328_INT_POL_HIGH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RK3328_INT_POL_HIGH@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _RK3328_BYPASS_PDATA_EN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _RK3328_BYPASS_PDATA_EN@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh15:
	adrp	x9, _RK3328_PDATA_EN@GOTPAGE
Lloh16:
	ldr	x9, [x9, _RK3328_PDATA_EN@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	mov	w1, #2
	bl	_inno_write
	mov	x0, x19
	mov	w1, #5
	mov	w2, #0
	bl	_inno_write
	mov	x0, x19
	mov	w1, #7
	mov	w2, #0
	bl	_inno_write
	str	w20, [x19]
	ldr	w0, [x19, #4]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_nvmem_cell_get
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_PTR_ERR
Lloh20:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmn	w0, w8
	csneg	w0, wzr, w8, ne
	b	LBB0_7
LBB0_2:
	add	x1, sp, #8
	mov	x0, x21
	bl	_nvmem_cell_read
	mov	x20, x0
	mov	x0, x21
	bl	_nvmem_cell_put
	mov	x0, x20
	bl	_IS_ERR
	cbnz	x0, LBB0_6
; %bb.3:
	ldr	x8, [sp, #8]
	cmp	x8, #1
	b.ne	LBB0_5
; %bb.4:
	ldrb	w8, [x20]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_5:
	mov	x0, x20
	bl	_kfree
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_RK3328_BYPASS_RXSENSE_EN,4,2   ; @RK3328_BYPASS_RXSENSE_EN
	.comm	_RK3328_BYPASS_POWERON_EN,4,2   ; @RK3328_BYPASS_POWERON_EN
	.comm	_RK3328_BYPASS_PLLPD_EN,4,2     ; @RK3328_BYPASS_PLLPD_EN
	.comm	_RK3328_INT_POL_HIGH,4,2        ; @RK3328_INT_POL_HIGH
	.comm	_RK3328_BYPASS_PDATA_EN,4,2     ; @RK3328_BYPASS_PDATA_EN
	.comm	_RK3328_PDATA_EN,4,2            ; @RK3328_PDATA_EN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cpu-version"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.no_dead_strip	_inno_hdmi_phy_rk3328_init
.subsections_via_symbols
