	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_generate_msix              ## -- Begin function pci_generate_msix
	.p2align	4, 0x90
_pci_generate_msix:                     ## @pci_generate_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_pci_msix_enabled
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	cmpq	$0, 24(%rbx)
	jne	LBB0_4
## %bb.2:
	cmpl	%r14d, 8(%rbx)
	jle	LBB0_4
## %bb.3:
	movq	16(%rbx), %rax
	movslq	%r14d, %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movq	_PCIM_MSIX_VCTRL_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rax,%rcx,4)
	je	LBB0_5
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movl	(%rbx), %edi
	movl	4(%rax,%rcx,4), %edx
	movl	8(%rax,%rcx,4), %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_vm_lapic_msi                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PCIM_MSIX_VCTRL_MASK,4,2       ## @PCIM_MSIX_VCTRL_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_generate_msix              ; -- Begin function pci_generate_msix
	.p2align	2
_pci_generate_msix:                     ; @pci_generate_msix
	.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	x20, x1
	mov	x19, x0
	bl	_pci_msix_enabled
	cbz	w0, LBB0_4
; %bb.1:
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_4
; %bb.2:
	ldr	w8, [x19, #8]
	cmp	w8, w20
	b.le	LBB0_4
; %bb.3:
	ldr	x8, [x19, #16]
	mov	w9, #12
	smull	x9, w20, w9
	ldr	w9, [x8, x9]
Lloh0:
	adrp	x10, _PCIM_MSIX_VCTRL_MASK@GOTPAGE
Lloh1:
	ldr	x10, [x10, _PCIM_MSIX_VCTRL_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_5
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	sxtw	x9, w20
	ldr	w0, [x19]
	mov	w10, #12
	madd	x8, x9, x10, x8
	ldp	w2, w1, [x8, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_vm_lapic_msi
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PCIM_MSIX_VCTRL_MASK,4,2       ; @PCIM_MSIX_VCTRL_MASK
.subsections_via_symbols
