	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fire_msiq_common
_fire_msiq_common:                      ## @fire_msiq_common
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	40(%rsi), %r15
	movl	8(%r15), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	(%rsi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	24(%rsi), %rsi
	movq	%r15, %rdi
	callq	_FIRE_PCI_READ_8
	movq	%rax, %rbx
	movq	_FO_PCI_EQ_HD_MASK@GOTPCREL(%rip), %rax
	andq	(%rax), %rbx
	movq	_FO_PCI_EQ_HD_SHFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shrq	%cl, %rbx
	movq	32(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax,%rbx,8), %r13
	movq	_FO_MQR_WORD0_FMT_TYPE_MASK@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	movq	(%rax), %rax
	andq	%r13, %rax
	sete	%dil
	callq	___predict_false
	testq	%rax, %rax
	je	LBB0_1
LBB0_8:
	movq	24(%r12), %rsi
	movq	_FO_PCI_EQ_HD_MASK@GOTPCREL(%rip), %rax
	andq	(%rax), %rbx
	movq	_FO_PCI_EQ_HD_SHFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shlq	%cl, %rbx
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_FIRE_PCI_WRITE_8
	movq	16(%r12), %rsi
	movq	%r15, %rdi
	callq	_FIRE_PCI_READ_8
	movq	_FO_PCI_EQ_TL_OVERR@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	andq	(%rcx), %rax
	setne	%dil
	callq	___predict_false
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	leaq	L_.str.3(%rip), %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_device_printf
	shlq	$3, %rbx
	movq	_FO_PCI_EQ_CTRL_CLR_BASE@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_FIRE_PCI_READ_8
	movq	_FO_PCI_EQ_CTRL_CLR_COVERR@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_FIRE_PCI_WRITE_8               ## TAILCALL
LBB0_1:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rbx,8), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, %rbx
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%r12), %rax
	leaq	(%rax,%rbx,8), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax,%rbx,8), %r13
	xorl	%edi, %edi
	movq	(%rsi), %rax
	andq	%r13, %rax
	sete	%dil
	callq	___predict_false
	testq	%rax, %rax
	jne	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	_FO_MQR_WORD0_FMT_TYPE_MSI64@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_FO_MQR_WORD0_FMT_TYPE_MSI32@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	movq	%r15, %rbx
	xorl	%r15d, %r15d
	testq	%r13, %rax
	setne	%r15b
	movq	%r12, %r14
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edi
	callq	_device_get_nameunit
	movl	%r15d, %edi
	movq	%rbx, %r15
	movq	%r13, %rsi
	callq	_KASSERT
	movq	_FO_MQR_WORD0_DATA0_MASK@GOTPCREL(%rip), %rax
	andq	(%rax), %r13
	movq	_FO_MQR_WORD0_DATA0_SHFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	shrq	%cl, %r13
	xorl	%ebx, %ebx
	cmpq	8(%r14), %r13
	sete	%bl
	movl	%r12d, %edi
	movq	%r14, %r12
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	callq	_device_get_nameunit
	movq	8(%r12), %rsi
	movl	%ebx, %edi
	callq	_KASSERT
	shlq	$3, %r13
	movq	_FO_PCI_MSI_CLR_BASE@GOTPCREL(%rip), %rax
	addq	(%rax), %r13
	movq	_FO_PCI_MSI_CLR_EQWR_N@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_FIRE_PCI_WRITE_8
	movl	(%r14), %edi
	xorl	%esi, %esi
	callq	_intr_event_handle
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	___predict_false
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.2(%rip), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_printf
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_FO_MQR_WORD0_FMT_TYPE_MASK@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rax
	notq	%rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	andq	%rax, (%rcx)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	incq	%rax
	movq	(%r15), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %ebx
	jmp	LBB0_7
LBB0_9:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FO_PCI_EQ_HD_MASK,8,3          ## @FO_PCI_EQ_HD_MASK
	.comm	_FO_PCI_EQ_HD_SHFT,8,3          ## @FO_PCI_EQ_HD_SHFT
	.comm	_FO_MQR_WORD0_FMT_TYPE_MASK,8,3 ## @FO_MQR_WORD0_FMT_TYPE_MASK
	.comm	_FO_MQR_WORD0_FMT_TYPE_MSI64,8,3 ## @FO_MQR_WORD0_FMT_TYPE_MSI64
	.comm	_FO_MQR_WORD0_FMT_TYPE_MSI32,8,3 ## @FO_MQR_WORD0_FMT_TYPE_MSI32
	.comm	_FO_MQR_WORD0_DATA0_MASK,8,3    ## @FO_MQR_WORD0_DATA0_MASK
	.comm	_FO_MQR_WORD0_DATA0_SHFT,8,3    ## @FO_MQR_WORD0_DATA0_SHFT
	.comm	_FO_PCI_MSI_CLR_BASE,8,3        ## @FO_PCI_MSI_CLR_BASE
	.comm	_FO_PCI_MSI_CLR_EQWR_N,8,3      ## @FO_PCI_MSI_CLR_EQWR_N
	.section	__TEXT,__cstring,cstring_literals
L_.str.2:                               ## @.str.2
	.asciz	"stray MSI/MSI-X in event queue %d\n"

	.comm	_FO_PCI_EQ_TL_OVERR,8,3         ## @FO_PCI_EQ_TL_OVERR
L_.str.3:                               ## @.str.3
	.asciz	"event queue %d overflow\n"

	.comm	_FO_PCI_EQ_CTRL_CLR_BASE,8,3    ## @FO_PCI_EQ_CTRL_CLR_BASE
	.comm	_FO_PCI_EQ_CTRL_CLR_COVERR,8,3  ## @FO_PCI_EQ_CTRL_CLR_COVERR
	.no_dead_strip	_fire_msiq_common
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fire_msiq_common
_fire_msiq_common:                      ; @fire_msiq_common
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x22, x1
	mov	x23, x0
	ldr	x19, [x1, #40]
	ldr	w21, [x19, #8]
	ldr	x8, [x1]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	ldr	x1, [x1, #24]
	mov	x0, x19
	bl	_FIRE_PCI_READ_8
Lloh0:
	adrp	x8, _FO_PCI_EQ_HD_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FO_PCI_EQ_HD_MASK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	and	x8, x8, x0
Lloh3:
	adrp	x9, _FO_PCI_EQ_HD_SHFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FO_PCI_EQ_HD_SHFT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	lsr	x27, x8, x9
	ldr	x8, [x22, #32]
	add	x24, x8, x27, lsl #3
	ldr	x25, [x24]
Lloh6:
	adrp	x28, _FO_MQR_WORD0_FMT_TYPE_MASK@GOTPAGE
Lloh7:
	ldr	x28, [x28, _FO_MQR_WORD0_FMT_TYPE_MASK@GOTPAGEOFF]
	ldr	x8, [x28]
	tst	x8, x25
	cset	w0, eq
	bl	___predict_false
	cbz	x0, LBB0_3
LBB0_1:
	ldr	x1, [x22, #24]
Lloh8:
	adrp	x8, _FO_PCI_EQ_HD_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FO_PCI_EQ_HD_MASK@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	and	x8, x8, x27
Lloh11:
	adrp	x9, _FO_PCI_EQ_HD_SHFT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _FO_PCI_EQ_HD_SHFT@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	lsl	x2, x8, x9
	mov	x0, x19
	bl	_FIRE_PCI_WRITE_8
	ldr	x1, [x22, #16]
	mov	x0, x19
	bl	_FIRE_PCI_READ_8
Lloh14:
	adrp	x8, _FO_PCI_EQ_TL_OVERR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FO_PCI_EQ_TL_OVERR@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	tst	x8, x0
	cset	w0, ne
	bl	___predict_false
	cbz	x0, LBB0_7
; %bb.2:
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	ldr	x20, [sp, #8]                   ; 8-byte Folded Reload
	mov	x2, x20
	bl	_device_printf
Lloh19:
	adrp	x8, _FO_PCI_EQ_CTRL_CLR_BASE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _FO_PCI_EQ_CTRL_CLR_BASE@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	add	x20, x8, x20, lsl #3
	mov	x0, x19
	mov	x1, x20
	bl	_FIRE_PCI_READ_8
Lloh22:
	adrp	x8, _FO_PCI_EQ_CTRL_CLR_COVERR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _FO_PCI_EQ_CTRL_CLR_COVERR@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	orr	x2, x8, x0
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_FIRE_PCI_WRITE_8
LBB0_3:
Lloh25:
	adrp	x20, _FO_PCI_MSI_CLR_EQWR_N@GOTPAGE
Lloh26:
	ldr	x20, [x20, _FO_PCI_MSI_CLR_EQWR_N@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x28]
	ldr	x9, [x24]
	bic	x8, x9, x8
	str	x8, [x24]
	add	x8, x27, #1
	ldr	x9, [x19]
	udiv	x10, x8, x9
	msub	x27, x10, x9, x8
	ldr	x8, [x22, #32]
	add	x24, x8, x27, lsl #3
	ldr	x25, [x24]
	ldr	x8, [x28]
	tst	x8, x25
	cset	w0, eq
	bl	___predict_false
	cbnz	x0, LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
Lloh27:
	adrp	x8, _FO_MQR_WORD0_FMT_TYPE_MSI64@GOTPAGE
Lloh28:
	ldr	x8, [x8, _FO_MQR_WORD0_FMT_TYPE_MSI64@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
Lloh30:
	adrp	x9, _FO_MQR_WORD0_FMT_TYPE_MSI32@GOTPAGE
Lloh31:
	ldr	x9, [x9, _FO_MQR_WORD0_FMT_TYPE_MSI32@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	orr	x8, x8, x9
	tst	x8, x25
	cset	w26, ne
	mov	x0, x21
	bl	_device_get_nameunit
	mov	x0, x26
	mov	x1, x25
	bl	_KASSERT
Lloh33:
	adrp	x8, _FO_MQR_WORD0_DATA0_MASK@GOTPAGE
Lloh34:
	ldr	x8, [x8, _FO_MQR_WORD0_DATA0_MASK@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	and	x8, x8, x25
Lloh36:
	adrp	x9, _FO_MQR_WORD0_DATA0_SHFT@GOTPAGE
Lloh37:
	ldr	x9, [x9, _FO_MQR_WORD0_DATA0_SHFT@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	lsr	x26, x8, x9
	ldr	x8, [x22, #8]
	cmp	x26, x8
	cset	w25, eq
	mov	x0, x21
	bl	_device_get_nameunit
	ldr	x1, [x22, #8]
	mov	x0, x25
	bl	_KASSERT
Lloh39:
	adrp	x8, _FO_PCI_MSI_CLR_BASE@GOTPAGE
Lloh40:
	ldr	x8, [x8, _FO_PCI_MSI_CLR_BASE@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
	add	x1, x8, x26, lsl #3
	ldr	x2, [x20]
	mov	x0, x19
	bl	_FIRE_PCI_WRITE_8
	ldr	w0, [x23]
	mov	x1, #0
	bl	_intr_event_handle
	cmp	x0, #0
	cset	w0, ne
	bl	___predict_false
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh42:
	adrp	x0, l_.str.2@PAGE
Lloh43:
	add	x0, x0, l_.str.2@PAGEOFF
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	bl	_printf
	b	LBB0_4
LBB0_7:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_FO_PCI_EQ_HD_MASK,8,3          ; @FO_PCI_EQ_HD_MASK
	.comm	_FO_PCI_EQ_HD_SHFT,8,3          ; @FO_PCI_EQ_HD_SHFT
	.comm	_FO_MQR_WORD0_FMT_TYPE_MASK,8,3 ; @FO_MQR_WORD0_FMT_TYPE_MASK
	.comm	_FO_MQR_WORD0_FMT_TYPE_MSI64,8,3 ; @FO_MQR_WORD0_FMT_TYPE_MSI64
	.comm	_FO_MQR_WORD0_FMT_TYPE_MSI32,8,3 ; @FO_MQR_WORD0_FMT_TYPE_MSI32
	.comm	_FO_MQR_WORD0_DATA0_MASK,8,3    ; @FO_MQR_WORD0_DATA0_MASK
	.comm	_FO_MQR_WORD0_DATA0_SHFT,8,3    ; @FO_MQR_WORD0_DATA0_SHFT
	.comm	_FO_PCI_MSI_CLR_BASE,8,3        ; @FO_PCI_MSI_CLR_BASE
	.comm	_FO_PCI_MSI_CLR_EQWR_N,8,3      ; @FO_PCI_MSI_CLR_EQWR_N
	.section	__TEXT,__cstring,cstring_literals
l_.str.2:                               ; @.str.2
	.asciz	"stray MSI/MSI-X in event queue %d\n"

	.comm	_FO_PCI_EQ_TL_OVERR,8,3         ; @FO_PCI_EQ_TL_OVERR
l_.str.3:                               ; @.str.3
	.asciz	"event queue %d overflow\n"

	.comm	_FO_PCI_EQ_CTRL_CLR_BASE,8,3    ; @FO_PCI_EQ_CTRL_CLR_BASE
	.comm	_FO_PCI_EQ_CTRL_CLR_COVERR,8,3  ; @FO_PCI_EQ_CTRL_CLR_COVERR
	.no_dead_strip	_fire_msiq_common
.subsections_via_symbols
