	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_net_sriov_check
_nfp_net_sriov_check:                   ## @nfp_net_sriov_check
	.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
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.3:
	movq	%rcx, %r15
	movl	%edx, %r12d
	movl	%esi, %r14d
	movq	_NFP_NET_VF_CFG_MB_CAP@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	callq	_readw
	notl	%eax
	testl	%eax, %r12d
	jne	LBB0_4
## %bb.5:
	movq	(%rbx), %rax
	testl	%r14d, %r14d
	js	LBB0_7
## %bb.6:
	xorl	%ebx, %ebx
	cmpl	%r14d, (%rax)
	jg	LBB0_9
LBB0_7:
	movl	4(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_nfp_warn
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_2:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_4:
	movq	(%rbx), %rax
	movl	4(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_nfp_warn
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_8:
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_NFP_NET_VF_CFG_MB_CAP,8,3      ## @NFP_NET_VF_CFG_MB_CAP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ndo_set_vf_%s not supported\n"

L_.str.1:                               ## @.str.1
	.asciz	"invalid VF id %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_nfp_net_sriov_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_net_sriov_check
_nfp_net_sriov_check:                   ; @nfp_net_sriov_check
	.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
	cbz	x0, LBB0_7
; %bb.1:
	mov	x21, x0
	ldr	x8, [x0]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_7
; %bb.2:
	mov	x20, x3
	mov	x22, x2
	mov	x19, x1
Lloh0:
	adrp	x9, _NFP_NET_VF_CFG_MB_CAP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NFP_NET_VF_CFG_MB_CAP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readw
	bics	wzr, w22, w0
	b.ne	LBB0_6
; %bb.3:
	ldr	x8, [x21]
	tbnz	w19, #31, LBB0_10
; %bb.4:
	ldr	w9, [x8]
	cmp	w9, w19
	b.le	LBB0_10
; %bb.5:
	mov	w0, #0
	b	LBB0_9
LBB0_6:
	ldr	x8, [x21]
	ldr	w0, [x8, #4]
	str	x20, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_nfp_warn
LBB0_7:
Lloh5:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_8:
	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:
	ldr	w0, [x8, #4]
	str	x19, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_nfp_warn
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_NFP_NET_VF_CFG_MB_CAP,8,3      ; @NFP_NET_VF_CFG_MB_CAP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ndo_set_vf_%s not supported\n"

l_.str.1:                               ; @.str.1
	.asciz	"invalid VF id %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_nfp_net_sriov_check
.subsections_via_symbols
