	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_msix_table_init
_pci_msix_table_init:                   ## @pci_msix_table_init
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	xorl	%edi, %edi
	testl	%esi, %esi
	setg	%dil
	callq	_assert
	movq	_MAX_MSIX_TABLE_ENTRIES@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%ebx, (%rax)
	setge	%dil
	callq	_assert
	movq	_MSIX_TABLE_ENTRY_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	imull	%ebx, %esi
	movl	$1, %edi
	callq	_calloc
	movq	%rax, (%r14)
	testl	%ebx, %ebx
	jle	LBB0_11
## %bb.1:
	movq	_PCIM_MSIX_VCTRL_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ebx, %edx
	cmpl	$8, %ebx
	jae	LBB0_3
## %bb.2:
	xorl	%esi, %esi
	jmp	LBB0_10
LBB0_3:
	movl	%edx, %esi
	andl	$-8, %esi
	movd	%ecx, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-8(%rsi), %rdi
	movq	%rdi, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.5:
	movq	%r8, %rbx
	andq	$-2, %rbx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rax,%rdi,4), %xmm1
	movdqu	16(%rax,%rdi,4), %xmm2
	movdqu	32(%rax,%rdi,4), %xmm3
	movdqu	48(%rax,%rdi,4), %xmm4
	por	%xmm0, %xmm1
	por	%xmm0, %xmm2
	movdqu	%xmm1, (%rax,%rdi,4)
	movdqu	%xmm2, 16(%rax,%rdi,4)
	por	%xmm0, %xmm3
	por	%xmm0, %xmm4
	movdqu	%xmm3, 32(%rax,%rdi,4)
	movdqu	%xmm4, 48(%rax,%rdi,4)
	addq	$16, %rdi
	addq	$-2, %rbx
	jne	LBB0_6
## %bb.7:
	testb	$1, %r8b
	je	LBB0_9
LBB0_8:
	movdqu	(%rax,%rdi,4), %xmm1
	movdqu	16(%rax,%rdi,4), %xmm2
	por	%xmm0, %xmm1
	por	%xmm0, %xmm2
	movdqu	%xmm1, (%rax,%rdi,4)
	movdqu	%xmm2, 16(%rax,%rdi,4)
LBB0_9:
	cmpq	%rdx, %rsi
	je	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	orl	%ecx, (%rax,%rsi,4)
	incq	%rsi
	cmpq	%rsi, %rdx
	jne	LBB0_10
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	xorl	%edi, %edi
	testb	$1, %r8b
	jne	LBB0_8
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_MSIX_TABLE_ENTRIES,4,2     ## @MAX_MSIX_TABLE_ENTRIES
	.comm	_MSIX_TABLE_ENTRY_SIZE,4,2      ## @MSIX_TABLE_ENTRY_SIZE
	.comm	_PCIM_MSIX_VCTRL_MASK,4,2       ## @PCIM_MSIX_VCTRL_MASK
	.no_dead_strip	_pci_msix_table_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_msix_table_init
_pci_msix_table_init:                   ; @pci_msix_table_init
	.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, x1
	mov	x20, x0
	cmp	w1, #0
	cset	w0, gt
	bl	_assert
Lloh0:
	adrp	x8, _MAX_MSIX_TABLE_ENTRIES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_MSIX_TABLE_ENTRIES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w19
	cset	w0, ge
	bl	_assert
Lloh3:
	adrp	x8, _MSIX_TABLE_ENTRY_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSIX_TABLE_ENTRY_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mul	w1, w8, w19
	mov	w0, #1
	bl	_calloc
	str	x0, [x20]
	cmp	w19, #1
	b.lt	LBB0_8
; %bb.1:
Lloh6:
	adrp	x8, _PCIM_MSIX_VCTRL_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCIM_MSIX_VCTRL_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mov	w9, w19
	cmp	w19, #16
	b.hs	LBB0_3
; %bb.2:
	mov	x10, #0
	b	LBB0_6
LBB0_3:
	and	x10, x9, #0xfffffff0
	dup.4s	v0, w8
	add	x11, x0, #32
	mov	x12, x10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q1, q2, [x11, #-32]
	ldp	q3, q4, [x11]
	orr.16b	v1, v1, v0
	orr.16b	v2, v2, v0
	orr.16b	v3, v3, v0
	orr.16b	v4, v4, v0
	stp	q1, q2, [x11, #-32]
	stp	q3, q4, [x11], #64
	subs	x12, x12, #16
	b.ne	LBB0_4
; %bb.5:
	cmp	x10, x9
	b.eq	LBB0_8
LBB0_6:
	add	x11, x0, x10, lsl #2
	sub	x9, x9, x10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x11]
	orr	w10, w10, w8
	str	w10, [x11], #4
	subs	x9, x9, #1
	b.ne	LBB0_7
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_MSIX_TABLE_ENTRIES,4,2     ; @MAX_MSIX_TABLE_ENTRIES
	.comm	_MSIX_TABLE_ENTRY_SIZE,4,2      ; @MSIX_TABLE_ENTRY_SIZE
	.comm	_PCIM_MSIX_VCTRL_MASK,4,2       ; @PCIM_MSIX_VCTRL_MASK
	.no_dead_strip	_pci_msix_table_init
.subsections_via_symbols
