	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enic_remove
_enic_remove:                           ## @enic_remove
	.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
	movq	%rdi, %r14
	callq	_pci_get_drvdata
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	leaq	16(%rax), %rdi
	callq	_cancel_work_sync
	leaq	12(%rbx), %rdi
	callq	_cancel_work_sync
	movq	%r15, %rdi
	callq	_unregister_netdev
	movq	%rbx, %rdi
	callq	_enic_dev_deinit
	movl	(%rbx), %edi
	callq	_vnic_dev_close
	movl	4(%rbx), %edi
	callq	_kfree
	movl	(%rbx), %edi
	callq	_vnic_dev_unregister
	movq	%rbx, %rdi
	callq	_enic_iounmap
	movq	%r14, %rdi
	callq	_pci_release_regions
	movq	%r14, %rdi
	callq	_pci_disable_device
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free_netdev                    ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENIC_SRIOV_ENABLED,4,2         ## @ENIC_SRIOV_ENABLED
	.no_dead_strip	_enic_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enic_remove
_enic_remove:                           ; @enic_remove
	.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
	bl	_pci_get_drvdata
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	bl	_netdev_priv
	mov	x21, x0
	add	x0, x0, #16
	bl	_cancel_work_sync
	add	x0, x21, #12
	bl	_cancel_work_sync
	mov	x0, x20
	bl	_unregister_netdev
	mov	x0, x21
	bl	_enic_dev_deinit
	ldr	w0, [x21]
	bl	_vnic_dev_close
	ldr	w0, [x21, #4]
	bl	_kfree
	ldr	w0, [x21]
	bl	_vnic_dev_unregister
	mov	x0, x21
	bl	_enic_iounmap
	mov	x0, x19
	bl	_pci_release_regions
	mov	x0, x19
	bl	_pci_disable_device
	mov	x0, x20
	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
LBB0_2:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_ENIC_SRIOV_ENABLED,4,2         ; @ENIC_SRIOV_ENABLED
	.no_dead_strip	_enic_remove
.subsections_via_symbols
