	.file	"extr_lantiq_etop.c_ltq_etop_mdio_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"failed to allocate mii bus\n"
.LC1:
	.string	"ltq_mii"
.LC2:
	.string	"%s-%x"
	.text
	.p2align 4
	.type	ltq_etop_mdio_init, @function
ltq_etop_mdio_init:
.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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	netdev_priv@PLT
	mov	rbx, rax
	xor	eax, eax
	call	mdiobus_alloc@PLT
	mov	QWORD PTR [rbx], rax
	test	rax, rax
	je	.L10
	mov	edx, DWORD PTR ltq_etop_mdio_rd[rip]
	lea	rcx, .LC1[rip]
	mov	edi, DWORD PTR 8[rax]
	mov	QWORD PTR 24[rax], rbp
	mov	esi, DWORD PTR MII_BUS_ID_SIZE[rip]
	mov	DWORD PTR 16[rax], edx
	mov	edx, DWORD PTR ltq_etop_mdio_wr[rip]
	mov	QWORD PTR [rax], rcx
	mov	DWORD PTR 12[rax], edx
	mov	rdx, QWORD PTR 8[rbx]
	mov	r8d, DWORD PTR 8[rdx]
	mov	rcx, QWORD PTR [rdx]
	lea	rdx, .LC2[rip]
	call	snprintf@PLT
	mov	rdi, QWORD PTR [rbx]
	call	mdiobus_register@PLT
	test	rax, rax
	je	.L4
	mov	r12d, DWORD PTR ENXIO[rip]
	neg	r12d
.L5:
	mov	rdi, QWORD PTR [rbx]
	call	mdiobus_free@PLT
.L1:
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rdi, rbp
	xor	r12d, r12d
	call	ltq_etop_mdio_probe@PLT
	test	rax, rax
	je	.L1
	mov	r12d, DWORD PTR ENXIO[rip]
	mov	rdi, QWORD PTR [rbx]
	neg	r12d
	call	mdiobus_unregister@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	call	netdev_err@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	pop	rbx
	.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
	.cfi_endproc
.LFE0:
	.size	ltq_etop_mdio_init, .-ltq_etop_mdio_init
	.comm	ltq_etop_mdio_wr,4,4
	.comm	ltq_etop_mdio_rd,4,4
	.comm	MII_BUS_ID_SIZE,4,4
	.comm	ENXIO,4,4
	.comm	ENOMEM,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_lantiq_etop.c_ltq_etop_mdio_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to allocate mii bus\012\000"
	.align	2
.LC1:
	.ascii	"ltq_mii\000"
	.align	2
.LC2:
	.ascii	"%s-%x\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ltq_etop_mdio_init, %function
ltq_etop_mdio_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	sub	sp, sp, #12
	mov	r5, r0
	bl	netdev_priv
	mov	r4, r0
	bl	mdiobus_alloc
	cmp	r0, #0
	str	r0, [r4]
	beq	.L11
	mov	r2, r0
	ldr	r0, .L12
	ldr	r1, [r4, #4]
	ldr	ip, [r0]
	ldr	r3, .L12+4
	ldr	r0, [r3]
	ldr	r3, [r1]
	ldr	r1, [r1, #4]
	str	ip, [r2, #12]
	ldr	ip, .L12+8
	str	r0, [r2, #8]
	str	ip, [r2]
	ldr	r0, [r2, #4]
	str	r5, [r2, #16]
	ldr	r2, .L12+12
	str	r1, [sp]
	ldr	r1, [r2]
	ldr	r2, .L12+16
	bl	snprintf
	ldr	r0, [r4]
	bl	mdiobus_register
	cmp	r0, #0
	beq	.L4
	ldr	r3, .L12+20
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L5:
	ldr	r0, [r4]
	bl	mdiobus_free
.L1:
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L4:
	mov	r0, r5
	bl	ltq_etop_mdio_probe
	subs	r5, r0, #0
	beq	.L1
	ldr	r3, .L12+20
	ldr	r0, [r4]
	ldr	r5, [r3]
	rsb	r5, r5, #0
	bl	mdiobus_unregister
	b	.L5
.L11:
	mov	r0, r5
	ldr	r1, .L12+24
	bl	netdev_err
	ldr	r3, .L12+28
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L13:
	.align	2
.L12:
	.word	ltq_etop_mdio_rd
	.word	ltq_etop_mdio_wr
	.word	.LC1
	.word	MII_BUS_ID_SIZE
	.word	.LC2
	.word	ENXIO
	.word	.LC0
	.word	ENOMEM
	.size	ltq_etop_mdio_init, .-ltq_etop_mdio_init
	.comm	ltq_etop_mdio_wr,4,4
	.comm	ltq_etop_mdio_rd,4,4
	.comm	MII_BUS_ID_SIZE,4,4
	.comm	ENXIO,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
