	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___qlcnic_sriov_cleanup         ## -- Begin function __qlcnic_sriov_cleanup
	.p2align	4, 0x90
___qlcnic_sriov_cleanup:                ## @__qlcnic_sriov_cleanup
	.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
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %r15
	callq	_qlcnic_sriov_enable_check
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	leaq	36(%r15), %rdi
	callq	_qlcnic_sriov_cleanup_async_list
	movl	40(%r15), %edi
	callq	_destroy_workqueue
	cmpl	$0, (%r15)
	jle	LBB0_4
## %bb.2:
	movl	$32, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %r13
	leaq	(%rbx,%r13), %rdi
	callq	_qlcnic_sriov_cleanup_list
	leaq	(%rbx,%r13), %rdi
	addq	$-4, %rdi
	callq	_cancel_work_sync
	leaq	(%rbx,%r13), %rdi
	addq	$-8, %rdi
	callq	_qlcnic_sriov_cleanup_list
	incq	%r12
	movslq	(%r15), %rax
	addq	$48, %rbx
	cmpq	%rax, %r12
	jl	LBB0_3
LBB0_4:
	movl	36(%r15), %edi
	callq	_destroy_workqueue
	cmpl	$0, (%r15)
	jle	LBB0_7
## %bb.5:
	movl	$16, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	(%rax,%r12), %rdi
	callq	_kfree
	incq	%rbx
	movslq	(%r15), %rax
	addq	$48, %r12
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_7:
	movq	8(%r15), %rdi
	callq	_kfree
	movq	(%r14), %rax
	movq	(%rax), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
LBB0_8:
	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	___qlcnic_sriov_cleanup         ; -- Begin function __qlcnic_sriov_cleanup
	.p2align	2
___qlcnic_sriov_cleanup:                ; @__qlcnic_sriov_cleanup
	.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
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x21, [x8]
	bl	_qlcnic_sriov_enable_check
	cbz	w0, LBB0_8
; %bb.1:
	add	x0, x21, #36
	bl	_qlcnic_sriov_cleanup_async_list
	ldr	w0, [x21, #40]
	bl	_destroy_workqueue
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x22, #0
	mov	w23, #32
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	add	x20, x8, x23
	mov	x0, x20
	bl	_qlcnic_sriov_cleanup_list
	sub	x0, x20, #4
	bl	_cancel_work_sync
	sub	x0, x20, #8
	bl	_qlcnic_sriov_cleanup_list
	add	x22, x22, #1
	ldrsw	x8, [x21]
	add	x23, x23, #48
	cmp	x22, x8
	b.lt	LBB0_3
LBB0_4:
	ldr	w0, [x21, #36]
	bl	_destroy_workqueue
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x20, #0
	mov	w22, #16
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldr	x0, [x8, x22]
	bl	_kfree
	add	x20, x20, #1
	ldrsw	x8, [x21]
	add	x22, x22, #48
	cmp	x20, x8
	b.lt	LBB0_6
LBB0_7:
	ldr	x0, [x21, #8]
	bl	_kfree
	ldr	x8, [x19]
	ldr	x0, [x8]
	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	_kfree
LBB0_8:
	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
