	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbevf_down                   ## -- Begin function ixgbevf_down
	.p2align	4, 0x90
_ixgbevf_down:                          ## @ixgbevf_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	56(%rdi), %r15
	movq	___IXGBEVF_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	48(%r12), %rsi
	callq	_test_and_set_bit
	testq	%rax, %rax
	je	LBB0_1
## %bb.13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	cmpl	$0, (%r12)
	jle	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r12, %rdi
	callq	_ixgbevf_disable_rx_queue
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_4:
	leaq	52(%r12), %r14
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$20000, %esi                    ## imm = 0x4E20
	callq	_usleep_range
	movq	%r15, %rdi
	callq	_netif_tx_stop_all_queues
	movq	%r15, %rdi
	callq	_netif_carrier_off
	movq	%r15, %rdi
	callq	_netif_tx_disable
	movq	%r12, %rdi
	callq	_ixgbevf_irq_disable
	movq	%r12, %rdi
	callq	_ixgbevf_napi_disable_all
	leaq	32(%r12), %rdi
	callq	_del_timer_sync
	cmpl	$0, 4(%r12)
	jle	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	movq	_IXGBE_TXDCTL_SWFLSH@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %edi
	callq	_IXGBE_VFTXDCTL
	movl	(%r15), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_IXGBE_WRITE_REG
	incq	%rbx
	movslq	4(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_7:
	cmpl	$0, 8(%r12)
	jle	LBB0_10
## %bb.8:
	xorl	%ebx, %ebx
	movq	_IXGBE_TXDCTL_SWFLSH@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %edi
	callq	_IXGBE_VFTXDCTL
	movl	(%r15), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_IXGBE_WRITE_REG
	incq	%rbx
	movslq	8(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_9
LBB0_10:
	movl	12(%r12), %edi
	callq	_pci_channel_offline
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movq	%r12, %rdi
	callq	_ixgbevf_reset
LBB0_12:
	movq	%r12, %rdi
	callq	_ixgbevf_clean_all_tx_rings
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ixgbevf_clean_all_rx_rings     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	___IXGBEVF_DOWN,4,2             ## @__IXGBEVF_DOWN
	.comm	_IXGBE_TXDCTL_SWFLSH,4,2        ## @IXGBE_TXDCTL_SWFLSH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbevf_down                   ; -- Begin function ixgbevf_down
	.p2align	2
_ixgbevf_down:                          ; @ixgbevf_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	x19, x0
	ldr	x21, [x0, #56]
Lloh0:
	adrp	x8, ___IXGBEVF_DOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___IXGBEVF_DOWN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #48
	bl	_test_and_set_bit
	cbz	x0, LBB0_2
; %bb.1:
	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
	ret
LBB0_2:
	add	x20, x19, #52
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x22, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #40]
	ldr	w1, [x8, x22, lsl #2]
	mov	x0, x19
	bl	_ixgbevf_disable_rx_queue
	add	x22, x22, #1
	ldrsw	x8, [x19]
	cmp	x22, x8
	b.lt	LBB0_4
LBB0_5:
	mov	w0, #10000
	mov	w1, #20000
	bl	_usleep_range
	mov	x0, x21
	bl	_netif_tx_stop_all_queues
	mov	x0, x21
	bl	_netif_carrier_off
	mov	x0, x21
	bl	_netif_tx_disable
	mov	x0, x19
	bl	_ixgbevf_irq_disable
	mov	x0, x19
	bl	_ixgbevf_napi_disable_all
	add	x0, x19, #32
	bl	_del_timer_sync
	ldr	w8, [x19, #4]
Lloh3:
	adrp	x21, _IXGBE_TXDCTL_SWFLSH@GOTPAGE
Lloh4:
	ldr	x21, [x21, _IXGBE_TXDCTL_SWFLSH@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x22, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x22, lsl #3]
	ldr	w0, [x8]
	bl	_IXGBE_VFTXDCTL
	mov	x1, x0
	ldr	w2, [x21]
	mov	x0, x20
	bl	_IXGBE_WRITE_REG
	add	x22, x22, #1
	ldrsw	x8, [x19, #4]
	cmp	x22, x8
	b.lt	LBB0_7
LBB0_8:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.9:
	mov	x22, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x22, lsl #3]
	ldr	w0, [x8]
	bl	_IXGBE_VFTXDCTL
	mov	x1, x0
	ldr	w2, [x21]
	mov	x0, x20
	bl	_IXGBE_WRITE_REG
	add	x22, x22, #1
	ldrsw	x8, [x19, #8]
	cmp	x22, x8
	b.lt	LBB0_10
LBB0_11:
	ldr	w0, [x19, #12]
	bl	_pci_channel_offline
	cbnz	w0, LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_ixgbevf_reset
LBB0_13:
	mov	x0, x19
	bl	_ixgbevf_clean_all_tx_rings
	mov	x0, x19
	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	_ixgbevf_clean_all_rx_rings
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	___IXGBEVF_DOWN,4,2             ; @__IXGBEVF_DOWN
	.comm	_IXGBE_TXDCTL_SWFLSH,4,2        ; @IXGBE_TXDCTL_SWFLSH
.subsections_via_symbols
