	.file	"extr_cvmx-helper-rgmii.c___cvmx_helper_rgmii_link_get.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	__cvmx_helper_rgmii_link_get
	.type	__cvmx_helper_rgmii_link_get, @function
__cvmx_helper_rgmii_link_get:
.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
	mov	r12, rdi
	mov	edi, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	cvmx_helper_get_interface_num@PLT
	mov	edi, ebp
	mov	r13d, eax
	call	cvmx_helper_get_interface_index_num@PLT
	mov	edi, r13d
	mov	ebx, eax
	call	CVMX_ASXX_PRT_LOOP@PLT
	mov	edi, eax
	call	cvmx_read_csr@PLT
	bt	eax, ebx
	jnc	.L2
	movabs	rax, 4294967297
	mov	DWORD PTR 8[r12], 1000
	mov	QWORD PTR [r12], rax
	mov	QWORD PTR 16[r12], 0
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L7
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	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
.L2:
	.cfi_restore_state
	mov	esi, ebp
	mov	rdi, r12
	call	__cvmx_helper_board_link_get@PLT
	jmp	.L1
.L7:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	__cvmx_helper_rgmii_link_get, .-__cvmx_helper_rgmii_link_get
	.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_cvmx-helper-rgmii.c___cvmx_helper_rgmii_link_get.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	__cvmx_helper_rgmii_link_get
	.syntax unified
	.arm
	.fpu softvfp
	.type	__cvmx_helper_rgmii_link_get, %function
__cvmx_helper_rgmii_link_get:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L8
	sub	sp, sp, #12
	mov	r4, r0
	mov	r0, r1
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	cvmx_helper_get_interface_num
	mov	r7, r0
	mov	r0, r5
	bl	cvmx_helper_get_interface_index_num
	mov	r6, r0
	mov	r0, r7
	bl	CVMX_ASXX_PRT_LOOP
	bl	cvmx_read_csr
	asr	r0, r0, r6
	tst	r0, #1
	beq	.L2
	mov	r3, #1
	mov	r1, #1000
	mov	r2, #0
	str	r3, [r4]
	str	r3, [r4, #4]
	str	r1, [r4, #8]
	str	r2, [r4, #12]
.L1:
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	mov	r1, r5
	mov	r0, r4
	bl	__cvmx_helper_board_link_get
	b	.L1
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	.LC0
	.size	__cvmx_helper_rgmii_link_get, .-__cvmx_helper_rgmii_link_get
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
