	.file	"extr_xgbe-mdio.c_xgbe_an73_state_machine.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Auto negotiation"
.LC1:
	.string	"Parallel detection"
.LC2:
	.string	"CL73 AN %s\n"
.LC3:
	.string	"%s successful\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC4:
	.string	"error during auto-negotiation, state=%u\n"
	.section	.rodata.str1.1
.LC5:
	.string	"CL73 AN result: %s\n"
	.text
	.p2align 4
	.type	xgbe_an73_state_machine, @function
xgbe_an73_state_machine:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR 4[rdi]
	test	eax, eax
	je	.L1
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	lea	r14, .LC0[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	lea	r13, .LC1[rip]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	lea	r12, .L11[rip]
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edx, DWORD PTR XGBE_AN_CL73_PG_RCV[rip]
	test	edx, eax
	je	.L4
	not	edx
	mov	DWORD PTR 0[rbp], 129
	mov	edi, 129
	and	eax, edx
	mov	DWORD PTR 4[rbp], eax
	.p2align 4,,10
	.p2align 3
.L7:
	call	xgbe_state_as_string@PLT
	mov	edx, DWORD PTR 16[rbp]
	mov	esi, DWORD PTR link[rip]
	mov	rdi, rbp
	mov	r8, rax
	lea	rcx, .LC2[rip]
	call	netif_dbg@PLT
	mov	ebx, DWORD PTR 0[rbp]
	lea	eax, -128[rbx]
	cmp	eax, 4
	ja	.L9
	movsx	rax, DWORD PTR [r12+rax*4]
	add	rax, r12
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L11:
	.long	.L15-.L11
	.long	.L14-.L11
	.long	.L34-.L11
	.long	.L12-.L11
	.long	.L10-.L11
	.text
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rdi, rbp
	call	xgbe_an73_page_received@PLT
	add	DWORD PTR 56[rbp], 1
	mov	DWORD PTR 0[rbp], eax
.L18:
	cmp	eax, 130
	je	.L34
	cdqe
	cmp	QWORD PTR XGBE_AN_ERROR[rip], rax
	jne	.L21
.L16:
	mov	edi, DWORD PTR 16[rbp]
	mov	edx, ebx
	lea	rsi, .LC4[rip]
	call	netdev_err@PLT
.L34:
	mov	DWORD PTR 4[rbp], 0
	mov	rdi, rbp
	call	xgbe_an73_clear_interrupts@PLT
.L21:
	mov	edi, DWORD PTR 0[rbp]
	cmp	edi, 131
	jle	.L22
	mov	rax, QWORD PTR XGBE_RX_BPA[rip]
	mov	DWORD PTR 12[rbp], edi
	mov	DWORD PTR 0[rbp], 128
	mov	QWORD PTR 48[rbp], rax
	mov	QWORD PTR 40[rbp], rax
	mov	rax, QWORD PTR 24[rbp]
	mov	QWORD PTR 32[rbp], 0
	test	rax, rax
	je	.L23
	mov	rdi, rbp
	call	rax
	mov	edi, DWORD PTR 12[rbp]
.L23:
	call	xgbe_state_as_string@PLT
	mov	edx, DWORD PTR 16[rbp]
	mov	rdi, rbp
	mov	esi, DWORD PTR link[rip]
	mov	r8, rax
	lea	rcx, .LC5[rip]
	call	netif_dbg@PLT
	mov	edi, DWORD PTR 0[rbp]
.L22:
	cmp	ebx, edi
	jne	.L7
	mov	eax, DWORD PTR 4[rbp]
	test	eax, eax
	jne	.L3
	pop	rbx
	.cfi_remember_state
	.cfi_restore 3
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_restore 13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_restore 14
	.cfi_def_cfa_offset 8
	jmp	xgbe_an73_enable_interrupts@PLT
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	cmp	QWORD PTR XGBE_AN_ERROR[rip], 128
	mov	DWORD PTR 56[rbp], 0
	mov	edi, ebx
	jne	.L22
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L10:
	mov	eax, DWORD PTR 56[rbp]
	xor	edx, edx
	mov	r8, r13
	mov	esi, DWORD PTR link[rip]
	lea	rcx, .LC3[rip]
	mov	rdi, rbp
	test	eax, eax
	sete	dl
	cmovne	r8, r14
	mov	DWORD PTR 8[rbp], edx
	mov	edx, DWORD PTR 16[rbp]
	call	netif_dbg@PLT
	mov	eax, DWORD PTR 0[rbp]
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L12:
	mov	DWORD PTR 56[rbp], 0
	mov	rdi, rbp
	mov	DWORD PTR 8[rbp], 0
	call	xgbe_an73_incompat_link@PLT
	mov	DWORD PTR 0[rbp], eax
	jmp	.L18
.L9:
	mov	rdx, QWORD PTR XGBE_AN_ERROR[rip]
	mov	DWORD PTR 0[rbp], edx
	mov	eax, edx
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edx, DWORD PTR XGBE_AN_CL73_INC_LINK[rip]
	test	edx, eax
	je	.L6
	not	edx
	mov	DWORD PTR 0[rbp], 131
	mov	edi, 131
	and	eax, edx
	mov	DWORD PTR 4[rbp], eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edx, DWORD PTR XGBE_AN_CL73_INT_CMPLT[rip]
	test	edx, eax
	je	.L8
	not	edx
	mov	DWORD PTR 0[rbp], 132
	mov	edi, 132
	and	eax, edx
	mov	DWORD PTR 4[rbp], eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rax, QWORD PTR XGBE_AN_ERROR[rip]
	mov	DWORD PTR 0[rbp], eax
	mov	edi, eax
	jmp	.L7
.L1:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	ret
	.cfi_endproc
.LFE0:
	.size	xgbe_an73_state_machine, .-xgbe_an73_state_machine
	.comm	link,4,4
	.comm	XGBE_RX_BPA,8,8
	.comm	XGBE_AN_ERROR,8,8
	.comm	XGBE_AN_CL73_PG_RCV,4,4
	.comm	XGBE_AN_CL73_INT_CMPLT,4,4
	.comm	XGBE_AN_CL73_INC_LINK,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_xgbe-mdio.c_xgbe_an73_state_machine.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Auto negotiation\000"
	.align	2
.LC1:
	.ascii	"Parallel detection\000"
	.align	2
.LC2:
	.ascii	"CL73 AN %s\012\000"
	.align	2
.LC3:
	.ascii	"%s successful\012\000"
	.align	2
.LC4:
	.ascii	"error during auto-negotiation, state=%u\012\000"
	.align	2
.LC5:
	.ascii	"CL73 AN result: %s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xgbe_an73_state_machine, %function
xgbe_an73_state_machine:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #4]
	cmp	r3, #0
	bxeq	lr
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	ldr	r6, .L38
	ldr	r8, .L38+4
	ldr	r10, .L38+8
	sub	sp, sp, #20
.L3:
	ldr	r2, .L38+12
	ldr	r2, [r2]
	tst	r2, r3
	beq	.L4
	mov	r0, #129
	bic	r3, r3, r2
	stm	r4, {r0, r3}
.L5:
	ldr	r7, .L38+16
	ldr	r9, .L38+20
.L7:
	ldr	r5, [r6]
	ldr	fp, [r4, #16]
	bl	xgbe_state_as_string
	mov	r1, r5
	mov	r3, r7
	str	r0, [sp]
	mov	r2, fp
	mov	r0, r4
	bl	netif_dbg
	ldr	r5, [r4]
	sub	r3, r5, #128
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L9
.L11:
	.word	.L15
	.word	.L14
	.word	.L13
	.word	.L12
	.word	.L10
.L13:
	mov	r3, #0
	mov	r0, r4
	str	r3, [r4, #4]
	bl	xgbe_an73_clear_interrupts
.L21:
	ldr	r0, [r4]
	cmp	r0, #131
	ble	.L22
	mov	r3, #128
	mov	r1, #0
	ldr	r2, [r4, #20]
	str	r3, [r4]
	ldr	r3, [r10]
	cmp	r2, r1
	str	r0, [r4, #12]
	str	r1, [r4, #24]
	str	r3, [r4, #32]
	str	r3, [r4, #28]
	beq	.L23
	mov	r0, r4
	blx	r2
	ldr	r0, [r4, #12]
.L23:
	ldr	r2, [r4, #16]
	ldr	fp, [r6]
	str	r2, [sp, #12]
	bl	xgbe_state_as_string
	mov	r1, fp
	str	r0, [sp]
	mov	r3, r9
	mov	r0, r4
	ldr	r2, [sp, #12]
	bl	netif_dbg
	ldr	r0, [r4]
.L22:
	cmp	r5, r0
	bne	.L7
	ldr	r3, [r4, #4]
	cmp	r3, #0
	bne	.L3
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	xgbe_an73_enable_interrupts
.L14:
	mov	r0, r4
	bl	xgbe_an73_page_received
	ldr	r3, [r4, #36]
	str	r0, [r4]
	add	r3, r3, #1
	str	r3, [r4, #36]
.L18:
	cmp	r0, #130
	beq	.L13
	ldr	r3, [r8]
	cmp	r3, r0
	bne	.L21
.L16:
	mov	r2, r5
	ldr	r1, .L38+24
	ldr	r0, [r4, #16]
	bl	netdev_err
	mov	r3, #0
	mov	r0, r4
	str	r3, [r4, #4]
	bl	xgbe_an73_clear_interrupts
	b	.L21
.L15:
	mov	r2, #0
	ldr	r3, [r8]
	str	r2, [r4, #36]
	cmp	r3, #128
	movne	r0, r5
	bne	.L22
	b	.L16
.L10:
	ldr	r2, [r4, #36]
	ldr	r1, .L38+28
	cmp	r2, #0
	moveq	r2, #1
	movne	r2, #0
	ldr	r3, .L38+32
	movne	r3, r1
	str	r2, [r4, #8]
	str	r3, [sp]
	mov	r0, r4
	ldr	r3, .L38+36
	ldr	r2, [r4, #16]
	ldr	r1, [r6]
	bl	netif_dbg
	ldr	r0, [r4]
	b	.L18
.L12:
	mov	r3, #0
	mov	r0, r4
	str	r3, [r4, #36]
	str	r3, [r4, #8]
	bl	xgbe_an73_incompat_link
	str	r0, [r4]
	b	.L18
.L4:
	ldr	r2, .L38+40
	ldr	r2, [r2]
	tst	r2, r3
	beq	.L6
	mov	r1, #131
	bic	r3, r3, r2
	mov	r0, r1
	stm	r4, {r1, r3}
	b	.L5
.L6:
	ldr	r2, .L38+44
	ldr	r2, [r2]
	tst	r2, r3
	movne	r0, #132
	ldreq	r0, [r8]
	bicne	r3, r3, r2
	stmne	r4, {r0, r3}
	streq	r0, [r4]
	b	.L5
.L9:
	ldr	r0, [r8]
	str	r0, [r4]
	b	.L18
.L39:
	.align	2
.L38:
	.word	link
	.word	XGBE_AN_ERROR
	.word	XGBE_RX_BPA
	.word	XGBE_AN_CL73_PG_RCV
	.word	.LC2
	.word	.LC5
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC3
	.word	XGBE_AN_CL73_INC_LINK
	.word	XGBE_AN_CL73_INT_CMPLT
	.size	xgbe_an73_state_machine, .-xgbe_an73_state_machine
	.comm	link,4,4
	.comm	XGBE_RX_BPA,4,4
	.comm	XGBE_AN_ERROR,4,4
	.comm	XGBE_AN_CL73_PG_RCV,4,4
	.comm	XGBE_AN_CL73_INT_CMPLT,4,4
	.comm	XGBE_AN_CL73_INC_LINK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
