	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_vf_mbx_acquire
_bnx2x_vf_mbx_acquire:                  ## @bnx2x_vf_mbx_acquire
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdx), %r13
	movq	_BNX2X_MSG_IOV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%rsi), %edx
	movl	8(%r13), %r8d
	movl	12(%r13), %ecx
	movl	40(%r13), %r9d
	movl	36(%r13), %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	32(%r13), %r11d
	movl	28(%r13), %r12d
	movl	24(%r13), %r15d
	movl	20(%r13), %r10d
	subq	$8, %rsp
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	pushq	%r10
	pushq	%r15
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	pushq	%r12
	pushq	%r11
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	callq	_DP
	addq	$48, %rsp
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_bnx2x_vf_mbx_acquire_chk_dorq
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r12d
	movq	_BNX2X_MSG_IOV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	jmp	LBB0_13
LBB0_2:
	movq	(%rbx), %rsi
	movq	%r15, %rdi
	callq	_bnx2x_vf_mbx_is_windows_vm
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	4(%r13), %eax
	jmp	LBB0_5
LBB0_4:
	movq	_u8@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r13), %esi
	movq	_ETH_FP_HSI_VER_2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_max_t
LBB0_5:
	movq	_BNX2X_MSG_IOV@GOTPCREL(%rip), %rdx
	movl	%eax, 12(%r14)
	movq	_ETH_FP_HSI_VERSION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	cmpl	%r8d, %eax
	jle	LBB0_7
## %bb.6:
	movl	(%rdx), %edi
	movl	4(%r14), %edx
	movl	4(%r13), %ecx
	leaq	L_.str.2(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_DP
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_13
LBB0_7:
	leaq	20(%r13), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_bnx2x_vf_acquire
	movl	%eax, %r12d
	movl	16(%r13), %eax
	movl	%eax, 8(%r14)
	movl	(%r13), %ecx
	movq	_VF_CAP_SUPPORT_EXT_BULLETIN@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_9
## %bb.8:
	movq	_BNX2X_MSG_IOV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r14), %edx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	movq	_VF_CFG_EXT_BULLETIN@GOTPCREL(%rip), %rcx
	movl	(%r14), %eax
	orl	(%rcx), %eax
	movl	%eax, (%r14)
	movl	(%r13), %ecx
	jmp	LBB0_10
LBB0_9:
	movq	_VF_CFG_EXT_BULLETIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	(%r14), %eax
	movl	%eax, (%r14)
LBB0_10:
	movq	_VF_CAP_SUPPORT_VLAN_FILTER@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_12
## %bb.11:
	movq	_BNX2X_MSG_IOV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r14), %edx
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	movq	_VF_CFG_VLAN_FILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	jmp	LBB0_13
LBB0_12:
	movq	_VF_CFG_VLAN_FILTER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%r14)
LBB0_13:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movl	%r12d, %ecx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bnx2x_vf_mbx_acquire_resp      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BNX2X_MSG_IOV,4,2              ## @BNX2X_MSG_IOV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VF[%d] ACQUIRE: vfdev_info- vf_id %d, vf_os %d resources- n_rxq-%d, n_txq-%d, n_sbs-%d, n_macs-%d, n_vlans-%d, n_mcs-%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"VF [%d] - Can't support acquire request due to doorbell mismatch. Please update VM driver\n"

	.comm	_u8,4,2                         ## @u8
	.comm	_ETH_FP_HSI_VER_2,4,2           ## @ETH_FP_HSI_VER_2
	.comm	_ETH_FP_HSI_VERSION,4,2         ## @ETH_FP_HSI_VERSION
L_.str.2:                               ## @.str.2
	.asciz	"VF [%d] - Can't support acquire request since VF requests a FW version which is too new [%02x > %02x]\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_VF_CAP_SUPPORT_EXT_BULLETIN,4,2 ## @VF_CAP_SUPPORT_EXT_BULLETIN
L_.str.3:                               ## @.str.3
	.asciz	"VF[%d] supports long bulletin boards\n"

	.comm	_VF_CFG_EXT_BULLETIN,4,2        ## @VF_CFG_EXT_BULLETIN
	.comm	_VF_CAP_SUPPORT_VLAN_FILTER,4,2 ## @VF_CAP_SUPPORT_VLAN_FILTER
L_.str.4:                               ## @.str.4
	.asciz	"VF[%d] supports vlan filtering\n"

	.comm	_VF_CFG_VLAN_FILTER,4,2         ## @VF_CFG_VLAN_FILTER
	.no_dead_strip	_bnx2x_vf_mbx_acquire
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_vf_mbx_acquire
_bnx2x_vf_mbx_acquire:                  ; @bnx2x_vf_mbx_acquire
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x25, [x2]
Lloh0:
	adrp	x24, _BNX2X_MSG_IOV@GOTPAGE
Lloh1:
	ldr	x24, [x24, _BNX2X_MSG_IOV@GOTPAGEOFF]
	ldr	w0, [x24]
	ldr	w2, [x1, #4]
	mov	x23, x25
	ldr	w8, [x23, #20]!
	ldp	w10, w9, [x25, #8]
	ldp	w12, w11, [x25, #36]
	ldp	w14, w13, [x25, #28]
	ldr	w15, [x25, #24]
	stp	x15, x8, [sp, #48]
	stp	x13, x14, [sp, #32]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	stp	x11, x12, [sp, #16]
	stp	x9, x10, [sp]
	bl	_DP
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_bnx2x_vf_mbx_acquire_chk_dorq
	cbz	w0, LBB0_2
; %bb.1:
	mov	x22, x0
	ldr	w0, [x24]
	ldr	w2, [x20, #4]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DP
	b	LBB0_14
LBB0_2:
	ldr	x1, [x19]
	mov	x0, x21
	bl	_bnx2x_vf_mbx_is_windows_vm
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x25, #4]
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _u8@GOTPAGE
Lloh7:
	ldr	x8, [x8, _u8@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	w1, [x25, #4]
Lloh9:
	adrp	x8, _ETH_FP_HSI_VER_2@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ETH_FP_HSI_VER_2@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	bl	_max_t
LBB0_5:
	str	w0, [x20, #12]
Lloh12:
	adrp	x8, _ETH_FP_HSI_VERSION@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ETH_FP_HSI_VERSION@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w0, w8
	b.le	LBB0_7
; %bb.6:
	ldr	w0, [x24]
	ldr	w2, [x20, #4]
	ldr	w9, [x25, #4]
	stp	x9, x8, [sp]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_DP
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_14
LBB0_7:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x23
	bl	_bnx2x_vf_acquire
	mov	x22, x0
	ldr	w8, [x25, #16]
	str	w8, [x20, #8]
	ldr	w8, [x25]
Lloh20:
	adrp	x9, _VF_CAP_SUPPORT_EXT_BULLETIN@GOTPAGE
Lloh21:
	ldr	x9, [x9, _VF_CAP_SUPPORT_EXT_BULLETIN@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	ldr	w0, [x24]
	ldr	w2, [x20, #4]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_DP
Lloh25:
	adrp	x8, _VF_CFG_EXT_BULLETIN@GOTPAGE
Lloh26:
	ldr	x8, [x8, _VF_CFG_EXT_BULLETIN@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w9, w9, w8
	str	w9, [x20]
	ldr	w8, [x25]
	b	LBB0_10
LBB0_9:
Lloh28:
	adrp	x9, _VF_CFG_EXT_BULLETIN@GOTPAGE
Lloh29:
	ldr	x9, [x9, _VF_CFG_EXT_BULLETIN@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	ldr	w10, [x20]
	bic	w9, w10, w9
	str	w9, [x20]
LBB0_10:
Lloh31:
	adrp	x10, _VF_CAP_SUPPORT_VLAN_FILTER@GOTPAGE
Lloh32:
	ldr	x10, [x10, _VF_CAP_SUPPORT_VLAN_FILTER@GOTPAGEOFF]
Lloh33:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_12
; %bb.11:
	ldr	w0, [x24]
	ldr	w2, [x20, #4]
Lloh34:
	adrp	x1, l_.str.4@PAGE
Lloh35:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_DP
Lloh36:
	adrp	x8, _VF_CFG_VLAN_FILTER@GOTPAGE
Lloh37:
	ldr	x8, [x8, _VF_CFG_VLAN_FILTER@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	b	LBB0_13
LBB0_12:
Lloh39:
	adrp	x8, _VF_CFG_VLAN_FILTER@GOTPAGE
Lloh40:
	ldr	x8, [x8, _VF_CFG_VLAN_FILTER@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	bic	w8, w9, w8
LBB0_13:
	str	w8, [x20]
LBB0_14:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x3, x22
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_bnx2x_vf_mbx_acquire_resp
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_BNX2X_MSG_IOV,4,2              ; @BNX2X_MSG_IOV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VF[%d] ACQUIRE: vfdev_info- vf_id %d, vf_os %d resources- n_rxq-%d, n_txq-%d, n_sbs-%d, n_macs-%d, n_vlans-%d, n_mcs-%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"VF [%d] - Can't support acquire request due to doorbell mismatch. Please update VM driver\n"

	.comm	_u8,4,2                         ; @u8
	.comm	_ETH_FP_HSI_VER_2,4,2           ; @ETH_FP_HSI_VER_2
	.comm	_ETH_FP_HSI_VERSION,4,2         ; @ETH_FP_HSI_VERSION
l_.str.2:                               ; @.str.2
	.asciz	"VF [%d] - Can't support acquire request since VF requests a FW version which is too new [%02x > %02x]\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_VF_CAP_SUPPORT_EXT_BULLETIN,4,2 ; @VF_CAP_SUPPORT_EXT_BULLETIN
l_.str.3:                               ; @.str.3
	.asciz	"VF[%d] supports long bulletin boards\n"

	.comm	_VF_CFG_EXT_BULLETIN,4,2        ; @VF_CFG_EXT_BULLETIN
	.comm	_VF_CAP_SUPPORT_VLAN_FILTER,4,2 ; @VF_CAP_SUPPORT_VLAN_FILTER
l_.str.4:                               ; @.str.4
	.asciz	"VF[%d] supports vlan filtering\n"

	.comm	_VF_CFG_VLAN_FILTER,4,2         ; @VF_CFG_VLAN_FILTER
	.no_dead_strip	_bnx2x_vf_mbx_acquire
.subsections_via_symbols
