	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_sriov_configure          ## -- Begin function bnx2x_sriov_configure
	.p2align	4, 0x90
_bnx2x_sriov_configure:                 ## @bnx2x_sriov_configure
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	callq	_pci_get_drvdata
	movl	%eax, %edi
	callq	_netdev_priv
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_SRIOV
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	_BNX2X_MSG_IOV@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_BNX2X_NR_VIRTFN
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_DP
	movq	(%r15), %rax
	movq	_BNX2X_STATE_OPEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	movq	%r15, %rdi
	callq	_BNX2X_NR_VIRTFN
	cmpl	%r14d, %eax
	jge	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	callq	_BNX2X_NR_VIRTFN
	leaq	L_.str.3(%rip), %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_BNX2X_ERR
	movq	%r15, %rdi
	callq	_BNX2X_NR_VIRTFN
	movl	%eax, %r14d
LBB0_7:
	movl	%r14d, 8(%r15)
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.10:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bnx2x_enable_sriov             ## TAILCALL
LBB0_1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
LBB0_2:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_BNX2X_ERR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_bnx2x_set_pf_tx_switching
	movq	%r15, %rdi
	callq	_bnx2x_disable_sriov
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to configure SR-IOV since vfdb was not allocated. Check dmesg for errors in probe stage\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_BNX2X_MSG_IOV,4,2              ## @BNX2X_MSG_IOV
L_.str.1:                               ## @.str.1
	.asciz	"bnx2x_sriov_configure called with %d, BNX2X_NR_VIRTFN(bp) was %d\n"

	.comm	_BNX2X_STATE_OPEN,8,3           ## @BNX2X_STATE_OPEN
L_.str.2:                               ## @.str.2
	.asciz	"VF num configuration via sysfs not supported while PF is down\n"

L_.str.3:                               ## @.str.3
	.asciz	"truncating requested number of VFs (%d) down to maximum allowed (%d)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_sriov_configure          ; -- Begin function bnx2x_sriov_configure
	.p2align	2
_bnx2x_sriov_configure:                 ; @bnx2x_sriov_configure
	.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
	mov	x20, x1
	bl	_pci_get_drvdata
	bl	_netdev_priv
	mov	x19, x0
	bl	_IS_SRIOV
	cbz	w0, LBB0_6
; %bb.1:
Lloh0:
	adrp	x8, _BNX2X_MSG_IOV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNX2X_MSG_IOV@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	x0, x19
	bl	_BNX2X_NR_VIRTFN
	mov	x3, x0
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_DP
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _BNX2X_STATE_OPEN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BNX2X_STATE_OPEN@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.2:
	mov	x0, x19
	bl	_BNX2X_NR_VIRTFN
	cmp	w0, w20
	b.ge	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_BNX2X_NR_VIRTFN
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x20, x0, [sp]
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_BNX2X_ERR
	mov	x0, x19
	bl	_BNX2X_NR_VIRTFN
	mov	x20, x0
LBB0_4:
	str	w20, [x19, #8]
	cbz	w20, LBB0_10
; %bb.5:
	mov	x0, x19
	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
	b	_bnx2x_enable_sriov
LBB0_6:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_8:
	bl	_BNX2X_ERR
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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
LBB0_10:
	mov	x0, x19
	mov	w1, #0
	bl	_bnx2x_set_pf_tx_switching
	mov	x0, x19
	bl	_bnx2x_disable_sriov
	mov	w0, #0
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to configure SR-IOV since vfdb was not allocated. Check dmesg for errors in probe stage\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_BNX2X_MSG_IOV,4,2              ; @BNX2X_MSG_IOV
l_.str.1:                               ; @.str.1
	.asciz	"bnx2x_sriov_configure called with %d, BNX2X_NR_VIRTFN(bp) was %d\n"

	.comm	_BNX2X_STATE_OPEN,8,3           ; @BNX2X_STATE_OPEN
l_.str.2:                               ; @.str.2
	.asciz	"VF num configuration via sysfs not supported while PF is down\n"

l_.str.3:                               ; @.str.3
	.asciz	"truncating requested number of VFs (%d) down to maximum allowed (%d)\n"

.subsections_via_symbols
