	.file	"extr_phy-miphy28lp.c_miphy28lp_init_usb3.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"usb3-up mode, addr 0x%p\n"
.LC1:
	.string	"USB3 phy setup failed\n"
	.text
	.p2align 4
	.type	miphy28lp_init_usb3, @function
miphy28lp_init_usb3:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	edx, DWORD PTR 8[rdi]
	test	edx, edx
	je	.L2
	cmp	QWORD PTR [rdi], 0
	mov	rbp, rdi
	jne	.L3
.L2:
	mov	r12d, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rbx, QWORD PTR 16[rdi]
	lea	rsi, .LC0[rip]
	mov	edi, DWORD PTR [rbx]
	call	dev_info@PLT
	mov	esi, DWORD PTR MIPHY_CTRL_SYNC_D_EN[rip]
	mov	rdi, rbp
	call	miphy28lp_setup@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L11
	mov	rdi, rbp
	call	miphy28lp_configure_usb3@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	edi, 104
	lea	rsi, 35[rax]
	call	writeb_relaxed@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	edi, 97
	lea	rsi, 36[rax]
	call	writeb_relaxed@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	edi, 104
	lea	rsi, 38[rax]
	call	writeb_relaxed@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	edi, 97
	lea	rsi, 39[rax]
	call	writeb_relaxed@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	edi, 24
	lea	rsi, 41[rax]
	call	writeb_relaxed@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	edi, 97
	lea	rsi, 42[rax]
	call	writeb_relaxed@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	edi, 103
	lea	rsi, 104[rax]
	call	writeb_relaxed@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	edi, 13
	lea	rsi, 105[rax]
	call	writeb_relaxed@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	edi, 103
	lea	rsi, 106[rax]
	call	writeb_relaxed@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	edi, 13
	lea	rsi, 107[rax]
	call	writeb_relaxed@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	edi, 103
	lea	rsi, 108[rax]
	call	writeb_relaxed@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	edi, 13
	lea	rsi, 109[rax]
	call	writeb_relaxed@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	edi, 103
	lea	rsi, 110[rax]
	call	writeb_relaxed@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	edi, 13
	lea	rsi, 111[rax]
	call	writeb_relaxed@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	miphy_is_ready@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	edi, DWORD PTR [rbx]
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	miphy28lp_init_usb3, .-miphy28lp_init_usb3
	.comm	MIPHY_CTRL_SYNC_D_EN,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-miphy28lp.c_miphy28lp_init_usb3.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"usb3-up mode, addr 0x%p\012\000"
	.align	2
.LC1:
	.ascii	"USB3 phy setup failed\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	miphy28lp_init_usb3, %function
miphy28lp_init_usb3:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, [r0, #4]
	push	{r4, r5, r6, lr}
	cmp	r2, #0
	beq	.L2
	ldr	r3, [r0]
	mov	r4, r0
	cmp	r3, #0
	bne	.L3
.L2:
	ldr	r3, .L12
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L3:
	ldr	r6, [r0, #8]
	ldr	r1, .L12+4
	ldr	r0, [r6]
	bl	dev_info
	ldr	r3, .L12+8
	mov	r0, r4
	ldr	r1, [r3]
	bl	miphy28lp_setup
	subs	r5, r0, #0
	bne	.L11
	mov	r0, r4
	bl	miphy28lp_configure_usb3
	ldr	r1, [r4]
	mov	r0, #104
	add	r1, r1, #35
	bl	writeb_relaxed
	ldr	r1, [r4]
	mov	r0, #97
	add	r1, r1, #36
	bl	writeb_relaxed
	ldr	r1, [r4]
	mov	r0, #104
	add	r1, r1, #38
	bl	writeb_relaxed
	ldr	r1, [r4]
	mov	r0, #97
	add	r1, r1, #39
	bl	writeb_relaxed
	ldr	r1, [r4]
	mov	r0, #24
	add	r1, r1, #41
	bl	writeb_relaxed
	ldr	r1, [r4]
	mov	r0, #97
	add	r1, r1, #42
	bl	writeb_relaxed
	ldr	r1, [r4]
	mov	r0, #103
	add	r1, r1, #104
	bl	writeb_relaxed
	ldr	r1, [r4]
	mov	r0, #13
	add	r1, r1, #105
	bl	writeb_relaxed
	ldr	r1, [r4]
	mov	r0, #103
	add	r1, r1, #106
	bl	writeb_relaxed
	ldr	r1, [r4]
	mov	r0, #13
	add	r1, r1, #107
	bl	writeb_relaxed
	ldr	r1, [r4]
	mov	r0, #103
	add	r1, r1, #108
	bl	writeb_relaxed
	ldr	r1, [r4]
	mov	r0, #13
	add	r1, r1, #109
	bl	writeb_relaxed
	ldr	r1, [r4]
	mov	r0, #103
	add	r1, r1, #110
	bl	writeb_relaxed
	ldr	r1, [r4]
	mov	r0, #13
	add	r1, r1, #111
	bl	writeb_relaxed
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	miphy_is_ready
.L11:
	ldr	r0, [r6]
	ldr	r1, .L12+12
	bl	dev_err
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L13:
	.align	2
.L12:
	.word	EINVAL
	.word	.LC0
	.word	MIPHY_CTRL_SYNC_D_EN
	.word	.LC1
	.size	miphy28lp_init_usb3, .-miphy28lp_init_usb3
	.comm	MIPHY_CTRL_SYNC_D_EN,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
