	.file	"extr_phy_device.c_phy_attach_direct.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"PHY already attached\n"
	.text
	.p2align 4
	.globl	phy_attach_direct
	.type	phy_attach_direct, @function
phy_attach_direct:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	cmp	QWORD PTR 24[rsi], 0
	mov	ebx, ecx
	je	.L2
.L6:
	cmp	QWORD PTR 16[rbp], 0
	jne	.L11
	mov	rdx, QWORD PTR 0[rbp]
	xor	eax, eax
	mov	QWORD PTR 16[rbp], r13
	mov	DWORD PTR 12[rbp], r12d
	cmp	QWORD PTR [rdx], 0
	mov	DWORD PTR 8[rbp], ebx
	je	.L1
	mov	rdi, rbp
	call	phy_scan_fixups@PLT
	test	eax, eax
	js	.L1
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, rbp
	call	[QWORD PTR [rax]]
	mov	edx, 0
	test	eax, eax
	cmovg	eax, edx
.L1:
	pop	rbx
	.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
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rdi, r13
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	eax, DWORD PTR EBUSY[rip]
	pop	rbx
	.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
.L2:
	.cfi_restore_state
	lea	r14, 24[rsi]
	lea	rax, genphy_driver[rip]
	mov	QWORD PTR 24[rsi], rax
	mov	rdi, r14
	call	[QWORD PTR genphy_driver[rip]]
	test	eax, eax
	js	.L1
	mov	rdi, r14
	call	device_bind_driver@PLT
	test	eax, eax
	je	.L6
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	phy_attach_direct, .-phy_attach_direct
	.comm	genphy_driver,8,8
	.comm	EBUSY,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_device.c_phy_attach_direct.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"PHY already attached\012\000"
	.text
	.align	2
	.global	phy_attach_direct
	.syntax unified
	.arm
	.fpu softvfp
	.type	phy_attach_direct, %function
phy_attach_direct:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	ldr	r1, [r1, #16]
	mov	r7, r0
	cmp	r1, #0
	mov	r6, r2
	mov	r5, r3
	beq	.L2
.L6:
	ldr	r3, [r4, #12]
	cmp	r3, #0
	bne	.L12
	ldr	r3, [r4]
	str	r7, [r4, #12]
	ldr	r0, [r3]
	str	r6, [r4, #8]
	cmp	r0, #0
	str	r5, [r4, #4]
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r0, r4
	bl	phy_scan_fixups
	cmp	r0, #0
	poplt	{r4, r5, r6, r7, r8, pc}
	ldr	r3, [r4]
	mov	r0, r4
	ldr	r3, [r3]
	blx	r3
	and	r0, r0, r0, asr #31
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	mov	r0, r7
	ldr	r1, .L13
	bl	dev_err
	ldr	r3, .L13+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, .L13+8
	add	r8, r4, #16
	str	r3, [r4, #16]
	mov	r0, r8
	ldr	r3, [r3]
	blx	r3
	cmp	r0, #0
	poplt	{r4, r5, r6, r7, r8, pc}
	mov	r0, r8
	bl	device_bind_driver
	cmp	r0, #0
	beq	.L6
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	EBUSY
	.word	genphy_driver
	.size	phy_attach_direct, .-phy_attach_direct
	.comm	genphy_driver,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
