	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efx_siena_sriov_fini           ## -- Begin function efx_siena_sriov_fini
	.p2align	4, 0x90
_efx_siena_sriov_fini:                  ## @efx_siena_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, (%rdi)
	je	LBB0_5
## %bb.1:
	movq	%rdi, %r15
	movq	16(%rdi), %r14
	movq	24(%r14), %rax
	movl	(%rax), %edi
	callq	_BUG_ON
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_efx_siena_sriov_usrev
	xorl	%eax, %eax
	callq	_rtnl_lock
	movq	$0, (%r15)
	xorl	%eax, %eax
	callq	_rtnl_unlock
	cmpl	$0, 8(%r15)
	je	LBB0_4
## %bb.2:
	movl	$4, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %r13
	leaq	(%rbx,%r13), %rdi
	callq	_cancel_work_sync
	leaq	(%rbx,%r13), %rdi
	addq	$-4, %rdi
	callq	_cancel_work_sync
	incq	%r12
	movl	8(%r15), %eax
	addq	$8, %rbx
	cmpq	%rax, %r12
	jb	LBB0_3
LBB0_4:
	leaq	16(%r14), %rdi
	callq	_cancel_work_sync
	movl	12(%r15), %edi
	callq	_pci_disable_sriov
	movq	%r15, %rdi
	callq	_efx_siena_sriov_vfs_fini
	movq	%r15, %rdi
	callq	_efx_siena_sriov_free_local
	movq	8(%r14), %rdi
	callq	_kfree
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_efx_nic_free_buffer
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_efx_siena_sriov_cmd            ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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_siena_sriov_fini           ; -- Begin function efx_siena_sriov_fini
	.p2align	2
_efx_siena_sriov_fini:                  ; @efx_siena_sriov_fini
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x8, [x0]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	x20, [x0, #16]
	ldr	x8, [x20, #24]
	ldr	w0, [x8]
	bl	_BUG_ON
	mov	x0, x19
	mov	w1, #0
	bl	_efx_siena_sriov_usrev
	bl	_rtnl_lock
	str	xzr, [x19]
	bl	_rtnl_unlock
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_4
; %bb.2:
	mov	x22, #0
	mov	w23, #4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	add	x21, x8, x23
	mov	x0, x21
	bl	_cancel_work_sync
	sub	x0, x21, #4
	bl	_cancel_work_sync
	add	x22, x22, #1
	ldr	w8, [x19, #8]
	add	x23, x23, #8
	cmp	x22, x8
	b.lo	LBB0_3
LBB0_4:
	add	x0, x20, #16
	bl	_cancel_work_sync
	ldr	w0, [x19, #12]
	bl	_pci_disable_sriov
	mov	x0, x19
	bl	_efx_siena_sriov_vfs_fini
	mov	x0, x19
	bl	_efx_siena_sriov_free_local
	ldr	x0, [x20, #8]
	bl	_kfree
	mov	x0, x19
	mov	x1, x20
	bl	_efx_nic_free_buffer
	mov	x0, x19
	mov	w1, #0
	mov	x2, #0
	mov	x3, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_efx_siena_sriov_cmd
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
