	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgb_check_for_bad_link        ## -- Begin function ixgb_check_for_bad_link
	.p2align	4, 0x90
_ixgb_check_for_bad_link:               ## @ixgb_check_for_bad_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rcx
	movq	_ixgb_phy_type_txn17401@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	movq	_LFC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_IXGB_READ_REG
	movq	%rax, %r14
	movq	_RFC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_IXGB_READ_REG
	movq	%rax, %r15
	movl	$250, %ecx
	movq	8(%rbx), %rax
	addq	%rcx, %rax
	cmpq	%r14, %rax
	jl	LBB0_3
## %bb.2:
	addq	16(%rbx), %rcx
	xorl	%eax, %eax
	cmpq	%r15, %rcx
	jge	LBB0_4
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	movl	$1, %eax
LBB0_4:
	movq	%r14, 8(%rbx)
	movq	%r15, 16(%rbx)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ixgb_phy_type_txn17401,8,3     ## @ixgb_phy_type_txn17401
	.comm	_LFC,4,2                        ## @LFC
	.comm	_RFC,4,2                        ## @RFC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BAD LINK! too many LFC/RFC since last check\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgb_check_for_bad_link        ; -- Begin function ixgb_check_for_bad_link
	.p2align	2
_ixgb_check_for_bad_link:               ; @ixgb_check_for_bad_link
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ixgb_phy_type_txn17401@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ixgb_phy_type_txn17401@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _LFC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LFC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_IXGB_READ_REG
	mov	x20, x0
Lloh6:
	adrp	x8, _RFC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RFC@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_IXGB_READ_REG
	mov	x21, x0
	ldr	x8, [x19, #8]
	add	x8, x8, #250
	cmp	x8, x20
	b.lt	LBB0_3
; %bb.2:
	ldr	x8, [x19, #16]
	add	x8, x8, #250
	cmp	x8, x21
	b.ge	LBB0_5
LBB0_3:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	mov	w0, #1
	b	LBB0_6
LBB0_4:
	mov	w0, #0
	b	LBB0_7
LBB0_5:
	mov	w0, #0
LBB0_6:
	stp	x20, x21, [x19, #8]
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ixgb_phy_type_txn17401,8,3     ; @ixgb_phy_type_txn17401
	.comm	_LFC,4,2                        ; @LFC
	.comm	_RFC,4,2                        ; @RFC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BAD LINK! too many LFC/RFC since last check\n"

.subsections_via_symbols
