	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixgbe_check_mac_link_82598
_ixgbe_check_mac_link_82598:            ## @ixgbe_check_mac_link_82598
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movq	%rdx, %r14
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movq	_ixgbe_phy_nl@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.1:
	movq	_MDIO_MMD_PMAPMD@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	leaq	-48(%rbp), %r13
	movq	%r15, %rdi
	movl	$51103, %esi                    ## imm = 0xC79F
	movq	%r13, %rcx
	callq	*16(%r15)
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	$51103, %esi                    ## imm = 0xC79F
	movq	%r13, %rcx
	callq	*16(%r15)
	movl	(%r12), %edx
	leaq	-44(%rbp), %rcx
	movq	%r15, %rdi
	movl	$49164, %esi                    ## imm = 0xC00C
	callq	*16(%r15)
	testl	%ebx, %ebx
	je	LBB0_14
## %bb.2:
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movq	_IXGBE_LINK_UP_TIME@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_8
## %bb.3:
	xorl	%r13d, %r13d
	leaq	-44(%rbp), %rbx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	$0, (%r14)
	movl	$100, %edi
	callq	_msleep
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	$51103, %esi                    ## imm = 0xC79F
	leaq	-48(%rbp), %rcx
	callq	*16(%r15)
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	$49164, %esi                    ## imm = 0xC00C
	movq	%rbx, %rcx
	callq	*16(%r15)
	incq	%r13
	movq	_IXGBE_LINK_UP_TIME@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jge	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	testb	$1, -48(%rbp)
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	testb	$1, -44(%rbp)
	jne	LBB0_4
## %bb.7:
	movl	$1, (%r14)
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_9
LBB0_8:
	cmpl	$0, (%r14)
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_27
LBB0_9:
	movq	_IXGBE_LINKS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_IXGBE_READ_REG
	testl	%ebx, %ebx
	je	LBB0_17
## %bb.10:
	movq	_IXGBE_LINK_UP_TIME@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	jle	LBB0_20
## %bb.11:
	xorl	%ebx, %ebx
	movq	_IXGBE_LINKS_UP@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	testq	%rax, (%r13)
	jne	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	$0, (%r14)
	movl	$100, %edi
	callq	_msleep
	movq	_IXGBE_LINKS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_IXGBE_READ_REG
	incq	%rbx
	cmpq	(%r12), %rbx
	jl	LBB0_12
	jmp	LBB0_20
LBB0_14:
	testb	$1, -48(%rbp)
	je	LBB0_26
## %bb.15:
	testb	$1, -44(%rbp)
	jne	LBB0_26
## %bb.16:
	movl	$1, (%r14)
	movq	_IXGBE_LINKS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_IXGBE_READ_REG
LBB0_17:
	movq	_IXGBE_LINKS_UP@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	testq	%rax, (%rdx)
	setne	%cl
	jmp	LBB0_19
LBB0_18:
	movl	$1, %ecx
LBB0_19:
	movl	%ecx, (%r14)
LBB0_20:
	movq	_IXGBE_LINKS_SPEED@GOTPCREL(%rip), %rcx
	andq	(%rcx), %rax
	jne	LBB0_22
## %bb.21:
	movq	_IXGBE_LINK_SPEED_1GB_FULL@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_22:
	movq	_IXGBE_LINK_SPEED_10GB_FULL@GOTPCREL(%rip), %rax
LBB0_23:
	movl	(%rax), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	(%r15), %rax
	movq	_IXGBE_DEV_ID_82598AT2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_27
## %bb.24:
	cmpl	$0, (%r14)
	je	LBB0_27
## %bb.25:
	movq	%r15, %rdi
	callq	_ixgbe_validate_link_ready
	testq	%rax, %rax
	je	LBB0_27
LBB0_26:
	movl	$0, (%r14)
LBB0_27:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ixgbe_phy_nl,8,3               ## @ixgbe_phy_nl
	.comm	_MDIO_MMD_PMAPMD,4,2            ## @MDIO_MMD_PMAPMD
	.comm	_IXGBE_LINK_UP_TIME,8,3         ## @IXGBE_LINK_UP_TIME
	.comm	_IXGBE_LINKS,4,2                ## @IXGBE_LINKS
	.comm	_IXGBE_LINKS_UP,8,3             ## @IXGBE_LINKS_UP
	.comm	_IXGBE_LINKS_SPEED,8,3          ## @IXGBE_LINKS_SPEED
	.comm	_IXGBE_LINK_SPEED_10GB_FULL,4,2 ## @IXGBE_LINK_SPEED_10GB_FULL
	.comm	_IXGBE_LINK_SPEED_1GB_FULL,4,2  ## @IXGBE_LINK_SPEED_1GB_FULL
	.comm	_IXGBE_DEV_ID_82598AT2,8,3      ## @IXGBE_DEV_ID_82598AT2
	.no_dead_strip	_ixgbe_check_mac_link_82598
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ixgbe_check_mac_link_82598
_ixgbe_check_mac_link_82598:            ; @ixgbe_check_mac_link_82598
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x22, x3
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _ixgbe_phy_nl@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ixgbe_phy_nl@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.1:
	ldr	x8, [x20, #16]
Lloh3:
	adrp	x23, _MDIO_MMD_PMAPMD@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MDIO_MMD_PMAPMD@GOTPAGEOFF]
	ldr	w2, [x23]
	add	x3, sp, #12
	mov	x0, x20
	mov	w1, #51103
	blr	x8
	ldr	x8, [x20, #16]
	ldr	w2, [x23]
	add	x3, sp, #12
	mov	x0, x20
	mov	w1, #51103
	blr	x8
	ldr	x8, [x20, #16]
	ldr	w2, [x23]
	add	x3, sp, #8
	mov	x0, x20
	mov	w1, #49164
	blr	x8
	cbz	w22, LBB0_14
; %bb.2:
Lloh5:
	adrp	x24, _IXGBE_LINK_UP_TIME@GOTPAGE
Lloh6:
	ldr	x24, [x24, _IXGBE_LINK_UP_TIME@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x8, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x25, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	wzr, [x19]
	mov	w0, #100
	bl	_msleep
	ldr	x8, [x20, #16]
	ldr	w2, [x23]
	add	x3, sp, #12
	mov	x0, x20
	mov	w1, #51103
	blr	x8
	ldr	x8, [x20, #16]
	ldr	w2, [x23]
	add	x3, sp, #8
	mov	x0, x20
	mov	w1, #49164
	blr	x8
	add	x25, x25, #1
	ldr	x8, [x24]
	cmp	x25, x8
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [sp, #12]
	tbz	w8, #0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [sp, #8]
	tbnz	w8, #0, LBB0_4
; %bb.7:
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_9
LBB0_8:
	ldr	w8, [x19]
	cbz	w8, LBB0_24
LBB0_9:
Lloh7:
	adrp	x23, _IXGBE_LINKS@GOTPAGE
Lloh8:
	ldr	x23, [x23, _IXGBE_LINKS@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_IXGBE_READ_REG
	cbz	w22, LBB0_17
; %bb.10:
Lloh9:
	adrp	x22, _IXGBE_LINK_UP_TIME@GOTPAGE
Lloh10:
	ldr	x22, [x22, _IXGBE_LINK_UP_TIME@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x8, #1
	b.lt	LBB0_20
; %bb.11:
	mov	x24, #0
Lloh11:
	adrp	x25, _IXGBE_LINKS_UP@GOTPAGE
Lloh12:
	ldr	x25, [x25, _IXGBE_LINKS_UP@GOTPAGEOFF]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	tst	x8, x0
	b.ne	LBB0_18
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	str	wzr, [x19]
	mov	w0, #100
	bl	_msleep
	ldr	w1, [x23]
	mov	x0, x20
	bl	_IXGBE_READ_REG
	add	x24, x24, #1
	ldr	x8, [x22]
	cmp	x24, x8
	b.lt	LBB0_12
	b	LBB0_20
LBB0_14:
	ldrb	w8, [sp, #12]
	tbz	w8, #0, LBB0_23
; %bb.15:
	ldrb	w8, [sp, #8]
	tbnz	w8, #0, LBB0_23
; %bb.16:
	mov	w8, #1
	str	w8, [x19]
Lloh13:
	adrp	x8, _IXGBE_LINKS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IXGBE_LINKS@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_IXGBE_READ_REG
LBB0_17:
Lloh16:
	adrp	x8, _IXGBE_LINKS_UP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IXGBE_LINKS_UP@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	tst	x8, x0
	cset	w8, ne
	b	LBB0_19
LBB0_18:
	mov	w8, #1
LBB0_19:
	str	w8, [x19]
LBB0_20:
Lloh19:
	adrp	x8, _IXGBE_LINKS_SPEED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IXGBE_LINKS_SPEED@GOTPAGEOFF]
Lloh21:
	adrp	x9, _IXGBE_LINK_SPEED_1GB_FULL@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IXGBE_LINK_SPEED_1GB_FULL@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
Lloh24:
	adrp	x10, _IXGBE_LINK_SPEED_10GB_FULL@GOTPAGE
Lloh25:
	ldr	x10, [x10, _IXGBE_LINK_SPEED_10GB_FULL@GOTPAGEOFF]
	tst	x8, x0
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	str	w8, [x21]
	ldr	x8, [x20]
Lloh26:
	adrp	x9, _IXGBE_DEV_ID_82598AT2@GOTPAGE
Lloh27:
	ldr	x9, [x9, _IXGBE_DEV_ID_82598AT2@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_24
; %bb.21:
	ldr	w8, [x19]
	cbz	w8, LBB0_24
; %bb.22:
	mov	x0, x20
	bl	_ixgbe_validate_link_ready
	cbz	x0, LBB0_24
LBB0_23:
	str	wzr, [x19]
LBB0_24:
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ixgbe_phy_nl,8,3               ; @ixgbe_phy_nl
	.comm	_MDIO_MMD_PMAPMD,4,2            ; @MDIO_MMD_PMAPMD
	.comm	_IXGBE_LINK_UP_TIME,8,3         ; @IXGBE_LINK_UP_TIME
	.comm	_IXGBE_LINKS,4,2                ; @IXGBE_LINKS
	.comm	_IXGBE_LINKS_UP,8,3             ; @IXGBE_LINKS_UP
	.comm	_IXGBE_LINKS_SPEED,8,3          ; @IXGBE_LINKS_SPEED
	.comm	_IXGBE_LINK_SPEED_10GB_FULL,4,2 ; @IXGBE_LINK_SPEED_10GB_FULL
	.comm	_IXGBE_LINK_SPEED_1GB_FULL,4,2  ; @IXGBE_LINK_SPEED_1GB_FULL
	.comm	_IXGBE_DEV_ID_82598AT2,8,3      ; @IXGBE_DEV_ID_82598AT2
	.no_dead_strip	_ixgbe_check_mac_link_82598
.subsections_via_symbols
