	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_msi_shutdown
_pci_msi_shutdown:                      ## @pci_msi_shutdown
	.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
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	_pci_msi_enable@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movq	%rdi, %rbx
	cmpq	$0, 8(%rdi)
	je	LBB0_3
## %bb.4:
	leaq	16(%rbx), %rdi
	callq	_dev_to_msi_list
	movl	%eax, %edi
	callq	_list_empty
	movl	%eax, %edi
	callq	_BUG_ON
	movq	%rbx, %rdi
	callq	_first_pci_msi_entry
	movq	%rax, %r14
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_pci_msi_set_enable
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_pci_intx_for_msi
	movq	$0, 8(%rbx)
	movl	4(%r14), %edi
	callq	_msi_mask
	movl	%eax, %edx
	notl	%edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	___pci_msi_desc_mask_irq
	movl	(%r14), %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_pcibios_alloc_irq              ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pci_msi_enable,4,2             ## @pci_msi_enable
	.no_dead_strip	_pci_msi_shutdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_msi_shutdown
_pci_msi_shutdown:                      ; @pci_msi_shutdown
	.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
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _pci_msi_enable@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pci_msi_enable@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_4
; %bb.2:
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_4
; %bb.3:
	add	x0, x19, #16
	bl	_dev_to_msi_list
	bl	_list_empty
	bl	_BUG_ON
	mov	x0, x19
	bl	_first_pci_msi_entry
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	bl	_pci_msi_set_enable
	mov	x0, x19
	mov	w1, #1
	bl	_pci_intx_for_msi
	str	xzr, [x19, #8]
	ldr	w0, [x20, #4]
	bl	_msi_mask
	mov	x1, x0
	mvn	w2, w0
	mov	x0, x20
	bl	___pci_msi_desc_mask_irq
	ldr	w8, [x20]
	str	w8, [x19]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pcibios_alloc_irq
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_pci_msi_enable,4,2             ; @pci_msi_enable
	.no_dead_strip	_pci_msi_shutdown
.subsections_via_symbols
