	.file	"extr_ethernet-sgmii.c_cvm_oct_sgmii_poll.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Full"
.LC1:
	.string	"Half"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"%s: %u Mbps %s duplex, port %2d, queue %2d\n"
	.align 8
.LC3:
	.string	"%s: %u Mbps %s duplex, port %2d, POW\n"
	.section	.rodata.str1.1
.LC4:
	.string	"%s: Link down\n"
	.text
	.p2align 4
	.type	cvm_oct_sgmii_poll, @function
cvm_oct_sgmii_poll:
.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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 56
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	r12, rsp
	call	netdev_priv@PLT
	mov	rdi, r12
	mov	esi, DWORD PTR 12[rax]
	mov	rbx, rax
	call	cvmx_helper_link_get@PLT
	mov	rax, QWORD PTR [rsp]
	cmp	QWORD PTR [rbx], rax
	je	.L18
	mov	esi, DWORD PTR 12[rbx]
	mov	rdi, r12
	call	cvmx_helper_link_autoconf@PLT
	mov	rax, QWORD PTR [rsp]
	cmp	QWORD PTR 24[rsp], 0
	mov	rdi, rbp
	mov	r13, QWORD PTR 8[rsp]
	mov	r12d, DWORD PTR 16[rsp]
	mov	QWORD PTR [rbx], rax
	je	.L3
	call	netif_carrier_ok@PLT
	test	rax, rax
	je	.L23
.L4:
	mov	r9d, DWORD PTR 8[rbx]
	test	r13, r13
	mov	r8d, DWORD PTR 12[rbx]
	lea	rcx, .LC0[rip]
	lea	rax, .LC1[rip]
	cmove	rcx, rax
	cmp	r9d, -1
	je	.L5
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L21
	mov	esi, DWORD PTR 0[rbp]
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	edx, r12d
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	lea	rdi, .LC2[rip]
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	DEBUGPRINT@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	call	netif_carrier_ok@PLT
	test	rax, rax
	jne	.L24
.L10:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L21
	mov	esi, DWORD PTR 0[rbp]
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	lea	rdi, .LC4[rip]
	xor	eax, eax
	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
	jmp	DEBUGPRINT@PLT
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L21
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L5:
	.cfi_restore_state
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L21
	mov	esi, DWORD PTR 0[rbp]
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	edx, r12d
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	lea	rdi, .LC3[rip]
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	DEBUGPRINT@PLT
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	mov	rdi, rbp
	call	netif_carrier_on@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L24:
	mov	rdi, rbp
	call	netif_carrier_off@PLT
	jmp	.L10
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	cvm_oct_sgmii_poll, .-cvm_oct_sgmii_poll
	.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_ethernet-sgmii.c_cvm_oct_sgmii_poll.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Full\000"
	.align	2
.LC1:
	.ascii	"Half\000"
	.align	2
.LC2:
	.ascii	"%s: %u Mbps %s duplex, port %2d, queue %2d\012\000"
	.align	2
.LC3:
	.ascii	"%s: %u Mbps %s duplex, port %2d, POW\012\000"
	.align	2
.LC4:
	.ascii	"%s: Link down\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cvm_oct_sgmii_poll, %function
cvm_oct_sgmii_poll:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L22
	sub	sp, sp, #36
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	mov	r5, r0
	bl	netdev_priv
	mov	r4, r0
	ldr	r1, [r0, #8]
	add	r0, sp, #12
	bl	cvmx_helper_link_get
	ldr	r2, [r4]
	ldr	r3, [sp, #12]
	cmp	r2, r3
	beq	.L1
	add	r0, sp, #12
	ldr	r1, [r4, #8]
	bl	cvmx_helper_link_autoconf
	ldr	r2, [sp, #24]
	ldr	r3, [sp, #12]
	cmp	r2, #0
	mov	r0, r5
	ldr	r6, [sp, #16]
	ldr	r7, [sp, #20]
	str	r3, [r4]
	beq	.L3
	bl	netif_carrier_ok
	cmp	r0, #0
	beq	.L20
.L4:
	ldr	r3, [r4, #4]
	ldr	r1, [r5]
	cmn	r3, #1
	beq	.L5
	str	r3, [sp, #4]
	ldr	r2, [r4, #8]
	ldr	r0, .L22+4
	cmp	r6, #0
	ldr	r3, .L22+8
	str	r2, [sp]
	movne	r3, r0
	mov	r2, r7
	ldr	r0, .L22+12
	bl	DEBUGPRINT
.L1:
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L3:
	bl	netif_carrier_ok
	cmp	r0, #0
	bne	.L21
.L9:
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	ldr	r1, [r5]
	ldr	r0, .L22+16
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, lr}
	b	DEBUGPRINT
.L5:
	ldr	r2, [r4, #8]
	ldr	r0, .L22+4
	cmp	r6, #0
	ldr	r3, .L22+8
	str	r2, [sp]
	movne	r3, r0
	mov	r2, r7
	ldr	r0, .L22+20
	bl	DEBUGPRINT
	b	.L1
.L20:
	mov	r0, r5
	bl	netif_carrier_on
	b	.L4
.L21:
	mov	r0, r5
	bl	netif_carrier_off
	b	.L9
.L18:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC4
	.word	.LC3
	.size	cvm_oct_sgmii_poll, .-cvm_oct_sgmii_poll
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
