	.file	"extr_amd64_edac.c_k8_map_sysaddr_to_csrow.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"unknown syndrome 0x%04x - possible error reporting race\n"
	.align 8
.LC1:
	.string	"failed to map error addr 0x%lx to a node\n"
	.text
	.p2align 4
	.type	k8_map_sysaddr_to_csrow, @function
k8_map_sysaddr_to_csrow:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, edx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rdi]
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR NBCFG_CHIPKILL[rip], eax
	je	.L2
	mov	esi, edx
	call	get_channel_from_ecc_syndrome@PLT
	mov	ebx, eax
	test	eax, eax
	js	.L10
.L3:
	mov	esi, ebp
	mov	rdi, r12
	call	find_mc_by_sys_addr@PLT
	mov	r13, rax
	test	rax, rax
	je	.L11
	mov	esi, ebp
	mov	rdi, rax
	call	sys_addr_to_csrow@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L12
	lea	rdx, 4[rsp]
	mov	rsi, rsp
	mov	edi, ebp
	call	error_address_to_page_and_offset@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 72
	mov	r9d, ebx
	mov	r8d, r12d
	mov	eax, DWORD PTR EDAC_MOD_STR[rip]
	mov	ecx, r14d
	mov	rdi, r13
	push	rax
	.cfi_def_cfa_offset 80
	mov	edx, DWORD PTR 20[rsp]
	mov	esi, DWORD PTR 16[rsp]
	call	edac_mc_handle_ce@PLT
	pop	rax
	.cfi_def_cfa_offset 72
	pop	rdx
	.cfi_def_cfa_offset 64
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, 3
	xor	ebx, ebx
	call	BIT@PLT
	test	eax, ebp
	setne	bl
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L12:
	mov	esi, DWORD PTR EDAC_MOD_STR[rip]
	mov	rdi, r13
	call	edac_mc_handle_ce_no_info@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, r12
	mov	edx, r14d
	lea	rsi, .LC0[rip]
	call	amd64_mc_warn@PLT
	mov	esi, DWORD PTR EDAC_MOD_STR[rip]
	mov	rdi, r12
	call	edac_mc_handle_ce_no_info@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rdi, r12
	movsx	rdx, ebp
	lea	rsi, .LC1[rip]
	call	amd64_mc_err@PLT
	mov	esi, DWORD PTR EDAC_MOD_STR[rip]
	mov	rdi, r12
	call	edac_mc_handle_ce_no_info@PLT
	jmp	.L1
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	k8_map_sysaddr_to_csrow, .-k8_map_sysaddr_to_csrow
	.comm	NBCFG_CHIPKILL,4,4
	.comm	EDAC_MOD_STR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_amd64_edac.c_k8_map_sysaddr_to_csrow.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"unknown syndrome 0x%04x - possible error reporting "
	.ascii	"race\012\000"
	.align	2
.LC1:
	.ascii	"failed to map error addr 0x%lx to a node\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	k8_map_sysaddr_to_csrow, %function
k8_map_sysaddr_to_csrow:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	ip, [r0]
	ldr	r3, .L14
	ldr	ip, [ip]
	ldr	r3, [r3]
	sub	sp, sp, #32
	tst	ip, r3
	ldr	r3, .L14+4
	mov	r5, r0
	mov	r4, r1
	mov	r7, r2
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	beq	.L2
	mov	r1, r2
	bl	get_channel_from_ecc_syndrome
	subs	r8, r0, #0
	blt	.L10
.L3:
	mov	r1, r4
	mov	r0, r5
	bl	find_mc_by_sys_addr
	subs	r6, r0, #0
	beq	.L11
	mov	r1, r4
	bl	sys_addr_to_csrow
	subs	r5, r0, #0
	blt	.L12
	add	r2, sp, #24
	add	r1, sp, #20
	mov	r0, r4
	bl	error_address_to_page_and_offset
	ldr	r3, .L14+8
	str	r8, [sp, #4]
	ldr	r2, [r3]
	mov	r0, r6
	str	r2, [sp, #8]
	mov	r3, r7
	ldr	r2, [sp, #24]
	ldr	r1, [sp, #20]
	str	r5, [sp]
	bl	edac_mc_handle_ce
.L1:
	ldr	r3, .L14+4
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r0, #3
	bl	BIT
	tst	r0, r4
	movne	r8, #1
	moveq	r8, #0
	b	.L3
.L12:
	ldr	r3, .L14+8
	mov	r0, r6
	ldr	r1, [r3]
	bl	edac_mc_handle_ce_no_info
	b	.L1
.L10:
	mov	r2, r7
	mov	r0, r5
	ldr	r1, .L14+12
	bl	amd64_mc_warn
	ldr	r3, .L14+8
	mov	r0, r5
	ldr	r1, [r3]
	bl	edac_mc_handle_ce_no_info
	b	.L1
.L11:
	mov	r2, r4
	mov	r0, r5
	ldr	r1, .L14+16
	bl	amd64_mc_err
	ldr	r3, .L14+8
	mov	r0, r5
	ldr	r1, [r3]
	bl	edac_mc_handle_ce_no_info
	b	.L1
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	NBCFG_CHIPKILL
	.word	.LC2
	.word	EDAC_MOD_STR
	.word	.LC0
	.word	.LC1
	.size	k8_map_sysaddr_to_csrow, .-k8_map_sysaddr_to_csrow
	.comm	NBCFG_CHIPKILL,4,4
	.comm	EDAC_MOD_STR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
