	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpc_handler
_dpc_handler:                           ## @dpc_handler
	.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	%rsi, %r14
	movq	16(%rsi), %rax
	movq	(%rax), %r15
	movl	(%rsi), %ebx
	movq	_PCI_EXP_DPC_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%ebx, %esi
	leaq	-52(%rbp), %rdx
	movq	%r15, %rdi
	callq	_pci_read_config_word
	movq	_PCI_EXP_DPC_SOURCE_ID@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	leaq	-56(%rbp), %rdx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_pci_read_config_word
	movl	-52(%rbp), %edx
	movl	-56(%rbp), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_pci_info
	movl	-52(%rbp), %r12d
	movq	_PCI_EXP_DPC_STATUS_TRIGGER_RSN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	%r12d, %ebx
	movl	%ebx, %r13d
	sarl	%r13d
	movq	_PCI_EXP_DPC_STATUS_TRIGGER_RSN_EXT@GOTPCREL(%rip), %rax
	andl	(%rax), %r12d
	cmpl	$2, %ebx
	jae	LBB0_2
## %bb.1:
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_9
LBB0_2:
	cmpl	$1, %r13d
	je	LBB0_3
## %bb.4:
	cmpl	$2, %r13d
	jne	LBB0_5
## %bb.8:
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_9
LBB0_3:
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_9
LBB0_5:
	cmpl	$32, %r12d
	jae	LBB0_7
## %bb.6:
	leaq	L_.str.5(%rip), %rdx
	jmp	LBB0_9
LBB0_7:
	movl	%r12d, %eax
	andl	$-32, %eax
	cmpl	$32, %eax
	leaq	L_.str.6(%rip), %rax
	leaq	L_.str.7(%rip), %rdx
	cmoveq	%rax, %rdx
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_pci_warn
	cmpq	$0, 8(%r14)
	je	LBB0_13
## %bb.10:
	cmpl	$3, %r13d
	jne	LBB0_13
## %bb.11:
	cmpl	$31, %r12d
	ja	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	callq	_dpc_process_rp_pio_error
	jmp	LBB0_17
LBB0_13:
	cmpl	$1, %ebx
	ja	LBB0_17
## %bb.14:
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_dpc_get_aer_uncorrect_severity
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_aer_get_device_error_info
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_aer_print_error
	movq	%r15, %rdi
	callq	_pci_cleanup_aer_uncorrect_error_status
	movq	%r15, %rdi
	callq	_pci_aer_clear_fatal_status
LBB0_17:
	movq	_pci_channel_io_frozen@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PCIE_PORT_SERVICE_DPC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_pcie_do_recovery
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_EXP_DPC_STATUS,4,2         ## @PCI_EXP_DPC_STATUS
	.comm	_PCI_EXP_DPC_SOURCE_ID,4,2      ## @PCI_EXP_DPC_SOURCE_ID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"containment event, status:%#06x source:%#06x\n"

	.comm	_PCI_EXP_DPC_STATUS_TRIGGER_RSN,4,2 ## @PCI_EXP_DPC_STATUS_TRIGGER_RSN
	.comm	_PCI_EXP_DPC_STATUS_TRIGGER_RSN_EXT,4,2 ## @PCI_EXP_DPC_STATUS_TRIGGER_RSN_EXT
L_.str.1:                               ## @.str.1
	.asciz	"%s detected\n"

L_.str.2:                               ## @.str.2
	.asciz	"unmasked uncorrectable error"

L_.str.3:                               ## @.str.3
	.asciz	"ERR_NONFATAL"

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

L_.str.5:                               ## @.str.5
	.asciz	"RP PIO error"

L_.str.6:                               ## @.str.6
	.asciz	"software trigger"

L_.str.7:                               ## @.str.7
	.asciz	"reserved error"

	.comm	_pci_channel_io_frozen,4,2      ## @pci_channel_io_frozen
	.comm	_PCIE_PORT_SERVICE_DPC,4,2      ## @PCIE_PORT_SERVICE_DPC
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_dpc_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpc_handler
_dpc_handler:                           ; @dpc_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	ldr	x8, [x1, #16]
	ldr	x19, [x8]
	ldr	w21, [x1]
Lloh0:
	adrp	x8, _PCI_EXP_DPC_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_EXP_DPC_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w1, w8, w21
	add	x2, sp, #4
	mov	x0, x19
	bl	_pci_read_config_word
Lloh3:
	adrp	x8, _PCI_EXP_DPC_SOURCE_ID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_EXP_DPC_SOURCE_ID@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w1, w8, w21
	mov	x2, sp
	mov	x0, x19
	bl	_pci_read_config_word
	ldp	w3, w2, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_pci_info
	ldr	w8, [sp, #4]
Lloh8:
	adrp	x9, _PCI_EXP_DPC_STATUS_TRIGGER_RSN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PCI_EXP_DPC_STATUS_TRIGGER_RSN@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	and	w21, w9, w8
	asr	w22, w21, #1
Lloh11:
	adrp	x9, _PCI_EXP_DPC_STATUS_TRIGGER_RSN_EXT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PCI_EXP_DPC_STATUS_TRIGGER_RSN_EXT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	and	w23, w9, w8
	cmp	w21, #2
	b.hs	LBB0_2
; %bb.1:
Lloh14:
	adrp	x2, l_.str.2@PAGE
Lloh15:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_3
LBB0_2:
Lloh16:
	adrp	x8, l_.str.3@PAGE
Lloh17:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh18:
	adrp	x9, l_.str.4@PAGE
Lloh19:
	add	x9, x9, l_.str.4@PAGEOFF
Lloh20:
	adrp	x10, l_.str.5@PAGE
Lloh21:
	add	x10, x10, l_.str.5@PAGEOFF
	and	w11, w23, #0xffffffe0
Lloh22:
	adrp	x12, l_.str.7@PAGE
Lloh23:
	add	x12, x12, l_.str.7@PAGEOFF
Lloh24:
	adrp	x13, l_.str.6@PAGE
Lloh25:
	add	x13, x13, l_.str.6@PAGEOFF
	cmp	w11, #32
	csel	x11, x13, x12, eq
	cmp	w23, #32
	csel	x10, x10, x11, lo
	cmp	w22, #2
	csel	x9, x9, x10, eq
	cmp	w22, #1
	csel	x2, x8, x9, eq
LBB0_3:
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_pci_warn
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_6
; %bb.4:
	cmp	w22, #3
	ccmp	w23, #31, #2, eq
	b.hi	LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_dpc_process_rp_pio_error
	b	LBB0_10
LBB0_6:
	cmp	w21, #1
	b.hi	LBB0_10
; %bb.7:
	add	x1, sp, #8
	mov	x0, x19
	bl	_dpc_get_aer_uncorrect_severity
	cbz	x0, LBB0_10
; %bb.8:
	add	x1, sp, #8
	mov	x0, x19
	bl	_aer_get_device_error_info
	cbz	x0, LBB0_10
; %bb.9:
	add	x1, sp, #8
	mov	x0, x19
	bl	_aer_print_error
	mov	x0, x19
	bl	_pci_cleanup_aer_uncorrect_error_status
	mov	x0, x19
	bl	_pci_aer_clear_fatal_status
LBB0_10:
Lloh28:
	adrp	x8, _pci_channel_io_frozen@GOTPAGE
Lloh29:
	ldr	x8, [x8, _pci_channel_io_frozen@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
Lloh31:
	adrp	x8, _PCIE_PORT_SERVICE_DPC@GOTPAGE
Lloh32:
	ldr	x8, [x8, _PCIE_PORT_SERVICE_DPC@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_pcie_do_recovery
Lloh34:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh35:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_EXP_DPC_STATUS,4,2         ; @PCI_EXP_DPC_STATUS
	.comm	_PCI_EXP_DPC_SOURCE_ID,4,2      ; @PCI_EXP_DPC_SOURCE_ID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"containment event, status:%#06x source:%#06x\n"

	.comm	_PCI_EXP_DPC_STATUS_TRIGGER_RSN,4,2 ; @PCI_EXP_DPC_STATUS_TRIGGER_RSN
	.comm	_PCI_EXP_DPC_STATUS_TRIGGER_RSN_EXT,4,2 ; @PCI_EXP_DPC_STATUS_TRIGGER_RSN_EXT
l_.str.1:                               ; @.str.1
	.asciz	"%s detected\n"

l_.str.2:                               ; @.str.2
	.asciz	"unmasked uncorrectable error"

l_.str.3:                               ; @.str.3
	.asciz	"ERR_NONFATAL"

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

l_.str.5:                               ; @.str.5
	.asciz	"RP PIO error"

l_.str.6:                               ; @.str.6
	.asciz	"software trigger"

l_.str.7:                               ; @.str.7
	.asciz	"reserved error"

	.comm	_pci_channel_io_frozen,4,2      ; @pci_channel_io_frozen
	.comm	_PCIE_PORT_SERVICE_DPC,4,2      ; @PCIE_PORT_SERVICE_DPC
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_dpc_handler
.subsections_via_symbols
