	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hw_atl_utils_mpi_get_link_status ## -- Begin function hw_atl_utils_mpi_get_link_status
	.p2align	4, 0x90
_hw_atl_utils_mpi_get_link_status:      ## @hw_atl_utils_mpi_get_link_status
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_hw_atl_utils_mpi_get_state
                                        ## kill: def $eax killed $eax def $rax
	movq	_HW_ATL_MPI_SPEED_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	leal	-128(%rax), %ecx
	cmpl	$5, %ecx
	ja	LBB0_1
## %bb.10:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rcx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_4:
	movl	$5000, (%rbx)                   ## imm = 0x1388
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_1:
	testl	%eax, %eax
	jne	LBB0_8
## %bb.2:
	movl	$0, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_5:
	movl	$2500, (%rbx)                   ## imm = 0x9C4
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_6:
	movl	$1000, (%rbx)                   ## imm = 0x3E8
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_3:
	movl	$10000, (%rbx)                  ## imm = 0x2710
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_7:
	movl	$100, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_8:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_3
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_HW_ATL_MPI_SPEED_SHIFT,4,2     ## @HW_ATL_MPI_SPEED_SHIFT
	.comm	_EBUSY,4,2                      ## @EBUSY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hw_atl_utils_mpi_get_link_status ; -- Begin function hw_atl_utils_mpi_get_link_status
	.p2align	2
_hw_atl_utils_mpi_get_link_status:      ; @hw_atl_utils_mpi_get_link_status
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_hw_atl_utils_mpi_get_state
Lloh0:
	adrp	x8, _HW_ATL_MPI_SPEED_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HW_ATL_MPI_SPEED_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	asr	w8, w0, w8
	sub	w9, w8, #128
	cmp	w9, #5
	b.hi	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, lJTI0_0@PAGE
Lloh4:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x8, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	w0, #0
	mov	w8, #5000
	str	w8, [x19]
	b	LBB0_10
LBB0_3:
	cbnz	w8, LBB0_9
; %bb.4:
	mov	w0, #0
	str	wzr, [x19]
	b	LBB0_10
LBB0_5:
	mov	w0, #0
	mov	w8, #2500
	str	w8, [x19]
	b	LBB0_10
LBB0_6:
	mov	w0, #0
	mov	w8, #1000
	str	w8, [x19]
	b	LBB0_10
LBB0_7:
	mov	w0, #0
	mov	w8, #10000
	str	w8, [x19]
	b	LBB0_10
LBB0_8:
	mov	w0, #0
	mov	w8, #100
	str	w8, [x19]
	b	LBB0_10
LBB0_9:
Lloh5:
	adrp	x8, _EBUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
                                        ; -- End function
	.comm	_HW_ATL_MPI_SPEED_SHIFT,4,2     ; @HW_ATL_MPI_SPEED_SHIFT
	.comm	_EBUSY,4,2                      ; @EBUSY
.subsections_via_symbols
