	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_vf_ndo_prep
_bnx2x_vf_ndo_prep:                     ## @bnx2x_vf_ndo_prep
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	(%rdi), %rax
	movq	_BNX2X_STATE_OPEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movq	%rdx, %r12
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_IS_SRIOV
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	%rbx, %rdi
	callq	_BNX2X_NR_VIRTFN
	cmpl	%r14d, %eax
	jle	LBB0_6
## %bb.7:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_BP_VF
	movq	%rax, (%r12)
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_BP_VF_BULLETIN
	movq	%rax, (%r15)
	cmpq	$0, (%r12)
	je	LBB0_8
## %bb.9:
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_13
## %bb.10:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_11
LBB0_1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
LBB0_2:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_BNX2X_ERR
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%rbx, %rdi
	callq	_BNX2X_NR_VIRTFN
	leaq	L_.str.2(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%r14d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_BNX2X_ERR
	jmp	LBB0_12
LBB0_8:
	leaq	L_.str.3(%rip), %rdi
LBB0_11:
	xorl	%ebx, %ebx
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_BNX2X_ERR
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_BNX2X_STATE_OPEN,8,3           ## @BNX2X_STATE_OPEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vf ndo called though PF is down\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"vf ndo called though sriov is disabled\n"

L_.str.2:                               ## @.str.2
	.asciz	"vf ndo called for uninitialized VF. vfidx was %d BNX2X_NR_VIRTFN was %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"vf ndo called but vf was null. vfidx was %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"vf ndo called but Bulletin Board struct is null. vfidx was %d\n"

	.no_dead_strip	_bnx2x_vf_ndo_prep
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_vf_ndo_prep
_bnx2x_vf_ndo_prep:                     ; @bnx2x_vf_ndo_prep
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _BNX2X_STATE_OPEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BNX2X_STATE_OPEN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	mov	x21, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	bl	_IS_SRIOV
	cbz	w0, LBB0_7
; %bb.2:
	mov	x0, x22
	bl	_BNX2X_NR_VIRTFN
	cmp	w0, w19
	b.le	LBB0_8
; %bb.3:
	mov	x0, x22
	mov	x1, x19
	bl	_BP_VF
	str	x0, [x20]
	mov	x0, x22
	mov	x1, x19
	bl	_BP_VF_BULLETIN
	str	x0, [x21]
	ldr	x8, [x20]
	cbz	x8, LBB0_9
; %bb.4:
	cbz	x0, LBB0_10
; %bb.5:
	mov	w0, #0
	b	LBB0_12
LBB0_6:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_11
LBB0_7:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_8:
	mov	x0, x22
	bl	_BNX2X_NR_VIRTFN
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x19, x0, [sp]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_9:
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	str	x19, [sp]
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_10:
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	str	x19, [sp]
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_11:
	bl	_BNX2X_ERR
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_BNX2X_STATE_OPEN,8,3           ; @BNX2X_STATE_OPEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vf ndo called though PF is down\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"vf ndo called though sriov is disabled\n"

l_.str.2:                               ; @.str.2
	.asciz	"vf ndo called for uninitialized VF. vfidx was %d BNX2X_NR_VIRTFN was %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"vf ndo called but vf was null. vfidx was %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"vf ndo called but Bulletin Board struct is null. vfidx was %d\n"

	.no_dead_strip	_bnx2x_vf_ndo_prep
.subsections_via_symbols
