	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_umc_error
_decode_umc_error:                      ## @decode_umc_error
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	callq	_edac_mc_find
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %r14
	movq	(%rax), %r15
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	%rbx, %rdi
	callq	_find_umc_channel
	movl	%eax, -36(%rbp)
	movq	_MCI_STATUS_SYNDV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_2
## %bb.4:
	movl	4(%rbx), %ecx
	andl	$7, %ecx
	movl	%ecx, -44(%rbp)
	movl	8(%rbx), %edi
	movl	(%r15), %esi
	leaq	-28(%rbp), %rcx
	movl	%eax, %edx
	callq	_umc_normaddr_to_sysaddr
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_ERR_NORM_ADDR@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_ERR_SYND@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	jmp	LBB0_7
LBB0_6:
	movl	-28(%rbp), %edi
	leaq	-48(%rbp), %rsi
	callq	_error_address_to_page_and_offset
LBB0_7:
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	movl	$3, %edx
	callq	___log_ecc_error
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MCI_STATUS_DEFERRED,4,2        ## @MCI_STATUS_DEFERRED
	.comm	_MCI_STATUS_SYNDV,4,2           ## @MCI_STATUS_SYNDV
	.comm	_ERR_SYND,4,2                   ## @ERR_SYND
	.comm	_ERR_CHANNEL,4,2                ## @ERR_CHANNEL
	.comm	_ERR_NORM_ADDR,4,2              ## @ERR_NORM_ADDR
	.no_dead_strip	_decode_umc_error
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_umc_error
_decode_umc_error:                      ; @decode_umc_error
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x1
	bl	_edac_mc_find
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	ldr	x21, [x0]
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	mov	x0, x20
	bl	_find_umc_channel
	str	w0, [sp, #28]
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _MCI_STATUS_SYNDV@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MCI_STATUS_SYNDV@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	mov	x2, x0
	ldp	w8, w0, [x20, #4]
	and	w8, w8, #0x7
	str	w8, [sp, #20]
	ldr	w1, [x21]
	add	x3, sp, #12
	bl	_umc_normaddr_to_sysaddr
	cbz	x0, LBB0_6
; %bb.3:
Lloh3:
	adrp	x8, _ERR_NORM_ADDR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERR_NORM_ADDR@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _ERR_SYND@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERR_SYND@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	b	LBB0_7
LBB0_6:
	ldr	w0, [sp, #12]
	add	x1, sp, #16
	bl	_error_address_to_page_and_offset
LBB0_7:
	add	x1, sp, #16
	mov	x0, x19
	mov	w2, #3
	bl	___log_ecc_error
LBB0_8:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MCI_STATUS_DEFERRED,4,2        ; @MCI_STATUS_DEFERRED
	.comm	_MCI_STATUS_SYNDV,4,2           ; @MCI_STATUS_SYNDV
	.comm	_ERR_SYND,4,2                   ; @ERR_SYND
	.comm	_ERR_CHANNEL,4,2                ; @ERR_CHANNEL
	.comm	_ERR_NORM_ADDR,4,2              ; @ERR_NORM_ADDR
	.no_dead_strip	_decode_umc_error
.subsections_via_symbols
