	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efx_sriov_fini                 ## -- Begin function efx_sriov_fini
	.p2align	4, 0x90
_efx_sriov_fini:                        ## @efx_sriov_fini
	.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
	cmpq	$0, (%rdi)
	je	LBB0_5
## %bb.1:
	movq	%rdi, %r14
	movq	32(%rdi), %rax
	movl	(%rax), %edi
	callq	_BUG_ON
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_efx_sriov_usrev
	xorl	%eax, %eax
	callq	_rtnl_lock
	movq	$0, (%r14)
	xorl	%eax, %eax
	callq	_rtnl_unlock
	cmpl	$0, 8(%r14)
	je	LBB0_4
## %bb.2:
	movl	$4, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %r12
	leaq	(%r12,%rbx), %rdi
	callq	_cancel_work_sync
	leaq	(%r12,%rbx), %rdi
	addq	$-4, %rdi
	callq	_cancel_work_sync
	incq	%r15
	movl	8(%r14), %eax
	addq	$8, %rbx
	cmpq	%rax, %r15
	jb	LBB0_3
LBB0_4:
	leaq	28(%r14), %rdi
	callq	_cancel_work_sync
	movl	24(%r14), %edi
	callq	_pci_disable_sriov
	movq	%r14, %rdi
	callq	_efx_sriov_vfs_fini
	movq	%r14, %rdi
	callq	_efx_sriov_free_local
	movq	16(%r14), %rdi
	callq	_kfree
	leaq	12(%r14), %rsi
	movq	%r14, %rdi
	callq	_efx_nic_free_buffer
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_efx_sriov_cmd                  ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efx_sriov_fini                 ; -- Begin function efx_sriov_fini
	.p2align	2
_efx_sriov_fini:                        ; @efx_sriov_fini
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #32]
	ldr	w0, [x8]
	bl	_BUG_ON
	mov	x0, x19
	mov	w1, #0
	bl	_efx_sriov_usrev
	bl	_rtnl_lock
	str	xzr, [x19]
	bl	_rtnl_unlock
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_4
; %bb.2:
	mov	x21, #0
	mov	w22, #4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x20, x8, x22
	mov	x0, x20
	bl	_cancel_work_sync
	sub	x0, x20, #4
	bl	_cancel_work_sync
	add	x21, x21, #1
	ldr	w8, [x19, #8]
	add	x22, x22, #8
	cmp	x21, x8
	b.lo	LBB0_3
LBB0_4:
	add	x0, x19, #28
	bl	_cancel_work_sync
	ldr	w0, [x19, #24]
	bl	_pci_disable_sriov
	mov	x0, x19
	bl	_efx_sriov_vfs_fini
	mov	x0, x19
	bl	_efx_sriov_free_local
	ldr	x0, [x19, #16]
	bl	_kfree
	add	x1, x19, #12
	mov	x0, x19
	bl	_efx_nic_free_buffer
	mov	x0, x19
	mov	w1, #0
	mov	x2, #0
	mov	x3, #0
	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	_efx_sriov_cmd
LBB0_5:
	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
.subsections_via_symbols
