	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmxnet3_remove_device
_vmxnet3_remove_device:                 ## @vmxnet3_remove_device
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_pci_get_drvdata
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	movl	$1, %edi
	callq	_rounddown_pow_of_two
	movl	%eax, %r15d
	leaq	56(%rbx), %rdi
	callq	_cancel_work_sync
	movq	%r14, %rdi
	callq	_unregister_netdev
	movq	%rbx, %rdi
	callq	_vmxnet3_free_intr_resources
	movq	%rbx, %rdi
	callq	_vmxnet3_free_pci_resources
	movq	%rbx, %rdi
	callq	_VMXNET3_VERSION_GE_3
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	8(%rbx), %rdi
	movl	52(%rbx), %edx
	movl	48(%rbx), %ecx
	movl	$4, %esi
	callq	_dma_free_coherent
LBB0_2:
	movq	8(%rbx), %rdi
	movl	36(%rbx), %edx
	movl	32(%rbx), %ecx
	movl	$4, %esi
	callq	_dma_free_coherent
	addl	(%rbx), %r15d
	shll	$2, %r15d
	movq	8(%rbx), %rdi
	movl	28(%rbx), %edx
	movl	24(%rbx), %ecx
	movl	%r15d, %esi
	callq	_dma_free_coherent
	movq	8(%rbx), %rdi
	movl	20(%rbx), %edx
	movl	16(%rbx), %ecx
	movl	$4, %esi
	callq	_dma_free_coherent
	movq	8(%rbx), %rdi
	movl	4(%rbx), %esi
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$64, %edx
	callq	_dma_unmap_single
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free_netdev                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.comm	_VMXNET3_DEVICE_MAX_RX_QUEUES,4,2 ## @VMXNET3_DEVICE_MAX_RX_QUEUES
	.comm	_enable_mq,8,3                  ## @enable_mq
	.no_dead_strip	_vmxnet3_remove_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmxnet3_remove_device
_vmxnet3_remove_device:                 ; @vmxnet3_remove_device
	.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
	bl	_pci_get_drvdata
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	mov	w0, #1
	bl	_rounddown_pow_of_two
	mov	x21, x0
	add	x0, x20, #56
	bl	_cancel_work_sync
	mov	x0, x19
	bl	_unregister_netdev
	mov	x0, x20
	bl	_vmxnet3_free_intr_resources
	mov	x0, x20
	bl	_vmxnet3_free_pci_resources
	mov	x0, x20
	bl	_VMXNET3_VERSION_GE_3
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x0, [x20, #8]
	ldp	w3, w2, [x20, #48]
	mov	w1, #4
	bl	_dma_free_coherent
LBB0_2:
	ldr	x0, [x20, #8]
	ldp	w3, w2, [x20, #32]
	mov	w1, #4
	bl	_dma_free_coherent
	ldr	w8, [x20]
	add	w8, w8, w21
	lsl	w1, w8, #2
	ldr	x0, [x20, #8]
	ldp	w3, w2, [x20, #24]
	bl	_dma_free_coherent
	ldr	x0, [x20, #8]
	ldp	w3, w2, [x20, #16]
	mov	w1, #4
	bl	_dma_free_coherent
	ldr	x0, [x20, #8]
	ldr	w1, [x20, #4]
Lloh0:
	adrp	x8, _PCI_DMA_TODEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	w2, #64
	bl	_dma_unmap_single
	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	_free_netdev
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.comm	_VMXNET3_DEVICE_MAX_RX_QUEUES,4,2 ; @VMXNET3_DEVICE_MAX_RX_QUEUES
	.comm	_enable_mq,8,3                  ; @enable_mq
	.no_dead_strip	_vmxnet3_remove_device
.subsections_via_symbols
