	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_phy_igp_get_info
_e1000_phy_igp_get_info:                ## @e1000_phy_igp_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	%rax, 48(%rsi)
	movq	_e1000_10bt_ext_dist_enable_normal@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rsi)
	movq	_e1000_polarity_reversal_enabled@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rsi)
	leaq	-24(%rbp), %rsi
	callq	_e1000_check_polarity
	testq	%rax, %rax
	jne	LBB0_16
## %bb.1:
	movl	-24(%rbp), %eax
	movl	%eax, 32(%r14)
	movq	_IGP01E1000_PHY_PORT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_e1000_read_phy_reg
	testq	%rax, %rax
	jne	LBB0_16
## %bb.2:
	movl	-20(%rbp), %eax
	movq	_IGP01E1000_PSSR_MDIX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%eax, %edx
	movq	_IGP01E1000_PSSR_MDIX_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edx
	movslq	%edx, %rcx
	movq	%rcx, 24(%r14)
	movq	_IGP01E1000_PSSR_SPEED_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_IGP01E1000_PSSR_SPEED_1000MBPS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_15
## %bb.3:
	movq	_PHY_1000T_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_e1000_read_phy_reg
	testq	%rax, %rax
	jne	LBB0_16
## %bb.4:
	movl	-20(%rbp), %eax
	movq	_SR_1000T_LOCAL_RX_STATUS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%eax, %edx
	movq	_SR_1000T_LOCAL_RX_STATUS_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edx
	testl	%edx, %edx
	movq	_e1000_1000t_rx_status_ok@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	_e1000_1000t_rx_status_not_ok@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movq	%rdx, %rcx
	cmoveq	%rsi, %rcx
	movq	%rcx, 16(%r14)
	movq	_SR_1000T_REMOTE_RX_STATUS@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_SR_1000T_REMOTE_RX_STATUS_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	testl	%eax, %eax
	cmoveq	%rsi, %rdx
	movq	%rdx, 8(%r14)
	leaq	-32(%rbp), %rsi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_e1000_get_cable_length
	testq	%rax, %rax
	jne	LBB0_16
## %bb.5:
	movl	-32(%rbp), %ecx
	addl	-28(%rbp), %ecx
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	movq	_e1000_igp_cable_length_50@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_6
## %bb.7:
	movq	_e1000_igp_cable_length_80@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_8
## %bb.9:
	movq	_e1000_igp_cable_length_110@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_10
## %bb.11:
	movq	_e1000_igp_cable_length_140@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_12
## %bb.13:
	movq	_e1000_cable_length_140@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_6:
	movq	_e1000_cable_length_50@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_8:
	movq	_e1000_cable_length_50_80@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_10:
	movq	_e1000_cable_length_80_110@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_12:
	movq	_e1000_cable_length_110_140@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_15:
	movq	_E1000_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_16:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_e1000_10bt_ext_dist_enable_normal,4,2 ## @e1000_10bt_ext_dist_enable_normal
	.comm	_e1000_polarity_reversal_enabled,4,2 ## @e1000_polarity_reversal_enabled
	.comm	_IGP01E1000_PHY_PORT_STATUS,4,2 ## @IGP01E1000_PHY_PORT_STATUS
	.comm	_IGP01E1000_PSSR_MDIX,4,2       ## @IGP01E1000_PSSR_MDIX
	.comm	_IGP01E1000_PSSR_MDIX_SHIFT,4,2 ## @IGP01E1000_PSSR_MDIX_SHIFT
	.comm	_IGP01E1000_PSSR_SPEED_MASK,4,2 ## @IGP01E1000_PSSR_SPEED_MASK
	.comm	_IGP01E1000_PSSR_SPEED_1000MBPS,4,2 ## @IGP01E1000_PSSR_SPEED_1000MBPS
	.comm	_PHY_1000T_STATUS,4,2           ## @PHY_1000T_STATUS
	.comm	_SR_1000T_LOCAL_RX_STATUS,4,2   ## @SR_1000T_LOCAL_RX_STATUS
	.comm	_SR_1000T_LOCAL_RX_STATUS_SHIFT,4,2 ## @SR_1000T_LOCAL_RX_STATUS_SHIFT
	.comm	_e1000_1000t_rx_status_ok,8,3   ## @e1000_1000t_rx_status_ok
	.comm	_e1000_1000t_rx_status_not_ok,8,3 ## @e1000_1000t_rx_status_not_ok
	.comm	_SR_1000T_REMOTE_RX_STATUS,4,2  ## @SR_1000T_REMOTE_RX_STATUS
	.comm	_SR_1000T_REMOTE_RX_STATUS_SHIFT,4,2 ## @SR_1000T_REMOTE_RX_STATUS_SHIFT
	.comm	_e1000_igp_cable_length_50,4,2  ## @e1000_igp_cable_length_50
	.comm	_e1000_cable_length_50,4,2      ## @e1000_cable_length_50
	.comm	_e1000_igp_cable_length_80,4,2  ## @e1000_igp_cable_length_80
	.comm	_e1000_cable_length_50_80,4,2   ## @e1000_cable_length_50_80
	.comm	_e1000_igp_cable_length_110,4,2 ## @e1000_igp_cable_length_110
	.comm	_e1000_cable_length_80_110,4,2  ## @e1000_cable_length_80_110
	.comm	_e1000_igp_cable_length_140,4,2 ## @e1000_igp_cable_length_140
	.comm	_e1000_cable_length_110_140,4,2 ## @e1000_cable_length_110_140
	.comm	_e1000_cable_length_140,4,2     ## @e1000_cable_length_140
	.comm	_E1000_SUCCESS,8,3              ## @E1000_SUCCESS
	.no_dead_strip	_e1000_phy_igp_get_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_phy_igp_get_info
_e1000_phy_igp_get_info:                ; @e1000_phy_igp_get_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
	str	x8, [x1, #48]
Lloh0:
	adrp	x8, _e1000_10bt_ext_dist_enable_normal@GOTPAGE
Lloh1:
	ldr	x8, [x8, _e1000_10bt_ext_dist_enable_normal@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _e1000_polarity_reversal_enabled@GOTPAGE
Lloh4:
	ldr	x9, [x9, _e1000_polarity_reversal_enabled@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x1, #36]
	mov	x1, sp
	bl	_e1000_check_polarity
	cbnz	x0, LBB0_14
; %bb.1:
	ldr	w8, [sp]
	str	w8, [x19, #32]
Lloh6:
	adrp	x8, _IGP01E1000_PHY_PORT_STATUS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IGP01E1000_PHY_PORT_STATUS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_e1000_read_phy_reg
	cbnz	x0, LBB0_14
; %bb.2:
	ldr	w8, [sp, #12]
Lloh9:
	adrp	x9, _IGP01E1000_PSSR_MDIX@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IGP01E1000_PSSR_MDIX@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w9, w9, w8
Lloh12:
	adrp	x10, _IGP01E1000_PSSR_MDIX_SHIFT@GOTPAGE
Lloh13:
	ldr	x10, [x10, _IGP01E1000_PSSR_MDIX_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	asr	w9, w9, w10
	sxtw	x9, w9
	str	x9, [x19, #24]
Lloh15:
	adrp	x9, _IGP01E1000_PSSR_SPEED_MASK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IGP01E1000_PSSR_SPEED_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh18:
	adrp	x9, _IGP01E1000_PSSR_SPEED_1000MBPS@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IGP01E1000_PSSR_SPEED_1000MBPS@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.3:
Lloh21:
	adrp	x8, _PHY_1000T_STATUS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PHY_1000T_STATUS@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_e1000_read_phy_reg
	cbnz	x0, LBB0_14
; %bb.4:
	ldr	w8, [sp, #12]
Lloh24:
	adrp	x9, _SR_1000T_LOCAL_RX_STATUS@GOTPAGE
Lloh25:
	ldr	x9, [x9, _SR_1000T_LOCAL_RX_STATUS@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	and	w9, w9, w8
Lloh27:
	adrp	x10, _SR_1000T_LOCAL_RX_STATUS_SHIFT@GOTPAGE
Lloh28:
	ldr	x10, [x10, _SR_1000T_LOCAL_RX_STATUS_SHIFT@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	asr	w9, w9, w10
Lloh30:
	adrp	x10, _e1000_1000t_rx_status_ok@GOTPAGE
Lloh31:
	ldr	x10, [x10, _e1000_1000t_rx_status_ok@GOTPAGEOFF]
Lloh32:
	ldr	x10, [x10]
Lloh33:
	adrp	x11, _e1000_1000t_rx_status_not_ok@GOTPAGE
Lloh34:
	ldr	x11, [x11, _e1000_1000t_rx_status_not_ok@GOTPAGEOFF]
	cmp	w9, #0
Lloh35:
	adrp	x9, _SR_1000T_REMOTE_RX_STATUS@GOTPAGE
Lloh36:
	ldr	x9, [x9, _SR_1000T_REMOTE_RX_STATUS@GOTPAGEOFF]
Lloh37:
	ldr	x11, [x11]
Lloh38:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh39:
	adrp	x9, _SR_1000T_REMOTE_RX_STATUS_SHIFT@GOTPAGE
Lloh40:
	ldr	x9, [x9, _SR_1000T_REMOTE_RX_STATUS_SHIFT@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	asr	w8, w8, w9
	csel	x9, x11, x10, eq
	cmp	w8, #0
	csel	x8, x11, x10, eq
	stp	x8, x9, [x19, #8]
	add	x1, sp, #8
	add	x2, sp, #4
	mov	x0, x20
	bl	_e1000_get_cable_length
	cbnz	x0, LBB0_14
; %bb.5:
	ldp	w8, w9, [sp, #4]
	add	w8, w9, w8
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
Lloh42:
	adrp	x9, _e1000_igp_cable_length_50@GOTPAGE
Lloh43:
	ldr	x9, [x9, _e1000_igp_cable_length_50@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_9
; %bb.6:
Lloh45:
	adrp	x9, _e1000_igp_cable_length_80@GOTPAGE
Lloh46:
	ldr	x9, [x9, _e1000_igp_cable_length_80@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_10
; %bb.7:
Lloh48:
	adrp	x9, _e1000_igp_cable_length_110@GOTPAGE
Lloh49:
	ldr	x9, [x9, _e1000_igp_cable_length_110@GOTPAGEOFF]
Lloh50:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_11
; %bb.8:
Lloh51:
	adrp	x9, _e1000_igp_cable_length_140@GOTPAGE
Lloh52:
	ldr	x9, [x9, _e1000_igp_cable_length_140@GOTPAGEOFF]
Lloh53:
	ldr	w9, [x9]
Lloh54:
	adrp	x10, _e1000_cable_length_110_140@GOTPAGE
Lloh55:
	ldr	x10, [x10, _e1000_cable_length_110_140@GOTPAGEOFF]
Lloh56:
	adrp	x11, _e1000_cable_length_140@GOTPAGE
Lloh57:
	ldr	x11, [x11, _e1000_cable_length_140@GOTPAGEOFF]
	cmp	w8, w9
	csel	x8, x11, x10, gt
	b	LBB0_12
LBB0_9:
Lloh58:
	adrp	x8, _e1000_cable_length_50@GOTPAGE
Lloh59:
	ldr	x8, [x8, _e1000_cable_length_50@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh60:
	adrp	x8, _e1000_cable_length_50_80@GOTPAGE
Lloh61:
	ldr	x8, [x8, _e1000_cable_length_50_80@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh62:
	adrp	x8, _e1000_cable_length_80_110@GOTPAGE
Lloh63:
	ldr	x8, [x8, _e1000_cable_length_80_110@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_13:
Lloh64:
	adrp	x8, _E1000_SUCCESS@GOTPAGE
Lloh65:
	ldr	x8, [x8, _E1000_SUCCESS@GOTPAGEOFF]
Lloh66:
	ldr	x0, [x8]
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh37
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.cfi_endproc
                                        ; -- End function
	.comm	_e1000_10bt_ext_dist_enable_normal,4,2 ; @e1000_10bt_ext_dist_enable_normal
	.comm	_e1000_polarity_reversal_enabled,4,2 ; @e1000_polarity_reversal_enabled
	.comm	_IGP01E1000_PHY_PORT_STATUS,4,2 ; @IGP01E1000_PHY_PORT_STATUS
	.comm	_IGP01E1000_PSSR_MDIX,4,2       ; @IGP01E1000_PSSR_MDIX
	.comm	_IGP01E1000_PSSR_MDIX_SHIFT,4,2 ; @IGP01E1000_PSSR_MDIX_SHIFT
	.comm	_IGP01E1000_PSSR_SPEED_MASK,4,2 ; @IGP01E1000_PSSR_SPEED_MASK
	.comm	_IGP01E1000_PSSR_SPEED_1000MBPS,4,2 ; @IGP01E1000_PSSR_SPEED_1000MBPS
	.comm	_PHY_1000T_STATUS,4,2           ; @PHY_1000T_STATUS
	.comm	_SR_1000T_LOCAL_RX_STATUS,4,2   ; @SR_1000T_LOCAL_RX_STATUS
	.comm	_SR_1000T_LOCAL_RX_STATUS_SHIFT,4,2 ; @SR_1000T_LOCAL_RX_STATUS_SHIFT
	.comm	_e1000_1000t_rx_status_ok,8,3   ; @e1000_1000t_rx_status_ok
	.comm	_e1000_1000t_rx_status_not_ok,8,3 ; @e1000_1000t_rx_status_not_ok
	.comm	_SR_1000T_REMOTE_RX_STATUS,4,2  ; @SR_1000T_REMOTE_RX_STATUS
	.comm	_SR_1000T_REMOTE_RX_STATUS_SHIFT,4,2 ; @SR_1000T_REMOTE_RX_STATUS_SHIFT
	.comm	_e1000_igp_cable_length_50,4,2  ; @e1000_igp_cable_length_50
	.comm	_e1000_cable_length_50,4,2      ; @e1000_cable_length_50
	.comm	_e1000_igp_cable_length_80,4,2  ; @e1000_igp_cable_length_80
	.comm	_e1000_cable_length_50_80,4,2   ; @e1000_cable_length_50_80
	.comm	_e1000_igp_cable_length_110,4,2 ; @e1000_igp_cable_length_110
	.comm	_e1000_cable_length_80_110,4,2  ; @e1000_cable_length_80_110
	.comm	_e1000_igp_cable_length_140,4,2 ; @e1000_igp_cable_length_140
	.comm	_e1000_cable_length_110_140,4,2 ; @e1000_cable_length_110_140
	.comm	_e1000_cable_length_140,4,2     ; @e1000_cable_length_140
	.comm	_E1000_SUCCESS,8,3              ; @E1000_SUCCESS
	.no_dead_strip	_e1000_phy_igp_get_info
.subsections_via_symbols
