	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_dl_msix_validate
_bnxt_dl_msix_validate:                 ## @bnxt_dl_msix_validate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_DEVLINK_PARAM_GENERIC_ID_MSIX_VEC_PER_PF_MAX@GOTPCREL(%rip), %rax
	movl	$-1, %edi
	cmpq	%rsi, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_BNXT_MSIX_VEC_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
LBB0_2:
	movq	_DEVLINK_PARAM_GENERIC_ID_MSIX_VEC_PER_PF_MIN@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	_BNXT_MSIX_VEC_MIN_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
LBB0_4:
	xorl	%eax, %eax
	cmpl	%edx, %edi
	jge	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movq	%rcx, %rdi
	callq	_NL_SET_ERR_MSG_MOD
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEVLINK_PARAM_GENERIC_ID_MSIX_VEC_PER_PF_MAX,8,3 ## @DEVLINK_PARAM_GENERIC_ID_MSIX_VEC_PER_PF_MAX
	.comm	_BNXT_MSIX_VEC_MAX,4,2          ## @BNXT_MSIX_VEC_MAX
	.comm	_DEVLINK_PARAM_GENERIC_ID_MSIX_VEC_PER_PF_MIN,8,3 ## @DEVLINK_PARAM_GENERIC_ID_MSIX_VEC_PER_PF_MIN
	.comm	_BNXT_MSIX_VEC_MIN_MAX,4,2      ## @BNXT_MSIX_VEC_MIN_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MSIX value is exceeding the range"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_dl_msix_validate
_bnxt_dl_msix_validate:                 ; @bnxt_dl_msix_validate
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _DEVLINK_PARAM_GENERIC_ID_MSIX_VEC_PER_PF_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEVLINK_PARAM_GENERIC_ID_MSIX_VEC_PER_PF_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _BNXT_MSIX_VEC_MAX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BNXT_MSIX_VEC_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	x8, x1
	csinv	w8, w9, wzr, eq
Lloh6:
	adrp	x9, _DEVLINK_PARAM_GENERIC_ID_MSIX_VEC_PER_PF_MIN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DEVLINK_PARAM_GENERIC_ID_MSIX_VEC_PER_PF_MIN@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _BNXT_MSIX_VEC_MIN_MAX@GOTPAGE
Lloh10:
	ldr	x10, [x10, _BNXT_MSIX_VEC_MIN_MAX@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	cmp	x9, x1
	csel	w8, w10, w8, eq
	cmp	w8, w2
	b.ge	LBB0_2
; %bb.1:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x3
	bl	_NL_SET_ERR_MSG_MOD
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_DEVLINK_PARAM_GENERIC_ID_MSIX_VEC_PER_PF_MAX,8,3 ; @DEVLINK_PARAM_GENERIC_ID_MSIX_VEC_PER_PF_MAX
	.comm	_BNXT_MSIX_VEC_MAX,4,2          ; @BNXT_MSIX_VEC_MAX
	.comm	_DEVLINK_PARAM_GENERIC_ID_MSIX_VEC_PER_PF_MIN,8,3 ; @DEVLINK_PARAM_GENERIC_ID_MSIX_VEC_PER_PF_MIN
	.comm	_BNXT_MSIX_VEC_MIN_MAX,4,2      ; @BNXT_MSIX_VEC_MIN_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MSIX value is exceeding the range"

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