	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rockchip_emmc_phy_probe
_rockchip_emmc_phy_probe:               ## @rockchip_emmc_phy_probe
	.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	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rdi, %r12
	movl	(%rax), %edi
	testl	%edi, %edi
	je	LBB0_4
## %bb.2:
	callq	_syscon_node_to_regmap
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r15, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%ebx, %ebx
LBB0_6:
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	%rax, %r14
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	leaq	-40(%rbp), %rdx
	callq	_of_property_read_u32
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movl	(%r12), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_12:
	movl	-40(%rbp), %eax
	movl	%eax, (%r14)
	movq	%r15, 8(%r14)
	movq	_PHYCTRL_DR_50OHM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movl	(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	leaq	-36(%rbp), %rdx
	callq	_of_property_read_u32
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:
	movl	-36(%rbp), %esi
	movq	%r12, %rdi
	callq	_convert_drive_impedance_ohm
	movl	%eax, 4(%r14)
LBB0_14:
	movl	(%r12), %esi
	movq	_ops@GOTPCREL(%rip), %rdx
	movq	%r12, %rdi
	callq	_devm_phy_create
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	%rbx, %rdi
	callq	_PTR_ERR
	jmp	LBB0_17
LBB0_16:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_phy_set_drvdata
	movq	_of_phy_simple_xlate@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_devm_of_phy_provider_register
	movq	%rax, %rdi
	callq	_PTR_ERR_OR_ZERO
LBB0_17:
	movl	%eax, %ebx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Missing rockchip,grf property\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"reg"

L_.str.2:                               ## @.str.2
	.asciz	"missing reg property in node %pOFn\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PHYCTRL_DR_50OHM,4,2           ## @PHYCTRL_DR_50OHM
L_.str.3:                               ## @.str.3
	.asciz	"drive-impedance-ohm"

	.comm	_ops,4,2                        ## @ops
L_.str.4:                               ## @.str.4
	.asciz	"failed to create PHY\n"

	.comm	_of_phy_simple_xlate,4,2        ## @of_phy_simple_xlate
	.no_dead_strip	_rockchip_emmc_phy_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rockchip_emmc_phy_probe
_rockchip_emmc_phy_probe:               ; @rockchip_emmc_phy_probe
	.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
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w0, [x8]
	cbz	w0, LBB0_4
; %bb.2:
	bl	_syscon_node_to_regmap
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.3:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x21
	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
	b	_PTR_ERR
LBB0_4:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
LBB0_7:
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_10
; %bb.8:
	mov	x20, x0
	ldr	w0, [x19]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #12
	bl	_of_property_read_u32
	cbz	x0, LBB0_11
; %bb.9:
	ldr	w8, [x19]
	str	x8, [sp]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_10:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_5
LBB0_11:
	ldr	w8, [sp, #12]
	str	w8, [x20]
	str	x21, [x20, #8]
Lloh15:
	adrp	x8, _PHYCTRL_DR_50OHM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PHYCTRL_DR_50OHM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x20, #4]
	ldr	w0, [x19]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x2, sp, #8
	bl	_of_property_read_u32
	cbnz	x0, LBB0_13
; %bb.12:
	ldr	w1, [sp, #8]
	mov	x0, x19
	bl	_convert_drive_impedance_ohm
	str	w0, [x20, #4]
LBB0_13:
	ldr	w1, [x19]
Lloh20:
	adrp	x2, _ops@GOTPAGE
Lloh21:
	ldr	x2, [x2, _ops@GOTPAGEOFF]
	mov	x0, x19
	bl	_devm_phy_create
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_15
; %bb.14:
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x21
	bl	_PTR_ERR
	b	LBB0_6
LBB0_15:
	mov	x0, x21
	mov	x1, x20
	bl	_phy_set_drvdata
Lloh24:
	adrp	x8, _of_phy_simple_xlate@GOTPAGE
Lloh25:
	ldr	x8, [x8, _of_phy_simple_xlate@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_devm_of_phy_provider_register
	bl	_PTR_ERR_OR_ZERO
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Missing rockchip,grf property\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"reg"

l_.str.2:                               ; @.str.2
	.asciz	"missing reg property in node %pOFn\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PHYCTRL_DR_50OHM,4,2           ; @PHYCTRL_DR_50OHM
l_.str.3:                               ; @.str.3
	.asciz	"drive-impedance-ohm"

	.comm	_ops,4,2                        ; @ops
l_.str.4:                               ; @.str.4
	.asciz	"failed to create PHY\n"

	.comm	_of_phy_simple_xlate,4,2        ; @of_phy_simple_xlate
	.no_dead_strip	_rockchip_emmc_phy_probe
.subsections_via_symbols
