	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_sriov_send_bc_cmd
_qlcnic_sriov_send_bc_cmd:              ## @qlcnic_sriov_send_bc_cmd
	.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
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	%edx, %esi
	callq	_qlcnic_sriov_func_to_index
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	(%r12), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %eax
	leaq	(%rax,%rax,2), %r13
	leaq	(%rcx,%r13,8), %r14
	movq	%r14, 16(%r15)
	movl	%ebx, (%r15)
	movq	%rcx, %rbx
	movq	_QLC_BC_VF_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	(%rcx,%r13,8), %rsi
	addq	$16, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_3
LBB0_6:
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r15, 8(%rbx,%r13,8)
	movq	_QLC_BC_COMMAND@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	___qlcnic_sriov_send_bc_msg
	movl	%eax, %ebx
	movl	(%r12), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_qlcnic_sriov_clear_trans
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	jmp	LBB0_7
LBB0_3:
	movq	%r12, %rdi
	callq	_qlcnic_sriov_pf_check
	testq	%rax, %rax
	je	LBB0_4
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r12, %rdi
	callq	_qlcnic_sriov_vf_check
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	8(%r15), %rax
	movq	_QLCNIC_BC_CMD_CHANNEL_INIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_QLC_BC_VF_STATE,4,2            ## @QLC_BC_VF_STATE
	.comm	_QLCNIC_BC_CMD_CHANNEL_INIT,8,3 ## @QLCNIC_BC_CMD_CHANNEL_INIT
	.comm	_QLC_BC_COMMAND,4,2             ## @QLC_BC_COMMAND
	.no_dead_strip	_qlcnic_sriov_send_bc_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_sriov_send_bc_cmd
_qlcnic_sriov_send_bc_cmd:              ; @qlcnic_sriov_send_bc_cmd
	.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	x23, x2
	mov	x19, x1
	mov	x22, x0
	mov	x1, x2
	bl	_qlcnic_sriov_func_to_index
	tbnz	w0, #31, LBB0_4
; %bb.1:
	mov	x21, x0
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	x24, [x8]
	mov	w8, #24
	umaddl	x20, w0, w8, x24
	str	x20, [x19, #16]
	str	w23, [x19]
Lloh0:
	adrp	x8, _QLC_BC_VF_STATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLC_BC_VF_STATE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x20, #16
	bl	_test_bit
	cbz	w0, LBB0_3
LBB0_2:
	mov	w21, w21
	mov	x0, x20
	bl	_mutex_lock
	mov	w8, #24
	madd	x8, x21, x8, x24
	str	x19, [x8, #8]
Lloh3:
	adrp	x22, _QLC_BC_COMMAND@GOTPAGE
Lloh4:
	ldr	x22, [x22, _QLC_BC_COMMAND@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	mov	x1, x20
	bl	___qlcnic_sriov_send_bc_msg
	mov	x21, x0
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x19
	bl	_qlcnic_sriov_clear_trans
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x21
	b	LBB0_5
LBB0_3:
	mov	x0, x22
	bl	_qlcnic_sriov_pf_check
	cbz	x0, LBB0_6
LBB0_4:
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
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
LBB0_6:
	mov	x0, x22
	bl	_qlcnic_sriov_vf_check
	cbz	x0, LBB0_2
; %bb.7:
	ldr	x8, [x19, #8]
Lloh8:
	adrp	x9, _QLCNIC_BC_CMD_CHANNEL_INIT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _QLCNIC_BC_CMD_CHANNEL_INIT@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_QLC_BC_VF_STATE,4,2            ; @QLC_BC_VF_STATE
	.comm	_QLCNIC_BC_CMD_CHANNEL_INIT,8,3 ; @QLCNIC_BC_CMD_CHANNEL_INIT
	.comm	_QLC_BC_COMMAND,4,2             ; @QLC_BC_COMMAND
	.no_dead_strip	_qlcnic_sriov_send_bc_cmd
.subsections_via_symbols
