	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cap_msix
_cap_msix:                              ## @cap_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%edi, %r14d
	movq	_PCIR_MSIX_CTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	addq	%rbx, %rdx
	movq	%rsi, %r12
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movl	$2, %ecx
	callq	_read_config
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_PCIM_MSIXCTRL_TABLE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	andl	%eax, %r15d
	leal	1(%r15), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_PCIR_MSIX_TABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	addq	%rbx, %rdx
	movl	%r14d, %edi
	movq	%r12, %rsi
	movl	$4, %ecx
	callq	_read_config
	movl	%eax, %r12d
	movq	_PCIM_MSIX_BIR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rax, %r13
	andl	%r12d, %edi
	callq	_PCIR_BAR
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r13), %r13d
	notl	%r13d
	andl	%r12d, %r13d
	movq	_PCIR_MSIX_PBA@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movl	%r14d, %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movl	$4, %ecx
	callq	_read_config
	movl	%eax, %r14d
	movq	_PCIM_MSIX_BIR_MASK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	andl	%eax, %edi
	callq	_PCIR_BAR
	movl	(%rbx), %ebx
	notl	%ebx
	andl	%r14d, %ebx
	testl	%r15d, %r15d
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rsi, %rdx
	movq	_PCIM_MSIXCTRL_MSIX_ENABLE@GOTPCREL(%rip), %rcx
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	andl	(%rcx), %edi
	movl	%eax, %r14d
	leaq	L_.str.3(%rip), %rcx
	cmoveq	%rsi, %rcx
	leaq	L_.str(%rip), %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_printf
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	leaq	L_.str.5(%rip), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	movl	%r14d, %ecx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_printf                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PCIR_MSIX_CTRL,8,3             ## @PCIR_MSIX_CTRL
	.comm	_PCIM_MSIXCTRL_TABLE_SIZE,4,2   ## @PCIM_MSIXCTRL_TABLE_SIZE
	.comm	_PCIR_MSIX_TABLE,8,3            ## @PCIR_MSIX_TABLE
	.comm	_PCIM_MSIX_BIR_MASK,4,2         ## @PCIM_MSIX_BIR_MASK
	.comm	_PCIR_MSIX_PBA,8,3              ## @PCIR_MSIX_PBA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MSI-X supports %d message%s%s\n"

L_.str.1:                               ## @.str.1
	.space	1

L_.str.2:                               ## @.str.2
	.asciz	"s"

	.comm	_PCIM_MSIXCTRL_MSIX_ENABLE,4,2  ## @PCIM_MSIXCTRL_MSIX_ENABLE
L_.str.3:                               ## @.str.3
	.asciz	", enabled"

L_.str.4:                               ## @.str.4
	.asciz	"                 "

L_.str.5:                               ## @.str.5
	.asciz	"Table in map 0x%x[0x%x], PBA in map 0x%x[0x%x]"

	.no_dead_strip	_cap_msix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cap_msix
_cap_msix:                              ; @cap_msix
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _PCIR_MSIX_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCIR_MSIX_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x2, x8, x2
	mov	w3, #2
	bl	_read_config
	mov	x22, x0
Lloh3:
	adrp	x8, _PCIM_MSIXCTRL_TABLE_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCIM_MSIXCTRL_TABLE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w25, [x8]
Lloh6:
	adrp	x8, _PCIR_MSIX_TABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCIR_MSIX_TABLE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x2, x8, x19
	mov	x0, x21
	mov	x1, x20
	mov	w3, #4
	bl	_read_config
	mov	x23, x0
Lloh9:
	adrp	x26, _PCIM_MSIX_BIR_MASK@GOTPAGE
Lloh10:
	ldr	x26, [x26, _PCIM_MSIX_BIR_MASK@GOTPAGEOFF]
	ldr	w8, [x26]
	and	w0, w8, w0
	bl	_PCIR_BAR
	mov	x24, x0
	ldr	w27, [x26]
Lloh11:
	adrp	x8, _PCIR_MSIX_PBA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PCIR_MSIX_PBA@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	add	x2, x8, x19
	mov	x0, x21
	mov	x1, x20
	mov	w3, #4
	bl	_read_config
	mov	x19, x0
	ldr	w8, [x26]
	and	w0, w8, w0
	bl	_PCIR_BAR
	mov	x20, x0
	ands	w8, w25, w22
	add	w8, w8, #1
	bic	w21, w23, w27
	ldr	w9, [x26]
	bic	w19, w19, w9
Lloh14:
	adrp	x9, l_.str.2@PAGE
Lloh15:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh16:
	adrp	x10, l_.str.1@PAGE
Lloh17:
	add	x10, x10, l_.str.1@PAGEOFF
Lloh18:
	adrp	x11, _PCIM_MSIXCTRL_MSIX_ENABLE@GOTPAGE
Lloh19:
	ldr	x11, [x11, _PCIM_MSIXCTRL_MSIX_ENABLE@GOTPAGEOFF]
	csel	x9, x10, x9, eq
Lloh20:
	ldr	w11, [x11]
Lloh21:
	adrp	x12, l_.str.3@PAGE
Lloh22:
	add	x12, x12, l_.str.3@PAGEOFF
	tst	w11, w22
	csel	x10, x10, x12, eq
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh23:
	adrp	x0, l_.str@PAGE
Lloh24:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
Lloh25:
	adrp	x0, l_.str.4@PAGE
Lloh26:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
	stp	x20, x19, [sp, #16]
	stp	x24, x21, [sp]
Lloh27:
	adrp	x0, l_.str.5@PAGE
Lloh28:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_printf
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PCIR_MSIX_CTRL,8,3             ; @PCIR_MSIX_CTRL
	.comm	_PCIM_MSIXCTRL_TABLE_SIZE,4,2   ; @PCIM_MSIXCTRL_TABLE_SIZE
	.comm	_PCIR_MSIX_TABLE,8,3            ; @PCIR_MSIX_TABLE
	.comm	_PCIM_MSIX_BIR_MASK,4,2         ; @PCIM_MSIX_BIR_MASK
	.comm	_PCIR_MSIX_PBA,8,3              ; @PCIR_MSIX_PBA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MSI-X supports %d message%s%s\n"

l_.str.1:                               ; @.str.1
	.space	1

l_.str.2:                               ; @.str.2
	.asciz	"s"

	.comm	_PCIM_MSIXCTRL_MSIX_ENABLE,4,2  ; @PCIM_MSIXCTRL_MSIX_ENABLE
l_.str.3:                               ; @.str.3
	.asciz	", enabled"

l_.str.4:                               ; @.str.4
	.asciz	"                 "

l_.str.5:                               ; @.str.5
	.asciz	"Table in map 0x%x[0x%x], PBA in map 0x%x[0x%x]"

	.no_dead_strip	_cap_msix
.subsections_via_symbols
