	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000e_down                    ## -- Begin function e1000e_down
	.p2align	4, 0x90
_e1000e_down:                           ## @e1000e_down
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	16(%rdi), %r12
	movq	___E1000_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	52(%r13), %rsi
	callq	_set_bit
	movq	%r12, %rdi
	callq	_netif_carrier_off
	movq	_RCTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_er32
	movq	_FLAG2_NO_DISABLE_RX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r13)
	jne	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	movq	_E1000_RCTL_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, %esi
	callq	_ew32
LBB0_2:
	leaq	56(%r13), %r15
	movq	%r12, %rdi
	callq	_netif_stop_queue
	movq	_TCTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_er32
	movq	_E1000_TCTL_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%rbx), %edi
	callq	_ew32
	xorl	%eax, %eax
	callq	_e1e_flush
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$11000, %esi                    ## imm = 0x2AF8
	callq	_usleep_range
	movq	%r13, %rdi
	callq	_e1000_irq_disable
	leaq	48(%r13), %rdi
	callq	_napi_synchronize
	leaq	44(%r13), %rdi
	callq	_del_timer_sync
	leaq	40(%r13), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock
	movq	%r13, %rdi
	callq	_e1000e_update_stats
	movq	%rbx, %rdi
	callq	_spin_unlock
	movq	%r13, %rdi
	callq	_e1000e_flush_descriptors
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r13)
	movq	56(%r13), %rax
	movq	_e1000_pch2lan@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_6
## %bb.3:
	movq	16(%r13), %rax
	movq	(%rax), %rax
	movq	_ETH_DATA_LEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_6
## %bb.4:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_e1000_lv_jumbo_workaround_ich8lan
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rdi
	callq	_e_dbg
LBB0_6:
	movl	12(%r13), %edi
	callq	_pci_channel_offline
	testl	%eax, %eax
	jne	LBB0_11
## %bb.7:
	testl	%r14d, %r14d
	je	LBB0_9
## %bb.8:
	movq	%r13, %rdi
	callq	_e1000e_reset
	jmp	LBB0_11
LBB0_9:
	movq	(%r15), %rax
	movq	_e1000_pch_spt@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_11
## %bb.10:
	movq	%r13, %rdi
	callq	_e1000_flush_desc_rings
LBB0_11:
	movl	8(%r13), %edi
	callq	_e1000_clean_tx_ring
	movl	4(%r13), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_e1000_clean_rx_ring            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	___E1000_DOWN,4,2               ## @__E1000_DOWN
	.comm	_RCTL,4,2                       ## @RCTL
	.comm	_FLAG2_NO_DISABLE_RX,4,2        ## @FLAG2_NO_DISABLE_RX
	.comm	_E1000_RCTL_EN,4,2              ## @E1000_RCTL_EN
	.comm	_TCTL,4,2                       ## @TCTL
	.comm	_E1000_TCTL_EN,4,2              ## @E1000_TCTL_EN
	.comm	_e1000_pch2lan,8,3              ## @e1000_pch2lan
	.comm	_ETH_DATA_LEN,8,3               ## @ETH_DATA_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to disable jumbo frame workaround mode\n"

	.comm	_e1000_pch_spt,8,3              ## @e1000_pch_spt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000e_down                    ; -- Begin function e1000e_down
	.p2align	2
_e1000e_down:                           ; @e1000e_down
	.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	x20, x1
	mov	x19, x0
	ldr	x22, [x0, #16]
Lloh0:
	adrp	x8, ___E1000_DOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___E1000_DOWN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #52
	bl	_set_bit
	mov	x0, x22
	bl	_netif_carrier_off
Lloh3:
	adrp	x21, _RCTL@GOTPAGE
Lloh4:
	ldr	x21, [x21, _RCTL@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_er32
	ldr	w8, [x19]
Lloh5:
	adrp	x9, _FLAG2_NO_DISABLE_RX@GOTPAGE
Lloh6:
	ldr	x9, [x9, _FLAG2_NO_DISABLE_RX@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x21]
Lloh8:
	adrp	x9, _E1000_RCTL_EN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _E1000_RCTL_EN@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	bic	w1, w0, w9
	mov	x0, x8
	bl	_ew32
LBB0_2:
	add	x21, x19, #56
	mov	x0, x22
	bl	_netif_stop_queue
Lloh11:
	adrp	x22, _TCTL@GOTPAGE
Lloh12:
	ldr	x22, [x22, _TCTL@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_er32
Lloh13:
	adrp	x8, _E1000_TCTL_EN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _E1000_TCTL_EN@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	bic	w1, w0, w8
	ldr	w0, [x22]
	bl	_ew32
	bl	_e1e_flush
	mov	w0, #10000
	mov	w1, #11000
	bl	_usleep_range
	mov	x0, x19
	bl	_e1000_irq_disable
	add	x0, x19, #48
	bl	_napi_synchronize
	add	x0, x19, #44
	bl	_del_timer_sync
	add	x22, x19, #40
	mov	x0, x22
	bl	_spin_lock
	mov	x0, x19
	bl	_e1000e_update_stats
	mov	x0, x22
	bl	_spin_unlock
	mov	x0, x19
	bl	_e1000e_flush_descriptors
	stp	xzr, xzr, [x19, #24]
	ldr	x8, [x19, #56]
Lloh16:
	adrp	x9, _e1000_pch2lan@GOTPAGE
Lloh17:
	ldr	x9, [x9, _e1000_pch2lan@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_6
; %bb.3:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
Lloh19:
	adrp	x9, _ETH_DATA_LEN@GOTPAGE
Lloh20:
	ldr	x9, [x9, _ETH_DATA_LEN@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_6
; %bb.4:
	mov	x0, x21
	mov	w1, #0
	bl	_e1000_lv_jumbo_workaround_ich8lan
	cbz	x0, LBB0_6
; %bb.5:
Lloh22:
	adrp	x0, l_.str@PAGE
Lloh23:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_dbg
LBB0_6:
	ldr	w0, [x19, #12]
	bl	_pci_channel_offline
	cbnz	w0, LBB0_11
; %bb.7:
	cbz	w20, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_e1000e_reset
	b	LBB0_11
LBB0_9:
	ldr	x8, [x21]
Lloh24:
	adrp	x9, _e1000_pch_spt@GOTPAGE
Lloh25:
	ldr	x9, [x9, _e1000_pch_spt@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_e1000_flush_desc_rings
LBB0_11:
	ldr	w0, [x19, #8]
	bl	_e1000_clean_tx_ring
	ldr	w0, [x19, #4]
	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
	b	_e1000_clean_rx_ring
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	___E1000_DOWN,4,2               ; @__E1000_DOWN
	.comm	_RCTL,4,2                       ; @RCTL
	.comm	_FLAG2_NO_DISABLE_RX,4,2        ; @FLAG2_NO_DISABLE_RX
	.comm	_E1000_RCTL_EN,4,2              ; @E1000_RCTL_EN
	.comm	_TCTL,4,2                       ; @TCTL
	.comm	_E1000_TCTL_EN,4,2              ; @E1000_TCTL_EN
	.comm	_e1000_pch2lan,8,3              ; @e1000_pch2lan
	.comm	_ETH_DATA_LEN,8,3               ; @ETH_DATA_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to disable jumbo frame workaround mode\n"

	.comm	_e1000_pch_spt,8,3              ; @e1000_pch_spt
.subsections_via_symbols
