	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_sriov_handle_bc_resp
_qlcnic_sriov_handle_bc_resp:           ## @qlcnic_sriov_handle_bc_resp
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_QLC_BC_VF_SEND@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_test_and_set_bit
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	8(%rbx), %r14
	testq	%r14, %r14
	je	LBB0_5
## %bb.2:
	movq	(%r14), %rax
	cmpq	(%r15), %rax
	jne	LBB0_5
## %bb.3:
	movl	8(%r14), %esi
	movl	32(%r14), %edi
	callq	_qlcnic_sriov_get_bc_paysize
	movl	4(%rbx), %edi
	movslq	8(%r14), %rcx
	leaq	(,%rcx,8), %rsi
	addq	24(%r14), %rsi
	movslq	12(%r14), %rdx
	addq	%rcx, %rdx
	movl	%eax, %ecx
	callq	_qlcnic_sriov_pull_bc_msg
	movslq	8(%r14), %rax
	incq	%rax
	movl	%eax, 8(%r14)
	movq	24(%r14), %rcx
	cmpq	%rax, (%rcx)
	jg	LBB0_5
## %bb.4:
	addq	$16, %r14
	movq	%r14, %rdi
	callq	_complete
LBB0_5:
	movl	(%r12), %edi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_clear_bit                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_QLC_BC_VF_SEND,4,2             ## @QLC_BC_VF_SEND
	.no_dead_strip	_qlcnic_sriov_handle_bc_resp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_sriov_handle_bc_resp
_qlcnic_sriov_handle_bc_resp:           ; @qlcnic_sriov_handle_bc_resp
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _QLC_BC_VF_SEND@GOTPAGE
Lloh1:
	ldr	x21, [x21, _QLC_BC_VF_SEND@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_test_and_set_bit
	cbz	x0, LBB0_2
; %bb.1:
	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
LBB0_2:
	ldr	x22, [x19, #8]
	cbz	x22, LBB0_6
; %bb.3:
	ldr	x8, [x22]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	ldr	w0, [x22, #32]
	ldr	w1, [x22, #8]
	bl	_qlcnic_sriov_get_bc_paysize
	mov	x3, x0
	ldr	w0, [x19, #4]
	ldr	x8, [x22, #24]
	ldpsw	x9, x10, [x22, #8]
	add	x1, x8, x9, lsl #3
	add	x2, x10, x9
	bl	_qlcnic_sriov_pull_bc_msg
	ldrsw	x8, [x22, #8]
	add	x8, x8, #1
	str	w8, [x22, #8]
	ldr	x9, [x22, #24]
	ldr	x9, [x9]
	cmp	x9, x8
	b.gt	LBB0_6
; %bb.5:
	add	x0, x22, #16
	bl	_complete
LBB0_6:
	ldr	w0, [x21]
	mov	x1, x19
	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	_clear_bit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_QLC_BC_VF_SEND,4,2             ; @QLC_BC_VF_SEND
	.no_dead_strip	_qlcnic_sriov_handle_bc_resp
.subsections_via_symbols
