	.file	"extr_phy-sun4i-usb.c_sun4i_usb_phy_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"phy_ctrl"
.LC1:
	.string	"usb0_id_det"
.LC2:
	.string	"Couldn't request ID GPIO\n"
.LC3:
	.string	"usb0_vbus_det"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC4:
	.string	"Couldn't request VBUS detect GPIO\n"
	.section	.rodata.str1.1
.LC5:
	.string	"usb0_vbus_power-supply"
	.section	.rodata.str1.8
	.align 8
.LC6:
	.string	"Couldn't get the VBUS power supply\n"
	.align 8
.LC7:
	.string	"Couldn't allocate our extcon device\n"
	.align 8
.LC8:
	.string	"failed to register extcon: %d\n"
	.section	.rodata.str1.1
.LC9:
	.string	"usb%d_vbus"
	.section	.rodata.str1.8
	.align 8
.LC10:
	.string	"Couldn't get regulator %s... Deferring probe\n"
	.section	.rodata.str1.1
.LC11:
	.string	"usb%d_phy"
.LC12:
	.string	"usb_phy"
.LC13:
	.string	"failed to get clock %s\n"
.LC14:
	.string	"usb%d_hsic_12M"
.LC15:
	.string	"usb%d_reset"
.LC16:
	.string	"failed to get reset %s\n"
.LC17:
	.string	"pmu%d"
.LC18:
	.string	"failed to create PHY %d\n"
.LC19:
	.string	"usb0-id-det"
	.section	.rodata.str1.8
	.align 8
.LC20:
	.string	"Err requesting id-det-irq: %d\n"
	.section	.rodata.str1.1
.LC21:
	.string	"usb0-vbus-det"
	.section	.rodata.str1.8
	.align 8
.LC22:
	.string	"Err requesting vbus-det-irq: %d\n"
	.section	.rodata.str1.1
.LC23:
	.string	"successfully loaded\n"
	.text
	.p2align 4
	.type	sun4i_usb_phy_probe, @function
sun4i_usb_phy_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	esi, 112
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	r12, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	call	devm_kzalloc@PLT
	test	rax, rax
	je	.L62
	lea	rdi, 108[rax]
	mov	rbx, rax
	call	spin_lock_init@PLT
	mov	esi, DWORD PTR sun4i_usb_phy0_id_vbus_det_scan[rip]
	lea	rdi, 104[rbx]
	call	INIT_DELAYED_WORK@PLT
	mov	rsi, rbx
	mov	rdi, rbp
	call	dev_set_drvdata@PLT
	mov	rdi, rbp
	call	of_device_get_match_data@PLT
	mov	QWORD PTR 72[rbx], rax
	test	rax, rax
	je	.L63
	mov	esi, DWORD PTR IORESOURCE_MEM[rip]
	lea	rdx, .LC0[rip]
	mov	rdi, rbp
	call	platform_get_resource_byname@PLT
	mov	rdi, rbp
	mov	rsi, rax
	call	devm_ioremap_resource@PLT
	mov	QWORD PTR 96[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L64
	mov	edx, DWORD PTR GPIOD_IN[rip]
	mov	rdi, rbp
	lea	rsi, .LC1[rip]
	call	devm_gpiod_get_optional@PLT
	mov	QWORD PTR 56[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L65
	mov	edx, DWORD PTR GPIOD_IN[rip]
	mov	rdi, rbp
	lea	rsi, .LC3[rip]
	call	devm_gpiod_get_optional@PLT
	mov	QWORD PTR 48[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L66
	xor	edx, edx
	lea	rsi, .LC5[rip]
	mov	rdi, r12
	call	of_find_property@PLT
	test	rax, rax
	je	.L8
	mov	rdi, rbp
	lea	rsi, .LC5[rip]
	call	devm_power_supply_get_by_phandle@PLT
	mov	QWORD PTR 40[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L67
	cmp	QWORD PTR 40[rbx], 0
	je	.L60
.L8:
	xor	esi, esi
	mov	rdi, r12
	call	of_usb_get_dr_mode_by_phy@PLT
	mov	esi, DWORD PTR sun4i_usb_phy0_cable[rip]
	mov	rdi, rbp
	mov	DWORD PTR 88[rbx], eax
	call	devm_extcon_dev_allocate@PLT
	mov	QWORD PTR 80[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L68
	mov	rsi, QWORD PTR 80[rbx]
	mov	rdi, rbp
	call	devm_extcon_dev_register@PLT
	mov	DWORD PTR 12[rsp], eax
	test	eax, eax
	jne	.L11
	mov	rax, QWORD PTR 72[rbx]
	mov	edx, DWORD PTR [rax]
	test	edx, edx
	jle	.L13
	xor	r12d, r12d
	lea	r14, 32[rsp]
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L75:
	mov	ecx, r15d
	lea	rdx, .LC11[rip]
	mov	esi, 16
	mov	rdi, r14
	call	snprintf@PLT
.L20:
	mov	rdi, rbp
	mov	rsi, r14
	call	devm_clk_get@PLT
	mov	QWORD PTR 40[r13], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L69
	mov	rax, QWORD PTR 72[rbx]
	mov	eax, DWORD PTR 8[rax]
	cmp	eax, r12d
	jne	.L22
	test	eax, eax
	jne	.L70
.L22:
	mov	ecx, r15d
	lea	rdx, .LC15[rip]
	mov	esi, 16
	mov	rdi, r14
	call	snprintf@PLT
	mov	rdi, rbp
	mov	rsi, r14
	call	devm_reset_control_get@PLT
	mov	QWORD PTR 24[r13], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L71
	test	r12, r12
	jne	.L24
	mov	rax, QWORD PTR 72[rbx]
	cmp	QWORD PTR 16[rax], 0
	je	.L25
.L24:
	mov	ecx, r15d
	lea	rdx, .LC17[rip]
	mov	esi, 16
	mov	rdi, r14
	call	snprintf@PLT
	mov	esi, DWORD PTR IORESOURCE_MEM[rip]
	mov	rdx, r14
	mov	rdi, rbp
	call	platform_get_resource_byname@PLT
	mov	rdi, rbp
	mov	rsi, rax
	call	devm_ioremap_resource@PLT
	mov	QWORD PTR 16[r13], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L72
.L25:
	xor	esi, esi
	mov	rdi, rbp
	lea	rdx, sun4i_usb_phy_ops[rip]
	call	devm_phy_create@PLT
	mov	QWORD PTR 8[r13], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L73
	mov	rdi, QWORD PTR 8[r13]
	mov	rsi, QWORD PTR 24[rsp]
	mov	DWORD PTR 0[r13], r15d
	add	rsi, QWORD PTR 64[rbx]
	call	phy_set_drvdata@PLT
.L15:
	mov	rax, QWORD PTR 72[rbx]
	add	r12, 1
	cmp	DWORD PTR [rax], r12d
	jle	.L13
.L12:
	mov	r13, QWORD PTR 64[rbx]
	mov	edi, r12d
	mov	r15d, r12d
	mov	QWORD PTR 16[rsp], r13
	mov	r13d, DWORD PTR 4[rax]
	call	BIT@PLT
	test	r13d, eax
	jne	.L15
	lea	rsi, 0[0+r12*8]
	mov	r13, QWORD PTR 16[rsp]
	mov	ecx, r12d
	mov	rdi, r14
	sub	rsi, r12
	lea	rdx, .LC9[rip]
	lea	rax, 0[0+rsi*8]
	mov	esi, 16
	add	r13, rax
	mov	QWORD PTR 24[rsp], rax
	call	snprintf@PLT
	mov	rdi, rbp
	mov	rsi, r14
	call	devm_regulator_get_optional@PLT
	mov	QWORD PTR 48[r13], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L74
.L16:
	mov	rax, QWORD PTR 72[rbx]
	cmp	QWORD PTR 24[rax], 0
	jne	.L75
	mov	edx, 16
	lea	rsi, .LC12[rip]
	mov	rdi, r14
	call	strlcpy@PLT
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L63:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	mov	DWORD PTR 12[rsp], eax
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L76
	mov	eax, DWORD PTR 12[rsp]
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L62:
	.cfi_restore_state
	mov	eax, DWORD PTR ENOMEM[rip]
	neg	eax
	mov	DWORD PTR 12[rsp], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L66:
	lea	rsi, .LC4[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_err@PLT
	mov	rdi, QWORD PTR 48[rbx]
	call	PTR_ERR@PLT
	mov	DWORD PTR 12[rsp], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L74:
	mov	rdi, QWORD PTR 48[r13]
	call	PTR_ERR@PLT
	add	eax, DWORD PTR EPROBE_DEFER[rip]
	je	.L77
	mov	QWORD PTR 48[r13], 0
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L64:
	mov	rdi, QWORD PTR 96[rbx]
	call	PTR_ERR@PLT
	mov	DWORD PTR 12[rsp], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L65:
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_err@PLT
	mov	rdi, QWORD PTR 56[rbx]
	call	PTR_ERR@PLT
	mov	DWORD PTR 12[rsp], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L70:
	mov	ecx, r15d
	lea	rdx, .LC14[rip]
	mov	esi, 16
	mov	rdi, r14
	call	snprintf@PLT
	mov	rdi, rbp
	mov	rsi, r14
	call	devm_clk_get@PLT
	mov	QWORD PTR 32[r13], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	je	.L22
	mov	rdx, r14
	lea	rsi, .LC13[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_err@PLT
	mov	rdi, QWORD PTR 32[r13]
	call	PTR_ERR@PLT
	mov	DWORD PTR 12[rsp], eax
	jmp	.L1
.L77:
	mov	rdx, r14
	lea	rsi, .LC10[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_err@PLT
.L60:
	mov	eax, DWORD PTR EPROBE_DEFER[rip]
	neg	eax
	mov	DWORD PTR 12[rsp], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L68:
	lea	rsi, .LC7[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_err@PLT
	mov	rdi, QWORD PTR 80[rbx]
	call	PTR_ERR@PLT
	mov	DWORD PTR 12[rsp], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdi, QWORD PTR 56[rbx]
	call	gpiod_to_irq@PLT
	mov	QWORD PTR [rbx], rax
	mov	rsi, rax
	test	rax, rax
	jle	.L27
	mov	edx, DWORD PTR sun4i_usb_phy0_id_vbus_det_irq[rip]
	mov	ecx, DWORD PTR IRQF_TRIGGER_RISING[rip]
	mov	r9, rbx
	mov	rdi, rbp
	or	ecx, DWORD PTR IRQF_TRIGGER_FALLING[rip]
	lea	r8, .LC19[rip]
	call	devm_request_irq@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L78
.L27:
	mov	rdi, QWORD PTR 48[rbx]
	call	gpiod_to_irq@PLT
	mov	QWORD PTR 8[rbx], rax
	mov	rsi, rax
	test	rax, rax
	jg	.L79
.L28:
	cmp	QWORD PTR 40[rbx], 0
	je	.L29
	mov	eax, DWORD PTR sun4i_usb_phy0_vbus_notify[rip]
	mov	QWORD PTR 24[rbx], 0
	lea	rdi, 24[rbx]
	mov	DWORD PTR 32[rbx], eax
	call	power_supply_reg_notifier@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L80
	mov	DWORD PTR 16[rbx], 1
.L29:
	mov	esi, DWORD PTR sun4i_usb_phy_xlate[rip]
	mov	rdi, rbp
	call	devm_of_phy_provider_register@PLT
	mov	rdi, rax
	mov	r12, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L81
	lea	rsi, .LC23[rip]
	mov	rdi, rbp
	call	dev_dbg@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	edx, DWORD PTR 12[rsp]
	lea	rsi, .LC8[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L67:
	lea	rsi, .LC6[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_err@PLT
	mov	rdi, QWORD PTR 40[rbx]
	call	PTR_ERR@PLT
	mov	DWORD PTR 12[rsp], eax
	jmp	.L1
.L69:
	mov	rdx, r14
	lea	rsi, .LC13[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_err@PLT
	mov	rdi, QWORD PTR 40[r13]
	call	PTR_ERR@PLT
	mov	DWORD PTR 12[rsp], eax
	jmp	.L1
.L71:
	mov	rdx, r14
	lea	rsi, .LC16[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_err@PLT
	mov	rdi, QWORD PTR 24[r13]
	call	PTR_ERR@PLT
	mov	DWORD PTR 12[rsp], eax
	jmp	.L1
.L73:
	mov	edx, r15d
	lea	rsi, .LC18[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_err@PLT
	mov	rdi, QWORD PTR 8[r13]
	call	PTR_ERR@PLT
	mov	DWORD PTR 12[rsp], eax
	jmp	.L1
.L79:
	mov	edx, DWORD PTR sun4i_usb_phy0_id_vbus_det_irq[rip]
	mov	ecx, DWORD PTR IRQF_TRIGGER_RISING[rip]
	mov	r9, rbx
	mov	rdi, rbp
	or	ecx, DWORD PTR IRQF_TRIGGER_FALLING[rip]
	lea	r8, .LC21[rip]
	call	devm_request_irq@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L28
	mov	edx, eax
	lea	rsi, .LC22[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_err@PLT
	mov	QWORD PTR 8[rbx], -1
	mov	rdi, rbp
	call	sun4i_usb_phy_remove@PLT
	mov	DWORD PTR 12[rsp], r12d
	jmp	.L1
.L72:
	mov	rdi, QWORD PTR 16[r13]
	call	PTR_ERR@PLT
	mov	DWORD PTR 12[rsp], eax
	jmp	.L1
.L81:
	mov	rdi, rbp
	call	sun4i_usb_phy_remove@PLT
	mov	rdi, r12
	call	PTR_ERR@PLT
	mov	DWORD PTR 12[rsp], eax
	jmp	.L1
.L78:
	mov	edx, eax
	lea	rsi, .LC20[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_err@PLT
	mov	DWORD PTR 12[rsp], r12d
	jmp	.L1
.L80:
	mov	rdi, rbp
	call	sun4i_usb_phy_remove@PLT
	mov	DWORD PTR 12[rsp], r12d
	jmp	.L1
.L76:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	sun4i_usb_phy_probe, .-sun4i_usb_phy_probe
	.comm	sun4i_usb_phy_xlate,4,4
	.comm	sun4i_usb_phy_ops,4,4
	.comm	sun4i_usb_phy0_vbus_notify,4,4
	.comm	sun4i_usb_phy0_id_vbus_det_scan,4,4
	.comm	sun4i_usb_phy0_id_vbus_det_irq,4,4
	.comm	sun4i_usb_phy0_cable,4,4
	.comm	IRQF_TRIGGER_RISING,4,4
	.comm	IRQF_TRIGGER_FALLING,4,4
	.comm	IORESOURCE_MEM,4,4
	.comm	GPIOD_IN,4,4
	.comm	GFP_KERNEL,4,4
	.comm	EPROBE_DEFER,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-sun4i-usb.c_sun4i_usb_phy_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"phy_ctrl\000"
	.align	2
.LC1:
	.ascii	"usb0_id_det\000"
	.align	2
.LC2:
	.ascii	"Couldn't request ID GPIO\012\000"
	.align	2
.LC3:
	.ascii	"usb0_vbus_det\000"
	.align	2
.LC4:
	.ascii	"Couldn't request VBUS detect GPIO\012\000"
	.align	2
.LC5:
	.ascii	"usb0_vbus_power-supply\000"
	.align	2
.LC6:
	.ascii	"Couldn't get the VBUS power supply\012\000"
	.align	2
.LC7:
	.ascii	"Couldn't allocate our extcon device\012\000"
	.align	2
.LC8:
	.ascii	"failed to register extcon: %d\012\000"
	.align	2
.LC9:
	.ascii	"usb%d_vbus\000"
	.align	2
.LC10:
	.ascii	"Couldn't get regulator %s... Deferring probe\012\000"
	.align	2
.LC11:
	.ascii	"usb%d_phy\000"
	.align	2
.LC12:
	.ascii	"usb_phy\000"
	.align	2
.LC13:
	.ascii	"failed to get clock %s\012\000"
	.align	2
.LC14:
	.ascii	"usb%d_hsic_12M\000"
	.align	2
.LC15:
	.ascii	"usb%d_reset\000"
	.align	2
.LC16:
	.ascii	"failed to get reset %s\012\000"
	.align	2
.LC17:
	.ascii	"pmu%d\000"
	.align	2
.LC18:
	.ascii	"failed to create PHY %d\012\000"
	.align	2
.LC19:
	.ascii	"usb0-id-det\000"
	.align	2
.LC20:
	.ascii	"Err requesting id-det-irq: %d\012\000"
	.align	2
.LC21:
	.ascii	"usb0-vbus-det\000"
	.align	2
.LC22:
	.ascii	"Err requesting vbus-det-irq: %d\012\000"
	.align	2
.LC23:
	.ascii	"successfully loaded\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC24:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sun4i_usb_phy_probe, %function
sun4i_usb_phy_probe:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L85
	sub	sp, sp, #44
	ldr	r2, [r3]
	ldr	r3, .L85+4
	mov	r1, #60
	mov	r6, r0
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	ldr	r5, [r0]
	bl	devm_kzalloc
	subs	r4, r0, #0
	beq	.L65
	add	r0, r4, #56
	bl	spin_lock_init
	ldr	r3, .L85+8
	add	r0, r4, #52
	ldr	r1, [r3]
	bl	INIT_DELAYED_WORK
	mov	r1, r4
	mov	r0, r6
	bl	dev_set_drvdata
	mov	r0, r6
	bl	of_device_get_match_data
	cmp	r0, #0
	str	r0, [r4, #36]
	beq	.L66
	ldr	fp, .L85+12
	ldr	r2, .L85+16
	ldr	r1, [fp]
	mov	r0, r6
	bl	platform_get_resource_byname
	mov	r1, r0
	mov	r0, r6
	bl	devm_ioremap_resource
	str	r0, [r4, #48]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L67
	ldr	r7, .L85+20
	ldr	r1, .L85+24
	ldr	r2, [r7]
	mov	r0, r6
	bl	devm_gpiod_get_optional
	str	r0, [r4, #28]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L68
	ldr	r2, [r7]
	ldr	r1, .L85+28
	mov	r0, r6
	bl	devm_gpiod_get_optional
	str	r0, [r4, #24]
	bl	IS_ERR
	subs	r2, r0, #0
	bne	.L69
	mov	r0, r5
	ldr	r1, .L85+32
	bl	of_find_property
	cmp	r0, #0
	beq	.L8
	ldr	r1, .L85+32
	mov	r0, r6
	bl	devm_power_supply_get_by_phandle
	str	r0, [r4, #20]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L70
	ldr	r3, [r4, #20]
	cmp	r3, #0
	beq	.L63
.L8:
	mov	r1, #0
	mov	r0, r5
	bl	of_usb_get_dr_mode_by_phy
	ldr	r3, .L85+36
	str	r0, [r4, #44]
	ldr	r1, [r3]
	mov	r0, r6
	bl	devm_extcon_dev_allocate
	str	r0, [r4, #40]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L71
	mov	r0, r6
	ldr	r1, [r4, #40]
	bl	devm_extcon_dev_register
	subs	r5, r0, #0
	bne	.L11
	ldr	r3, [r4, #36]
	ldr	r2, [r3]
	cmp	r2, #0
	bgt	.L12
	b	.L13
.L78:
	mov	r3, r5
	mov	r1, #16
	ldr	r2, .L85+40
	add	r0, sp, #20
	bl	snprintf
.L20:
	add	r1, sp, #20
	mov	r0, r6
	bl	devm_clk_get
	str	r0, [r8, #20]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L72
	ldr	r3, [r4, #36]
	ldr	r3, [r3, #8]
	sub	r2, r3, r5
	clz	r2, r2
	cmp	r3, #0
	lsr	r2, r2, #5
	moveq	r2, #0
	cmp	r2, #0
	bne	.L73
.L22:
	mov	r3, r5
	ldr	r2, .L85+44
	mov	r1, #16
	add	r0, sp, #20
	bl	snprintf
	add	r1, sp, #20
	mov	r0, r6
	bl	devm_reset_control_get
	str	r0, [r8, #12]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L74
	cmp	r5, #0
	bne	.L24
	ldr	r3, [r4, #36]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	beq	.L25
.L24:
	mov	r3, r5
	mov	r1, #16
	ldr	r2, .L85+48
	add	r0, sp, #20
	bl	snprintf
	add	r2, sp, #20
	ldr	r1, [fp]
	mov	r0, r6
	bl	platform_get_resource_byname
	mov	r1, r0
	mov	r0, r6
	bl	devm_ioremap_resource
	str	r0, [r8, #8]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L75
.L25:
	mov	r1, #0
	ldr	r2, .L85+52
	mov	r0, r6
	bl	devm_phy_create
	str	r0, [r8, #4]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L76
	ldr	r1, [r4, #32]
	ldr	r3, [sp, #12]
	ldr	r0, [r8, #4]
	str	r5, [r9, r10, lsl #2]
	add	r1, r1, r3
	bl	phy_set_drvdata
.L15:
	ldr	r3, [r4, #36]
	add	r5, r5, #1
	ldr	r2, [r3]
	cmp	r2, r5
	ble	.L13
.L12:
	mov	r0, r5
	ldr	r7, [r3, #4]
	ldr	r9, [r4, #32]
	bl	BIT
	ands	r7, r7, r0
	bne	.L15
	mov	r3, r5
	ldr	r2, .L85+56
	mov	r1, #16
	add	r0, sp, #20
	bl	snprintf
	add	r1, sp, #20
	mov	r0, r6
	bl	devm_regulator_get_optional
	rsb	r10, r5, r5, lsl #3
	add	r8, r9, r10, lsl #2
	str	r0, [r8, #24]
	bl	IS_ERR
	lsl	r3, r10, #2
	cmp	r0, #0
	str	r3, [sp, #12]
	bne	.L77
.L16:
	ldr	r3, [r4, #36]
	ldr	r3, [r3, #16]
	cmp	r3, #0
	bne	.L78
	mov	r2, #16
	ldr	r1, .L85+60
	add	r0, sp, #20
	bl	strlcpy
	b	.L20
.L66:
	ldr	r3, .L85+64
	ldr	r0, [r3]
	rsb	r5, r0, #0
.L1:
	ldr	r3, .L85+4
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L79
	mov	r0, r5
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L65:
	ldr	r3, .L85+68
	ldr	r0, [r3]
	rsb	r5, r0, #0
	b	.L1
.L69:
	ldr	r1, .L85+72
	mov	r0, r6
	bl	dev_err
	ldr	r0, [r4, #24]
	bl	PTR_ERR
	mov	r5, r0
	b	.L1
.L77:
	ldr	r0, [r8, #24]
	bl	PTR_ERR
	ldr	r3, .L85+76
	ldr	r2, [r3]
	cmn	r0, r2
	beq	.L80
	str	r7, [r8, #24]
	b	.L16
.L67:
	ldr	r0, [r4, #48]
	bl	PTR_ERR
	mov	r5, r0
	b	.L1
.L68:
	ldr	r1, .L85+80
	mov	r0, r6
	bl	dev_err
	ldr	r0, [r4, #28]
	bl	PTR_ERR
	mov	r5, r0
	b	.L1
.L73:
	mov	r3, r5
	ldr	r2, .L85+84
	mov	r1, #16
	add	r0, sp, #20
	bl	snprintf
	add	r1, sp, #20
	mov	r0, r6
	bl	devm_clk_get
	str	r0, [r8, #16]
	bl	IS_ERR
	cmp	r0, #0
	beq	.L22
	ldr	r1, .L85+88
	add	r2, sp, #20
	mov	r0, r6
	bl	dev_err
	ldr	r0, [r8, #16]
	bl	PTR_ERR
	mov	r5, r0
	b	.L1
.L80:
	mov	r0, r6
	ldr	r1, .L85+92
	add	r2, sp, #20
	bl	dev_err
.L63:
	ldr	r3, .L85+76
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L71:
	ldr	r1, .L85+96
	mov	r0, r6
	bl	dev_err
	ldr	r0, [r4, #40]
	bl	PTR_ERR
	mov	r5, r0
	b	.L1
.L13:
	ldr	r0, [r4, #28]
	bl	gpiod_to_irq
	cmp	r0, #0
	mov	r1, r0
	str	r0, [r4]
	ble	.L27
	ldr	r2, .L85+100
	ldr	r3, .L85+104
	ldr	ip, [r2]
	ldr	r3, [r3]
	ldr	r0, .L85+108
	ldr	r2, .L85+112
	str	r4, [sp, #4]
	ldr	r2, [r2]
	orr	r3, ip, r3
	str	r0, [sp]
	mov	r0, r6
	bl	devm_request_irq
	subs	r5, r0, #0
	bne	.L81
.L27:
	ldr	r0, [r4, #24]
	bl	gpiod_to_irq
	cmp	r0, #0
	mov	r1, r0
	str	r0, [r4, #4]
	bgt	.L82
.L28:
	ldr	r3, [r4, #20]
	cmp	r3, #0
	beq	.L29
	mov	r3, #0
	mov	r0, r4
	ldr	r2, .L85+116
	ldr	r2, [r2]
	str	r2, [r4, #16]
	str	r3, [r0, #12]!
	bl	power_supply_reg_notifier
	subs	r5, r0, #0
	moveq	r3, #1
	streq	r3, [r4, #8]
	bne	.L83
.L29:
	ldr	r3, .L85+120
	mov	r0, r6
	ldr	r1, [r3]
	bl	devm_of_phy_provider_register
	mov	r4, r0
	bl	IS_ERR
	subs	r5, r0, #0
	mov	r0, r6
	bne	.L84
	ldr	r1, .L85+124
	bl	dev_dbg
	b	.L1
.L11:
	mov	r0, r6
	mov	r2, r5
	ldr	r1, .L85+128
	bl	dev_err
	b	.L1
.L70:
	ldr	r1, .L85+132
	mov	r0, r6
	bl	dev_err
	ldr	r0, [r4, #20]
	bl	PTR_ERR
	mov	r5, r0
	b	.L1
.L72:
	ldr	r1, .L85+88
	add	r2, sp, #20
	mov	r0, r6
	bl	dev_err
	ldr	r0, [r8, #20]
	bl	PTR_ERR
	mov	r5, r0
	b	.L1
.L74:
	ldr	r1, .L85+136
	add	r2, sp, #20
	mov	r0, r6
	bl	dev_err
	ldr	r0, [r8, #12]
	bl	PTR_ERR
	mov	r5, r0
	b	.L1
.L76:
	mov	r2, r5
	ldr	r1, .L85+140
	mov	r0, r6
	bl	dev_err
	ldr	r0, [r8, #4]
	bl	PTR_ERR
	mov	r5, r0
	b	.L1
.L82:
	ldr	r2, .L85+100
	ldr	r3, .L85+104
	ldr	ip, [r2]
	ldr	r3, [r3]
	ldr	r0, .L85+144
	ldr	r2, .L85+112
	str	r4, [sp, #4]
	ldr	r2, [r2]
	orr	r3, ip, r3
	str	r0, [sp]
	mov	r0, r6
	bl	devm_request_irq
	subs	r5, r0, #0
	beq	.L28
	mov	r2, r5
	mov	r0, r6
	ldr	r1, .L85+148
	bl	dev_err
	mvn	r3, #0
	mov	r0, r6
	str	r3, [r4, #4]
	bl	sun4i_usb_phy_remove
	b	.L1
.L75:
	ldr	r0, [r8, #8]
	bl	PTR_ERR
	mov	r5, r0
	b	.L1
.L84:
	bl	sun4i_usb_phy_remove
	mov	r0, r4
	bl	PTR_ERR
	mov	r5, r0
	b	.L1
.L81:
	mov	r0, r6
	mov	r2, r5
	ldr	r1, .L85+152
	bl	dev_err
	b	.L1
.L83:
	mov	r0, r6
	bl	sun4i_usb_phy_remove
	b	.L1
.L79:
	bl	__stack_chk_fail
.L86:
	.align	2
.L85:
	.word	GFP_KERNEL
	.word	.LC24
	.word	sun4i_usb_phy0_id_vbus_det_scan
	.word	IORESOURCE_MEM
	.word	.LC0
	.word	GPIOD_IN
	.word	.LC1
	.word	.LC3
	.word	.LC5
	.word	sun4i_usb_phy0_cable
	.word	.LC11
	.word	.LC15
	.word	.LC17
	.word	sun4i_usb_phy_ops
	.word	.LC9
	.word	.LC12
	.word	EINVAL
	.word	ENOMEM
	.word	.LC4
	.word	EPROBE_DEFER
	.word	.LC2
	.word	.LC14
	.word	.LC13
	.word	.LC10
	.word	.LC7
	.word	IRQF_TRIGGER_RISING
	.word	IRQF_TRIGGER_FALLING
	.word	.LC19
	.word	sun4i_usb_phy0_id_vbus_det_irq
	.word	sun4i_usb_phy0_vbus_notify
	.word	sun4i_usb_phy_xlate
	.word	.LC23
	.word	.LC8
	.word	.LC6
	.word	.LC16
	.word	.LC18
	.word	.LC21
	.word	.LC22
	.word	.LC20
	.size	sun4i_usb_phy_probe, .-sun4i_usb_phy_probe
	.comm	sun4i_usb_phy_xlate,4,4
	.comm	sun4i_usb_phy_ops,4,4
	.comm	sun4i_usb_phy0_vbus_notify,4,4
	.comm	sun4i_usb_phy0_id_vbus_det_scan,4,4
	.comm	sun4i_usb_phy0_id_vbus_det_irq,4,4
	.comm	sun4i_usb_phy0_cable,4,4
	.comm	IRQF_TRIGGER_RISING,4,4
	.comm	IRQF_TRIGGER_FALLING,4,4
	.comm	IORESOURCE_MEM,4,4
	.comm	GPIOD_IN,4,4
	.comm	GFP_KERNEL,4,4
	.comm	EPROBE_DEFER,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
