	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fire_pcie
_fire_pcie:                             ## @fire_pcie
	.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	%rdi, %rbx
	movq	(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	40(%rdi), %r12
	movl	8(%r12), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	addq	$8, %rdi
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	callq	_mtx_lock_spin
	movq	24(%rbx), %rsi
	movq	%r12, %rdi
	callq	_FIRE_PCI_READ_8
	movq	%rax, %r14
	movq	_FO_PCI_EQ_HD_MASK@GOTPCREL(%rip), %rax
	andq	(%rax), %r14
	movq	_FO_PCI_EQ_HD_SHFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shrq	%cl, %r14
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	32(%rbx), %rax
	leaq	(%rax,%r14,8), %rbx
	movq	(%rax,%r14,8), %r15
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rax
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, %r14
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	32(%rax), %rax
	leaq	(%rax,%r14,8), %rbx
	movq	(%rax,%r14,8), %r15
	xorl	%edi, %edi
	movq	(%rsi), %rax
	andq	%r15, %rax
	sete	%dil
	callq	___predict_true
	testq	%rax, %rax
	jne	LBB0_11
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%r12d, %r12d
	movq	_FO_MQR_WORD0_FMT_TYPE_MSG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	andq	%r15, %rax
	setne	%r12b
	movl	%r13d, %edi
	callq	_device_get_nameunit
	movl	%r12d, %edi
	movq	%r15, %rsi
	callq	_KASSERT
	movq	_FO_MQR_WORD0_DATA0_MASK@GOTPCREL(%rip), %rax
	andq	(%rax), %r15
	movq	_FO_MQR_WORD0_DATA0_SHFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	shrq	%cl, %r15
	cmpq	$48, %r15
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r13d, %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_device_printf
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rax
	andq	$-3, %rax
	cmpq	$49, %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_device_get_nameunit
	cmpq	$49, %r15
	leaq	L_.str.4(%rip), %rdx
	leaq	L_.str.3(%rip), %rcx
	cmoveq	%rcx, %rdx
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_device_get_nameunit
	leaq	L_.str.5(%rip), %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_panic
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	_FO_MQR_WORD0_FMT_TYPE_MASK@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rax
	notq	%rax
	andq	%rax, (%rbx)
	incq	%r14
	movq	(%r12), %rcx
	movq	%r14, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %r14d
	jmp	LBB0_10
LBB0_11:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	24(%rbx), %rsi
	movq	_FO_PCI_EQ_HD_MASK@GOTPCREL(%rip), %rax
	andq	(%rax), %r14
	movq	_FO_PCI_EQ_HD_SHFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shlq	%cl, %r14
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_FIRE_PCI_WRITE_8
	movq	16(%rbx), %rsi
	movq	%r12, %rdi
	callq	_FIRE_PCI_READ_8
	movq	_FO_PCI_EQ_TL_OVERR@GOTPCREL(%rip), %rcx
	testq	%rax, (%rcx)
	je	LBB0_13
## %bb.12:
	leaq	L_.str.6(%rip), %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_device_printf
	shlq	$3, %r14
	movq	_FO_PCI_EQ_CTRL_CLR_BASE@GOTPCREL(%rip), %rax
	addq	(%rax), %r14
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_FIRE_PCI_READ_8
	movq	_FO_PCI_EQ_CTRL_CLR_COVERR@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_FIRE_PCI_WRITE_8
LBB0_13:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_mtx_unlock_spin
	movq	_FILTER_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	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_MSG,8,3  ## @FO_MQR_WORD0_FMT_TYPE_MSG
	.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
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"correctable PCIe error\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s: %sfatal PCIe error"

L_.str.3:                               ## @.str.3
	.asciz	"non-"

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

L_.str.5:                               ## @.str.5
	.asciz	"%s: received unknown PCIe message %#x"

	.comm	_FO_MQR_WORD0_FMT_TYPE_MASK,8,3 ## @FO_MQR_WORD0_FMT_TYPE_MASK
	.comm	_FO_PCI_EQ_TL_OVERR,8,3         ## @FO_PCI_EQ_TL_OVERR
L_.str.6:                               ## @.str.6
	.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
	.comm	_FILTER_HANDLED,4,2             ## @FILTER_HANDLED
	.comm	_PCIE_MSG_CODE_ERR_COR,8,3      ## @PCIE_MSG_CODE_ERR_COR
	.comm	_PCIE_MSG_CODE_ERR_FATAL,8,3    ## @PCIE_MSG_CODE_ERR_FATAL
	.comm	_PCIE_MSG_CODE_ERR_NONFATAL,8,3 ## @PCIE_MSG_CODE_ERR_NONFATAL
	.no_dead_strip	_fire_pcie
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fire_pcie
_fire_pcie:                             ; @fire_pcie
	.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	x22, x0
	ldr	x20, [x0, #40]
	ldr	w21, [x20, #8]
	ldr	x8, [x0], #8
	stp	x8, x0, [sp, #16]               ; 16-byte Folded Spill
	bl	_mtx_lock_spin
	ldr	x1, [x22, #24]
	mov	x0, x20
	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]
Lloh3:
	adrp	x9, _FO_PCI_EQ_HD_SHFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FO_PCI_EQ_HD_SHFT@GOTPAGEOFF]
	and	x8, x8, x0
Lloh5:
	ldr	x9, [x9]
	lsr	x28, x8, x9
	ldr	x8, [x22, #32]
Lloh6:
	adrp	x24, _FO_MQR_WORD0_DATA0_MASK@GOTPAGE
Lloh7:
	ldr	x24, [x24, _FO_MQR_WORD0_DATA0_MASK@GOTPAGEOFF]
Lloh8:
	adrp	x25, _FO_MQR_WORD0_DATA0_SHFT@GOTPAGE
Lloh9:
	ldr	x25, [x25, _FO_MQR_WORD0_DATA0_SHFT@GOTPAGEOFF]
	add	x19, x8, x28, lsl #3
Lloh10:
	adrp	x23, _FO_MQR_WORD0_FMT_TYPE_MASK@GOTPAGE
Lloh11:
	ldr	x23, [x23, _FO_MQR_WORD0_FMT_TYPE_MASK@GOTPAGEOFF]
	ldr	x26, [x19]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_device_printf
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x23]
	ldr	x9, [x19]
	bic	x8, x9, x8
	str	x8, [x19]
	add	x8, x28, #1
	ldr	x9, [x20]
	udiv	x10, x8, x9
	msub	x28, x10, x9, x8
	ldr	x8, [x22, #32]
	add	x19, x8, x28, lsl #3
	ldr	x26, [x19]
	ldr	x8, [x23]
	tst	x8, x26
	cset	w0, eq
	bl	___predict_true
	cbnz	x0, LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
Lloh14:
	adrp	x8, _FO_MQR_WORD0_FMT_TYPE_MSG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FO_MQR_WORD0_FMT_TYPE_MSG@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	tst	x8, x26
	cset	w27, ne
	mov	x0, x21
	bl	_device_get_nameunit
	mov	x0, x27
	mov	x1, x26
	bl	_KASSERT
	ldr	x8, [x24]
	and	x8, x8, x26
	ldr	x9, [x25]
	lsr	x26, x8, x9
	cmp	x26, #48
	b.eq	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	and	x8, x26, #0xfffffffffffffffd
	mov	x0, x21
	cmp	x8, #49
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_device_get_nameunit
	mov	x1, x0
	cmp	x26, #49
Lloh17:
	adrp	x8, l_.str.4@PAGE
Lloh18:
	add	x8, x8, l_.str.4@PAGEOFF
Lloh19:
	adrp	x9, l_.str.3@PAGE
Lloh20:
	add	x9, x9, l_.str.3@PAGEOFF
	csel	x8, x9, x8, eq
	str	x8, [sp]
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_device_get_nameunit
	mov	x1, x0
	str	x26, [sp]
Lloh23:
	adrp	x0, l_.str.5@PAGE
Lloh24:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_panic
	b	LBB0_2
LBB0_8:
	ldr	x1, [x22, #24]
Lloh25:
	adrp	x8, _FO_PCI_EQ_HD_MASK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _FO_PCI_EQ_HD_MASK@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	and	x8, x8, x28
Lloh28:
	adrp	x9, _FO_PCI_EQ_HD_SHFT@GOTPAGE
Lloh29:
	ldr	x9, [x9, _FO_PCI_EQ_HD_SHFT@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	lsl	x2, x8, x9
	mov	x0, x20
	bl	_FIRE_PCI_WRITE_8
	ldr	x1, [x22, #16]
	mov	x0, x20
	bl	_FIRE_PCI_READ_8
Lloh31:
	adrp	x8, _FO_PCI_EQ_TL_OVERR@GOTPAGE
Lloh32:
	ldr	x8, [x8, _FO_PCI_EQ_TL_OVERR@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	tst	x8, x0
	b.eq	LBB0_10
; %bb.9:
	ldr	x19, [sp, #16]                  ; 8-byte Folded Reload
	str	x19, [sp]
Lloh34:
	adrp	x1, l_.str.6@PAGE
Lloh35:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_device_printf
Lloh36:
	adrp	x8, _FO_PCI_EQ_CTRL_CLR_BASE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _FO_PCI_EQ_CTRL_CLR_BASE@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	add	x21, x8, x19, lsl #3
	mov	x0, x20
	mov	x1, x21
	bl	_FIRE_PCI_READ_8
Lloh39:
	adrp	x8, _FO_PCI_EQ_CTRL_CLR_COVERR@GOTPAGE
Lloh40:
	ldr	x8, [x8, _FO_PCI_EQ_CTRL_CLR_COVERR@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
	orr	x2, x8, x0
	mov	x0, x20
	mov	x1, x21
	bl	_FIRE_PCI_WRITE_8
LBB0_10:
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	bl	_mtx_unlock_spin
Lloh42:
	adrp	x8, _FILTER_HANDLED@GOTPAGE
Lloh43:
	ldr	x8, [x8, _FILTER_HANDLED@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.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_MSG,8,3  ; @FO_MQR_WORD0_FMT_TYPE_MSG
	.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
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"correctable PCIe error\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s: %sfatal PCIe error"

l_.str.3:                               ; @.str.3
	.asciz	"non-"

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

l_.str.5:                               ; @.str.5
	.asciz	"%s: received unknown PCIe message %#x"

	.comm	_FO_MQR_WORD0_FMT_TYPE_MASK,8,3 ; @FO_MQR_WORD0_FMT_TYPE_MASK
	.comm	_FO_PCI_EQ_TL_OVERR,8,3         ; @FO_PCI_EQ_TL_OVERR
l_.str.6:                               ; @.str.6
	.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
	.comm	_FILTER_HANDLED,4,2             ; @FILTER_HANDLED
	.comm	_PCIE_MSG_CODE_ERR_COR,8,3      ; @PCIE_MSG_CODE_ERR_COR
	.comm	_PCIE_MSG_CODE_ERR_FATAL,8,3    ; @PCIE_MSG_CODE_ERR_FATAL
	.comm	_PCIE_MSG_CODE_ERR_NONFATAL,8,3 ; @PCIE_MSG_CODE_ERR_NONFATAL
	.no_dead_strip	_fire_pcie
.subsections_via_symbols
