	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_vf_mbx                   ## -- Begin function bnx2x_vf_mbx
	.p2align	4, 0x90
_bnx2x_vf_mbx:                          ## @bnx2x_vf_mbx
	.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	%rsi, %r13
	movq	%rdi, %r14
	movq	_BNX2X_MSG_IOV@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	(%rsi), %rdx
	movq	8(%rsi), %rcx
	movq	16(%rsi), %r8
	leaq	L_.str(%rip), %rsi
	callq	_DP
	movq	(%r13), %rbx
	movq	%r14, %rdi
	callq	_BP_VFDB
	subq	(%rax), %rbx
	movq	%r14, %rdi
	callq	_BNX2X_NR_VIRTFN
	movq	(%r13), %r15
	cmpq	%rax, %rbx
	jle	LBB0_1
## %bb.4:
	movq	%r14, %rdi
	callq	_BNX2X_NR_VIRTFN
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_BNX2X_ERR                      ## TAILCALL
LBB0_1:
	movq	%r12, %rbx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_bnx2x_vf_idx_by_abs_fid
	movl	%eax, %r12d
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_BP_VF_MBX
	movq	%rax, %r15
	movq	_VF_MSG_INPROCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_2
## %bb.5:
	movq	(%r13), %rsi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_BNX2X_ERR                      ## TAILCALL
LBB0_2:
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_BP_VF
	movq	%rax, %r12
	movq	8(%r13), %rdx
	movq	%rdx, 8(%r15)
	movq	16(%r13), %rcx
	movq	%rcx, 16(%r15)
	movl	(%rbx), %edi
	movq	32(%r15), %r8
	leaq	L_.str.3(%rip), %rsi
	callq	_DP
	movl	40(%r15), %edx
	movq	(%r12), %rcx
	movq	8(%r15), %r8
	movq	16(%r15), %r9
	movl	$1, (%rsp)
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_bnx2x_copy32_vf_dmae
	testl	%eax, %eax
	je	LBB0_3
## %bb.6:
	movq	(%r12), %rsi
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_BNX2X_ERR
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bnx2x_vf_release               ## TAILCALL
LBB0_3:
	movq	24(%r15), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%r15)
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bnx2x_vf_mbx_request           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BNX2X_MSG_IOV,4,2              ## @BNX2X_MSG_IOV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vf pf event received: vfid %d, address_hi %x, address lo %x"

L_.str.1:                               ## @.str.1
	.asciz	"Illegal vf_id %d max allowed: %d\n"

	.comm	_VF_MSG_INPROCESS,4,2           ## @VF_MSG_INPROCESS
L_.str.2:                               ## @.str.2
	.asciz	"Previous message is still being processed, vf_id %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"mailbox vf address hi 0x%x, lo 0x%x, offset 0x%x\n"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to copy request VF %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_vf_mbx                   ; -- Begin function bnx2x_vf_mbx
	.p2align	2
_bnx2x_vf_mbx:                          ; @bnx2x_vf_mbx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _BNX2X_MSG_IOV@GOTPAGE
Lloh1:
	ldr	x23, [x23, _BNX2X_MSG_IOV@GOTPAGEOFF]
	ldr	w0, [x23]
	ldp	x2, x3, [x1]
	ldr	x4, [x1, #16]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
	ldr	x21, [x20]
	mov	x0, x19
	bl	_BP_VFDB
	ldr	x8, [x0]
	sub	x22, x21, x8
	mov	x0, x19
	bl	_BNX2X_NR_VIRTFN
	ldr	x21, [x20]
	cmp	x22, x0
	b.le	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_BNX2X_NR_VIRTFN
	str	x0, [sp]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_BNX2X_ERR
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_2:
	mov	x0, x19
	mov	x1, x21
	bl	_bnx2x_vf_idx_by_abs_fid
	mov	x22, x0
	mov	x0, x19
	mov	x1, x22
	bl	_BP_VF_MBX
	ldr	w8, [x0]
Lloh6:
	adrp	x9, _VF_MSG_INPROCESS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VF_MSG_INPROCESS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	x1, [x20]
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_BNX2X_ERR
LBB0_4:
	mov	x21, x0
	mov	x0, x19
	mov	x1, x22
	bl	_BP_VF
	mov	x22, x0
	ldp	x2, x3, [x20, #8]
	stp	x2, x3, [x21, #8]
	ldr	w0, [x23]
	ldr	x4, [x21, #32]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_DP
	ldr	w2, [x21, #40]
	ldr	x3, [x22]
	ldp	x4, x5, [x21, #8]
	mov	x0, x19
	mov	w1, #1
	mov	w6, #1
	bl	_bnx2x_copy32_vf_dmae
	cbz	w0, LBB0_6
; %bb.5:
	ldr	x1, [x22]
Lloh13:
	adrp	x0, l_.str.4@PAGE
Lloh14:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_BNX2X_ERR
	mov	x0, x19
	mov	x1, x22
	mov	w2, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_bnx2x_vf_release
LBB0_6:
	ldr	x8, [x21, #24]
	ldr	x8, [x8]
	str	x8, [x21, #32]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_bnx2x_vf_mbx_request
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_BNX2X_MSG_IOV,4,2              ; @BNX2X_MSG_IOV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vf pf event received: vfid %d, address_hi %x, address lo %x"

l_.str.1:                               ; @.str.1
	.asciz	"Illegal vf_id %d max allowed: %d\n"

	.comm	_VF_MSG_INPROCESS,4,2           ; @VF_MSG_INPROCESS
l_.str.2:                               ; @.str.2
	.asciz	"Previous message is still being processed, vf_id %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"mailbox vf address hi 0x%x, lo 0x%x, offset 0x%x\n"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to copy request VF %d\n"

.subsections_via_symbols
