	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_clear
_be_clear:                              ## @be_clear
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_be_cancel_worker
	movq	%r14, %rdi
	callq	_sriov_enabled
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_be_vf_clear
LBB0_2:
	cmpl	$0, (%r14)
	js	LBB0_5
## %bb.3:
	movq	$-1, %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	16(%r14), %esi
	movq	8(%r14), %rax
	movl	4(%rax,%rbx,4), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_be_cmd_pmac_del
	movslq	(%r14), %rax
	incq	%rbx
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_5:
	movl	$0, (%r14)
	movl	16(%r14), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_be_cmd_if_destroy
	movq	%r14, %rdi
	callq	_be_clear_queues
	movq	8(%r14), %rdi
	callq	_kfree
	movq	$0, 8(%r14)
	movq	%r14, %rdi
	callq	_be_msix_disable
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_be_clear
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function be_clear
_be_clear:                              ; @be_clear
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_be_cancel_worker
	mov	x0, x19
	bl	_sriov_enabled
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_be_vf_clear
LBB0_2:
	ldr	w8, [x19]
	tbnz	w8, #31, LBB0_5
; %bb.3:
	mov	x20, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x19, #16]
	ldr	x8, [x19, #8]
	ldr	w2, [x8, x20, lsl #2]
	mov	x0, x19
	mov	w3, #0
	bl	_be_cmd_pmac_del
	add	x8, x20, #1
	ldrsw	x9, [x19]
	cmp	x20, x9
	mov	x20, x8
	b.lt	LBB0_4
LBB0_5:
	str	wzr, [x19]
	ldr	w1, [x19, #16]
	mov	x0, x19
	mov	w2, #0
	bl	_be_cmd_if_destroy
	mov	x0, x19
	bl	_be_clear_queues
	ldr	x0, [x19, #8]
	bl	_kfree
	str	xzr, [x19, #8]
	mov	x0, x19
	bl	_be_msix_disable
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_be_clear
.subsections_via_symbols
