	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function trap_cecc
_trap_cecc:                             ## @trap_cecc
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ASI_ESTATE_ERROR_EN_REG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	xorl	%edi, %edi
	callq	_ldxa
	movl	%eax, %r14d
	movl	(%r15), %esi
	movq	_AA_ESTATE_NCEEN@GOTPCREL(%rip), %rax
	movq	_AA_ESTATE_CEEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	notl	%edx
	andl	%r14d, %edx
	xorl	%edi, %edi
	callq	_stxa_sync
	xorl	%eax, %eax
	callq	_cache_flush
	movq	_impl@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PCPU_GET
	movl	%eax, %edi
	callq	_cache_enable
	movq	_ASI_AFSR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%edi, %edi
	movl	%ebx, %esi
	callq	_ldxa
	xorl	%edi, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_stxa_sync
	movq	_corrected_ecc@GOTPCREL(%rip), %rax
	incl	(%rax)
	leaq	L_str(%rip), %rdi
	callq	_puts
	movl	(%r15), %esi
	xorl	%edi, %edi
	movl	%r14d, %edx
	callq	_stxa_sync
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ASI_ESTATE_ERROR_EN_REG,4,2    ## @ASI_ESTATE_ERROR_EN_REG
	.comm	_AA_ESTATE_NCEEN,4,2            ## @AA_ESTATE_NCEEN
	.comm	_AA_ESTATE_CEEN,4,2             ## @AA_ESTATE_CEEN
	.comm	_impl,4,2                       ## @impl
	.comm	_ASI_AFSR,4,2                   ## @ASI_AFSR
	.comm	_corrected_ecc,4,2              ## @corrected_ecc
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"corrected ECC error"

	.no_dead_strip	_trap_cecc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function trap_cecc
_trap_cecc:                             ; @trap_cecc
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x21, _ASI_ESTATE_ERROR_EN_REG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ASI_ESTATE_ERROR_EN_REG@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #0
	bl	_ldxa
	mov	x19, x0
	ldr	w1, [x21]
Lloh2:
	adrp	x8, _AA_ESTATE_NCEEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AA_ESTATE_NCEEN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _AA_ESTATE_CEEN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AA_ESTATE_CEEN@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w2, w0, w8
	mov	w0, #0
	bl	_stxa_sync
	bl	_cache_flush
Lloh8:
	adrp	x8, _impl@GOTPAGE
Lloh9:
	ldr	x8, [x8, _impl@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_PCPU_GET
	bl	_cache_enable
Lloh11:
	adrp	x8, _ASI_AFSR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ASI_AFSR@GOTPAGEOFF]
Lloh13:
	ldr	w20, [x8]
	mov	w0, #0
	mov	x1, x20
	bl	_ldxa
	mov	x2, x0
	mov	w0, #0
	mov	x1, x20
	bl	_stxa_sync
Lloh14:
	adrp	x8, _corrected_ecc@GOTPAGE
Lloh15:
	ldr	x8, [x8, _corrected_ecc@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh16:
	adrp	x0, l_str@PAGE
Lloh17:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	ldr	w1, [x21]
	mov	w0, #0
	mov	x2, x19
	bl	_stxa_sync
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ASI_ESTATE_ERROR_EN_REG,4,2    ; @ASI_ESTATE_ERROR_EN_REG
	.comm	_AA_ESTATE_NCEEN,4,2            ; @AA_ESTATE_NCEEN
	.comm	_AA_ESTATE_CEEN,4,2             ; @AA_ESTATE_CEEN
	.comm	_impl,4,2                       ; @impl
	.comm	_ASI_AFSR,4,2                   ; @ASI_AFSR
	.comm	_corrected_ecc,4,2              ; @corrected_ecc
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"corrected ECC error"

	.no_dead_strip	_trap_cecc
.subsections_via_symbols
