	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_check_mac_link_generic   ## -- Begin function ixgbe_check_mac_link_generic
	.p2align	4, 0x90
_ixgbe_check_mac_link_generic:          ## @ixgbe_check_mac_link_generic
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movq	%rdx, %r15
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	_IXGBE_LINKS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_IXGBE_READ_REG
	movq	%rax, %r14
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_IXGBE_READ_REG
	movq	%rax, %rbx
	cmpq	%rax, %r14
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	callq	_hw_dbg
LBB0_2:
	testl	%r13d, %r13d
	je	LBB0_8
## %bb.3:
	movq	_IXGBE_LINK_UP_TIME@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_10
## %bb.4:
	xorl	%r13d, %r13d
	movq	_IXGBE_LINKS_UP@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rbx, (%r14)
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$0, (%r15)
	movl	$100, %edi
	callq	_msleep
	movq	_IXGBE_LINKS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_IXGBE_READ_REG
	movq	%rax, %rbx
	incq	%r13
	movq	_IXGBE_LINK_UP_TIME@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jl	LBB0_5
	jmp	LBB0_10
LBB0_8:
	movq	_IXGBE_LINKS_UP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	testq	%rbx, (%rcx)
	setne	%al
	jmp	LBB0_9
LBB0_6:
	movl	$1, %eax
LBB0_9:
	movl	%eax, (%r15)
LBB0_10:
	movq	_IXGBE_LINKS_SPEED_82599@GOTPCREL(%rip), %rax
	andq	(%rax), %rbx
	movq	_IXGBE_LINKS_SPEED_10G_82599@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_12
## %bb.11:
	movq	_IXGBE_LINK_SPEED_10GB_FULL@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_12:
	movq	_IXGBE_LINKS_SPEED_1G_82599@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_14
## %bb.13:
	movq	_IXGBE_LINK_SPEED_1GB_FULL@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_14:
	movq	_IXGBE_LINKS_SPEED_100_82599@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_15
## %bb.16:
	movq	_IXGBE_LINK_SPEED_100_FULL@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_15:
	movq	_IXGBE_LINK_SPEED_UNKNOWN@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IXGBE_LINKS,4,2                ## @IXGBE_LINKS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LINKS changed from %08X to %08X\n"

	.comm	_IXGBE_LINK_UP_TIME,8,3         ## @IXGBE_LINK_UP_TIME
	.comm	_IXGBE_LINKS_UP,8,3             ## @IXGBE_LINKS_UP
	.comm	_IXGBE_LINKS_SPEED_82599,8,3    ## @IXGBE_LINKS_SPEED_82599
	.comm	_IXGBE_LINKS_SPEED_10G_82599,8,3 ## @IXGBE_LINKS_SPEED_10G_82599
	.comm	_IXGBE_LINK_SPEED_10GB_FULL,4,2 ## @IXGBE_LINK_SPEED_10GB_FULL
	.comm	_IXGBE_LINKS_SPEED_1G_82599,8,3 ## @IXGBE_LINKS_SPEED_1G_82599
	.comm	_IXGBE_LINK_SPEED_1GB_FULL,4,2  ## @IXGBE_LINK_SPEED_1GB_FULL
	.comm	_IXGBE_LINKS_SPEED_100_82599,8,3 ## @IXGBE_LINKS_SPEED_100_82599
	.comm	_IXGBE_LINK_SPEED_100_FULL,4,2  ## @IXGBE_LINK_SPEED_100_FULL
	.comm	_IXGBE_LINK_SPEED_UNKNOWN,4,2   ## @IXGBE_LINK_SPEED_UNKNOWN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_check_mac_link_generic   ; -- Begin function ixgbe_check_mac_link_generic
	.p2align	2
_ixgbe_check_mac_link_generic:          ; @ixgbe_check_mac_link_generic
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x3
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x25, _IXGBE_LINKS@GOTPAGE
Lloh1:
	ldr	x25, [x25, _IXGBE_LINKS@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_IXGBE_READ_REG
	mov	x24, x0
	ldr	w1, [x25]
	mov	x0, x21
	bl	_IXGBE_READ_REG
	mov	x22, x0
	cmp	x24, x0
	b.eq	LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x24
	mov	x3, x22
	bl	_hw_dbg
LBB0_2:
	cbz	w23, LBB0_7
; %bb.3:
Lloh4:
	adrp	x23, _IXGBE_LINK_UP_TIME@GOTPAGE
Lloh5:
	ldr	x23, [x23, _IXGBE_LINK_UP_TIME@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x8, #1
	b.lt	LBB0_10
; %bb.4:
	mov	x24, #0
Lloh6:
	adrp	x26, _IXGBE_LINKS_UP@GOTPAGE
Lloh7:
	ldr	x26, [x26, _IXGBE_LINKS_UP@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
	tst	x8, x22
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	str	wzr, [x20]
	mov	w0, #100
	bl	_msleep
	ldr	w1, [x25]
	mov	x0, x21
	bl	_IXGBE_READ_REG
	mov	x22, x0
	add	x24, x24, #1
	ldr	x8, [x23]
	cmp	x24, x8
	b.lt	LBB0_5
	b	LBB0_10
LBB0_7:
Lloh8:
	adrp	x8, _IXGBE_LINKS_UP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IXGBE_LINKS_UP@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	tst	x8, x22
	cset	w8, ne
	b	LBB0_9
LBB0_8:
	mov	w8, #1
LBB0_9:
	str	w8, [x20]
LBB0_10:
Lloh11:
	adrp	x8, _IXGBE_LINKS_SPEED_82599@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IXGBE_LINKS_SPEED_82599@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	and	x8, x8, x22
Lloh14:
	adrp	x9, _IXGBE_LINKS_SPEED_10G_82599@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IXGBE_LINKS_SPEED_10G_82599@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
Lloh17:
	adrp	x8, _IXGBE_LINK_SPEED_10GB_FULL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IXGBE_LINK_SPEED_10GB_FULL@GOTPAGEOFF]
	b	LBB0_15
LBB0_12:
Lloh19:
	adrp	x9, _IXGBE_LINKS_SPEED_1G_82599@GOTPAGE
Lloh20:
	ldr	x9, [x9, _IXGBE_LINKS_SPEED_1G_82599@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.13:
Lloh22:
	adrp	x8, _IXGBE_LINK_SPEED_1GB_FULL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _IXGBE_LINK_SPEED_1GB_FULL@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
Lloh24:
	adrp	x9, _IXGBE_LINKS_SPEED_100_82599@GOTPAGE
Lloh25:
	ldr	x9, [x9, _IXGBE_LINKS_SPEED_100_82599@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
Lloh27:
	adrp	x10, _IXGBE_LINK_SPEED_UNKNOWN@GOTPAGE
Lloh28:
	ldr	x10, [x10, _IXGBE_LINK_SPEED_UNKNOWN@GOTPAGEOFF]
Lloh29:
	adrp	x11, _IXGBE_LINK_SPEED_100_FULL@GOTPAGE
Lloh30:
	ldr	x11, [x11, _IXGBE_LINK_SPEED_100_FULL@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x11, x10, eq
LBB0_15:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_IXGBE_LINKS,4,2                ; @IXGBE_LINKS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LINKS changed from %08X to %08X\n"

	.comm	_IXGBE_LINK_UP_TIME,8,3         ; @IXGBE_LINK_UP_TIME
	.comm	_IXGBE_LINKS_UP,8,3             ; @IXGBE_LINKS_UP
	.comm	_IXGBE_LINKS_SPEED_82599,8,3    ; @IXGBE_LINKS_SPEED_82599
	.comm	_IXGBE_LINKS_SPEED_10G_82599,8,3 ; @IXGBE_LINKS_SPEED_10G_82599
	.comm	_IXGBE_LINK_SPEED_10GB_FULL,4,2 ; @IXGBE_LINK_SPEED_10GB_FULL
	.comm	_IXGBE_LINKS_SPEED_1G_82599,8,3 ; @IXGBE_LINKS_SPEED_1G_82599
	.comm	_IXGBE_LINK_SPEED_1GB_FULL,4,2  ; @IXGBE_LINK_SPEED_1GB_FULL
	.comm	_IXGBE_LINKS_SPEED_100_82599,8,3 ; @IXGBE_LINKS_SPEED_100_82599
	.comm	_IXGBE_LINK_SPEED_100_FULL,4,2  ; @IXGBE_LINK_SPEED_100_FULL
	.comm	_IXGBE_LINK_SPEED_UNKNOWN,4,2   ; @IXGBE_LINK_SPEED_UNKNOWN
.subsections_via_symbols
