	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __qlcnic_sriov_issue_cmd
___qlcnic_sriov_issue_cmd:              ## @__qlcnic_sriov_issue_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
	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, %r12
	movq	%rdi, %r15
	movq	8(%rdi), %rbx
	movq	16(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	16(%rbx), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rax
	movl	(%rax), %r13d
	incl	%r13d
	movl	%r13d, (%rax)
	movl	4(%rbx), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	leaq	-56(%rbp), %rdi
	callq	_qlcnic_sriov_alloc_bc_trans
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.1:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rdi
	movq	_QLC_BC_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_qlcnic_sriov_prepare_bc_hdr
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.2:
	movq	_QLCNIC_BC_CMD_CHANNEL_INIT@GOTPCREL(%rip), %r13
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movl	-60(%rbp), %ebx                 ## 4-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	%r12, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_qlcnic_sriov_send_bc_cmd
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movzwl	(%rax), %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_QLCNIC_RCODE_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	-56(%rbp), %rsi
	movq	(%rsi), %rax
	movq	(%rax), %rax
	cmpq	(%r13), %rax
	jne	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	_qlcnic_sriov_retry_bc_cmd
	testl	%eax, %eax
	je	LBB0_3
	jmp	LBB0_13
LBB0_4:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	_DRV@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	(%rax), %edi
	callq	_QLCNIC_MBX_RSP
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%eax, %ecx
	movl	%ebx, %r8d
	callq	_QLCDB
	jmp	LBB0_13
LBB0_8:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	16(%r14), %rax
	movl	(%rax), %edi
	callq	_QLCNIC_MBX_STATUS
	movl	%eax, %r13d
	movq	8(%r14), %rax
	movl	(%rax), %edi
	callq	_QLCNIC_MBX_RSP
	movq	_QLCNIC_MBX_RSP_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r13d
	je	LBB0_10
## %bb.9:
	movq	_QLCNIC_MBX_PORT_RSP_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r13d
	je	LBB0_10
## %bb.11:
	movq	(%r14), %rcx
	movq	_QLC_83XX_MBX_CMD_NO_WAIT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_12
LBB0_10:
	movq	_QLCNIC_RCODE_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_13
LBB0_12:
	testl	%r13d, %r13d
	movl	$1, %r14d
	cmovnel	%r13d, %r14d
	leaq	L_.str.2(%rip), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %edx
	movl	%r13d, %ecx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_dev_err
LBB0_13:
	movq	_QLCNIC_RCODE_TIMEOUT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_15
## %bb.14:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movl	$1, (%r15)
	movq	_QLC_83XX_MBX_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_clear_bit
LBB0_15:
	movq	-56(%rbp), %rdi
	callq	_qlcnic_sriov_cleanup_transaction
	movq	-48(%rbp), %r12                 ## 8-byte Reload
LBB0_16:
	movq	(%r12), %rax
	movq	_QLC_83XX_MBX_CMD_NO_WAIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.17:
	movq	%r12, %rdi
	callq	_qlcnic_free_mbx_args
	movq	%r12, %rdi
	callq	_kfree
LBB0_18:
	movl	%r14d, %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
	.comm	_QLC_83XX_MBX_CMD_NO_WAIT,8,3   ## @QLC_83XX_MBX_CMD_NO_WAIT
L_.str.2:                               ## @.str.2
	.asciz	"MBX command 0x%x failed with err:0x%x for VF %d\n"

	.no_dead_strip	___qlcnic_sriov_issue_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_issue_cmd
___qlcnic_sriov_issue_cmd:              ; @__qlcnic_sriov_issue_cmd
	.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	x19, x1
	mov	x21, x0
	ldp	x27, x23, [x0, #8]
	ldp	x8, x20, [x27, #8]
	ldr	w9, [x8]
	add	w25, w9, #1
	str	w25, [x8]
	ldr	w22, [x27, #4]
	add	x0, sp, #8
	bl	_qlcnic_sriov_alloc_bc_trans
	mov	x24, x0
Lloh0:
	adrp	x26, _QLC_83XX_MBX_CMD_NO_WAIT@GOTPAGE
Lloh1:
	ldr	x26, [x26, _QLC_83XX_MBX_CMD_NO_WAIT@GOTPAGEOFF]
	cbnz	w0, LBB0_15
; %bb.1:
	ldr	x0, [sp, #8]
Lloh2:
	adrp	x8, _QLC_BC_COMMAND@GOTPAGE
Lloh3:
	ldr	x8, [x8, _QLC_BC_COMMAND@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x1, x19
	mov	x2, x25
	bl	_qlcnic_sriov_prepare_bc_hdr
	mov	x24, x0
	cbnz	w0, LBB0_14
; %bb.2:
Lloh5:
	adrp	x25, l_.str.1@PAGE
Lloh6:
	add	x25, x25, l_.str.1@PAGEOFF
Lloh7:
	adrp	x28, _QLCNIC_BC_CMD_CHANNEL_INIT@GOTPAGE
Lloh8:
	ldr	x28, [x28, _QLCNIC_BC_CMD_CHANNEL_INIT@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
Lloh9:
	adrp	x8, _QLC_83XX_MBX_READY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _QLC_83XX_MBX_READY@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbz	w0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [sp, #8]
	mov	x0, x21
	mov	x2, x22
	bl	_qlcnic_sriov_send_bc_cmd
	cbz	w0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #8]
	ldrh	w2, [x8]
	mov	x0, x23
	mov	x1, x25
	mov	x3, x22
	bl	_dev_err
Lloh12:
	adrp	x8, _QLCNIC_RCODE_TIMEOUT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _QLCNIC_RCODE_TIMEOUT@GOTPAGEOFF]
Lloh14:
	ldr	w24, [x8]
	ldr	x1, [sp, #8]
	ldr	x8, [x1]
	ldr	x8, [x8]
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_qlcnic_sriov_retry_bc_cmd
	cbz	w0, LBB0_3
	b	LBB0_12
LBB0_7:
Lloh15:
	adrp	x8, _EIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w24, w8
Lloh18:
	adrp	x8, _DRV@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DRV@GOTPAGEOFF]
Lloh20:
	ldr	w23, [x8]
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_QLCNIC_MBX_RSP
	mov	x3, x0
Lloh21:
	adrp	x2, l_.str@PAGE
Lloh22:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, x23
	mov	x4, x22
	bl	_QLCDB
	b	LBB0_12
LBB0_8:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_QLCNIC_MBX_STATUS
	mov	x25, x0
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_QLCNIC_MBX_RSP
Lloh23:
	adrp	x8, _QLCNIC_MBX_RSP_OK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _QLCNIC_MBX_RSP_OK@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _QLCNIC_MBX_PORT_RSP_OK@GOTPAGE
Lloh27:
	ldr	x9, [x9, _QLCNIC_MBX_PORT_RSP_OK@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	cmp	w25, w8
	ccmp	w25, w9, #4, ne
	b.eq	LBB0_10
; %bb.9:
	ldr	x8, [x19]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_11
LBB0_10:
Lloh29:
	adrp	x8, _QLCNIC_RCODE_SUCCESS@GOTPAGE
Lloh30:
	ldr	x8, [x8, _QLCNIC_RCODE_SUCCESS@GOTPAGEOFF]
Lloh31:
	ldr	w24, [x8]
	b	LBB0_12
LBB0_11:
	mov	x2, x0
	cmp	w25, #0
	csinc	w24, w25, wzr, ne
	str	x22, [sp]
Lloh32:
	adrp	x1, l_.str.2@PAGE
Lloh33:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x23
	mov	x3, x25
	bl	_dev_err
LBB0_12:
Lloh34:
	adrp	x8, _QLCNIC_RCODE_TIMEOUT@GOTPAGE
Lloh35:
	ldr	x8, [x8, _QLCNIC_RCODE_TIMEOUT@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	cmp	w24, w8
	b.ne	LBB0_14
; %bb.13:
	mov	w8, #1
	str	w8, [x27]
	str	w8, [x21]
Lloh37:
	adrp	x8, _QLC_83XX_MBX_READY@GOTPAGE
Lloh38:
	ldr	x8, [x8, _QLC_83XX_MBX_READY@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_clear_bit
LBB0_14:
	ldr	x0, [sp, #8]
	bl	_qlcnic_sriov_cleanup_transaction
LBB0_15:
	ldr	x8, [x19]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_qlcnic_free_mbx_args
	mov	x0, x19
	bl	_kfree
LBB0_17:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.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
	.comm	_QLC_83XX_MBX_CMD_NO_WAIT,8,3   ; @QLC_83XX_MBX_CMD_NO_WAIT
l_.str.2:                               ; @.str.2
	.asciz	"MBX command 0x%x failed with err:0x%x for VF %d\n"

	.no_dead_strip	___qlcnic_sriov_issue_cmd
.subsections_via_symbols
