	.file	"extr_phy-uniphier-pcie.c_uniphier_pciephy_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"socionext,syscon"
	.text
	.p2align 4
	.type	uniphier_pciephy_probe, @function
uniphier_pciephy_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	esi, 40
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	call	devm_kzalloc@PLT
	test	rax, rax
	je	.L13
	mov	rdi, rbp
	mov	r12, rax
	call	of_device_get_match_data@PLT
	xor	edi, edi
	mov	QWORD PTR [r12], rax
	test	rax, rax
	sete	dil
	call	WARN_ON@PLT
	test	rax, rax
	je	.L4
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	QWORD PTR 32[r12], rbp
	mov	esi, DWORD PTR IORESOURCE_MEM[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	platform_get_resource@PLT
	mov	rdi, rbp
	mov	rsi, rax
	call	devm_ioremap_resource@PLT
	mov	QWORD PTR 24[r12], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L14
	xor	esi, esi
	mov	rdi, rbp
	call	devm_clk_get@PLT
	mov	QWORD PTR 16[r12], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L15
	xor	esi, esi
	mov	rdi, rbp
	call	devm_reset_control_get_shared@PLT
	mov	QWORD PTR 8[r12], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L16
	mov	esi, DWORD PTR 0[rbp]
	lea	rdx, uniphier_pciephy_ops[rip]
	mov	rdi, rbp
	call	devm_phy_create@PLT
	mov	rdi, rax
	mov	r13, rax
	call	IS_ERR@PLT
	mov	rdi, r13
	test	rax, rax
	jne	.L11
	mov	edi, DWORD PTR 0[rbp]
	lea	rsi, .LC0[rip]
	call	syscon_regmap_lookup_by_phandle@PLT
	mov	rdi, rax
	mov	r14, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L9
	mov	rax, QWORD PTR [r12]
	cmp	QWORD PTR [rax], 0
	je	.L9
	mov	edx, DWORD PTR SG_USBPCIESEL_PCIE[rip]
	mov	esi, DWORD PTR SG_USBPCIESEL[rip]
	mov	rdi, r14
	mov	ecx, edx
	call	regmap_update_bits@PLT
.L9:
	mov	rsi, r12
	mov	rdi, r13
	call	phy_set_drvdata@PLT
	mov	esi, DWORD PTR of_phy_simple_xlate[rip]
	mov	rdi, rbp
	call	devm_of_phy_provider_register@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	rdi, rax
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	PTR_ERR_OR_ZERO@PLT
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	eax, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	rdi, QWORD PTR 16[r12]
.L11:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	PTR_ERR@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rdi, QWORD PTR 24[r12]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	PTR_ERR@PLT
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[r12]
	jmp	.L11
	.cfi_endproc
.LFE0:
	.size	uniphier_pciephy_probe, .-uniphier_pciephy_probe
	.comm	uniphier_pciephy_ops,4,4
	.comm	of_phy_simple_xlate,4,4
	.comm	SG_USBPCIESEL_PCIE,4,4
	.comm	SG_USBPCIESEL,4,4
	.comm	IORESOURCE_MEM,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_phy-uniphier-pcie.c_uniphier_pciephy_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"socionext,syscon\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	uniphier_pciephy_probe, %function
uniphier_pciephy_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L20
	push	{r4, r5, r6, r7, r8, lr}
	mov	r1, #20
	ldr	r2, [r3]
	mov	r5, r0
	bl	devm_kzalloc
	subs	r4, r0, #0
	beq	.L15
	mov	r0, r5
	bl	of_device_get_match_data
	mov	r3, r0
	clz	r0, r0
	str	r3, [r4]
	lsr	r0, r0, #5
	bl	WARN_ON
	subs	r2, r0, #0
	beq	.L4
	ldr	r3, .L20+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	ldr	r3, .L20+8
	mov	r0, r5
	ldr	r1, [r3]
	str	r5, [r4, #16]
	bl	platform_get_resource
	mov	r1, r0
	mov	r0, r5
	bl	devm_ioremap_resource
	str	r0, [r4, #12]
	bl	IS_ERR
	subs	r1, r0, #0
	bne	.L16
	mov	r0, r5
	bl	devm_clk_get
	str	r0, [r4, #8]
	bl	IS_ERR
	subs	r1, r0, #0
	bne	.L17
	mov	r0, r5
	bl	devm_reset_control_get_shared
	str	r0, [r4, #4]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L18
	ldr	r2, .L20+12
	ldr	r1, [r5]
	mov	r0, r5
	bl	devm_phy_create
	mov	r6, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L19
	ldr	r1, .L20+16
	ldr	r0, [r5]
	bl	syscon_regmap_lookup_by_phandle
	mov	r7, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L9
	ldr	r3, [r4]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L9
	ldr	r3, .L20+20
	ldr	r1, .L20+24
	ldr	r3, [r3]
	mov	r0, r7
	mov	r2, r3
	ldr	r1, [r1]
	bl	regmap_update_bits
.L9:
	mov	r1, r4
	mov	r0, r6
	bl	phy_set_drvdata
	ldr	r3, .L20+28
	mov	r0, r5
	ldr	r1, [r3]
	bl	devm_of_phy_provider_register
	pop	{r4, r5, r6, r7, r8, lr}
	b	PTR_ERR_OR_ZERO
.L15:
	ldr	r3, .L20+32
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	ldr	r0, [r4, #8]
	pop	{r4, r5, r6, r7, r8, lr}
	b	PTR_ERR
.L16:
	ldr	r0, [r4, #12]
	pop	{r4, r5, r6, r7, r8, lr}
	b	PTR_ERR
.L18:
	ldr	r0, [r4, #4]
	pop	{r4, r5, r6, r7, r8, lr}
	b	PTR_ERR
.L19:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	b	PTR_ERR
.L21:
	.align	2
.L20:
	.word	GFP_KERNEL
	.word	EINVAL
	.word	IORESOURCE_MEM
	.word	uniphier_pciephy_ops
	.word	.LC0
	.word	SG_USBPCIESEL_PCIE
	.word	SG_USBPCIESEL
	.word	of_phy_simple_xlate
	.word	ENOMEM
	.size	uniphier_pciephy_probe, .-uniphier_pciephy_probe
	.comm	uniphier_pciephy_ops,4,4
	.comm	of_phy_simple_xlate,4,4
	.comm	SG_USBPCIESEL_PCIE,4,4
	.comm	SG_USBPCIESEL,4,4
	.comm	IORESOURCE_MEM,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
