	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rockchip_pcie_phy_probe
_rockchip_pcie_phy_probe:               ## @rockchip_pcie_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movl	(%rax), %edi
	callq	_syscon_node_to_regmap
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	%rbx, %rdi
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %r14
	movq	_rockchip_pcie_phy_dt_ids@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_of_match_device
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	(%rax), %rax
	movq	%rax, 40(%r14)
	movq	%rbx, 32(%r14)
	movq	%r14, %rdi
	addq	$24, %rdi
	callq	_mutex_init
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_reset_control_get
	movq	%rax, 16(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	movq	16(%r14), %rdi
	callq	_PTR_ERR
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_10:
	movq	16(%r14), %rdi
	jmp	LBB0_11
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_24:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_clk_get
	movq	%rax, 8(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	8(%r14), %rdi
	jmp	LBB0_11
LBB0_14:
	movl	(%r15), %edi
	leaq	L_.str.5(%rip), %rsi
	leaq	-44(%rbp), %rdx
	callq	_of_property_read_u32
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_16:
	cmpl	$0, -44(%rbp)
	movl	$1, %edx
	je	LBB0_18
## %bb.17:
	movq	_PHY_MAX_LANE_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_18:
	movl	%edx, -44(%rbp)
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_dbg
	cmpl	$0, -44(%rbp)
	jle	LBB0_23
## %bb.19:
	xorl	%ebx, %ebx
	movq	_ops@GOTPCREL(%rip), %r12
	xorl	%r13d, %r13d
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_devm_phy_create
	movq	(%r14), %rcx
	movq	%rax, 8(%rcx,%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_21
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	(%r14), %rax
	leaq	(%rax,%rbx), %rsi
	movl	%r13d, (%rax,%rbx)
	movq	8(%rax,%rbx), %rdi
	callq	_phy_set_drvdata
	incq	%r13
	movslq	-44(%rbp), %rax
	addq	$16, %rbx
	cmpq	%rax, %r13
	jl	LBB0_20
LBB0_23:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	_rockchip_pcie_phy_of_xlate@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_devm_of_phy_provider_register
	movq	%rax, %rdi
	callq	_PTR_ERR_OR_ZERO
	jmp	LBB0_24
LBB0_21:
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	(%r14), %rax
	movq	8(%rax,%rbx), %rdi
	callq	_PTR_ERR
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot find GRF syscon\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_rockchip_pcie_phy_dt_ids,4,2   ## @rockchip_pcie_phy_dt_ids
	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"phy"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.2:                               ## @.str.2
	.asciz	"missing phy property for reset controller\n"

L_.str.3:                               ## @.str.3
	.asciz	"refclk"

L_.str.4:                               ## @.str.4
	.asciz	"refclk not found.\n"

L_.str.5:                               ## @.str.5
	.asciz	"#phy-cells"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_PHY_MAX_LANE_NUM,4,2           ## @PHY_MAX_LANE_NUM
L_.str.6:                               ## @.str.6
	.asciz	"phy number is %d\n"

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

	.comm	_rockchip_pcie_phy_of_xlate,4,2 ## @rockchip_pcie_phy_of_xlate
	.no_dead_strip	_rockchip_pcie_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_pcie_phy_probe
_rockchip_pcie_phy_probe:               ; @rockchip_pcie_phy_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w0, [x8]
	bl	_syscon_node_to_regmap
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x21
LBB0_2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_PTR_ERR
LBB0_3:
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #48
	bl	_devm_kzalloc
	cbz	x0, LBB0_9
; %bb.4:
	mov	x20, x0
Lloh5:
	adrp	x8, _rockchip_pcie_phy_dt_ids@GOTPAGE
Lloh6:
	ldr	x8, [x8, _rockchip_pcie_phy_dt_ids@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_of_match_device
	cbz	x0, LBB0_10
; %bb.5:
	ldr	x8, [x0]
	stp	x21, x8, [x20, #32]
	add	x0, x20, #24
	bl	_mutex_init
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_devm_reset_control_get
	str	x0, [x20, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.6:
	ldr	x0, [x20, #16]
	bl	_PTR_ERR
Lloh10:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_8
; %bb.7:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_8:
	ldr	x0, [x20, #16]
	b	LBB0_2
LBB0_9:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_13:
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x20, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_15
; %bb.14:
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x20, #8]
	b	LBB0_2
LBB0_15:
	ldr	w0, [x19]
Lloh23:
	adrp	x1, l_.str.5@PAGE
Lloh24:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x2, sp, #12
	bl	_of_property_read_u32
	cbz	x0, LBB0_17
; %bb.16:
Lloh25:
	adrp	x8, _ENOENT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_11
LBB0_17:
	ldr	w8, [sp, #12]
Lloh27:
	adrp	x9, _PHY_MAX_LANE_NUM@GOTPAGE
Lloh28:
	ldr	x9, [x9, _PHY_MAX_LANE_NUM@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	cmp	w8, #0
	csinc	w2, w9, wzr, ne
	str	w2, [sp, #12]
Lloh30:
	adrp	x1, l_.str.6@PAGE
Lloh31:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.18:
	mov	x22, #0
	mov	x23, #0
Lloh32:
	adrp	x21, _ops@GOTPAGE
Lloh33:
	ldr	x21, [x21, _ops@GOTPAGEOFF]
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x19]
	mov	x0, x19
	mov	x2, x21
	bl	_devm_phy_create
	ldr	x8, [x20]
	add	x8, x8, x22
	str	x0, [x8, #8]
	bl	_IS_ERR
	cbnz	x0, LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x8, [x20]
	add	x1, x8, x22
	str	w23, [x1]
	ldr	x0, [x1, #8]
	bl	_phy_set_drvdata
	add	x23, x23, #1
	ldrsw	x8, [sp, #12]
	add	x22, x22, #16
	cmp	x23, x8
	b.lt	LBB0_19
LBB0_21:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
Lloh34:
	adrp	x8, _rockchip_pcie_phy_of_xlate@GOTPAGE
Lloh35:
	ldr	x8, [x8, _rockchip_pcie_phy_of_xlate@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_devm_of_phy_provider_register
	bl	_PTR_ERR_OR_ZERO
	b	LBB0_12
LBB0_22:
	str	x23, [sp]
Lloh37:
	adrp	x1, l_.str.7@PAGE
Lloh38:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x8, [x20]
	add	x8, x8, x22
	ldr	x0, [x8, #8]
	bl	_PTR_ERR
	b	LBB0_12
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot find GRF syscon\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_rockchip_pcie_phy_dt_ids,4,2   ; @rockchip_pcie_phy_dt_ids
	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"phy"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.2:                               ; @.str.2
	.asciz	"missing phy property for reset controller\n"

l_.str.3:                               ; @.str.3
	.asciz	"refclk"

l_.str.4:                               ; @.str.4
	.asciz	"refclk not found.\n"

l_.str.5:                               ; @.str.5
	.asciz	"#phy-cells"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_PHY_MAX_LANE_NUM,4,2           ; @PHY_MAX_LANE_NUM
l_.str.6:                               ; @.str.6
	.asciz	"phy number is %d\n"

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

	.comm	_rockchip_pcie_phy_of_xlate,4,2 ; @rockchip_pcie_phy_of_xlate
	.no_dead_strip	_rockchip_pcie_phy_probe
.subsections_via_symbols
