	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __pci_enable_msix
___pci_enable_msix:                     ## @__pci_enable_msix
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r13d
	movq	%rcx, %rbx
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	%edx, %esi
	callq	_pci_msi_supported
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	%r14, %rdi
	callq	_pci_msix_vec_count
	testl	%eax, %eax
	js	LBB0_2
## %bb.4:
	cmpl	%r15d, %eax
	jge	LBB0_6
## %bb.5:
	movq	_PCI_IRQ_VIRTUAL@GOTPCREL(%rip), %rcx
	testl	%r13d, (%rcx)
	je	LBB0_2
LBB0_6:
	testq	%r12, %r12
	je	LBB0_15
## %bb.7:
	testl	%r15d, %r15d
	jle	LBB0_15
## %bb.8:
	movl	%r15d, %r8d
	xorl	%edx, %edx
	movq	%r8, %rsi
	movq	%r12, %rdi
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=1
	addq	$4, %rdi
	decq	%rsi
	cmpq	%r8, %rdx
	movq	%r9, %rbx
	je	LBB0_15
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	movl	(%r12,%rdx,4), %ecx
	cmpl	%eax, %ecx
	jge	LBB0_1
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %r9
	incq	%rdx
	cmpq	%r8, %rdx
	jae	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	(%rdi,%rbx,4), %ecx
	je	LBB0_1
## %bb.13:                              ##   in Loop: Header=BB0_14 Depth=2
	incq	%rbx
	cmpq	%rbx, %rsi
	jne	LBB0_14
	jmp	LBB0_9
LBB0_15:
	cmpq	$0, (%r14)
	je	LBB0_17
## %bb.16:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_pci_info
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	movq	%rbx, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_msix_capability_init           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PCI_IRQ_VIRTUAL,4,2            ## @PCI_IRQ_VIRTUAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't enable MSI-X (MSI IRQ already assigned)\n"

	.no_dead_strip	___pci_enable_msix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __pci_enable_msix
___pci_enable_msix:                     ; @__pci_enable_msix
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x4
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	mov	x1, x2
	bl	_pci_msi_supported
	cbz	w0, LBB0_14
; %bb.1:
	mov	x0, x21
	bl	_pci_msix_vec_count
	tbnz	w0, #31, LBB0_15
; %bb.2:
	cmp	w0, w20
	b.ge	LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _PCI_IRQ_VIRTUAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_IRQ_VIRTUAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_15
LBB0_4:
	cbz	x22, LBB0_12
; %bb.5:
	cmp	w20, #1
	b.lt	LBB0_12
; %bb.6:
	mov	x8, #0
	add	x9, x22, #4
	mov	w10, #1
	mov	w11, w20
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x10, x10, #1
	add	x9, x9, #4
	cmp	x8, x11
	b.eq	LBB0_12
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	w12, [x22, x8, lsl #2]
	cmp	w12, w0
	b.ge	LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x8, x8, #1
	mov	x13, x11
	mov	x14, x9
	cmp	x8, x11
	b.hs	LBB0_7
LBB0_10:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w15, [x14]
	cmp	w12, w15
	b.eq	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	add	x14, x14, #4
	sub	x13, x13, #1
	cmp	x10, x13
	b.ne	LBB0_10
	b	LBB0_7
LBB0_12:
	ldr	x8, [x21]
	cbz	x8, LBB0_16
; %bb.13:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_pci_info
LBB0_14:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_16:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	mov	x3, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_msix_capability_init
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PCI_IRQ_VIRTUAL,4,2            ; @PCI_IRQ_VIRTUAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't enable MSI-X (MSI IRQ already assigned)\n"

	.no_dead_strip	___pci_enable_msix
.subsections_via_symbols
