	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_test_link
_qlcnic_test_link:                      ## @qlcnic_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	callq	_netdev_priv
	movq	%rax, %rbx
	movl	$0, -12(%rbp)
	movq	%rax, %rdi
	callq	_qlcnic_83xx_check
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_qlcnic_83xx_test_link
	notl	%eax
	andl	$1, %eax
	jmp	LBB0_4
LBB0_2:
	movq	_CRB_XG_STATE_P3P@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_QLCRD32
	movl	%eax, %esi
	movl	-12(%rbp), %eax
	movq	_EIO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	je	LBB0_4
## %bb.3:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_XG_LINK_STATE_P3P
	movl	%eax, %ecx
	movq	_XG_LINK_UP_P3P@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpl	(%rdx), %ecx
	setne	%al
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CRB_XG_STATE_P3P,4,2           ## @CRB_XG_STATE_P3P
	.comm	_EIO,4,2                        ## @EIO
	.comm	_XG_LINK_UP_P3P,4,2             ## @XG_LINK_UP_P3P
	.no_dead_strip	_qlcnic_test_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_test_link
_qlcnic_test_link:                      ; @qlcnic_test_link
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_netdev_priv
	mov	x19, x0
	str	wzr, [sp, #12]
	bl	_qlcnic_83xx_check
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_qlcnic_83xx_test_link
	mvn	w8, w0
	and	w0, w8, #0x1
	b	LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _CRB_XG_STATE_P3P@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CRB_XG_STATE_P3P@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_QLCRD32
	mov	x1, x0
	ldr	w0, [sp, #12]
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_XG_LINK_STATE_P3P
Lloh6:
	adrp	x8, _XG_LINK_UP_P3P@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XG_LINK_UP_P3P@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, w8
	cset	w0, ne
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CRB_XG_STATE_P3P,4,2           ; @CRB_XG_STATE_P3P
	.comm	_EIO,4,2                        ; @EIO
	.comm	_XG_LINK_UP_P3P,4,2             ; @XG_LINK_UP_P3P
	.no_dead_strip	_qlcnic_test_link
.subsections_via_symbols
