	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ecap_aer
_ecap_aer:                              ## @ecap_aer
	.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
	movl	%ecx, %ebx
	movq	%rdx, %r13
	movq	%rsi, %r14
	movl	%edi, %r15d
	leaq	L_.str(%rip), %rdi
	movl	%ecx, %esi
	callq	_printf
	testl	%ebx, %ebx
	jle	LBB0_1
## %bb.2:
	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
	movl	%eax, %r12d
	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
	movl	%eax, %ebx
	movl	%eax, %edi
	andl	%r12d, %edi
	callq	_bitcount32
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_printf
	notl	%ebx
	andl	%r12d, %ebx
	movl	%ebx, %edi
	callq	_bitcount32
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_printf
	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
	movl	%eax, %edi
	callq	_bitcount32
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_printf                         ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AER %d"

	.comm	_PCIR_AER_UC_STATUS,8,3         ## @PCIR_AER_UC_STATUS
	.comm	_PCIR_AER_UC_SEVERITY,8,3       ## @PCIR_AER_UC_SEVERITY
L_.str.1:                               ## @.str.1
	.asciz	" %d fatal"

L_.str.2:                               ## @.str.2
	.asciz	" %d non-fatal"

	.comm	_PCIR_AER_COR_STATUS,8,3        ## @PCIR_AER_COR_STATUS
L_.str.3:                               ## @.str.3
	.asciz	" %d corrected\n"

	.no_dead_strip	_ecap_aer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ecap_aer
_ecap_aer:                              ; @ecap_aer
	.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	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x3
	bl	_printf
	cmp	w22, #1
	b.lt	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _PCIR_AER_UC_STATUS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PCIR_AER_UC_STATUS@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	add	x2, x8, x21
	mov	x0, x20
	mov	x1, x19
	mov	w3, #4
	bl	_read_config
	mov	x22, x0
Lloh5:
	adrp	x8, _PCIR_AER_UC_SEVERITY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCIR_AER_UC_SEVERITY@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	add	x2, x8, x21
	mov	x0, x20
	mov	x1, x19
	mov	w3, #4
	bl	_read_config
	mov	x23, x0
	and	w0, w0, w22
	bl	_bitcount32
	mov	x1, x0
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	bic	w0, w22, w23
	bl	_bitcount32
	mov	x1, x0
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
Lloh12:
	adrp	x8, _PCIR_AER_COR_STATUS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PCIR_AER_COR_STATUS@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	add	x2, x8, x21
	mov	x0, x20
	mov	x1, x19
	mov	w3, #4
	bl	_read_config
	bl	_bitcount32
	mov	x1, x0
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@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	_printf
LBB0_2:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AER %d"

	.comm	_PCIR_AER_UC_STATUS,8,3         ; @PCIR_AER_UC_STATUS
	.comm	_PCIR_AER_UC_SEVERITY,8,3       ; @PCIR_AER_UC_SEVERITY
l_.str.1:                               ; @.str.1
	.asciz	" %d fatal"

l_.str.2:                               ; @.str.2
	.asciz	" %d non-fatal"

	.comm	_PCIR_AER_COR_STATUS,8,3        ; @PCIR_AER_COR_STATUS
l_.str.3:                               ; @.str.3
	.asciz	" %d corrected\n"

	.no_dead_strip	_ecap_aer
.subsections_via_symbols
