	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_sriov_clear_trans
_qlcnic_sriov_clear_trans:              ## @qlcnic_sriov_clear_trans
	.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	%rdx, %r15
	movq	%rdi, %rbx
	movq	_QLC_BC_RESPONSE@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	cmpq	%rdx, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	%rsi, %r12
	leaq	24(%rbx), %r13
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	decq	16(%rbx)
	movq	%r12, %rdi
	callq	_list_del
	xorl	%r14d, %r14d
	cmpq	$0, 16(%rbx)
	setg	%r14b
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
LBB0_2:
	movq	_QLC_BC_COMMAND@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_7
## %bb.3:
	movq	_QLC_BC_VF_SEND@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_test_and_set_bit
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$100, %edi
	callq	_msleep
	jmp	LBB0_5
LBB0_6:
	movq	$0, 8(%rbx)
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLC_BC_RESPONSE,8,3            ## @QLC_BC_RESPONSE
	.comm	_QLC_BC_COMMAND,8,3             ## @QLC_BC_COMMAND
	.comm	_QLC_BC_VF_SEND,4,2             ## @QLC_BC_VF_SEND
	.no_dead_strip	_qlcnic_sriov_clear_trans
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_sriov_clear_trans
_qlcnic_sriov_clear_trans:              ; @qlcnic_sriov_clear_trans
	.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	x21, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _QLC_BC_RESPONSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLC_BC_RESPONSE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x2
	b.ne	LBB0_2
; %bb.1:
	mov	x20, x1
	add	x22, x19, #24
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #16]
	sub	x8, x8, #1
	str	x8, [x19, #16]
	mov	x0, x20
	bl	_list_del
	ldr	x8, [x19, #16]
	cmp	x8, #0
	cset	w20, gt
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	b	LBB0_3
LBB0_2:
	mov	w20, #0
LBB0_3:
Lloh3:
	adrp	x8, _QLC_BC_COMMAND@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QLC_BC_COMMAND@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_8
; %bb.4:
Lloh6:
	adrp	x21, _QLC_BC_VF_SEND@GOTPAGE
Lloh7:
	ldr	x21, [x21, _QLC_BC_VF_SEND@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	mov	x1, x19
	bl	_test_and_set_bit
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #100
	bl	_msleep
	b	LBB0_5
LBB0_7:
	str	xzr, [x19, #8]
	ldr	w0, [x21]
	mov	x1, x19
	bl	_clear_bit
LBB0_8:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_QLC_BC_RESPONSE,8,3            ; @QLC_BC_RESPONSE
	.comm	_QLC_BC_COMMAND,8,3             ; @QLC_BC_COMMAND
	.comm	_QLC_BC_VF_SEND,4,2             ; @QLC_BC_VF_SEND
	.no_dead_strip	_qlcnic_sriov_clear_trans
.subsections_via_symbols
