	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_vf_op_prep
_bnx2x_vf_op_prep:                      ## @bnx2x_vf_op_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	%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	%rcx, %r12
	movq	(%rdi), %rax
	movq	_BNX2X_STATE_OPEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movl	%r8d, %r15d
	movq	%rdx, %r13
	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, (%r13)
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_BP_VF_BULLETIN
	movq	%rax, (%r12)
	movq	(%r13), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.9:
	testl	%r15d, %r15d
	je	LBB0_12
## %bb.10:
	cmpl	$0, (%rcx)
	je	LBB0_11
LBB0_12:
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_16
## %bb.13:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_14
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_15:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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_15
LBB0_8:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_14
LBB0_11:
	leaq	L_.str.4(%rip), %rdi
LBB0_14:
	xorl	%ebx, %ebx
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_BNX2X_ERR
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_BNX2X_STATE_OPEN,8,3           ## @BNX2X_STATE_OPEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PF is down - can't utilize iov-related functionality\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"sriov is disabled - can't utilize iov-related functionality\n"

L_.str.2:                               ## @.str.2
	.asciz	"VF is uninitialized - can't utilize iov-related functionality. vfidx was %d BNX2X_NR_VIRTFN was %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Unable to get VF structure for vfidx %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"vfqs struct is null. Was this invoked before dynamically enabling SR-IOV? vfidx was %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"Bulletin Board struct is null for vfidx %d\n"

	.no_dead_strip	_bnx2x_vf_op_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_op_prep
_bnx2x_vf_op_prep:                      ; @bnx2x_vf_op_prep
	.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
	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_8
; %bb.1:
	mov	x20, x4
	mov	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x23, x0
	bl	_IS_SRIOV
	cbz	w0, LBB0_9
; %bb.2:
	mov	x0, x23
	bl	_BNX2X_NR_VIRTFN
	cmp	w0, w19
	b.le	LBB0_10
; %bb.3:
	mov	x0, x23
	mov	x1, x19
	bl	_BP_VF
	str	x0, [x21]
	mov	x0, x23
	mov	x1, x19
	bl	_BP_VF_BULLETIN
	str	x0, [x22]
	ldr	x8, [x21]
	cbz	x8, LBB0_11
; %bb.4:
	cbz	w20, LBB0_6
; %bb.5:
	ldr	w8, [x8]
	cbz	w8, LBB0_13
LBB0_6:
	cbz	x0, LBB0_12
; %bb.7:
	mov	w0, #0
	b	LBB0_15
LBB0_8:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_14
LBB0_9:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_10:
	mov	x0, x23
	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_14
LBB0_11:
                                        ; 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_14
LBB0_12:
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	str	x19, [sp]
Lloh11:
	adrp	x0, l_.str.5@PAGE
Lloh12:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_14
LBB0_13:
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	str	x19, [sp]
Lloh13:
	adrp	x0, l_.str.4@PAGE
Lloh14:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_14:
	bl	_BNX2X_ERR
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	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
	.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 AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_BNX2X_STATE_OPEN,8,3           ; @BNX2X_STATE_OPEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PF is down - can't utilize iov-related functionality\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"sriov is disabled - can't utilize iov-related functionality\n"

l_.str.2:                               ; @.str.2
	.asciz	"VF is uninitialized - can't utilize iov-related functionality. vfidx was %d BNX2X_NR_VIRTFN was %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Unable to get VF structure for vfidx %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"vfqs struct is null. Was this invoked before dynamically enabling SR-IOV? vfidx was %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"Bulletin Board struct is null for vfidx %d\n"

	.no_dead_strip	_bnx2x_vf_op_prep
.subsections_via_symbols
