	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uniphier_pciephy_probe
_uniphier_pciephy_probe:                ## @uniphier_pciephy_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_of_device_get_match_data
	movq	%rax, (%rbx)
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r14, 32(%rbx)
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 24(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	24(%rbx), %rdi
	jmp	LBB0_13
LBB0_7:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movq	%rax, 16(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	16(%rbx), %rdi
	jmp	LBB0_13
LBB0_9:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_reset_control_get_shared
	movq	%rax, 8(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	8(%rbx), %rdi
	jmp	LBB0_13
LBB0_11:
	movl	(%r14), %esi
	movq	_uniphier_pciephy_ops@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	callq	_devm_phy_create
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movq	%r15, %rdi
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_14:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_syscon_regmap_lookup_by_phandle
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_17
## %bb.15:
	movq	(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_17
## %bb.16:
	movq	_SG_USBPCIESEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SG_USBPCIESEL_PCIE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movl	%ecx, %edx
	callq	_regmap_update_bits
LBB0_17:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_phy_set_drvdata
	movq	_of_phy_simple_xlate@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_devm_of_phy_provider_register
	movq	%rax, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR_OR_ZERO                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_uniphier_pciephy_ops,4,2       ## @uniphier_pciephy_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"socionext,syscon"

	.comm	_SG_USBPCIESEL,4,2              ## @SG_USBPCIESEL
	.comm	_SG_USBPCIESEL_PCIE,4,2         ## @SG_USBPCIESEL_PCIE
	.comm	_of_phy_simple_xlate,4,2        ## @of_phy_simple_xlate
	.no_dead_strip	_uniphier_pciephy_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uniphier_pciephy_probe
_uniphier_pciephy_probe:                ; @uniphier_pciephy_probe
	.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, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_of_device_get_match_data
	str	x0, [x20]
	cmp	x0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
	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
	ret
LBB0_5:
	str	x19, [x20, #32]
Lloh7:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	x0, [x20, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.6:
	ldr	x0, [x20, #24]
	b	LBB0_13
LBB0_7:
	mov	x0, x19
	mov	x1, #0
	bl	_devm_clk_get
	str	x0, [x20, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.8:
	ldr	x0, [x20, #16]
	b	LBB0_13
LBB0_9:
	mov	x0, x19
	mov	x1, #0
	bl	_devm_reset_control_get_shared
	str	x0, [x20, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.10:
	ldr	x0, [x20, #8]
	b	LBB0_13
LBB0_11:
	ldr	w1, [x19]
Lloh10:
	adrp	x2, _uniphier_pciephy_ops@GOTPAGE
Lloh11:
	ldr	x2, [x2, _uniphier_pciephy_ops@GOTPAGEOFF]
	mov	x0, x19
	bl	_devm_phy_create
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_14
; %bb.12:
	mov	x0, x21
LBB0_13:
	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	_PTR_ERR
LBB0_14:
	ldr	w0, [x19]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_syscon_regmap_lookup_by_phandle
	mov	x22, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_17
; %bb.15:
	ldr	x8, [x20]
	ldr	x8, [x8]
	cbz	x8, LBB0_17
; %bb.16:
Lloh14:
	adrp	x8, _SG_USBPCIESEL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SG_USBPCIESEL@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _SG_USBPCIESEL_PCIE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SG_USBPCIESEL_PCIE@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x3, x2
	bl	_regmap_update_bits
LBB0_17:
	mov	x0, x21
	mov	x1, x20
	bl	_phy_set_drvdata
Lloh20:
	adrp	x8, _of_phy_simple_xlate@GOTPAGE
Lloh21:
	ldr	x8, [x8, _of_phy_simple_xlate@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_devm_of_phy_provider_register
	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	_PTR_ERR_OR_ZERO
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_uniphier_pciephy_ops,4,2       ; @uniphier_pciephy_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"socionext,syscon"

	.comm	_SG_USBPCIESEL,4,2              ; @SG_USBPCIESEL
	.comm	_SG_USBPCIESEL_PCIE,4,2         ; @SG_USBPCIESEL_PCIE
	.comm	_of_phy_simple_xlate,4,2        ; @of_phy_simple_xlate
	.no_dead_strip	_uniphier_pciephy_probe
.subsections_via_symbols
