	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgb_check_for_link            ## -- Begin function ixgb_check_for_link
	.p2align	4, 0x90
_ixgb_check_for_link:                   ## @ixgb_check_for_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_DEBUGFUNC
	movq	_XPCSS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_IXGB_READ_REG
	movl	%eax, %r14d
	movq	_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_IXGB_READ_REG
	movq	_IXGB_XPCSS_ALIGN_STATUS@GOTPCREL(%rip), %rcx
	movq	_IXGB_STATUS_LU@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	testl	%r14d, (%rcx)
	je	LBB0_2
## %bb.1:
	movl	$1, %ecx
	testl	%eax, %eax
	jne	LBB0_5
	jmp	LBB0_4
LBB0_2:
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_DEBUGOUT
LBB0_4:
	movq	%rbx, %rdi
	callq	_ixgb_link_reset
	movq	%rax, %rcx
LBB0_5:
	movl	%ecx, (%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ixgb_check_for_link"

	.comm	_XPCSS,4,2                      ## @XPCSS
	.comm	_STATUS,4,2                     ## @STATUS
	.comm	_IXGB_XPCSS_ALIGN_STATUS,4,2    ## @IXGB_XPCSS_ALIGN_STATUS
	.comm	_IXGB_STATUS_LU,4,2             ## @IXGB_STATUS_LU
L_.str.1:                               ## @.str.1
	.asciz	"XPCSS Not Aligned while Status:LU is set.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgb_check_for_link            ; -- Begin function ixgb_check_for_link
	.p2align	2
_ixgb_check_for_link:                   ; @ixgb_check_for_link
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DEBUGFUNC
Lloh2:
	adrp	x8, _XPCSS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _XPCSS@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_IXGB_READ_REG
	mov	x20, x0
Lloh5:
	adrp	x8, _STATUS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _STATUS@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_IXGB_READ_REG
Lloh8:
	adrp	x8, _IXGB_XPCSS_ALIGN_STATUS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IXGB_XPCSS_ALIGN_STATUS@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x8]
Lloh11:
	adrp	x8, _IXGB_STATUS_LU@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IXGB_STATUS_LU@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	and	w8, w8, w0
	tst	w9, w20
	b.eq	LBB0_3
; %bb.1:
	cbz	w8, LBB0_5
; %bb.2:
	mov	w0, #1
	b	LBB0_6
LBB0_3:
	cbz	w8, LBB0_5
; %bb.4:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DEBUGOUT
LBB0_5:
	mov	x0, x19
	bl	_ixgb_link_reset
LBB0_6:
	str	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ixgb_check_for_link"

	.comm	_XPCSS,4,2                      ; @XPCSS
	.comm	_STATUS,4,2                     ; @STATUS
	.comm	_IXGB_XPCSS_ALIGN_STATUS,4,2    ; @IXGB_XPCSS_ALIGN_STATUS
	.comm	_IXGB_STATUS_LU,4,2             ; @IXGB_STATUS_LU
l_.str.1:                               ; @.str.1
	.asciz	"XPCSS Not Aligned while Status:LU is set.\n"

.subsections_via_symbols
