	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000_get_speed_and_duplex     ## -- Begin function e1000_get_speed_and_duplex
	.p2align	4, 0x90
_e1000_get_speed_and_duplex:            ## @e1000_get_speed_and_duplex
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	_e1000_82543@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_2
## %bb.1:
	leaq	L_.str.5(%rip), %rdi
	callq	_e_dbg
	movq	_SPEED_1000@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	movq	_FULL_DUPLEX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	jmp	LBB0_9
LBB0_2:
	movq	_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	movl	%eax, %ebx
	movq	_E1000_STATUS_SPEED_1000@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	movq	_SPEED_1000@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_E1000_STATUS_SPEED_100@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	movq	_SPEED_100@GOTPCREL(%rip), %rax
	cmoveq	_SPEED_10@GOTPCREL(%rip), %rax
	leaq	L_.str.2(%rip), %rcx
	leaq	L_.str.1(%rip), %rdi
	cmoveq	%rcx, %rdi
LBB0_5:
	movq	(%rax), %rax
	movq	%rax, (%r15)
	callq	_e_dbg
	movq	_E1000_STATUS_FD@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_FULL_DUPLEX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_8
LBB0_7:
	movq	_HALF_DUPLEX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	leaq	L_.str.4(%rip), %rdi
LBB0_8:
	callq	_e_dbg
LBB0_9:
	movq	8(%r12), %rax
	movq	_e1000_phy_igp@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.10:
	cmpq	$0, 16(%r12)
	je	LBB0_19
## %bb.11:
	movq	_PHY_AUTONEG_EXP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	movq	%r12, %rdi
	callq	_e1000_read_phy_reg
	testq	%rax, %rax
	jne	LBB0_20
## %bb.12:
	movq	_NWAY_ER_LP_NWAY_CAPS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, -40(%rbp)
	je	LBB0_18
## %bb.13:
	movq	_PHY_LP_ABILITY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	movq	%r12, %rdi
	callq	_e1000_read_phy_reg
	testq	%rax, %rax
	jne	LBB0_20
## %bb.14:
	movq	(%r15), %rax
	movq	_SPEED_100@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.15:
	movq	_NWAY_LPAR_100TX_FD_CAPS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testq	%rcx, -40(%rbp)
	je	LBB0_18
LBB0_16:
	movq	_SPEED_10@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.17:
	movq	_NWAY_LPAR_10T_FD_CAPS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, -40(%rbp)
	jne	LBB0_19
LBB0_18:
	movq	_HALF_DUPLEX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
LBB0_19:
	movq	_E1000_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_20:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_e1000_82543,8,3                ## @e1000_82543
	.comm	_STATUS,4,2                     ## @STATUS
	.comm	_E1000_STATUS_SPEED_1000,4,2    ## @E1000_STATUS_SPEED_1000
	.comm	_SPEED_1000,8,3                 ## @SPEED_1000
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"1000 Mbs, "

	.comm	_E1000_STATUS_SPEED_100,4,2     ## @E1000_STATUS_SPEED_100
	.comm	_SPEED_100,8,3                  ## @SPEED_100
L_.str.1:                               ## @.str.1
	.asciz	"100 Mbs, "

	.comm	_SPEED_10,8,3                   ## @SPEED_10
L_.str.2:                               ## @.str.2
	.asciz	"10 Mbs, "

	.comm	_E1000_STATUS_FD,4,2            ## @E1000_STATUS_FD
	.comm	_FULL_DUPLEX,8,3                ## @FULL_DUPLEX
L_.str.3:                               ## @.str.3
	.asciz	"Full Duplex\n"

	.comm	_HALF_DUPLEX,8,3                ## @HALF_DUPLEX
L_.str.4:                               ## @.str.4
	.asciz	" Half Duplex\n"

L_.str.5:                               ## @.str.5
	.asciz	"1000 Mbs, Full Duplex\n"

	.comm	_e1000_phy_igp,8,3              ## @e1000_phy_igp
	.comm	_PHY_AUTONEG_EXP,4,2            ## @PHY_AUTONEG_EXP
	.comm	_NWAY_ER_LP_NWAY_CAPS,8,3       ## @NWAY_ER_LP_NWAY_CAPS
	.comm	_PHY_LP_ABILITY,4,2             ## @PHY_LP_ABILITY
	.comm	_NWAY_LPAR_100TX_FD_CAPS,8,3    ## @NWAY_LPAR_100TX_FD_CAPS
	.comm	_NWAY_LPAR_10T_FD_CAPS,8,3      ## @NWAY_LPAR_10T_FD_CAPS
	.comm	_E1000_SUCCESS,8,3              ## @E1000_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000_get_speed_and_duplex     ; -- Begin function e1000_get_speed_and_duplex
	.p2align	2
_e1000_get_speed_and_duplex:            ; @e1000_get_speed_and_duplex
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _e1000_82543@GOTPAGE
Lloh1:
	ldr	x9, [x9, _e1000_82543@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str.5@PAGE
Lloh4:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_e_dbg
Lloh5:
	adrp	x8, _SPEED_1000@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SPEED_1000@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	x8, [x20]
Lloh8:
	adrp	x8, _FULL_DUPLEX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FULL_DUPLEX@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	x8, [x19]
	b	LBB0_9
LBB0_2:
Lloh11:
	adrp	x8, _STATUS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _STATUS@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_er32
	mov	x22, x0
Lloh14:
	adrp	x8, _E1000_STATUS_SPEED_1000@GOTPAGE
Lloh15:
	ldr	x8, [x8, _E1000_STATUS_SPEED_1000@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.3:
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
Lloh19:
	adrp	x8, _SPEED_1000@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SPEED_1000@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh21:
	adrp	x8, _E1000_STATUS_SPEED_100@GOTPAGE
Lloh22:
	ldr	x8, [x8, _E1000_STATUS_SPEED_100@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _SPEED_100@GOTPAGE
Lloh25:
	ldr	x9, [x9, _SPEED_100@GOTPAGEOFF]
Lloh26:
	adrp	x10, _SPEED_10@GOTPAGE
Lloh27:
	ldr	x10, [x10, _SPEED_10@GOTPAGEOFF]
	tst	w8, w22
	csel	x8, x10, x9, eq
Lloh28:
	adrp	x9, l_.str.1@PAGE
Lloh29:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh30:
	adrp	x10, l_.str.2@PAGE
Lloh31:
	add	x10, x10, l_.str.2@PAGEOFF
	csel	x0, x10, x9, eq
LBB0_5:
	ldr	x8, [x8]
	str	x8, [x20]
	bl	_e_dbg
Lloh32:
	adrp	x8, _E1000_STATUS_FD@GOTPAGE
Lloh33:
	ldr	x8, [x8, _E1000_STATUS_FD@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_7
; %bb.6:
Lloh35:
	adrp	x8, _FULL_DUPLEX@GOTPAGE
Lloh36:
	ldr	x8, [x8, _FULL_DUPLEX@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	str	x8, [x19]
Lloh38:
	adrp	x0, l_.str.3@PAGE
Lloh39:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh40:
	adrp	x8, _HALF_DUPLEX@GOTPAGE
Lloh41:
	ldr	x8, [x8, _HALF_DUPLEX@GOTPAGEOFF]
Lloh42:
	ldr	x8, [x8]
	str	x8, [x19]
Lloh43:
	adrp	x0, l_.str.4@PAGE
Lloh44:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_8:
	bl	_e_dbg
LBB0_9:
	ldr	x8, [x21, #8]
Lloh45:
	adrp	x9, _e1000_phy_igp@GOTPAGE
Lloh46:
	ldr	x9, [x9, _e1000_phy_igp@GOTPAGEOFF]
Lloh47:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.10:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_19
; %bb.11:
Lloh48:
	adrp	x8, _PHY_AUTONEG_EXP@GOTPAGE
Lloh49:
	ldr	x8, [x8, _PHY_AUTONEG_EXP@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x21
	bl	_e1000_read_phy_reg
	cbnz	x0, LBB0_20
; %bb.12:
	ldr	x8, [sp, #8]
Lloh51:
	adrp	x9, _NWAY_ER_LP_NWAY_CAPS@GOTPAGE
Lloh52:
	ldr	x9, [x9, _NWAY_ER_LP_NWAY_CAPS@GOTPAGEOFF]
Lloh53:
	ldr	x9, [x9]
	tst	x9, x8
	b.eq	LBB0_18
; %bb.13:
Lloh54:
	adrp	x8, _PHY_LP_ABILITY@GOTPAGE
Lloh55:
	ldr	x8, [x8, _PHY_LP_ABILITY@GOTPAGEOFF]
Lloh56:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x21
	bl	_e1000_read_phy_reg
	cbnz	x0, LBB0_20
; %bb.14:
	ldr	x8, [x20]
Lloh57:
	adrp	x9, _SPEED_100@GOTPAGE
Lloh58:
	ldr	x9, [x9, _SPEED_100@GOTPAGEOFF]
Lloh59:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.15:
	ldr	x9, [sp, #8]
Lloh60:
	adrp	x10, _NWAY_LPAR_100TX_FD_CAPS@GOTPAGE
Lloh61:
	ldr	x10, [x10, _NWAY_LPAR_100TX_FD_CAPS@GOTPAGEOFF]
Lloh62:
	ldr	x10, [x10]
	tst	x10, x9
	b.eq	LBB0_18
LBB0_16:
Lloh63:
	adrp	x9, _SPEED_10@GOTPAGE
Lloh64:
	ldr	x9, [x9, _SPEED_10@GOTPAGEOFF]
Lloh65:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.17:
	ldr	x8, [sp, #8]
Lloh66:
	adrp	x9, _NWAY_LPAR_10T_FD_CAPS@GOTPAGE
Lloh67:
	ldr	x9, [x9, _NWAY_LPAR_10T_FD_CAPS@GOTPAGEOFF]
Lloh68:
	ldr	x9, [x9]
	tst	x9, x8
	b.ne	LBB0_19
LBB0_18:
Lloh69:
	adrp	x8, _HALF_DUPLEX@GOTPAGE
Lloh70:
	ldr	x8, [x8, _HALF_DUPLEX@GOTPAGEOFF]
Lloh71:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_19:
Lloh72:
	adrp	x8, _E1000_SUCCESS@GOTPAGE
Lloh73:
	ldr	x8, [x8, _E1000_SUCCESS@GOTPAGEOFF]
Lloh74:
	ldr	x0, [x8]
LBB0_20:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.cfi_endproc
                                        ; -- End function
	.comm	_e1000_82543,8,3                ; @e1000_82543
	.comm	_STATUS,4,2                     ; @STATUS
	.comm	_E1000_STATUS_SPEED_1000,4,2    ; @E1000_STATUS_SPEED_1000
	.comm	_SPEED_1000,8,3                 ; @SPEED_1000
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"1000 Mbs, "

	.comm	_E1000_STATUS_SPEED_100,4,2     ; @E1000_STATUS_SPEED_100
	.comm	_SPEED_100,8,3                  ; @SPEED_100
l_.str.1:                               ; @.str.1
	.asciz	"100 Mbs, "

	.comm	_SPEED_10,8,3                   ; @SPEED_10
l_.str.2:                               ; @.str.2
	.asciz	"10 Mbs, "

	.comm	_E1000_STATUS_FD,4,2            ; @E1000_STATUS_FD
	.comm	_FULL_DUPLEX,8,3                ; @FULL_DUPLEX
l_.str.3:                               ; @.str.3
	.asciz	"Full Duplex\n"

	.comm	_HALF_DUPLEX,8,3                ; @HALF_DUPLEX
l_.str.4:                               ; @.str.4
	.asciz	" Half Duplex\n"

l_.str.5:                               ; @.str.5
	.asciz	"1000 Mbs, Full Duplex\n"

	.comm	_e1000_phy_igp,8,3              ; @e1000_phy_igp
	.comm	_PHY_AUTONEG_EXP,4,2            ; @PHY_AUTONEG_EXP
	.comm	_NWAY_ER_LP_NWAY_CAPS,8,3       ; @NWAY_ER_LP_NWAY_CAPS
	.comm	_PHY_LP_ABILITY,4,2             ; @PHY_LP_ABILITY
	.comm	_NWAY_LPAR_100TX_FD_CAPS,8,3    ; @NWAY_LPAR_100TX_FD_CAPS
	.comm	_NWAY_LPAR_10T_FD_CAPS,8,3      ; @NWAY_LPAR_10T_FD_CAPS
	.comm	_E1000_SUCCESS,8,3              ; @E1000_SUCCESS
.subsections_via_symbols
