	.file	"extr_hw_atl_utils.c_hw_atl_utils_mpi_get_link_status.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	hw_atl_utils_mpi_get_link_status
	.type	hw_atl_utils_mpi_get_link_status, @function
hw_atl_utils_mpi_get_link_status:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	call	hw_atl_utils_mpi_get_state@PLT
	mov	ecx, DWORD PTR HW_ATL_MPI_SPEED_SHIFT[rip]
	sar	eax, cl
	test	eax, eax
	jne	.L2
	mov	DWORD PTR [rbx], 0
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	add	eax, -128
	cmp	eax, 5
	ja	.L4
	lea	rdx, .L6[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L6:
	.long	.L10-.L6
	.long	.L10-.L6
	.long	.L9-.L6
	.long	.L8-.L6
	.long	.L7-.L6
	.long	.L5-.L6
	.text
.L7:
	mov	DWORD PTR [rbx], 10000
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	mov	DWORD PTR [rbx], 100
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L10:
	.cfi_restore_state
	mov	DWORD PTR [rbx], 5000
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	mov	DWORD PTR [rbx], 2500
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L8:
	.cfi_restore_state
	mov	DWORD PTR [rbx], 1000
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L4:
	.cfi_restore_state
	mov	eax, DWORD PTR EBUSY[rip]
	pop	rbx
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	hw_atl_utils_mpi_get_link_status, .-hw_atl_utils_mpi_get_link_status
	.comm	HW_ATL_MPI_SPEED_SHIFT,4,4
	.comm	EBUSY,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_hw_atl_utils.c_hw_atl_utils_mpi_get_link_status.c"
	.text
	.align	2
	.global	hw_atl_utils_mpi_get_link_status
	.syntax unified
	.arm
	.fpu softvfp
	.type	hw_atl_utils_mpi_get_link_status, %function
hw_atl_utils_mpi_get_link_status:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	bl	hw_atl_utils_mpi_get_state
	ldr	r3, .L13
	ldr	r3, [r3]
	asrs	r0, r0, r3
	bne	.L2
	str	r0, [r4]
	pop	{r4, pc}
.L2:
	sub	r0, r0, #128
	cmp	r0, #5
	ldrls	pc, [pc, r0, asl #2]
	b	.L4
.L6:
	.word	.L10
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L5
.L5:
	mov	r3, #100
	mov	r0, #0
	str	r3, [r4]
	pop	{r4, pc}
.L10:
	ldr	r3, .L13+4
	mov	r0, #0
	str	r3, [r4]
	pop	{r4, pc}
.L9:
	ldr	r3, .L13+8
	mov	r0, #0
	str	r3, [r4]
	pop	{r4, pc}
.L8:
	mov	r3, #1000
	mov	r0, #0
	str	r3, [r4]
	pop	{r4, pc}
.L7:
	ldr	r3, .L13+12
	mov	r0, #0
	str	r3, [r4]
	pop	{r4, pc}
.L4:
	ldr	r3, .L13+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, pc}
.L14:
	.align	2
.L13:
	.word	HW_ATL_MPI_SPEED_SHIFT
	.word	5000
	.word	2500
	.word	10000
	.word	EBUSY
	.size	hw_atl_utils_mpi_get_link_status, .-hw_atl_utils_mpi_get_link_status
	.comm	HW_ATL_MPI_SPEED_SHIFT,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
