	.file	"extr_b53_mdio.c_b53_mdio_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"leaving address %d to PHY\n"
.LC1:
	.string	"Unsupported device: 0x%08x\n"
.LC2:
	.string	"brcm,bcm7445d0"
.LC3:
	.string	"sf2 slave mii"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC4:
	.string	"failed to register switch: %i\n"
	.text
	.p2align 4
	.type	b53_mdio_probe, @function
b53_mdio_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rdx, QWORD PTR [rdi]
	cmp	QWORD PTR BRCM_PSEUDO_PHY_ADDR[rip], rdx
	je	.L2
	test	rdx, rdx
	jne	.L24
.L2:
	mov	rdi, QWORD PTR 16[rbx]
	xor	esi, esi
	mov	edx, 2
	call	mdiobus_read@PLT
	mov	rdi, QWORD PTR 16[rbx]
	mov	edx, 3
	xor	esi, esi
	sal	eax, 16
	mov	ebp, eax
	call	mdiobus_read@PLT
	or	eax, ebp
	mov	edx, eax
	and	edx, -1024
	cmp	edx, DWORD PTR B53_BRCM_OUI_1[rip]
	je	.L4
	cmp	edx, DWORD PTR B53_BRCM_OUI_2[rip]
	je	.L4
	cmp	edx, DWORD PTR B53_BRCM_OUI_3[rip]
	je	.L4
	cmp	edx, DWORD PTR B53_BRCM_OUI_4[rip]
	jne	.L25
.L4:
	lea	rdi, .LC2[rip]
	call	of_machine_is_compatible@PLT
	test	rax, rax
	je	.L5
	mov	rax, QWORD PTR 16[rbx]
	lea	rsi, .LC3[rip]
	mov	edi, DWORD PTR [rax]
	call	strcmp@PLT
	mov	r12d, DWORD PTR EPROBE_DEFER[rip]
	neg	r12d
	test	rax, rax
	jne	.L1
.L5:
	mov	rdx, QWORD PTR 16[rbx]
	lea	r13, 8[rbx]
	lea	rsi, b53_mdio_ops[rip]
	mov	rdi, r13
	call	b53_switch_alloc@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	mov	rbp, rax
	neg	r12d
	test	rax, rax
	je	.L1
	mov	DWORD PTR [rax], 255
	mov	rax, QWORD PTR 16[rbx]
	mov	rsi, rbp
	mov	rdi, r13
	mov	QWORD PTR 8[rbp], rax
	call	dev_set_drvdata@PLT
	mov	rdi, rbp
	call	b53_switch_register@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L26
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	lea	rdi, 8[rdi]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	r12d, DWORD PTR ENODEV[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	lea	rdi, 8[rbx]
	mov	edx, eax
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	mov	r12d, DWORD PTR ENODEV[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L26:
	mov	edx, eax
	lea	rsi, .LC4[rip]
	mov	rdi, r13
	call	dev_err@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	b53_mdio_probe, .-b53_mdio_probe
	.comm	b53_mdio_ops,4,4
	.comm	EPROBE_DEFER,4,4
	.comm	ENOMEM,4,4
	.comm	ENODEV,4,4
	.comm	BRCM_PSEUDO_PHY_ADDR,8,8
	.comm	B53_BRCM_OUI_4,4,4
	.comm	B53_BRCM_OUI_3,4,4
	.comm	B53_BRCM_OUI_2,4,4
	.comm	B53_BRCM_OUI_1,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_b53_mdio.c_b53_mdio_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"leaving address %d to PHY\012\000"
	.align	2
.LC1:
	.ascii	"Unsupported device: 0x%08x\012\000"
	.align	2
.LC2:
	.ascii	"brcm,bcm7445d0\000"
	.align	2
.LC3:
	.ascii	"sf2 slave mii\000"
	.align	2
.LC4:
	.ascii	"failed to register switch: %i\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	b53_mdio_probe, %function
b53_mdio_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L23
	ldr	r2, [r0]
	ldr	r1, [r3]
	push	{r4, r5, r6, lr}
	cmp	r1, r2
	cmpne	r2, #0
	mov	r4, r0
	movne	r5, #1
	moveq	r5, #0
	bne	.L18
	mov	r1, r5
	mov	r2, #2
	ldr	r0, [r0, #8]
	bl	mdiobus_read
	mov	r3, r0
	mov	r1, r5
	mov	r2, #3
	ldr	r0, [r4, #8]
	lsl	r5, r3, #16
	bl	mdiobus_read
	ldr	r1, .L23+4
	orr	r2, r5, r0
	ldr	r1, [r1]
	bic	r3, r2, #1020
	bic	r3, r3, #3
	cmp	r3, r1
	beq	.L4
	ldr	r1, .L23+8
	ldr	r1, [r1]
	cmp	r3, r1
	beq	.L4
	ldr	r1, .L23+12
	ldr	r1, [r1]
	cmp	r3, r1
	beq	.L4
	ldr	r1, .L23+16
	ldr	r1, [r1]
	cmp	r3, r1
	bne	.L19
.L4:
	ldr	r0, .L23+20
	bl	of_machine_is_compatible
	cmp	r0, #0
	beq	.L5
	ldr	r3, [r4, #8]
	ldr	r1, .L23+24
	ldr	r0, [r3]
	bl	strcmp
	cmp	r0, #0
	bne	.L20
.L5:
	add	r6, r4, #4
	mov	r0, r6
	ldr	r2, [r4, #8]
	ldr	r1, .L23+28
	bl	b53_switch_alloc
	subs	r5, r0, #0
	beq	.L21
	mov	r2, #255
	ldr	r3, [r4, #8]
	mov	r1, r5
	stm	r5, {r2, r3}
	mov	r0, r6
	bl	dev_set_drvdata
	mov	r0, r5
	bl	b53_switch_register
	subs	r4, r0, #0
	bne	.L22
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L21:
	ldr	r3, .L23+32
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L20:
	ldr	r3, .L23+36
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L19:
	add	r0, r4, #4
	ldr	r1, .L23+40
	bl	dev_err
	ldr	r3, .L23+44
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L18:
	ldr	r1, .L23+48
	add	r0, r0, #4
	bl	dev_err
	ldr	r3, .L23+44
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L22:
	mov	r0, r6
	mov	r2, r4
	ldr	r1, .L23+52
	bl	dev_err
	b	.L1
.L24:
	.align	2
.L23:
	.word	BRCM_PSEUDO_PHY_ADDR
	.word	B53_BRCM_OUI_1
	.word	B53_BRCM_OUI_2
	.word	B53_BRCM_OUI_3
	.word	B53_BRCM_OUI_4
	.word	.LC2
	.word	.LC3
	.word	b53_mdio_ops
	.word	ENOMEM
	.word	EPROBE_DEFER
	.word	.LC1
	.word	ENODEV
	.word	.LC0
	.word	.LC4
	.size	b53_mdio_probe, .-b53_mdio_probe
	.comm	b53_mdio_ops,4,4
	.comm	EPROBE_DEFER,4,4
	.comm	ENOMEM,4,4
	.comm	ENODEV,4,4
	.comm	BRCM_PSEUDO_PHY_ADDR,4,4
	.comm	B53_BRCM_OUI_4,4,4
	.comm	B53_BRCM_OUI_3,4,4
	.comm	B53_BRCM_OUI_2,4,4
	.comm	B53_BRCM_OUI_1,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
