	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000_phy_get_info             ## -- Begin function e1000_phy_get_info
	.p2align	4, 0x90
_e1000_phy_get_info:                    ## @e1000_phy_get_info
	.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	_e1000_cable_length_undefined@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rsi)
	movq	_e1000_10bt_ext_dist_enable_undefined@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rsi)
	movq	_e1000_rev_polarity_undefined@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rsi)
	movq	_e1000_downshift_undefined@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rsi)
	movq	_e1000_polarity_reversal_undefined@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rsi)
	movq	_e1000_auto_x_mode_undefined@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rsi)
	movq	_e1000_1000t_rx_status_undefined@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rsi)
	movq	%rax, (%rsi)
	movq	(%rdi), %rax
	movq	_e1000_media_type_copper@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_PHY_STATUS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdx
	callq	_e1000_read_phy_reg
	testq	%rax, %rax
	jne	LBB0_13
## %bb.4:
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdx
	movq	%r14, %rdi
	callq	_e1000_read_phy_reg
	testq	%rax, %rax
	jne	LBB0_13
## %bb.5:
	movl	-28(%rbp), %eax
	movq	_MII_SR_LINK_STATUS@GOTPCREL(%rip), %rcx
	notl	%eax
	testl	%eax, (%rcx)
	jne	LBB0_6
## %bb.7:
	movq	8(%r14), %rax
	movq	_e1000_phy_igp@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_e1000_phy_igp_get_info
	jmp	LBB0_13
LBB0_1:
	leaq	L_.str(%rip), %rdi
LBB0_2:
	callq	_e_dbg
	movq	_E1000_ERR_CONFIG@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subq	(%rcx), %rax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_9:
	movq	_e1000_phy_8211@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.10:
	movq	_e1000_phy_8201@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.12:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_e1000_phy_m88_get_info
	jmp	LBB0_13
LBB0_11:
	movq	_E1000_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_e1000_cable_length_undefined,4,2 ## @e1000_cable_length_undefined
	.comm	_e1000_10bt_ext_dist_enable_undefined,4,2 ## @e1000_10bt_ext_dist_enable_undefined
	.comm	_e1000_rev_polarity_undefined,4,2 ## @e1000_rev_polarity_undefined
	.comm	_e1000_downshift_undefined,4,2  ## @e1000_downshift_undefined
	.comm	_e1000_polarity_reversal_undefined,4,2 ## @e1000_polarity_reversal_undefined
	.comm	_e1000_auto_x_mode_undefined,4,2 ## @e1000_auto_x_mode_undefined
	.comm	_e1000_1000t_rx_status_undefined,8,3 ## @e1000_1000t_rx_status_undefined
	.comm	_e1000_media_type_copper,8,3    ## @e1000_media_type_copper
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PHY info is only valid for copper media\n"

	.comm	_E1000_ERR_CONFIG,8,3           ## @E1000_ERR_CONFIG
	.comm	_PHY_STATUS,4,2                 ## @PHY_STATUS
	.comm	_MII_SR_LINK_STATUS,4,2         ## @MII_SR_LINK_STATUS
L_.str.1:                               ## @.str.1
	.asciz	"PHY info is only valid if link is up\n"

	.comm	_e1000_phy_igp,8,3              ## @e1000_phy_igp
	.comm	_e1000_phy_8211,8,3             ## @e1000_phy_8211
	.comm	_e1000_phy_8201,8,3             ## @e1000_phy_8201
	.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_phy_get_info             ; -- Begin function e1000_phy_get_info
	.p2align	2
_e1000_phy_get_info:                    ; @e1000_phy_get_info
	.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
Lloh0:
	adrp	x8, _e1000_cable_length_undefined@GOTPAGE
Lloh1:
	ldr	x8, [x8, _e1000_cable_length_undefined@GOTPAGEOFF]
Lloh2:
	adrp	x9, _e1000_10bt_ext_dist_enable_undefined@GOTPAGE
Lloh3:
	ldr	x9, [x9, _e1000_10bt_ext_dist_enable_undefined@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x1, #32]
Lloh6:
	adrp	x8, _e1000_rev_polarity_undefined@GOTPAGE
Lloh7:
	ldr	x8, [x8, _e1000_rev_polarity_undefined@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _e1000_downshift_undefined@GOTPAGE
Lloh10:
	ldr	x9, [x9, _e1000_downshift_undefined@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x1, #24]
Lloh12:
	adrp	x8, _e1000_polarity_reversal_undefined@GOTPAGE
Lloh13:
	ldr	x8, [x8, _e1000_polarity_reversal_undefined@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _e1000_auto_x_mode_undefined@GOTPAGE
Lloh16:
	ldr	x9, [x9, _e1000_auto_x_mode_undefined@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [x1, #16]
Lloh18:
	adrp	x8, _e1000_1000t_rx_status_undefined@GOTPAGE
Lloh19:
	ldr	x8, [x8, _e1000_1000t_rx_status_undefined@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	stp	x8, x8, [x1]
	ldr	x8, [x0]
Lloh21:
	adrp	x9, _e1000_media_type_copper@GOTPAGE
Lloh22:
	ldr	x9, [x9, _e1000_media_type_copper@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh24:
	adrp	x21, _PHY_STATUS@GOTPAGE
Lloh25:
	ldr	x21, [x21, _PHY_STATUS@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	bl	_e1000_read_phy_reg
	cbnz	x0, LBB0_8
; %bb.2:
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x20
	bl	_e1000_read_phy_reg
	cbnz	x0, LBB0_8
; %bb.3:
	ldr	w8, [sp, #12]
Lloh26:
	adrp	x9, _MII_SR_LINK_STATUS@GOTPAGE
Lloh27:
	ldr	x9, [x9, _MII_SR_LINK_STATUS@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	bics	wzr, w9, w8
	b.ne	LBB0_9
; %bb.4:
	ldr	x8, [x20, #8]
Lloh29:
	adrp	x9, _e1000_phy_igp@GOTPAGE
Lloh30:
	ldr	x9, [x9, _e1000_phy_igp@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.5:
	mov	x0, x20
	mov	x1, x19
	bl	_e1000_phy_igp_get_info
	b	LBB0_8
LBB0_6:
Lloh32:
	adrp	x0, l_.str@PAGE
Lloh33:
	add	x0, x0, l_.str@PAGEOFF
LBB0_7:
	bl	_e_dbg
Lloh34:
	adrp	x8, _E1000_ERR_CONFIG@GOTPAGE
Lloh35:
	ldr	x8, [x8, _E1000_ERR_CONFIG@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	neg	x0, x8
LBB0_8:
	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
LBB0_9:
Lloh37:
	adrp	x0, l_.str.1@PAGE
Lloh38:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_10:
Lloh39:
	adrp	x9, _e1000_phy_8211@GOTPAGE
Lloh40:
	ldr	x9, [x9, _e1000_phy_8211@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_13
; %bb.11:
Lloh42:
	adrp	x9, _e1000_phy_8201@GOTPAGE
Lloh43:
	ldr	x9, [x9, _e1000_phy_8201@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_13
; %bb.12:
	mov	x0, x20
	mov	x1, x19
	bl	_e1000_phy_m88_get_info
	b	LBB0_8
LBB0_13:
Lloh45:
	adrp	x8, _E1000_SUCCESS@GOTPAGE
Lloh46:
	ldr	x8, [x8, _E1000_SUCCESS@GOTPAGEOFF]
Lloh47:
	ldr	x0, [x8]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_e1000_cable_length_undefined,4,2 ; @e1000_cable_length_undefined
	.comm	_e1000_10bt_ext_dist_enable_undefined,4,2 ; @e1000_10bt_ext_dist_enable_undefined
	.comm	_e1000_rev_polarity_undefined,4,2 ; @e1000_rev_polarity_undefined
	.comm	_e1000_downshift_undefined,4,2  ; @e1000_downshift_undefined
	.comm	_e1000_polarity_reversal_undefined,4,2 ; @e1000_polarity_reversal_undefined
	.comm	_e1000_auto_x_mode_undefined,4,2 ; @e1000_auto_x_mode_undefined
	.comm	_e1000_1000t_rx_status_undefined,8,3 ; @e1000_1000t_rx_status_undefined
	.comm	_e1000_media_type_copper,8,3    ; @e1000_media_type_copper
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PHY info is only valid for copper media\n"

	.comm	_E1000_ERR_CONFIG,8,3           ; @E1000_ERR_CONFIG
	.comm	_PHY_STATUS,4,2                 ; @PHY_STATUS
	.comm	_MII_SR_LINK_STATUS,4,2         ; @MII_SR_LINK_STATUS
l_.str.1:                               ; @.str.1
	.asciz	"PHY info is only valid if link is up\n"

	.comm	_e1000_phy_igp,8,3              ; @e1000_phy_igp
	.comm	_e1000_phy_8211,8,3             ; @e1000_phy_8211
	.comm	_e1000_phy_8201,8,3             ; @e1000_phy_8201
	.comm	_E1000_SUCCESS,8,3              ; @E1000_SUCCESS
.subsections_via_symbols
