	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function is_msi_spi_valid
_is_msi_spi_valid:                      ## @is_msi_spi_valid
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rax
	movq	_V2M_MIN_SPI@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rdi, %rcx
	jle	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_6
LBB0_2:
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.4:
	addq	%rsi, %rax
	movq	_V2M_MAX_SPI@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	$1, %ebx
	cmpq	%rdx, %rax
	jg	LBB0_5
	jmp	LBB0_6
LBB0_3:
	movq	_V2M_MAX_SPI@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
LBB0_5:
	subq	%rcx, %rdx
	incq	%rdx
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pr_err
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V2M_MIN_SPI,8,3                ## @V2M_MIN_SPI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid MSI base SPI (base:%u)\n"

	.comm	_V2M_MAX_SPI,8,3                ## @V2M_MAX_SPI
L_.str.1:                               ## @.str.1
	.asciz	"Number of SPIs (%u) exceed maximum (%u)\n"

	.no_dead_strip	_is_msi_spi_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function is_msi_spi_valid
_is_msi_spi_valid:                      ; @is_msi_spi_valid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x8, x0
Lloh0:
	adrp	x9, _V2M_MIN_SPI@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V2M_MIN_SPI@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x9, x0
	b.le	LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x8
	b	LBB0_7
LBB0_2:
	cbz	x1, LBB0_5
; %bb.3:
Lloh5:
	adrp	x10, _V2M_MAX_SPI@GOTPAGE
Lloh6:
	ldr	x10, [x10, _V2M_MAX_SPI@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	add	x8, x1, x8
	cmp	x8, x10
	b.gt	LBB0_6
; %bb.4:
	mov	w0, #1
	b	LBB0_8
LBB0_5:
Lloh8:
	adrp	x8, _V2M_MAX_SPI@GOTPAGE
Lloh9:
	ldr	x8, [x8, _V2M_MAX_SPI@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x8]
LBB0_6:
	sub	x8, x10, x9
	add	x8, x8, #1
	str	x8, [sp]
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_7:
	bl	_pr_err
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_V2M_MIN_SPI,8,3                ; @V2M_MIN_SPI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid MSI base SPI (base:%u)\n"

	.comm	_V2M_MAX_SPI,8,3                ; @V2M_MAX_SPI
l_.str.1:                               ; @.str.1
	.asciz	"Number of SPIs (%u) exceed maximum (%u)\n"

	.no_dead_strip	_is_msi_spi_valid
.subsections_via_symbols
