	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __log_ecc_error
___log_ecc_error:                       ## @__log_ecc_error
	.cfi_startproc
## %bb.0:
	decl	%edx
	cmpl	$3, %edx
	jae	LBB0_5
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r10
	movslq	%edx, %rax
	leaq	l_switch.table.__log_ecc_error(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %edi
	movl	(%rsi), %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_2
## %bb.3:
	cltq
	leaq	l_reltable.__log_ecc_error(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmp	LBB0_4
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	jmp	_WARN                           ## TAILCALL
LBB0_2:
	leaq	L_.str.7(%rip), %rax
LBB0_4:
	movl	20(%rsi), %ecx
	movl	16(%rsi), %r8d
	movl	12(%rsi), %r9d
	movl	4(%rsi), %r11d
	movl	8(%rsi), %ebx
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %r14
	movq	%r10, %rsi
	movl	$1, %edx
	pushq	%r14
	pushq	%rax
	pushq	$-1
	pushq	%r11
	pushq	%rbx
	callq	_edac_mc_handle_error
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HW_EVENT_ERR_CORRECTED,4,2     ## @HW_EVENT_ERR_CORRECTED
	.comm	_HW_EVENT_ERR_UNCORRECTED,4,2   ## @HW_EVENT_ERR_UNCORRECTED
	.comm	_HW_EVENT_ERR_DEFERRED,4,2      ## @HW_EVENT_ERR_DEFERRED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Something is rotten in the state of Denmark.\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"Failed to map error addr to a node"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to map error addr to a csrow"

L_.str.4:                               ## @.str.4
	.asciz	"Unknown syndrome - possible error reporting race"

L_.str.5:                               ## @.str.5
	.asciz	"MCA_SYND not valid - unknown syndrome and csrow"

L_.str.6:                               ## @.str.6
	.asciz	"Cannot decode normalized address"

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

	.no_dead_strip	___log_ecc_error
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.__log_ecc_error
l_switch.table.__log_ecc_error:
	.quad	_HW_EVENT_ERR_UNCORRECTED
	.quad	_HW_EVENT_ERR_CORRECTED
	.quad	_HW_EVENT_ERR_DEFERRED

	.section	__TEXT,__const
	.p2align	2                               ## @reltable.__log_ecc_error
l_reltable.__log_ecc_error:
	.long	L_.str.5-l_reltable.__log_ecc_error
	.long	L_.str.6-l_reltable.__log_ecc_error
	.long	L_.str.2-l_reltable.__log_ecc_error
	.long	L_.str.3-l_reltable.__log_ecc_error
	.long	L_.str.4-l_reltable.__log_ecc_error
	.long	L_.str.1-l_reltable.__log_ecc_error

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __log_ecc_error
___log_ecc_error:                       ; @__log_ecc_error
	.cfi_startproc
; %bb.0:
	sub	w9, w2, #1
	cmp	w9, #3
	b.hs	LBB0_3
; %bb.1:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	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_remember_state
	mov	x8, x0
Lloh0:
	adrp	x10, l_switch.table.__log_ecc_error@PAGE
Lloh1:
	add	x10, x10, l_switch.table.__log_ecc_error@PAGEOFF
	ldr	x9, [x10, w9, sxtw #3]
	ldr	w0, [x9]
	ldr	w9, [x1]
	sub	w9, w9, #128
	cmp	w9, #5
	b.hi	LBB0_4
; %bb.2:
Lloh2:
	adrp	x10, l_switch.table.__log_ecc_error.8@PAGE
Lloh3:
	add	x10, x10, l_switch.table.__log_ecc_error.8@PAGEOFF
	ldr	x9, [x10, w9, sxtw #3]
	b	LBB0_5
LBB0_3:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	b	_WARN
LBB0_4:
	.cfi_restore_state
Lloh6:
	adrp	x9, l_.str.7@PAGE
Lloh7:
	add	x9, x9, l_.str.7@PAGEOFF
LBB0_5:
	ldp	w4, w3, [x1, #16]
	ldp	w6, w5, [x1, #8]
	ldr	w7, [x1, #4]
Lloh8:
	adrp	x10, l_.str.1@PAGE
Lloh9:
	add	x10, x10, l_.str.1@PAGEOFF
	stp	x9, x10, [sp, #8]
	mov	w9, #-1
	str	w9, [sp]
	mov	x1, x8
	mov	w2, #1
	bl	_edac_mc_handle_error
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_HW_EVENT_ERR_CORRECTED,4,2     ; @HW_EVENT_ERR_CORRECTED
	.comm	_HW_EVENT_ERR_UNCORRECTED,4,2   ; @HW_EVENT_ERR_UNCORRECTED
	.comm	_HW_EVENT_ERR_DEFERRED,4,2      ; @HW_EVENT_ERR_DEFERRED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Something is rotten in the state of Denmark.\n"

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

l_.str.2:                               ; @.str.2
	.asciz	"Failed to map error addr to a node"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to map error addr to a csrow"

l_.str.4:                               ; @.str.4
	.asciz	"Unknown syndrome - possible error reporting race"

l_.str.5:                               ; @.str.5
	.asciz	"MCA_SYND not valid - unknown syndrome and csrow"

l_.str.6:                               ; @.str.6
	.asciz	"Cannot decode normalized address"

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

	.no_dead_strip	___log_ecc_error
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.__log_ecc_error
l_switch.table.__log_ecc_error:
	.quad	_HW_EVENT_ERR_UNCORRECTED
	.quad	_HW_EVENT_ERR_CORRECTED
	.quad	_HW_EVENT_ERR_DEFERRED

	.p2align	3                               ; @switch.table.__log_ecc_error.8
l_switch.table.__log_ecc_error.8:
	.quad	l_.str.5
	.quad	l_.str.6
	.quad	l_.str.2
	.quad	l_.str.3
	.quad	l_.str.4
	.quad	l_.str.1

.subsections_via_symbols
