	.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, %r13
	movq	%rdi, -104(%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, %rcx
	movl	(%r13), %edi
	movq	_FERR_FAT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	andl	%edi, %r14d
	je	LBB0_12
## %bb.1:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	callq	_EXTRACT_FBDCHAN_INDX
	movl	%eax, %r12d
	movl	8(%r13), %edi
	callq	_NREC_BANK
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movl	8(%r13), %edi
	callq	_NREC_RANK
	movl	%eax, %r15d
	movl	8(%r13), %edi
	callq	_NREC_RDWR
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	4(%r13), %edi
	callq	_NREC_RAS
	movl	%eax, %ebx
	movl	4(%r13), %edi
	callq	_NREC_CAS
                                        ## kill: def $eax killed $eax def $rax
	movl	%r12d, %ecx
	sarl	%ecx
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	leaq	L_.str.2(%rip), %rdx
	leaq	L_.str.1(%rip), %r13
	cmoveq	%rdx, %r13
	leaq	L_.str(%rip), %rdi
	movl	%r15d, -56(%rbp)                ## 4-byte Spill
	movl	%r15d, %esi
	movl	-84(%rbp), %r15d                ## 4-byte Reload
	movl	%r12d, -60(%rbp)                ## 4-byte Spill
	movl	%r12d, %edx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	%r15d, %r8d
	movq	%r13, %r9
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	pushq	%rax
	movq	%rbx, %r12
	pushq	%rbx
	callq	_debugf0
	addq	$16, %rsp
	cmpl	$128, %r14d
	je	LBB0_8
## %bb.2:
	cmpl	$129, %r14d
	je	LBB0_7
## %bb.3:
	cmpl	$130, %r14d
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movq	%r12, %r10
	jne	LBB0_4
## %bb.6:
	leaq	L_.str.3(%rip), %r11
	jmp	LBB0_5
LBB0_8:
	cmpb	$0, _i5000_process_fatal_error_info.done(%rip)
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	jne	LBB0_12
## %bb.9:
	movb	$1, _i5000_process_fatal_error_info.done(%rip)
	leaq	L_.str.5(%rip), %r11
	jmp	LBB0_10
LBB0_7:
	leaq	L_.str.4(%rip), %r11
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
LBB0_10:
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movq	%r12, %r10
	movl	%eax, %r12d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	jmp	LBB0_11
LBB0_4:
	xorl	%r11d, %r11d
LBB0_5:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%edx, %r12d
LBB0_11:
	leaq	L_.str.6(%rip), %rdx
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r15d, %r8d
	movq	%r13, %r9
	pushq	%r11
	pushq	%r14
	pushq	%rax
	pushq	%r10
	callq	_snprintf
	addq	$32, %rsp
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movl	%r12d, %esi
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %edx
	movq	%rbx, %r8
	callq	_edac_mc_handle_fbd_ue
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  (Branch= %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	"(Branch=%d DRAM-Bank=%d RDWR=%s RAS=%d CAS=%d FATAL Err=0x%x (%s))"

	.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	x26, x1
	mov	x12, 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	w19, w8, w0
	b.eq	LBB0_10
; %bb.1:
	stur	x12, [x29, #-96]                ; 8-byte Folded Spill
	bl	_EXTRACT_FBDCHAN_INDX
	mov	x22, x0
	ldr	w0, [x26, #8]
	bl	_NREC_BANK
	mov	x24, x0
	ldr	w0, [x26, #8]
	bl	_NREC_RANK
	mov	x23, x0
	ldr	w0, [x26, #8]
	bl	_NREC_RDWR
	mov	x28, x0
	ldr	w0, [x26, #4]
	bl	_NREC_RAS
	mov	x25, x0
	ldr	w0, [x26, #4]
	bl	_NREC_CAS
	mov	x26, x0
	asr	w27, w22, #1
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	w28, #0
	csel	x28, x9, x8, eq
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	mov	x2, x22
	mov	x3, x27
	mov	x4, x24
	mov	x5, x28
	mov	x6, x25
	mov	x7, x26
	bl	_debugf0
	cmp	w19, #128
	b.eq	LBB0_5
; %bb.2:
	cmp	w19, #129
	b.eq	LBB0_7
; %bb.3:
	cmp	w19, #130
	b.ne	LBB0_8
; %bb.4:
Lloh17:
	adrp	x8, l_.str.3@PAGE
Lloh18:
	add	x8, x8, l_.str.3@PAGEOFF
	b	LBB0_9
LBB0_5:
	adrp	x8, _i5000_process_fatal_error_info.done@PAGE
	ldrb	w9, [x8, _i5000_process_fatal_error_info.done@PAGEOFF]
	tbnz	w9, #0, LBB0_10
; %bb.6:
	mov	w9, #1
	strb	w9, [x8, _i5000_process_fatal_error_info.done@PAGEOFF]
Lloh19:
	adrp	x8, l_.str.5@PAGE
Lloh20:
	add	x8, x8, l_.str.5@PAGEOFF
	b	LBB0_9
LBB0_7:
Lloh21:
	adrp	x8, l_.str.4@PAGE
Lloh22:
	add	x8, x8, l_.str.4@PAGEOFF
	b	LBB0_9
LBB0_8:
	mov	x8, #0
LBB0_9:
	sub	sp, sp, #16
	str	x8, [sp, #8]
	str	w19, [sp]
Lloh23:
	adrp	x2, l_.str.6@PAGE
Lloh24:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	mov	x3, x27
	mov	x4, x24
	mov	x5, x28
	mov	x6, x25
	mov	x7, x26
	bl	_snprintf
	add	sp, sp, #16
	ldur	x0, [x29, #-96]                 ; 8-byte Folded Reload
	mov	x1, x23
	mov	x2, x22
	mov	x3, x22
	mov	x4, x20
	bl	_edac_mc_handle_fbd_ue
LBB0_10:
	ldur	x8, [x29, #-88]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	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_12:
	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	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.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  (Branch= %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	"(Branch=%d DRAM-Bank=%d RDWR=%s RAS=%d CAS=%d FATAL Err=0x%x (%s))"

	.no_dead_strip	_i5000_process_fatal_error_info
.subsections_via_symbols
