	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_list_errors                    ## -- Begin function list_errors
	.p2align	4, 0x90
_list_errors:                           ## @list_errors
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r15d
	movq	_PCIR_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	$2, %ecx
	callq	_read_config
	movq	_pci_status@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_PCI_ERRORS@GOTPCREL(%rip), %rcx
	andq	(%rcx), %rax
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rdx
	callq	_print_bits
	movq	_PCIY_EXPRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	movq	%r14, %rsi
	callq	_pci_find_cap
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_PCIER_DEVICE_STA@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movl	%r15d, %edi
	movq	%r14, %rsi
	movq	%rax, %rdx
	movl	$2, %ecx
	callq	_read_config
	movq	_pcie_device_status@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_PCIE_ERRORS@GOTPCREL(%rip), %rcx
	andq	(%rcx), %rax
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rdx
	callq	_print_bits
	movq	_PCIZ_AER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	movq	%r14, %rsi
	callq	_pcie_find_cap
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r13
	movq	_PCIR_AER_UC_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	addq	%r13, %rdx
	movl	%r15d, %edi
	movq	%r14, %rsi
	movl	$4, %ecx
	callq	_read_config
	movq	%rax, %r12
	movq	_PCIR_AER_UC_SEVERITY@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	addq	%r13, %rdx
	movl	%r15d, %edi
	movq	%r14, %rsi
	movl	$4, %ecx
	callq	_read_config
	movq	%rax, %rbx
	movq	_aer_uc@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	andq	%r12, %rdx
	leaq	L_.str.2(%rip), %rdi
	callq	_print_bits
	movq	_aer_uc@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notq	%rbx
	andq	%r12, %rbx
	leaq	L_.str.3(%rip), %rdi
	movq	%rbx, %rdx
	callq	_print_bits
	movq	_PCIR_AER_COR_STATUS@GOTPCREL(%rip), %rax
	addq	(%rax), %r13
	movl	%r15d, %edi
	movq	%r14, %rsi
	movq	%r13, %rdx
	movl	$4, %ecx
	callq	_read_config
	movq	_aer_cor@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.4(%rip), %rdi
	movq	%rax, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_print_bits                     ## TAILCALL
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCIR_STATUS,8,3                ## @PCIR_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PCI errors"

	.comm	_pci_status,4,2                 ## @pci_status
	.comm	_PCI_ERRORS,8,3                 ## @PCI_ERRORS
	.comm	_PCIY_EXPRESS,4,2               ## @PCIY_EXPRESS
	.comm	_PCIER_DEVICE_STA,8,3           ## @PCIER_DEVICE_STA
L_.str.1:                               ## @.str.1
	.asciz	"PCI-e errors"

	.comm	_pcie_device_status,4,2         ## @pcie_device_status
	.comm	_PCIE_ERRORS,8,3                ## @PCIE_ERRORS
	.comm	_PCIZ_AER,4,2                   ## @PCIZ_AER
	.comm	_PCIR_AER_UC_STATUS,8,3         ## @PCIR_AER_UC_STATUS
	.comm	_PCIR_AER_UC_SEVERITY,8,3       ## @PCIR_AER_UC_SEVERITY
L_.str.2:                               ## @.str.2
	.asciz	"Fatal"

	.comm	_aer_uc,4,2                     ## @aer_uc
L_.str.3:                               ## @.str.3
	.asciz	"Non-fatal"

	.comm	_PCIR_AER_COR_STATUS,8,3        ## @PCIR_AER_COR_STATUS
L_.str.4:                               ## @.str.4
	.asciz	"Corrected"

	.comm	_aer_cor,4,2                    ## @aer_cor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_list_errors                    ; -- Begin function list_errors
	.p2align	2
_list_errors:                           ; @list_errors
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _PCIR_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCIR_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	x2, [x8]
	mov	w3, #2
	bl	_read_config
Lloh3:
	adrp	x8, _pci_status@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pci_status@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _PCI_ERRORS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCI_ERRORS@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	and	x2, x8, x0
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_print_bits
Lloh11:
	adrp	x8, _PCIY_EXPRESS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PCIY_EXPRESS@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_pci_find_cap
	cbz	x0, LBB0_3
; %bb.1:
Lloh14:
	adrp	x8, _PCIER_DEVICE_STA@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PCIER_DEVICE_STA@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	add	x2, x8, x0
	mov	x0, x20
	mov	x1, x19
	mov	w3, #2
	bl	_read_config
Lloh17:
	adrp	x8, _pcie_device_status@GOTPAGE
Lloh18:
	ldr	x8, [x8, _pcie_device_status@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _PCIE_ERRORS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PCIE_ERRORS@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	and	x2, x8, x0
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_print_bits
Lloh25:
	adrp	x8, _PCIZ_AER@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PCIZ_AER@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_pcie_find_cap
	cbz	x0, LBB0_3
; %bb.2:
	mov	x21, x0
Lloh28:
	adrp	x8, _PCIR_AER_UC_STATUS@GOTPAGE
Lloh29:
	ldr	x8, [x8, _PCIR_AER_UC_STATUS@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	add	x2, x8, x0
	mov	x0, x20
	mov	x1, x19
	mov	w3, #4
	bl	_read_config
	mov	x22, x0
Lloh31:
	adrp	x8, _PCIR_AER_UC_SEVERITY@GOTPAGE
Lloh32:
	ldr	x8, [x8, _PCIR_AER_UC_SEVERITY@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	add	x2, x8, x21
	mov	x0, x20
	mov	x1, x19
	mov	w3, #4
	bl	_read_config
	mov	x23, x0
Lloh34:
	adrp	x24, _aer_uc@GOTPAGE
Lloh35:
	ldr	x24, [x24, _aer_uc@GOTPAGEOFF]
	ldr	w1, [x24]
	and	x2, x0, x22
Lloh36:
	adrp	x0, l_.str.2@PAGE
Lloh37:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_print_bits
	ldr	w1, [x24]
	bic	x2, x22, x23
Lloh38:
	adrp	x0, l_.str.3@PAGE
Lloh39:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_print_bits
Lloh40:
	adrp	x8, _PCIR_AER_COR_STATUS@GOTPAGE
Lloh41:
	ldr	x8, [x8, _PCIR_AER_COR_STATUS@GOTPAGEOFF]
Lloh42:
	ldr	x8, [x8]
	add	x2, x8, x21
	mov	x0, x20
	mov	x1, x19
	mov	w3, #4
	bl	_read_config
	mov	x2, x0
Lloh43:
	adrp	x8, _aer_cor@GOTPAGE
Lloh44:
	ldr	x8, [x8, _aer_cor@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
Lloh46:
	adrp	x0, l_.str.4@PAGE
Lloh47:
	add	x0, x0, l_.str.4@PAGEOFF
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_print_bits
LBB0_3:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_PCIR_STATUS,8,3                ; @PCIR_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PCI errors"

	.comm	_pci_status,4,2                 ; @pci_status
	.comm	_PCI_ERRORS,8,3                 ; @PCI_ERRORS
	.comm	_PCIY_EXPRESS,4,2               ; @PCIY_EXPRESS
	.comm	_PCIER_DEVICE_STA,8,3           ; @PCIER_DEVICE_STA
l_.str.1:                               ; @.str.1
	.asciz	"PCI-e errors"

	.comm	_pcie_device_status,4,2         ; @pcie_device_status
	.comm	_PCIE_ERRORS,8,3                ; @PCIE_ERRORS
	.comm	_PCIZ_AER,4,2                   ; @PCIZ_AER
	.comm	_PCIR_AER_UC_STATUS,8,3         ; @PCIR_AER_UC_STATUS
	.comm	_PCIR_AER_UC_SEVERITY,8,3       ; @PCIR_AER_UC_SEVERITY
l_.str.2:                               ; @.str.2
	.asciz	"Fatal"

	.comm	_aer_uc,4,2                     ; @aer_uc
l_.str.3:                               ; @.str.3
	.asciz	"Non-fatal"

	.comm	_PCIR_AER_COR_STATUS,8,3        ; @PCIR_AER_COR_STATUS
l_.str.4:                               ; @.str.4
	.asciz	"Corrected"

	.comm	_aer_cor,4,2                    ; @aer_cor
.subsections_via_symbols
