	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igb_get_pcs_speed_and_duplex_82575
_igb_get_pcs_speed_and_duplex_82575:    ## @igb_get_pcs_speed_and_duplex_82575
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	$0, (%rdi)
	movq	$0, (%rsi)
	movq	$0, (%rdx)
	movq	_E1000_PCS_LSTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rd32
	movq	_E1000_PCS_LSTS_LINK_OK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_14
## %bb.1:
	movq	_E1000_PCS_LSTS_SYNK_OK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_14
## %bb.2:
	movl	$1, (%rbx)
	movq	_E1000_PCS_LSTS_SPEED_1000@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movq	_E1000_PCS_LSTS_SPEED_100@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%eax, %edx
	jne	LBB0_3
## %bb.4:
	movq	_SPEED_10@GOTPCREL(%rip), %rdx
	testl	%ecx, %ecx
	jne	LBB0_6
	jmp	LBB0_7
LBB0_3:
	movq	_SPEED_100@GOTPCREL(%rip), %rdx
	testl	%ecx, %ecx
	je	LBB0_7
LBB0_6:
	movq	_SPEED_1000@GOTPCREL(%rip), %rdx
LBB0_7:
	movq	(%rdx), %rcx
	movq	%rcx, (%r15)
	movq	_E1000_PCS_LSTS_DUPLEX_FULL@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	jne	LBB0_8
## %bb.9:
	movq	_HALF_DUPLEX@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movq	_FULL_DUPLEX@GOTPCREL(%rip), %rax
LBB0_10:
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movq	8(%rbx), %rax
	movq	_e1000_i354@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.11:
	movq	_E1000_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rd32
	movq	_E1000_STATUS_2P5_SKU@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_14
## %bb.12:
	movq	_E1000_STATUS_2P5_SKU_OVER@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_14
## %bb.13:
	movq	_SPEED_2500@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	movq	_FULL_DUPLEX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	leaq	L_.str(%rip), %rdi
	callq	_hw_dbg
	leaq	L_.str.1(%rip), %rdi
	callq	_hw_dbg
LBB0_14:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_E1000_PCS_LSTAT,4,2            ## @E1000_PCS_LSTAT
	.comm	_E1000_PCS_LSTS_LINK_OK,4,2     ## @E1000_PCS_LSTS_LINK_OK
	.comm	_E1000_PCS_LSTS_SYNK_OK,4,2     ## @E1000_PCS_LSTS_SYNK_OK
	.comm	_E1000_PCS_LSTS_SPEED_1000,4,2  ## @E1000_PCS_LSTS_SPEED_1000
	.comm	_SPEED_1000,8,3                 ## @SPEED_1000
	.comm	_E1000_PCS_LSTS_SPEED_100,4,2   ## @E1000_PCS_LSTS_SPEED_100
	.comm	_SPEED_100,8,3                  ## @SPEED_100
	.comm	_SPEED_10,8,3                   ## @SPEED_10
	.comm	_E1000_PCS_LSTS_DUPLEX_FULL,4,2 ## @E1000_PCS_LSTS_DUPLEX_FULL
	.comm	_FULL_DUPLEX,8,3                ## @FULL_DUPLEX
	.comm	_HALF_DUPLEX,8,3                ## @HALF_DUPLEX
	.comm	_e1000_i354,8,3                 ## @e1000_i354
	.comm	_E1000_STATUS,4,2               ## @E1000_STATUS
	.comm	_E1000_STATUS_2P5_SKU,4,2       ## @E1000_STATUS_2P5_SKU
	.comm	_E1000_STATUS_2P5_SKU_OVER,4,2  ## @E1000_STATUS_2P5_SKU_OVER
	.comm	_SPEED_2500,8,3                 ## @SPEED_2500
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"2500 Mbs, "

L_.str.1:                               ## @.str.1
	.asciz	"Full Duplex\n"

	.no_dead_strip	_igb_get_pcs_speed_and_duplex_82575
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function igb_get_pcs_speed_and_duplex_82575
_igb_get_pcs_speed_and_duplex_82575:    ; @igb_get_pcs_speed_and_duplex_82575
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	str	wzr, [x0]
	str	xzr, [x1]
	str	xzr, [x2]
Lloh0:
	adrp	x8, _E1000_PCS_LSTAT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _E1000_PCS_LSTAT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_rd32
Lloh3:
	adrp	x8, _E1000_PCS_LSTS_LINK_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _E1000_PCS_LSTS_LINK_OK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.1:
Lloh6:
	adrp	x8, _E1000_PCS_LSTS_SYNK_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _E1000_PCS_LSTS_SYNK_OK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.2:
	mov	w8, #1
	str	w8, [x21]
Lloh9:
	adrp	x8, _E1000_PCS_LSTS_SPEED_1000@GOTPAGE
Lloh10:
	ldr	x8, [x8, _E1000_PCS_LSTS_SPEED_1000@GOTPAGEOFF]
Lloh11:
	adrp	x9, _E1000_PCS_LSTS_SPEED_100@GOTPAGE
Lloh12:
	ldr	x9, [x9, _E1000_PCS_LSTS_SPEED_100@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _SPEED_10@GOTPAGE
Lloh16:
	ldr	x10, [x10, _SPEED_10@GOTPAGEOFF]
Lloh17:
	adrp	x11, _SPEED_100@GOTPAGE
Lloh18:
	ldr	x11, [x11, _SPEED_100@GOTPAGEOFF]
	tst	w9, w0
	csel	x9, x10, x11, eq
Lloh19:
	adrp	x10, _SPEED_1000@GOTPAGE
Lloh20:
	ldr	x10, [x10, _SPEED_1000@GOTPAGEOFF]
	tst	w8, w0
	csel	x8, x9, x10, eq
	ldr	x8, [x8]
	str	x8, [x20]
Lloh21:
	adrp	x8, _E1000_PCS_LSTS_DUPLEX_FULL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _E1000_PCS_LSTS_DUPLEX_FULL@GOTPAGEOFF]
Lloh23:
	adrp	x9, _HALF_DUPLEX@GOTPAGE
Lloh24:
	ldr	x9, [x9, _HALF_DUPLEX@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x22, _FULL_DUPLEX@GOTPAGE
Lloh27:
	ldr	x22, [x22, _FULL_DUPLEX@GOTPAGEOFF]
	tst	w8, w0
	csel	x8, x9, x22, eq
	ldr	x8, [x8]
	str	x8, [x19]
	ldr	x8, [x21, #8]
Lloh28:
	adrp	x9, _e1000_i354@GOTPAGE
Lloh29:
	ldr	x9, [x9, _e1000_i354@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
Lloh31:
	adrp	x8, _E1000_STATUS@GOTPAGE
Lloh32:
	ldr	x8, [x8, _E1000_STATUS@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	bl	_rd32
Lloh34:
	adrp	x8, _E1000_STATUS_2P5_SKU@GOTPAGE
Lloh35:
	ldr	x8, [x8, _E1000_STATUS_2P5_SKU@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.4:
Lloh37:
	adrp	x8, _E1000_STATUS_2P5_SKU_OVER@GOTPAGE
Lloh38:
	ldr	x8, [x8, _E1000_STATUS_2P5_SKU_OVER@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_6
; %bb.5:
Lloh40:
	adrp	x8, _SPEED_2500@GOTPAGE
Lloh41:
	ldr	x8, [x8, _SPEED_2500@GOTPAGEOFF]
Lloh42:
	ldr	x8, [x8]
	str	x8, [x20]
	ldr	x8, [x22]
	str	x8, [x19]
Lloh43:
	adrp	x0, l_.str@PAGE
Lloh44:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hw_dbg
Lloh45:
	adrp	x0, l_.str.1@PAGE
Lloh46:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_hw_dbg
LBB0_6:
	mov	w0, #0
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh25
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_E1000_PCS_LSTAT,4,2            ; @E1000_PCS_LSTAT
	.comm	_E1000_PCS_LSTS_LINK_OK,4,2     ; @E1000_PCS_LSTS_LINK_OK
	.comm	_E1000_PCS_LSTS_SYNK_OK,4,2     ; @E1000_PCS_LSTS_SYNK_OK
	.comm	_E1000_PCS_LSTS_SPEED_1000,4,2  ; @E1000_PCS_LSTS_SPEED_1000
	.comm	_SPEED_1000,8,3                 ; @SPEED_1000
	.comm	_E1000_PCS_LSTS_SPEED_100,4,2   ; @E1000_PCS_LSTS_SPEED_100
	.comm	_SPEED_100,8,3                  ; @SPEED_100
	.comm	_SPEED_10,8,3                   ; @SPEED_10
	.comm	_E1000_PCS_LSTS_DUPLEX_FULL,4,2 ; @E1000_PCS_LSTS_DUPLEX_FULL
	.comm	_FULL_DUPLEX,8,3                ; @FULL_DUPLEX
	.comm	_HALF_DUPLEX,8,3                ; @HALF_DUPLEX
	.comm	_e1000_i354,8,3                 ; @e1000_i354
	.comm	_E1000_STATUS,4,2               ; @E1000_STATUS
	.comm	_E1000_STATUS_2P5_SKU,4,2       ; @E1000_STATUS_2P5_SKU
	.comm	_E1000_STATUS_2P5_SKU_OVER,4,2  ; @E1000_STATUS_2P5_SKU_OVER
	.comm	_SPEED_2500,8,3                 ; @SPEED_2500
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"2500 Mbs, "

l_.str.1:                               ; @.str.1
	.asciz	"Full Duplex\n"

	.no_dead_strip	_igb_get_pcs_speed_and_duplex_82575
.subsections_via_symbols
