	.file	"extr_cvmx-helper.c_cvmx_helper_link_set.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	cvmx_helper_link_set
	.type	cvmx_helper_link_set, @function
cvmx_helper_link_set:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	cvmx_helper_get_interface_num@PLT
	mov	edi, ebp
	mov	r12d, eax
	call	cvmx_helper_get_interface_index_num@PLT
	mov	edi, r12d
	mov	ebx, eax
	call	cvmx_helper_ports_on_interface@PLT
	cmp	eax, ebx
	jle	.L1
	mov	edi, r12d
	call	cvmx_helper_interface_get_mode@PLT
	add	eax, -128
	cmp	eax, 8
	ja	.L1
	lea	rdx, .L4[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.long	.L5-.L4
	.long	.L1-.L4
	.long	.L1-.L4
	.long	.L1-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, -1
	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
.L3:
	.cfi_restore_state
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	esi, r13d
	mov	edi, ebp
	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	__cvmx_helper_rgmii_link_set@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	esi, r13d
	mov	edi, ebp
	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	__cvmx_helper_sgmii_link_set@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	esi, r13d
	mov	edi, ebp
	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	__cvmx_helper_xaui_link_set@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	esi, r13d
	mov	edi, ebp
	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	__cvmx_helper_spi_link_set@PLT
	.cfi_endproc
.LFE0:
	.size	cvmx_helper_link_set, .-cvmx_helper_link_set
	.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.c_cvmx_helper_link_set.c"
	.text
	.align	2
	.global	cvmx_helper_link_set
	.syntax unified
	.arm
	.fpu softvfp
	.type	cvmx_helper_link_set, %function
cvmx_helper_link_set:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r1
	mov	r5, r0
	bl	cvmx_helper_get_interface_num
	mov	r4, r0
	mov	r0, r5
	bl	cvmx_helper_get_interface_index_num
	mov	r6, r0
	mov	r0, r4
	bl	cvmx_helper_ports_on_interface
	cmp	r0, r6
	ble	.L1
	mov	r0, r4
	bl	cvmx_helper_interface_get_mode
	sub	r3, r0, #128
	cmp	r3, #8
	ldrls	pc, [pc, r3, asl #2]
	b	.L1
.L4:
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
	.word	.L5
	.word	.L1
	.word	.L1
	.word	.L1
	.word	.L3
.L1:
	mvn	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	mov	r1, r7
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	b	__cvmx_helper_rgmii_link_set
.L5:
	mov	r1, r7
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	b	__cvmx_helper_sgmii_link_set
.L7:
	mov	r1, r7
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	b	__cvmx_helper_xaui_link_set
.L6:
	mov	r1, r7
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	b	__cvmx_helper_spi_link_set
	.size	cvmx_helper_link_set, .-cvmx_helper_link_set
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
