	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i5000_process_fatal_error_info
_i5000_process_fatal_error_info:        ## @i5000_process_fatal_error_info
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, -112(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_EDAC_MC_LABEL_LEN@GOTPCREL(%rip), %rax
	movl	$161, %ebx
	addl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movl	(%r12), %edi
	movq	_FERR_FAT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	andl	%edi, %r13d
	je	LBB0_12
## %bb.1:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	callq	_EXTRACT_FBDCHAN_INDX
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	8(%r12), %edi
	callq	_NREC_BANK
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	8(%r12), %edi
	callq	_NREC_RANK
	movl	%eax, %ebx
	movl	8(%r12), %edi
	callq	_NREC_RDWR
	movl	%eax, %r14d
	movl	4(%r12), %edi
	callq	_NREC_RAS
	movl	%eax, %r15d
	movl	4(%r12), %edi
	callq	_NREC_CAS
                                        ## kill: def $eax killed $eax def $rax
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	testl	%r14d, %r14d
	leaq	L_.str.2(%rip), %rcx
	leaq	L_.str.1(%rip), %r9
	cmoveq	%rcx, %r9
	leaq	L_.str(%rip), %rsi
	xorl	%edi, %edi
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movl	%ebx, %edx
	movq	-104(%rbp), %r12                ## 8-byte Reload
	movl	%r12d, %ecx
	movl	-68(%rbp), %r8d                 ## 4-byte Reload
	movl	%r8d, %r14d
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	pushq	%rax
	movq	%r15, %rbx
	pushq	%r15
	callq	_edac_dbg
	addq	$16, %rsp
	cmpl	$128, %r13d
	je	LBB0_7
## %bb.2:
	cmpl	$129, %r13d
	je	LBB0_6
## %bb.3:
	cmpl	$130, %r13d
	movl	%r14d, %ecx
	movq	%rbx, %r8
	jne	LBB0_4
## %bb.5:
	leaq	L_.str.3(%rip), %rax
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_10
LBB0_7:
	cmpb	$0, _i5000_process_fatal_error_info.done(%rip)
	jne	LBB0_12
## %bb.8:
	movb	$1, _i5000_process_fatal_error_info.done(%rip)
	leaq	L_.str.5(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	leaq	L_.str.4(%rip), %rax
LBB0_9:
	movl	%r14d, %ecx
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movq	%rbx, %r8
LBB0_10:
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	jmp	LBB0_11
LBB0_4:
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	xorl	%eax, %eax
LBB0_11:
	leaq	L_.str.6(%rip), %rdx
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
                                        ## kill: def $r8d killed $r8d killed $r8
                                        ## kill: def $r9d killed $r9d killed $r9
	pushq	%rax
	pushq	%r13
	callq	_snprintf
	addq	$16, %rsp
	movl	%r12d, %eax
	sarl	%eax
	andl	$1, %r12d
	testl	%r15d, %r15d
	movq	_HW_EVENT_ERR_FATAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.8(%rip), %rcx
	leaq	L_.str.7(%rip), %rbx
	cmoveq	%rcx, %rbx
	subq	$8, %rsp
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movl	$1, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%r14
	pushq	%rbx
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	pushq	%r12
	pushq	%rax
	callq	_edac_mc_handle_error
	addq	$48, %rsp
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EDAC_MC_LABEL_LEN,4,2          ## @EDAC_MC_LABEL_LEN
	.comm	_FERR_FAT_MASK,4,2              ## @FERR_FAT_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\t\tCSROW= %d  Channel= %d (DRAM Bank= %d rdwr= %s ras= %d cas= %d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"Write"

L_.str.2:                               ## @.str.2
	.asciz	"Read"

L_.str.3:                               ## @.str.3
	.asciz	"Alert on non-redundant retry or fast reset timeout"

L_.str.4:                               ## @.str.4
	.asciz	"Northbound CRC error on non-redundant retry"

.zerofill __DATA,__bss,_i5000_process_fatal_error_info.done,1,2 ## @i5000_process_fatal_error_info.done
L_.str.5:                               ## @.str.5
	.asciz	">Tmid Thermal event with intelligent throttling disabled"

L_.str.6:                               ## @.str.6
	.asciz	"Bank=%d RAS=%d CAS=%d FATAL Err=0x%x (%s)"

	.comm	_HW_EVENT_ERR_FATAL,4,2         ## @HW_EVENT_ERR_FATAL
L_.str.7:                               ## @.str.7
	.asciz	"Write error"

L_.str.8:                               ## @.str.8
	.asciz	"Read error"

	.no_dead_strip	_i5000_process_fatal_error_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i5000_process_fatal_error_info
_i5000_process_fatal_error_info:        ; @i5000_process_fatal_error_info
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x28, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _EDAC_MC_LABEL_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EDAC_MC_LABEL_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w21, w8, #161
	mov	x9, x21
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x21, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
	ldr	w0, [x1]
Lloh8:
	adrp	x8, _FERR_FAT_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FERR_FAT_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ands	w22, w8, w0
	b.eq	LBB0_4
; %bb.1:
	bl	_EXTRACT_FBDCHAN_INDX
	mov	x23, x0
	ldr	w0, [x28, #8]
	bl	_NREC_BANK
	mov	x26, x0
	ldr	w0, [x28, #8]
	bl	_NREC_RANK
	mov	x24, x0
	ldr	w0, [x28, #8]
	bl	_NREC_RDWR
	mov	x25, x0
	ldr	w0, [x28, #4]
	bl	_NREC_RAS
	mov	x27, x0
	ldr	w0, [x28, #4]
	bl	_NREC_CAS
	mov	x28, x0
Lloh11:
	adrp	x8, l_.str.1@PAGE
Lloh12:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh13:
	adrp	x9, l_.str.2@PAGE
Lloh14:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w25, #0
	csel	x5, x9, x8, eq
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #0
	mov	x2, x24
	mov	x3, x23
	mov	x4, x26
	mov	x6, x27
	mov	x7, x28
	bl	_edac_dbg
	cmp	w22, #128
	b.eq	LBB0_6
; %bb.2:
Lloh17:
	adrp	x8, l_.str.4@PAGE
Lloh18:
	add	x8, x8, l_.str.4@PAGEOFF
	cmp	w22, #130
Lloh19:
	adrp	x9, l_.str.3@PAGE
Lloh20:
	add	x9, x9, l_.str.3@PAGEOFF
	csel	x9, xzr, x9, ne
	cmp	w22, #129
	csel	x7, x8, x9, eq
LBB0_3:
Lloh21:
	adrp	x2, l_.str.6@PAGE
Lloh22:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	mov	x3, x26
	mov	x4, x27
	mov	x5, x28
	mov	x6, x22
	bl	_snprintf
Lloh23:
	adrp	x8, _HW_EVENT_ERR_FATAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _HW_EVENT_ERR_FATAL@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	asr	w6, w23, #1
	and	w7, w23, #0x1
Lloh26:
	adrp	x8, l_.str.7@PAGE
Lloh27:
	add	x8, x8, l_.str.7@PAGEOFF
Lloh28:
	adrp	x9, l_.str.8@PAGE
Lloh29:
	add	x9, x9, l_.str.8@PAGEOFF
	cmp	w25, #0
	csel	x8, x9, x8, eq
	sub	sp, sp, #32
	stp	x8, x20, [sp, #8]
	str	w24, [sp]
	mov	x1, x19
	mov	w2, #1
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_edac_mc_handle_error
	add	sp, sp, #32
LBB0_4:
	ldur	x8, [x29, #-88]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.5:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_6:
	adrp	x8, _i5000_process_fatal_error_info.done@PAGE
	ldrb	w9, [x8, _i5000_process_fatal_error_info.done@PAGEOFF]
	tbnz	w9, #0, LBB0_4
; %bb.7:
	mov	w9, #1
	strb	w9, [x8, _i5000_process_fatal_error_info.done@PAGEOFF]
Lloh33:
	adrp	x7, l_.str.5@PAGE
Lloh34:
	add	x7, x7, l_.str.5@PAGEOFF
	b	LBB0_3
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_EDAC_MC_LABEL_LEN,4,2          ; @EDAC_MC_LABEL_LEN
	.comm	_FERR_FAT_MASK,4,2              ; @FERR_FAT_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\t\tCSROW= %d  Channel= %d (DRAM Bank= %d rdwr= %s ras= %d cas= %d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"Write"

l_.str.2:                               ; @.str.2
	.asciz	"Read"

l_.str.3:                               ; @.str.3
	.asciz	"Alert on non-redundant retry or fast reset timeout"

l_.str.4:                               ; @.str.4
	.asciz	"Northbound CRC error on non-redundant retry"

.zerofill __DATA,__bss,_i5000_process_fatal_error_info.done,1,2 ; @i5000_process_fatal_error_info.done
l_.str.5:                               ; @.str.5
	.asciz	">Tmid Thermal event with intelligent throttling disabled"

l_.str.6:                               ; @.str.6
	.asciz	"Bank=%d RAS=%d CAS=%d FATAL Err=0x%x (%s)"

	.comm	_HW_EVENT_ERR_FATAL,4,2         ; @HW_EVENT_ERR_FATAL
l_.str.7:                               ; @.str.7
	.asciz	"Write error"

l_.str.8:                               ; @.str.8
	.asciz	"Read error"

	.no_dead_strip	_i5000_process_fatal_error_info
.subsections_via_symbols
