	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_test_link          ## -- Begin function qlcnic_83xx_test_link
	.p2align	4, 0x90
_qlcnic_83xx_test_link:                 ## @qlcnic_83xx_test_link
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	16(%rdi), %r12
	callq	_qlcnic_sriov_vf_check
	leaq	8(%r15), %rcx
	leaq	32(%r12), %rdx
	testq	%rax, %rax
	cmoveq	%rdx, %rcx
	movl	(%rcx), %r14d
	movq	24(%r12), %rbx
	movl	%r14d, %edi
	callq	_QLC_83XX_LINK_STATE
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_readl
	movl	%eax, %edi
	movl	%r14d, %esi
	callq	_QLC_83xx_FUNC_VAL
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_QLCNIC_CMD_GET_LINK_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rdi
	movq	%r15, %rsi
	callq	_qlcnic_alloc_mbx_args
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_24
## %bb.3:
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	callq	_qlcnic_issue_cmd
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_info
	jmp	LBB0_23
LBB0_1:
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_dev_info
	jmp	LBB0_24
LBB0_5:
	movq	-40(%rbp), %rax
	movl	4(%rax), %edi
	callq	_QLC_83XX_CURRENT_LINK_SPEED
                                        ## kill: def $eax killed $eax def $rax
	addl	$-139, %eax
	cmpl	$3, %eax
	ja	LBB0_6
## %bb.7:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_10:
	movq	_SPEED_1000@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_6:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_8:
	movq	_SPEED_10@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:
	movq	_SPEED_10000@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_9:
	movq	_SPEED_100@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
LBB0_13:
	movl	%eax, 16(%r12)
	movq	-40(%rbp), %rax
	movl	12(%rax), %r14d
	movl	%r14d, %edi
	callq	_QLC_83XX_SFP_MODULE_TYPE
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$10, %eax
	ja	LBB0_20
## %bb.14:
	leaq	LJTI0_1(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_19:
	movq	_PORT_DA@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_15:
	movq	_PORT_FIBRE@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_16:
	movq	_PORT_FIBRE@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_20:
	movq	_PORT_OTHER@GOTPCREL(%rip), %rax
LBB0_21:
	movq	(%rax), %rax
	movq	%rax, 8(%r12)
	movq	_QLCNIC_XGBE@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_18:
	movq	_PORT_TP@GOTPCREL(%rip), %rax
LBB0_17:
	movq	(%rax), %rax
	movq	%rax, 8(%r12)
	movq	_QLCNIC_GBE@GOTPCREL(%rip), %rax
LBB0_22:
	movq	(%rax), %rax
	movq	%rax, (%r12)
LBB0_23:
	leaq	-40(%rbp), %rdi
	callq	_qlcnic_free_mbx_args
LBB0_24:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_8
	.long	L0_0_set_11
	.long	L0_0_set_9
.set L0_1_set_18, LBB0_18-LJTI0_1
.set L0_1_set_15, LBB0_15-LJTI0_1
.set L0_1_set_16, LBB0_16-LJTI0_1
.set L0_1_set_19, LBB0_19-LJTI0_1
LJTI0_1:
	.long	L0_1_set_18
	.long	L0_1_set_15
	.long	L0_1_set_15
	.long	L0_1_set_15
	.long	L0_1_set_16
	.long	L0_1_set_16
	.long	L0_1_set_16
	.long	L0_1_set_19
	.long	L0_1_set_19
	.long	L0_1_set_19
	.long	L0_1_set_19
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"link state down\n"

	.comm	_QLCNIC_CMD_GET_LINK_STATUS,4,2 ## @QLCNIC_CMD_GET_LINK_STATUS
L_.str.1:                               ## @.str.1
	.asciz	"Get Link Status Command failed: 0x%x\n"

	.comm	_SPEED_10,4,2                   ## @SPEED_10
	.comm	_SPEED_100,4,2                  ## @SPEED_100
	.comm	_SPEED_1000,4,2                 ## @SPEED_1000
	.comm	_SPEED_10000,4,2                ## @SPEED_10000
	.comm	_PORT_FIBRE,8,3                 ## @PORT_FIBRE
	.comm	_QLCNIC_XGBE,8,3                ## @QLCNIC_XGBE
	.comm	_QLCNIC_GBE,8,3                 ## @QLCNIC_GBE
	.comm	_PORT_TP,8,3                    ## @PORT_TP
	.comm	_PORT_DA,8,3                    ## @PORT_DA
	.comm	_PORT_OTHER,8,3                 ## @PORT_OTHER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_test_link          ; -- Begin function qlcnic_83xx_test_link
	.p2align	2
_qlcnic_83xx_test_link:                 ; @qlcnic_83xx_test_link
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
	ldr	x21, [x0, #16]
	bl	_qlcnic_sriov_vf_check
	add	x8, x20, #8
	add	x9, x21, #32
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w19, [x8]
	ldr	x22, [x21, #24]
	mov	x0, x19
	bl	_QLC_83XX_LINK_STATE
	add	x0, x0, x22
	bl	_readl
	mov	x1, x19
	bl	_QLC_83xx_FUNC_VAL
	cbz	w0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _QLCNIC_CMD_GET_LINK_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLCNIC_CMD_GET_LINK_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x0, sp, #8
	mov	x1, x20
	bl	_qlcnic_alloc_mbx_args
	mov	x19, x0
	cbnz	w0, LBB0_24
; %bb.2:
	add	x1, sp, #8
	mov	x0, x20
	bl	_qlcnic_issue_cmd
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_5
; %bb.3:
	ldr	x8, [x20]
	str	x0, [sp]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x8
	bl	_dev_info
	mov	w19, #0
	b	LBB0_23
LBB0_4:
	ldr	x0, [x20]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	mov	w19, #0
	b	LBB0_24
LBB0_5:
	ldr	x8, [sp, #8]
	ldr	w0, [x8, #4]
	bl	_QLC_83XX_CURRENT_LINK_SPEED
	sub	w8, w0, #139
	cmp	w8, #3
	b.hi	LBB0_8
; %bb.6:
Lloh7:
	adrp	x9, lJTI0_0@PAGE
Lloh8:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_7
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_7:
Lloh9:
	adrp	x8, _SPEED_1000@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SPEED_1000@GOTPAGEOFF]
	b	LBB0_12
LBB0_8:
	mov	w8, #0
	b	LBB0_13
LBB0_9:
Lloh11:
	adrp	x8, _SPEED_10@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SPEED_10@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh13:
	adrp	x8, _SPEED_10000@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SPEED_10000@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh15:
	adrp	x8, _SPEED_100@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SPEED_100@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
LBB0_13:
	str	w8, [x21, #16]
	ldr	x8, [sp, #8]
	ldr	w19, [x8, #12]
	mov	x0, x19
	bl	_QLC_83XX_SFP_MODULE_TYPE
	sub	w8, w0, #128
	cmp	w8, #10
	b.hi	LBB0_18
; %bb.14:
Lloh17:
	adrp	x9, lJTI0_1@PAGE
Lloh18:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_15
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_15:
Lloh19:
	adrp	x8, _PORT_DA@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PORT_DA@GOTPAGEOFF]
	b	LBB0_19
LBB0_16:
Lloh21:
	adrp	x8, _PORT_FIBRE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PORT_FIBRE@GOTPAGEOFF]
	b	LBB0_19
LBB0_17:
Lloh23:
	adrp	x8, _PORT_FIBRE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PORT_FIBRE@GOTPAGEOFF]
	b	LBB0_21
LBB0_18:
Lloh25:
	adrp	x8, _PORT_OTHER@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PORT_OTHER@GOTPAGEOFF]
LBB0_19:
	ldr	x8, [x8]
Lloh27:
	adrp	x9, _QLCNIC_XGBE@GOTPAGE
Lloh28:
	ldr	x9, [x9, _QLCNIC_XGBE@GOTPAGEOFF]
	b	LBB0_22
LBB0_20:
Lloh29:
	adrp	x8, _PORT_TP@GOTPAGE
Lloh30:
	ldr	x8, [x8, _PORT_TP@GOTPAGEOFF]
LBB0_21:
	ldr	x8, [x8]
Lloh31:
	adrp	x9, _QLCNIC_GBE@GOTPAGE
Lloh32:
	ldr	x9, [x9, _QLCNIC_GBE@GOTPAGEOFF]
LBB0_22:
	ldr	x9, [x9]
	stp	x9, x8, [x21]
LBB0_23:
	add	x0, sp, #8
	bl	_qlcnic_free_mbx_args
LBB0_24:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_9-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_11-LBB0_7)>>2
lJTI0_1:
	.byte	(LBB0_20-LBB0_15)>>2
	.byte	(LBB0_16-LBB0_15)>>2
	.byte	(LBB0_16-LBB0_15)>>2
	.byte	(LBB0_16-LBB0_15)>>2
	.byte	(LBB0_17-LBB0_15)>>2
	.byte	(LBB0_17-LBB0_15)>>2
	.byte	(LBB0_17-LBB0_15)>>2
	.byte	(LBB0_15-LBB0_15)>>2
	.byte	(LBB0_15-LBB0_15)>>2
	.byte	(LBB0_15-LBB0_15)>>2
	.byte	(LBB0_15-LBB0_15)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"link state down\n"

	.comm	_QLCNIC_CMD_GET_LINK_STATUS,4,2 ; @QLCNIC_CMD_GET_LINK_STATUS
l_.str.1:                               ; @.str.1
	.asciz	"Get Link Status Command failed: 0x%x\n"

	.comm	_SPEED_10,4,2                   ; @SPEED_10
	.comm	_SPEED_100,4,2                  ; @SPEED_100
	.comm	_SPEED_1000,4,2                 ; @SPEED_1000
	.comm	_SPEED_10000,4,2                ; @SPEED_10000
	.comm	_PORT_FIBRE,8,3                 ; @PORT_FIBRE
	.comm	_QLCNIC_XGBE,8,3                ; @QLCNIC_XGBE
	.comm	_QLCNIC_GBE,8,3                 ; @QLCNIC_GBE
	.comm	_PORT_TP,8,3                    ; @PORT_TP
	.comm	_PORT_DA,8,3                    ; @PORT_DA
	.comm	_PORT_OTHER,8,3                 ; @PORT_OTHER
.subsections_via_symbols
