	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igb_shutdown_serdes_link_82575 ## -- Begin function igb_shutdown_serdes_link_82575
	.p2align	4, 0x90
_igb_shutdown_serdes_link_82575:        ## @igb_shutdown_serdes_link_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_e1000_media_type_internal_serdes@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_igb_sgmii_active_82575
	testq	%rax, %rax
	jne	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_igb_enable_mng_pass_thru
	testl	%eax, %eax
	je	LBB0_4
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	movq	_E1000_PCS_CFG0@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_rd32
	movq	_E1000_PCS_CFG_PCS_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%rbx), %edi
	callq	_wr32
	movq	_E1000_CTRL_EXT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_rd32
	movq	_E1000_CTRL_EXT_SDP3_DATA@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%rbx), %edi
	movl	%eax, %esi
	callq	_wr32
	xorl	%eax, %eax
	callq	_wrfl
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_usleep_range                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_e1000_media_type_internal_serdes,8,3 ## @e1000_media_type_internal_serdes
	.comm	_E1000_PCS_CFG0,4,2             ## @E1000_PCS_CFG0
	.comm	_E1000_PCS_CFG_PCS_EN,4,2       ## @E1000_PCS_CFG_PCS_EN
	.comm	_E1000_CTRL_EXT,4,2             ## @E1000_CTRL_EXT
	.comm	_E1000_CTRL_EXT_SDP3_DATA,4,2   ## @E1000_CTRL_EXT_SDP3_DATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igb_shutdown_serdes_link_82575 ; -- Begin function igb_shutdown_serdes_link_82575
	.p2align	2
_igb_shutdown_serdes_link_82575:        ; @igb_shutdown_serdes_link_82575
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _e1000_media_type_internal_serdes@GOTPAGE
Lloh1:
	ldr	x9, [x9, _e1000_media_type_internal_serdes@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_igb_sgmii_active_82575
	cbnz	x0, LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_igb_enable_mng_pass_thru
	cbz	w0, LBB0_4
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh3:
	adrp	x19, _E1000_PCS_CFG0@GOTPAGE
Lloh4:
	ldr	x19, [x19, _E1000_PCS_CFG0@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_rd32
Lloh5:
	adrp	x8, _E1000_PCS_CFG_PCS_EN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _E1000_PCS_CFG_PCS_EN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	bic	w1, w0, w8
	ldr	w0, [x19]
	bl	_wr32
Lloh8:
	adrp	x19, _E1000_CTRL_EXT@GOTPAGE
Lloh9:
	ldr	x19, [x19, _E1000_CTRL_EXT@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_rd32
Lloh10:
	adrp	x8, _E1000_CTRL_EXT_SDP3_DATA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _E1000_CTRL_EXT_SDP3_DATA@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	orr	w1, w8, w0
	ldr	w0, [x19]
	bl	_wr32
	bl	_wrfl
	mov	w0, #1000
	mov	w1, #2000
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_usleep_range
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_e1000_media_type_internal_serdes,8,3 ; @e1000_media_type_internal_serdes
	.comm	_E1000_PCS_CFG0,4,2             ; @E1000_PCS_CFG0
	.comm	_E1000_PCS_CFG_PCS_EN,4,2       ; @E1000_PCS_CFG_PCS_EN
	.comm	_E1000_CTRL_EXT,4,2             ; @E1000_CTRL_EXT
	.comm	_E1000_CTRL_EXT_SDP3_DATA,4,2   ; @E1000_CTRL_EXT_SDP3_DATA
.subsections_via_symbols
