	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uniphier_u3hsphy_update_config
_uniphier_u3hsphy_update_config:        ## @uniphier_u3hsphy_update_config
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	8(%rdi), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	leaq	-24(%rbp), %rsi
	callq	_uniphier_u3hsphy_get_nvparams
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	je	LBB0_8
## %bb.2:
	testl	%eax, %eax
	je	LBB0_3
LBB0_5:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
LBB0_6:
	movq	_HSPHY_CFG0_HSDISC_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, (%r14)
	movl	(%rax), %edi
	movl	$3, %esi
	callq	_FIELD_PREP
	orl	%eax, (%r14)
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	leaq	-24(%rbp), %rdi
	callq	_trim_param_is_valid
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	8(%rbx), %rax
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	*(%rax)
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't get parameter from nvmem\n"

	.comm	_HSPHY_CFG0_HSDISC_MASK,4,2     ## @HSPHY_CFG0_HSDISC_MASK
	.no_dead_strip	_uniphier_u3hsphy_update_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uniphier_u3hsphy_update_config
_uniphier_u3hsphy_update_config:        ; @uniphier_u3hsphy_update_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x20, x0
	add	x1, sp, #8
	bl	_uniphier_u3hsphy_get_nvparams
Lloh0:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_5
; %bb.2:
	cbz	w0, LBB0_6
LBB0_3:
	ldr	w0, [x20]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
LBB0_4:
Lloh5:
	adrp	x8, _HSPHY_CFG0_HSDISC_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HSPHY_CFG0_HSDISC_MASK@GOTPAGEOFF]
	ldr	w9, [x8]
	ldr	w10, [x19]
	bic	w9, w10, w9
	str	w9, [x19]
	ldr	w0, [x8]
	mov	w1, #3
	bl	_FIELD_PREP
	mov	x8, x0
	mov	w0, #0
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_6:
	add	x0, sp, #8
	bl	_trim_param_is_valid
	cbz	x0, LBB0_3
; %bb.7:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x19
	blr	x8
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't get parameter from nvmem\n"

	.comm	_HSPHY_CFG0_HSDISC_MASK,4,2     ; @HSPHY_CFG0_HSDISC_MASK
	.no_dead_strip	_uniphier_u3hsphy_update_config
.subsections_via_symbols
