	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_down                      ## -- Begin function i40e_down
	.p2align	4, 0x90
_i40e_down:                             ## @i40e_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	48(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_netif_carrier_off
	movq	48(%r14), %rdi
	callq	_netif_tx_disable
LBB0_2:
	movq	%r14, %rdi
	callq	_i40e_vsi_disable_irq
	movq	%r14, %rdi
	callq	_i40e_vsi_stop_rings
	movq	(%r14), %rax
	movq	_I40E_VSI_MAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	movq	40(%r14), %rdi
	movq	_I40E_FLAG_LINK_DOWN_ON_CLOSE_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_5
## %bb.4:
	xorl	%esi, %esi
	callq	_i40e_force_link_state
LBB0_5:
	movq	%r14, %rdi
	callq	_i40e_napi_disable_all
	cmpl	$0, 8(%r14)
	jle	LBB0_10
## %bb.6:
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_i40e_clean_rx_ring
	incq	%rbx
	movslq	8(%r14), %rax
	cmpq	%rax, %rbx
	jge	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_i40e_clean_tx_ring
	movq	%r14, %rdi
	callq	_i40e_enabled_xdp_vsi
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	xorl	%eax, %eax
	callq	_synchronize_rcu
	movq	24(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_i40e_clean_tx_ring
	jmp	LBB0_9
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40E_VSI_MAIN,8,3              ## @I40E_VSI_MAIN
	.comm	_I40E_FLAG_LINK_DOWN_ON_CLOSE_ENABLED,4,2 ## @I40E_FLAG_LINK_DOWN_ON_CLOSE_ENABLED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_down                      ; -- Begin function i40e_down
	.p2align	2
_i40e_down:                             ; @i40e_down
	.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	x0, [x0, #48]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_netif_carrier_off
	ldr	x0, [x19, #48]
	bl	_netif_tx_disable
LBB0_2:
	mov	x0, x19
	bl	_i40e_vsi_disable_irq
	mov	x0, x19
	bl	_i40e_vsi_stop_rings
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _I40E_VSI_MAIN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _I40E_VSI_MAIN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldr	x0, [x19, #40]
	ldr	w8, [x0]
Lloh3:
	adrp	x9, _I40E_FLAG_LINK_DOWN_ON_CLOSE_ENABLED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I40E_FLAG_LINK_DOWN_ON_CLOSE_ENABLED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	mov	w1, #0
	bl	_i40e_force_link_state
LBB0_5:
	mov	x0, x19
	bl	_i40e_napi_disable_all
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.6:
	mov	x20, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19, #16]
	ldr	w0, [x8, x20, lsl #2]
	bl	_i40e_clean_rx_ring
	add	x20, x20, #1
	ldrsw	x8, [x19, #8]
	cmp	x20, x8
	b.ge	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	ldr	w0, [x8, x20, lsl #2]
	bl	_i40e_clean_tx_ring
	mov	x0, x19
	bl	_i40e_enabled_xdp_vsi
	cbz	x0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	bl	_synchronize_rcu
	ldr	x8, [x19, #24]
	ldr	w0, [x8, x20, lsl #2]
	bl	_i40e_clean_tx_ring
	b	LBB0_7
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_I40E_VSI_MAIN,8,3              ; @I40E_VSI_MAIN
	.comm	_I40E_FLAG_LINK_DOWN_ON_CLOSE_ENABLED,4,2 ; @I40E_FLAG_LINK_DOWN_ON_CLOSE_ENABLED
.subsections_via_symbols
