	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msix_initialize                ## -- Begin function msix_initialize
	.p2align	4, 0x90
_msix_initialize:                       ## @msix_initialize
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	16(%rdi), %rcx
	addq	8(%rdi), %rax
	leaq	(%rcx,%rax), %r14
	incq	%r14
	movq	_CCE_NUM_MSIX_VECTORS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jge	LBB0_1
## %bb.3:
	movq	%rdi, %r15
	movl	48(%rdi), %edi
	movq	_PCI_IRQ_MSIX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rsi
	movq	%r14, %rdx
	callq	_pci_alloc_irq_vectors
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, 40(%r15)
	leaq	36(%r15), %rdi
	callq	_spin_lock_init
	movl	32(%r15), %edi
	movq	%r14, %rsi
	callq	_bitmap_zero
	movq	%r14, 24(%r15)
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_dd_dev_info
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dd_dev_err
	jmp	LBB0_8
LBB0_6:
	movl	48(%r15), %edi
	callq	_pci_free_irq_vectors
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CCE_NUM_MSIX_VECTORS,8,3       ## @CCE_NUM_MSIX_VECTORS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PCI_IRQ_MSIX,4,2               ## @PCI_IRQ_MSIX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pci_alloc_irq_vectors() failed: %d\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"%u MSI-X interrupts allocated\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msix_initialize                ; -- Begin function msix_initialize
	.p2align	2
_msix_initialize:                       ; @msix_initialize
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldp	x8, x9, [x0]
	ldr	x10, [x0, #16]
	add	x8, x8, x9
	add	x8, x8, x10
	add	x20, x8, #1
Lloh0:
	adrp	x8, _CCE_NUM_MSIX_VECTORS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CCE_NUM_MSIX_VECTORS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x20, x8
	b.ge	LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #48]
Lloh3:
	adrp	x8, _PCI_IRQ_MSIX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_IRQ_MSIX@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x1, x20
	mov	x2, x20
	bl	_pci_alloc_irq_vectors
	tbnz	w0, #31, LBB0_5
; %bb.2:
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #4
	bl	_kcalloc
	cbz	x0, LBB0_6
; %bb.3:
	str	x0, [x19, #40]
	add	x0, x19, #36
	bl	_spin_lock_init
	ldr	w0, [x19, #32]
	mov	x1, x20
	bl	_bitmap_zero
	str	x20, [x19, #24]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dd_dev_info
	mov	w21, #0
	b	LBB0_8
LBB0_4:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	mov	x21, x0
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dd_dev_err
	b	LBB0_8
LBB0_6:
	ldr	w0, [x19, #48]
	bl	_pci_free_irq_vectors
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_CCE_NUM_MSIX_VECTORS,8,3       ; @CCE_NUM_MSIX_VECTORS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PCI_IRQ_MSIX,4,2               ; @PCI_IRQ_MSIX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pci_alloc_irq_vectors() failed: %d\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"%u MSI-X interrupts allocated\n"

.subsections_via_symbols
