	.file	"extr_chip.c_mv88e6xxx_mac_config.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"p%d: failed to configure MAC\n"
	.text
	.p2align 4
	.type	mv88e6xxx_mac_config, @function
mv88e6xxx_mac_config:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rcx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	cmp	DWORD PTR MLO_AN_PHY[rip], edx
	mov	r14, QWORD PTR 8[rdi]
	je	.L2
.L5:
	cmp	DWORD PTR MLO_AN_FIXED[rip], ebp
	jne	.L19
	mov	r15d, DWORD PTR LINK_FORCED_UP[rip]
	mov	ecx, DWORD PTR [rbx]
	mov	r8d, DWORD PTR 4[rbx]
.L7:
	mov	edi, DWORD PTR 16[rbx]
	mov	esi, DWORD PTR Pause[rip]
	mov	DWORD PTR 12[rsp], r8d
	mov	DWORD PTR 8[rsp], ecx
	call	phylink_test@PLT
	mov	rdi, r14
	mov	ebp, eax
	call	mv88e6xxx_reg_lock@PLT
	mov	eax, DWORD PTR 12[rbx]
	xor	r9d, r9d
	test	ebp, ebp
	setne	r9b
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	edx, r15d
	mov	esi, r13d
	push	rax
	.cfi_def_cfa_offset 96
	mov	r8d, DWORD PTR 28[rsp]
	mov	rdi, r14
	mov	ecx, DWORD PTR 24[rsp]
	call	mv88e6xxx_port_setup_mac@PLT
	mov	rdi, r14
	mov	ebx, eax
	call	mv88e6xxx_reg_unlock@PLT
	pop	rax
	.cfi_def_cfa_offset 88
	pop	rdx
	.cfi_def_cfa_offset 80
	test	ebx, ebx
	je	.L1
	add	ebx, DWORD PTR EOPNOTSUPP[rip]
	je	.L1
	mov	edi, DWORD PTR [r12]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	edx, r13d
	lea	rsi, .LC0[rip]
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	dev_err@PLT
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	esi, r13d
	mov	rdi, r12
	call	mv88e6xxx_phy_is_internal@PLT
	test	rax, rax
	jne	.L8
	mov	r15d, DWORD PTR 8[rbx]
	mov	ecx, DWORD PTR [rbx]
	mov	r8d, DWORD PTR 4[rbx]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L2:
	call	mv88e6xxx_phy_is_internal@PLT
	test	rax, rax
	je	.L5
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	ecx, DWORD PTR SPEED_UNFORCED[rip]
	mov	r8d, DWORD PTR DUPLEX_UNFORCED[rip]
	mov	r15d, DWORD PTR LINK_UNFORCED[rip]
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	mv88e6xxx_mac_config, .-mv88e6xxx_mac_config
	.comm	SPEED_UNFORCED,4,4
	.comm	Pause,4,4
	.comm	MLO_AN_PHY,4,4
	.comm	MLO_AN_FIXED,4,4
	.comm	LINK_UNFORCED,4,4
	.comm	LINK_FORCED_UP,4,4
	.comm	EOPNOTSUPP,4,4
	.comm	DUPLEX_UNFORCED,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_chip.c_mv88e6xxx_mac_config.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"p%d: failed to configure MAC\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mv88e6xxx_mac_config, %function
mv88e6xxx_mac_config:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r2
	ldr	r2, .L20
	mov	r4, r3
	ldr	r3, [r2]
	mov	r6, r0
	cmp	r3, r5
	mov	r7, r1
	ldr	r8, [r0, #4]
	sub	sp, sp, #20
	beq	.L2
.L5:
	ldr	r3, .L20+4
	ldr	r3, [r3]
	cmp	r3, r5
	bne	.L19
	ldr	r3, .L20+8
	ldr	fp, [r4]
	ldr	r10, [r3]
	ldr	r9, [r4, #4]
.L7:
	ldr	r3, .L20+12
	ldr	r0, [r4, #16]
	ldr	r1, [r3]
	bl	phylink_test
	mov	r5, r0
	mov	r0, r8
	bl	mv88e6xxx_reg_lock
	subs	r5, r5, #0
	movne	r5, #1
	ldr	r3, [r4, #12]
	mov	r2, r10
	mov	r1, r7
	str	r3, [sp, #8]
	mov	r0, r8
	mov	r3, fp
	str	r5, [sp, #4]
	str	r9, [sp]
	bl	mv88e6xxx_port_setup_mac
	mov	r4, r0
	mov	r0, r8
	bl	mv88e6xxx_reg_unlock
	cmp	r4, #0
	beq	.L1
	ldr	r3, .L20+16
	ldr	r3, [r3]
	cmn	r4, r3
	beq	.L1
	mov	r2, r7
	ldr	r0, [r6]
	ldr	r1, .L20+20
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	dev_err
.L19:
	mov	r1, r7
	mov	r0, r6
	bl	mv88e6xxx_phy_is_internal
	cmp	r0, #0
	ldrne	r1, .L20+24
	ldrne	r2, .L20+28
	ldrne	r3, .L20+32
	ldreq	r10, [r4, #8]
	ldreq	fp, [r4]
	ldreq	r9, [r4, #4]
	ldrne	fp, [r1]
	ldrne	r9, [r2]
	ldrne	r10, [r3]
	b	.L7
.L2:
	bl	mv88e6xxx_phy_is_internal
	cmp	r0, #0
	beq	.L5
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L21:
	.align	2
.L20:
	.word	MLO_AN_PHY
	.word	MLO_AN_FIXED
	.word	LINK_FORCED_UP
	.word	Pause
	.word	EOPNOTSUPP
	.word	.LC0
	.word	SPEED_UNFORCED
	.word	DUPLEX_UNFORCED
	.word	LINK_UNFORCED
	.size	mv88e6xxx_mac_config, .-mv88e6xxx_mac_config
	.comm	SPEED_UNFORCED,4,4
	.comm	Pause,4,4
	.comm	MLO_AN_PHY,4,4
	.comm	MLO_AN_FIXED,4,4
	.comm	LINK_UNFORCED,4,4
	.comm	LINK_FORCED_UP,4,4
	.comm	EOPNOTSUPP,4,4
	.comm	DUPLEX_UNFORCED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
