	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function k8_map_sysaddr_to_csrow
_k8_map_sysaddr_to_csrow:               ## @k8_map_sysaddr_to_csrow
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_NBCFG_CHIPKILL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_5
## %bb.1:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_get_channel_from_ecc_syndrome
	movl	%eax, %r12d
	testl	%eax, %eax
	jns	LBB0_6
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_amd64_mc_warn
	jmp	LBB0_3
LBB0_5:
	movl	$3, %edi
	callq	_BIT
	xorl	%r12d, %r12d
	testl	%r15d, %eax
	setne	%r12b
LBB0_6:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_find_mc_by_sys_addr
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r13
	movq	%rax, %rdi
	movl	%r15d, %esi
	callq	_sys_addr_to_csrow
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	movl	%eax, %ebx
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movl	%r15d, %edi
	callq	_error_address_to_page_and_offset
	movl	-48(%rbp), %esi
	movl	-44(%rbp), %edx
	movq	_EDAC_MOD_STR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%r13, %rdi
	movl	%r14d, %ecx
	movl	%ebx, %r8d
	movl	%r12d, %r9d
	callq	_edac_mc_handle_ce
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movslq	%r15d, %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_amd64_mc_err
LBB0_3:
	movq	_EDAC_MOD_STR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	jmp	LBB0_4
LBB0_9:
	movq	_EDAC_MOD_STR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_edac_mc_handle_ce_no_info      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NBCFG_CHIPKILL,4,2             ## @NBCFG_CHIPKILL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown syndrome 0x%04x - possible error reporting race\n"

	.comm	_EDAC_MOD_STR,4,2               ## @EDAC_MOD_STR
L_.str.1:                               ## @.str.1
	.asciz	"failed to map error addr 0x%lx to a node\n"

	.no_dead_strip	_k8_map_sysaddr_to_csrow
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function k8_map_sysaddr_to_csrow
_k8_map_sysaddr_to_csrow:               ; @k8_map_sysaddr_to_csrow
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _NBCFG_CHIPKILL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NBCFG_CHIPKILL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	bl	_get_channel_from_ecc_syndrome
	mov	x22, x0
	tbz	w0, #31, LBB0_4
; %bb.2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_amd64_mc_warn
	b	LBB0_8
LBB0_3:
	mov	w0, #3
	bl	_BIT
	tst	w0, w21
	cset	w22, ne
LBB0_4:
	mov	x0, x20
	mov	x1, x21
	bl	_find_mc_by_sys_addr
	cbz	x0, LBB0_7
; %bb.5:
	mov	x23, x0
	mov	x1, x21
	bl	_sys_addr_to_csrow
	tbnz	w0, #31, LBB0_9
; %bb.6:
	mov	x20, x0
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x21
	bl	_error_address_to_page_and_offset
	ldp	w2, w1, [sp, #8]
Lloh5:
	adrp	x8, _EDAC_MOD_STR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EDAC_MOD_STR@GOTPAGEOFF]
Lloh7:
	ldr	w6, [x8]
	mov	x0, x23
	mov	x3, x19
	mov	x4, x20
	mov	x5, x22
	bl	_edac_mc_handle_ce
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_7:
	sxtw	x2, w21
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_amd64_mc_err
LBB0_8:
Lloh10:
	adrp	x8, _EDAC_MOD_STR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EDAC_MOD_STR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x20
	b	LBB0_10
LBB0_9:
Lloh13:
	adrp	x8, _EDAC_MOD_STR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EDAC_MOD_STR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x23
LBB0_10:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_edac_mc_handle_ce_no_info
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_NBCFG_CHIPKILL,4,2             ; @NBCFG_CHIPKILL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown syndrome 0x%04x - possible error reporting race\n"

	.comm	_EDAC_MOD_STR,4,2               ; @EDAC_MOD_STR
l_.str.1:                               ; @.str.1
	.asciz	"failed to map error addr 0x%lx to a node\n"

	.no_dead_strip	_k8_map_sysaddr_to_csrow
.subsections_via_symbols
