	.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
	xorl	%eax, %eax
	callq	_ENTER
	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(%rip), %rdi
	callq	_pr_debug
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
	.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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.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
	bl	_ENTER
Lloh0:
	adrp	x8, _XPCSS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XPCSS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_IXGB_READ_REG
	mov	x20, x0
Lloh3:
	adrp	x8, _STATUS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STATUS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_IXGB_READ_REG
Lloh6:
	adrp	x8, _IXGB_XPCSS_ALIGN_STATUS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IXGB_XPCSS_ALIGN_STATUS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x8]
Lloh9:
	adrp	x8, _IXGB_STATUS_LU@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IXGB_STATUS_LU@GOTPAGEOFF]
Lloh11:
	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:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"XPCSS Not Aligned while Status:LU is set\n"

.subsections_via_symbols
