	.file	"extr_b53_phy_fixup.c_b53_phy_fixup.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	b53_phy_fixup, @function
b53_phy_fixup:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR B53_PSEUDO_PHY[rip]
	cmp	QWORD PTR 8[rdi], rax
	je	.L11
	xor	eax, eax
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	esi, esi
	mov	edx, 2
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	r12, QWORD PTR 16[rdi]
	mov	rbx, rdi
	mov	rdi, r12
	call	mdiobus_read@PLT
	mov	edx, 3
	xor	esi, esi
	mov	rdi, r12
	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]
	jne	.L3
.L4:
	mov	DWORD PTR [rbx], eax
.L3:
	pop	rbx
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	b53_phy_fixup, .-b53_phy_fixup
	.comm	B53_PSEUDO_PHY,8,8
	.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_phy_fixup.c_b53_phy_fixup.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	b53_phy_fixup, %function
b53_phy_fixup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L12
	ldr	r2, [r0, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L11
	mov	r0, #0
	bx	lr
.L11:
	push	{r4, r5, r6, lr}
	ldr	r6, [r0, #8]
	mov	r2, #2
	mov	r1, #0
	mov	r4, r0
	mov	r0, r6
	bl	mdiobus_read
	mov	r2, #3
	mov	r5, r0
	mov	r1, #0
	mov	r0, r6
	bl	mdiobus_read
	lsl	r5, r5, #16
	ldr	r2, .L12+4
	orr	r0, r5, r0
	ldr	r2, [r2]
	bic	r3, r0, #1020
	bic	r3, r3, #3
	cmp	r3, r2
	beq	.L4
	ldr	r2, .L12+8
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L4
	ldr	r2, .L12+12
	ldr	r2, [r2]
	cmp	r3, r2
	bne	.L3
.L4:
	str	r0, [r4]
.L3:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L13:
	.align	2
.L12:
	.word	B53_PSEUDO_PHY
	.word	B53_BRCM_OUI_1
	.word	B53_BRCM_OUI_2
	.word	B53_BRCM_OUI_3
	.size	b53_phy_fixup, .-b53_phy_fixup
	.comm	B53_PSEUDO_PHY,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
