	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function xlp_alloc_msi
LCPI0_0:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
LCPI0_1:
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
LCPI0_2:
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_xlp_alloc_msi:                         ## @xlp_alloc_msi
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%r8, %rbx
	movl	%edx, %r14d
	callq	_xlp_pcie_link
                                        ## kill: def $eax killed $eax def $rax
	cmpl	$-1, %eax
	je	LBB0_14
## %bb.1:
	testl	%r14d, %r14d
	jle	LBB0_12
## %bb.2:
	shll	$5, %eax
	leal	64(%rax), %r9d
	movl	%r14d, %edx
	cmpl	$8, %r14d
	jae	LBB0_4
## %bb.3:
	xorl	%esi, %esi
	jmp	LBB0_11
LBB0_14:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_13
LBB0_4:
	movl	%edx, %esi
	andl	$-8, %esi
	movd	%r9d, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-8(%rsi), %rcx
	movq	%rcx, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.6:
	movq	%r8, %rcx
	andq	$-2, %rcx
	leal	68(%rax), %edi
	movd	%edi, %xmm1
	pshufd	$0, %xmm1, %xmm2                ## xmm2 = xmm1[0,0,0,0]
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [0,1,2,3]
	xorl	%edi, %edi
	movdqa	LCPI0_1(%rip), %xmm3            ## xmm3 = [8,8,8,8]
	movdqa	LCPI0_2(%rip), %xmm4            ## xmm4 = [16,16,16,16]
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm0, %xmm5
	paddd	%xmm1, %xmm5
	movdqa	%xmm2, %xmm6
	paddd	%xmm1, %xmm6
	movdqu	%xmm5, (%rbx,%rdi,4)
	movdqu	%xmm6, 16(%rbx,%rdi,4)
	movdqa	%xmm1, %xmm5
	paddd	%xmm3, %xmm5
	movdqa	%xmm0, %xmm6
	paddd	%xmm5, %xmm6
	paddd	%xmm2, %xmm5
	movdqu	%xmm6, 32(%rbx,%rdi,4)
	movdqu	%xmm5, 48(%rbx,%rdi,4)
	addq	$16, %rdi
	paddd	%xmm4, %xmm1
	addq	$-2, %rcx
	jne	LBB0_7
## %bb.8:
	testb	$1, %r8b
	je	LBB0_10
LBB0_9:
	paddd	%xmm1, %xmm0
	addl	$68, %eax
	movd	%eax, %xmm2
	pshufd	$0, %xmm2, %xmm2                ## xmm2 = xmm2[0,0,0,0]
	paddd	%xmm1, %xmm2
	movdqu	%xmm0, (%rbx,%rdi,4)
	movdqu	%xmm2, 16(%rbx,%rdi,4)
LBB0_10:
	xorl	%eax, %eax
	cmpq	%rdx, %rsi
	je	LBB0_13
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	leal	(%r9,%rsi), %eax
	movl	%eax, (%rbx,%rsi,4)
	incq	%rsi
	cmpq	%rsi, %rdx
	jne	LBB0_11
LBB0_12:
	xorl	%eax, %eax
LBB0_13:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [0,1,2,3]
	xorl	%edi, %edi
	testb	$1, %r8b
	jne	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.no_dead_strip	_xlp_alloc_msi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function xlp_alloc_msi
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_xlp_alloc_msi:                         ; @xlp_alloc_msi
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x4
	mov	x20, x2
	bl	_xlp_pcie_link
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.1:
	cmp	w20, #1
	b.lt	LBB0_10
; %bb.2:
	lsl	w9, w0, #5
	mov	w8, w20
	cmp	w20, #16
	b.hs	LBB0_5
; %bb.3:
	mov	x10, #0
	b	LBB0_8
LBB0_4:
Lloh0:
	adrp	x8, _ENXIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_5:
	add	w10, w9, #64
	dup.4s	v0, w10
	add	w10, w9, #68
	dup.4s	v1, w10
	add	w10, w9, #72
	dup.4s	v2, w10
	add	w10, w9, #76
	dup.4s	v3, w10
	and	x10, x8, #0xfffffff0
Lloh3:
	adrp	x11, lCPI0_0@PAGE
Lloh4:
	ldr	q4, [x11, lCPI0_0@PAGEOFF]
	add	x11, x19, #32
	movi.4s	v5, #16
	mov	x12, x10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add.4s	v6, v0, v4
	add.4s	v7, v1, v4
	add.4s	v16, v2, v4
	add.4s	v17, v3, v4
	stp	q6, q7, [x11, #-32]
	stp	q16, q17, [x11], #64
	add.4s	v4, v4, v5
	subs	x12, x12, #16
	b.ne	LBB0_6
; %bb.7:
	cmp	x10, x8
	b.eq	LBB0_10
LBB0_8:
	add	w9, w9, w10
	add	w9, w9, #64
	add	x11, x19, x10, lsl #2
	sub	x8, x8, x10
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	str	w9, [x11], #4
	add	w9, w9, #1
	subs	x8, x8, #1
	b.ne	LBB0_9
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.no_dead_strip	_xlp_alloc_msi
.subsections_via_symbols
