	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_sriov_vf_mbx_op
_qlcnic_sriov_vf_mbx_op:                ## @qlcnic_sriov_vf_mbx_op
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	8(%rdi), %r13
	movq	16(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	16(%r13), %rax
	movl	(%rax), %r14d
	incl	%r14d
	movl	%r14d, (%rax)
	movl	8(%r13), %ebx
	leaq	-48(%rbp), %rdi
	callq	_qlcnic_sriov_alloc_bc_trans
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.1:
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rdi
	movq	_QLC_BC_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	movl	%r14d, %edx
	callq	_qlcnic_sriov_prepare_bc_hdr
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_14
## %bb.2:
	movq	_QLCNIC_BC_CMD_CHANNEL_INIT@GOTPCREL(%rip), %r14
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_QLC_83XX_MBX_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rsi
	addq	$4, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_qlcnic_sriov_send_bc_cmd
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r13), %rax
	movzwl	(%rax), %edx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_QLCNIC_RCODE_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	-48(%rbp), %rsi
	movq	(%rsi), %rax
	movq	(%rax), %rax
	cmpq	(%r14), %rax
	jne	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_qlcnic_sriov_retry_bc_cmd
	testl	%eax, %eax
	je	LBB0_3
	jmp	LBB0_12
LBB0_4:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	movq	_DRV@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	(%r13), %rax
	movl	(%rax), %edi
	callq	_QLCNIC_MBX_RSP
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %ecx
	movl	%r15d, %r8d
	callq	_QLCDB
	jmp	LBB0_12
LBB0_8:
	movq	8(%r13), %rax
	movl	(%rax), %edi
	callq	_QLCNIC_MBX_STATUS
	movl	%eax, %r14d
	movq	(%r13), %rax
	movl	(%rax), %edi
	callq	_QLCNIC_MBX_RSP
	movq	_QLCNIC_MBX_RSP_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r14d
	je	LBB0_10
## %bb.9:
	movq	_QLCNIC_MBX_PORT_RSP_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r14d
	je	LBB0_10
## %bb.11:
	testl	%r14d, %r14d
	movl	$1, %r12d
	cmovnel	%r14d, %r12d
	leaq	L_.str.2(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %edx
	movl	%r14d, %ecx
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_12
LBB0_10:
	movq	_QLCNIC_RCODE_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_12:
	movq	_QLCNIC_RCODE_TIMEOUT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_14
## %bb.13:
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	$1, (%rsi)
	movl	$1, (%rbx)
	movq	_QLC_83XX_MBX_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$4, %rsi
	callq	_clear_bit
LBB0_14:
	movq	-48(%rbp), %rdi
	callq	_qlcnic_sriov_cleanup_transaction
LBB0_15:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLC_BC_COMMAND,4,2             ## @QLC_BC_COMMAND
	.comm	_QLC_83XX_MBX_READY,4,2         ## @QLC_83XX_MBX_READY
	.comm	_EIO,4,2                        ## @EIO
	.comm	_DRV,4,2                        ## @DRV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MBX not Ready!(cmd 0x%x) for VF 0x%x\n"

L_.str.1:                               ## @.str.1
	.asciz	"MBX command 0x%x timed out for VF %d\n"

	.comm	_QLCNIC_RCODE_TIMEOUT,4,2       ## @QLCNIC_RCODE_TIMEOUT
	.comm	_QLCNIC_BC_CMD_CHANNEL_INIT,8,3 ## @QLCNIC_BC_CMD_CHANNEL_INIT
	.comm	_QLCNIC_MBX_RSP_OK,4,2          ## @QLCNIC_MBX_RSP_OK
	.comm	_QLCNIC_MBX_PORT_RSP_OK,4,2     ## @QLCNIC_MBX_PORT_RSP_OK
	.comm	_QLCNIC_RCODE_SUCCESS,4,2       ## @QLCNIC_RCODE_SUCCESS
L_.str.2:                               ## @.str.2
	.asciz	"MBX command 0x%x failed with err:0x%x for VF %d\n"

	.no_dead_strip	_qlcnic_sriov_vf_mbx_op
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_sriov_vf_mbx_op
_qlcnic_sriov_vf_mbx_op:                ; @qlcnic_sriov_vf_mbx_op
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x1
	mov	x20, x0
	ldp	x19, x22, [x0, #8]
	ldr	x8, [x19, #16]
	ldr	w9, [x8]
	add	w25, w9, #1
	str	w25, [x8]
	ldr	w21, [x19, #8]
	add	x0, sp, #8
	bl	_qlcnic_sriov_alloc_bc_trans
	mov	x24, x0
	cbnz	w0, LBB0_14
; %bb.1:
	ldr	x0, [sp, #8]
Lloh0:
	adrp	x8, _QLC_BC_COMMAND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLC_BC_COMMAND@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x1, x23
	mov	x2, x25
	bl	_qlcnic_sriov_prepare_bc_hdr
	mov	x24, x0
	cbnz	w0, LBB0_13
; %bb.2:
Lloh3:
	adrp	x26, _QLC_83XX_MBX_READY@GOTPAGE
Lloh4:
	ldr	x26, [x26, _QLC_83XX_MBX_READY@GOTPAGEOFF]
Lloh5:
	adrp	x25, l_.str.1@PAGE
Lloh6:
	add	x25, x25, l_.str.1@PAGEOFF
Lloh7:
	adrp	x27, _QLCNIC_RCODE_TIMEOUT@GOTPAGE
Lloh8:
	ldr	x27, [x27, _QLCNIC_RCODE_TIMEOUT@GOTPAGEOFF]
Lloh9:
	adrp	x28, _QLCNIC_BC_CMD_CHANNEL_INIT@GOTPAGE
Lloh10:
	ldr	x28, [x28, _QLCNIC_BC_CMD_CHANNEL_INIT@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x26]
	ldr	x8, [x20, #8]
	add	x1, x8, #4
	bl	_test_bit
	cbz	w0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [sp, #8]
	mov	x0, x20
	mov	x2, x21
	bl	_qlcnic_sriov_send_bc_cmd
	cbz	w0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x23]
	ldrh	w2, [x8]
	mov	x0, x22
	mov	x1, x25
	mov	x3, x21
	bl	_dev_err
	ldr	w24, [x27]
	ldr	x1, [sp, #8]
	ldr	x8, [x1]
	ldr	x8, [x8]
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_qlcnic_sriov_retry_bc_cmd
	cbz	w0, LBB0_3
	b	LBB0_11
LBB0_7:
Lloh11:
	adrp	x8, _EIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w24, w8
Lloh14:
	adrp	x8, _DRV@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DRV@GOTPAGEOFF]
Lloh16:
	ldr	w22, [x8]
	ldr	x8, [x23]
	ldr	w0, [x8]
	bl	_QLCNIC_MBX_RSP
	mov	x3, x0
Lloh17:
	adrp	x2, l_.str@PAGE
Lloh18:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x22
	mov	x4, x21
	bl	_QLCDB
	b	LBB0_11
LBB0_8:
	ldr	x8, [x23, #8]
	ldr	w0, [x8]
	bl	_QLCNIC_MBX_STATUS
	mov	x25, x0
	ldr	x8, [x23]
	ldr	w0, [x8]
	bl	_QLCNIC_MBX_RSP
Lloh19:
	adrp	x8, _QLCNIC_MBX_RSP_OK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _QLCNIC_MBX_RSP_OK@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _QLCNIC_MBX_PORT_RSP_OK@GOTPAGE
Lloh23:
	ldr	x9, [x9, _QLCNIC_MBX_PORT_RSP_OK@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	cmp	w25, w8
	ccmp	w25, w9, #4, ne
	b.ne	LBB0_10
; %bb.9:
Lloh25:
	adrp	x8, _QLCNIC_RCODE_SUCCESS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _QLCNIC_RCODE_SUCCESS@GOTPAGEOFF]
Lloh27:
	ldr	w24, [x8]
	b	LBB0_11
LBB0_10:
	mov	x2, x0
	cmp	w25, #0
	csinc	w24, w25, wzr, ne
	str	x21, [sp]
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	mov	x3, x25
	bl	_dev_err
LBB0_11:
	ldr	w8, [x27]
	cmp	w24, w8
	b.ne	LBB0_13
; %bb.12:
	mov	w8, #1
	str	w8, [x19], #4
	str	w8, [x20]
	ldr	w0, [x26]
	mov	x1, x19
	bl	_clear_bit
LBB0_13:
	ldr	x0, [sp, #8]
	bl	_qlcnic_sriov_cleanup_transaction
LBB0_14:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_QLC_BC_COMMAND,4,2             ; @QLC_BC_COMMAND
	.comm	_QLC_83XX_MBX_READY,4,2         ; @QLC_83XX_MBX_READY
	.comm	_EIO,4,2                        ; @EIO
	.comm	_DRV,4,2                        ; @DRV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MBX not Ready!(cmd 0x%x) for VF 0x%x\n"

l_.str.1:                               ; @.str.1
	.asciz	"MBX command 0x%x timed out for VF %d\n"

	.comm	_QLCNIC_RCODE_TIMEOUT,4,2       ; @QLCNIC_RCODE_TIMEOUT
	.comm	_QLCNIC_BC_CMD_CHANNEL_INIT,8,3 ; @QLCNIC_BC_CMD_CHANNEL_INIT
	.comm	_QLCNIC_MBX_RSP_OK,4,2          ; @QLCNIC_MBX_RSP_OK
	.comm	_QLCNIC_MBX_PORT_RSP_OK,4,2     ; @QLCNIC_MBX_PORT_RSP_OK
	.comm	_QLCNIC_RCODE_SUCCESS,4,2       ; @QLCNIC_RCODE_SUCCESS
l_.str.2:                               ; @.str.2
	.asciz	"MBX command 0x%x failed with err:0x%x for VF %d\n"

	.no_dead_strip	_qlcnic_sriov_vf_mbx_op
.subsections_via_symbols
