	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amd64_handle_ue
_amd64_handle_ue:                       ## @amd64_handle_ue
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_MCI_STATUS_ADDRV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rsi)
	je	LBB0_1
## %bb.4:
	movq	%rsi, %rdi
	callq	_get_error_address
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_find_mc_by_sys_addr
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_sys_addr_to_csrow
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movl	%eax, %r12d
	leaq	-40(%rbp), %rsi
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_error_address_to_page_and_offset
	movl	-40(%rbp), %esi
	movl	-36(%rbp), %edx
	movq	_EDAC_MOD_STR@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movl	%r12d, %ecx
	callq	_edac_mc_handle_ue
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_amd64_mc_err
	jmp	LBB0_2
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_amd64_mc_err
LBB0_2:
	movq	_EDAC_MOD_STR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	jmp	LBB0_3
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_amd64_mc_err
	movq	_EDAC_MOD_STR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_edac_mc_handle_ue_no_info      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MCI_STATUS_ADDRV,4,2           ## @MCI_STATUS_ADDRV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HW has no ERROR_ADDRESS available\n"

	.comm	_EDAC_MOD_STR,4,2               ## @EDAC_MOD_STR
L_.str.1:                               ## @.str.1
	.asciz	"ERROR ADDRESS (0x%lx) NOT mapped to a MC\n"

L_.str.2:                               ## @.str.2
	.asciz	"ERROR_ADDRESS (0x%lx) NOT mapped to CS\n"

	.no_dead_strip	_amd64_handle_ue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amd64_handle_ue
_amd64_handle_ue:                       ; @amd64_handle_ue
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _MCI_STATUS_ADDRV@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MCI_STATUS_ADDRV@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	mov	x0, x1
	bl	_get_error_address
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	bl	_find_mc_by_sys_addr
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
	mov	x1, x21
	bl	_sys_addr_to_csrow
	tbnz	w0, #31, LBB0_7
; %bb.3:
	mov	x22, x0
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x21
	bl	_error_address_to_page_and_offset
	ldp	w2, w1, [sp, #8]
Lloh3:
	adrp	x8, _EDAC_MOD_STR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EDAC_MOD_STR@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	mov	x0, x20
	mov	x3, x22
	bl	_edac_mc_handle_ue
	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
	add	sp, sp, #64
	ret
LBB0_4:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:
	str	x21, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_amd64_mc_err
Lloh10:
	adrp	x8, _EDAC_MOD_STR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EDAC_MOD_STR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	b	LBB0_8
LBB0_7:
	str	x21, [sp]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_amd64_mc_err
Lloh15:
	adrp	x8, _EDAC_MOD_STR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EDAC_MOD_STR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
LBB0_8:
	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
	add	sp, sp, #64
	b	_edac_mc_handle_ue_no_info
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MCI_STATUS_ADDRV,4,2           ; @MCI_STATUS_ADDRV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HW has no ERROR_ADDRESS available\n"

	.comm	_EDAC_MOD_STR,4,2               ; @EDAC_MOD_STR
l_.str.1:                               ; @.str.1
	.asciz	"ERROR ADDRESS (0x%lx) NOT mapped to a MC\n"

l_.str.2:                               ; @.str.2
	.asciz	"ERROR_ADDRESS (0x%lx) NOT mapped to CS\n"

	.no_dead_strip	_amd64_handle_ue
.subsections_via_symbols
