	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msi_bus_store
_msi_bus_store:                         ## @msi_bus_store
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %rbx
	callq	_to_pci_dev
	movq	%rax, %r12
	movq	8(%rax), %r14
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_kstrtoul
	testq	%rax, %rax
	js	LBB0_1
## %bb.3:
	movq	_CAP_SYS_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	-40(%rbp), %rax
	testq	%r14, %r14
	je	LBB0_6
## %bb.7:
	movq	_PCI_BUS_FLAGS_NO_MSI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	notl	%ecx
	andl	%ecx, 4(%r14)
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_10
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_EPERM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r15d, %r15d
	subq	(%rax), %r15
	jmp	LBB0_11
LBB0_6:
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	movl	%ecx, (%r12)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_pci_info
	jmp	LBB0_11
LBB0_9:
	orl	%ecx, 4(%r14)
	leaq	L_.str.2(%rip), %rdx
LBB0_10:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
LBB0_11:
	movq	%r15, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_CAP_SYS_ADMIN,4,2              ## @CAP_SYS_ADMIN
	.comm	_EPERM,8,3                      ## @EPERM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MSI/MSI-X %s for future drivers\n"

L_.str.1:                               ## @.str.1
	.asciz	"allowed"

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

	.comm	_PCI_BUS_FLAGS_NO_MSI,4,2       ## @PCI_BUS_FLAGS_NO_MSI
L_.str.3:                               ## @.str.3
	.asciz	"MSI/MSI-X %s for future drivers of devices on this bus\n"

	.no_dead_strip	_msi_bus_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msi_bus_store
_msi_bus_store:                         ; @msi_bus_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x3
	mov	x22, x2
	bl	_to_pci_dev
	mov	x21, x0
	ldr	x20, [x0, #8]
	add	x2, sp, #8
	mov	x0, x22
	mov	w1, #0
	bl	_kstrtoul
	tbnz	x0, #63, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _CAP_SYS_ADMIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAP_SYS_ADMIN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_6
; %bb.2:
	ldr	x8, [sp, #8]
	cbz	x20, LBB0_8
; %bb.3:
Lloh3:
	adrp	x9, _PCI_BUS_FLAGS_NO_MSI@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PCI_BUS_FLAGS_NO_MSI@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cbz	x8, LBB0_9
; %bb.4:
	ldr	w8, [x20, #4]
	bic	w8, w8, w9
	str	w8, [x20, #4]
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_5:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh10:
	adrp	x8, _EPERM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
LBB0_7:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_11
LBB0_8:
Lloh12:
	adrp	x9, l_.str.1@PAGE
Lloh13:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh14:
	adrp	x10, l_.str.2@PAGE
Lloh15:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	x8, #0
	csel	x2, x10, x9, eq
	cset	w8, eq
	str	w8, [x21]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_pci_info
	b	LBB0_11
LBB0_9:
	ldr	w8, [x20, #4]
	orr	w8, w8, w9
	str	w8, [x20, #4]
Lloh18:
	adrp	x2, l_.str.2@PAGE
Lloh19:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_10:
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_info
LBB0_11:
	mov	x0, 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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_CAP_SYS_ADMIN,4,2              ; @CAP_SYS_ADMIN
	.comm	_EPERM,8,3                      ; @EPERM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MSI/MSI-X %s for future drivers\n"

l_.str.1:                               ; @.str.1
	.asciz	"allowed"

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

	.comm	_PCI_BUS_FLAGS_NO_MSI,4,2       ; @PCI_BUS_FLAGS_NO_MSI
l_.str.3:                               ; @.str.3
	.asciz	"MSI/MSI-X %s for future drivers of devices on this bus\n"

	.no_dead_strip	_msi_bus_store
.subsections_via_symbols
