	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_memory_error_data
_get_memory_error_data:                 ## @get_memory_error_data
	.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	$360, %rsp                      ## imm = 0x168
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %r15
	movq	%rdx, -336(%rbp)                ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rsp, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdi, -320(%rbp)                ## 8-byte Spill
	movq	(%rdi), %r12
	movq	_MAX_INTERLEAVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -344(%rbp)                ## 8-byte Spill
	movl	$4294967295, %eax               ## imm = 0xFFFFFFFF
	cmpq	%rax, %rbx
	jg	LBB0_3
## %bb.1:
	cmpq	%rbx, 64(%r12)
	jge	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_13
LBB0_3:
	cmpq	%rbx, 56(%r12)
	jle	LBB0_12
## %bb.4:
	movq	%r15, -352(%rbp)                ## 8-byte Spill
	movq	%rbx, -368(%rbp)                ## 8-byte Spill
	movq	%r14, -400(%rbp)                ## 8-byte Spill
	movq	_MAX_SAD@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	testl	%ecx, %ecx
	jle	LBB0_18
## %bb.5:
	movq	%r13, -328(%rbp)                ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
                                        ## implicit-def: $r14
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_8 Depth=1
	movq	%rax, %r14
	movq	%rax, %r13
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	incq	%rbx
	movslq	(%r15), %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_24
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	48(%r12), %edi
	movq	_dram_rule@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %esi
	leaq	-308(%rbp), %rdx
	callq	_pci_read_config_dword
	movl	-308(%rbp), %edi
	callq	_DRAM_RULE_ENABLE
	testl	%eax, %eax
	je	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	-308(%rbp), %edi
	callq	_SAD_LIMIT
	cmpq	%r13, %rax
	jle	LBB0_32
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpq	-368(%rbp), %rax                ## 8-byte Folded Reload
	jl	LBB0_6
## %bb.11:
	movl	(%r15), %ecx
	jmp	LBB0_25
LBB0_12:
	leaq	L_.str.1(%rip), %rsi
LBB0_13:
	xorl	%r14d, %r14d
	leaq	-304(%rbp), %r15
	movq	%r15, %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_sprintf
	movq	-320(%rbp), %rdi                ## 8-byte Reload
	movq	%r15, %rsi
LBB0_14:
	callq	_edac_mc_handle_ce_no_info
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_15:
	subl	(%rax), %r14d
LBB0_16:
	movq	%r13, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_79
## %bb.17:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	xorl	%ebx, %ebx
                                        ## implicit-def: $rax
	cmpl	%ecx, %ebx
	je	LBB0_26
LBB0_19:
	movq	%rax, -360(%rbp)                ## 8-byte Spill
	movl	-308(%rbp), %edi
	callq	_get_dram_attr
	movl	-308(%rbp), %edi
	callq	_INTERLEAVE_MODE
	movl	%eax, -328(%rbp)                ## 4-byte Spill
	movl	48(%r12), %edi
	movq	_interleave_list@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, %ecx
	movq	%rcx, -384(%rbp)                ## 8-byte Spill
	movl	(%rax,%rcx,4), %esi
	leaq	-308(%rbp), %rdx
	callq	_pci_read_config_dword
	movl	-308(%rbp), %edi
	xorl	%esi, %esi
	callq	_sad_pkg
	movl	%eax, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_21 Depth=1
	movl	-308(%rbp), %edi
	movl	%r15d, %esi
	callq	_sad_pkg
	movq	-344(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, (%rcx,%rbx,4)
	movl	%eax, %edx
	leaq	L_.str.3(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_debugf0
	incq	%rbx
	cmpq	$8, %rbx
	je	LBB0_28
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movl	$0, %r15d
	testq	%rbx, %rbx
	je	LBB0_20
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	movl	-308(%rbp), %edi
	movl	%ebx, %esi
	callq	_sad_pkg
	cmpl	%eax, %r14d
	je	LBB0_29
## %bb.23:                              ##   in Loop: Header=BB0_21 Depth=1
	movl	%ebx, %r15d
	jmp	LBB0_20
LBB0_24:
	movq	%r14, %rax
LBB0_25:
	movq	-328(%rbp), %r13                ## 8-byte Reload
	cmpl	%ecx, %ebx
	jne	LBB0_19
LBB0_26:
	movups	L_.str.2+16(%rip), %xmm0
	movaps	%xmm0, -288(%rbp)
	movups	L_.str.2(%rip), %xmm0
	movaps	%xmm0, -304(%rbp)
	movb	$0, -272(%rbp)
	leaq	-304(%rbp), %rsi
	movq	-320(%rbp), %rdi                ## 8-byte Reload
LBB0_27:
	callq	_edac_mc_handle_ce_no_info
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	jmp	LBB0_15
LBB0_28:
	movl	$8, %ebx
LBB0_29:
	movq	40(%r12), %rax
	movl	(%rax), %r15d
	leal	7(%rbx), %r12d
	movl	-308(%rbp), %edi
	callq	_INTERLEAVE_MODE
	testl	%eax, %eax
	leaq	L_.str.6(%rip), %rax
	leaq	L_.str.5(%rip), %r10
	cmoveq	%rax, %r10
	subq	$8, %rsp
	leaq	L_.str.4(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%r15d, %esi
	movq	-384(%rbp), %rdx                ## 8-byte Reload
	movq	-368(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rcx
	movq	-360(%rbp), %r8                 ## 8-byte Reload
	movl	%r12d, %r9d
	xorl	%eax, %eax
	pushq	%r10
	callq	_debugf0
	addq	$16, %rsp
	movq	%r15, %rcx
	shrq	$6, %rcx
	movq	%r15, %rax
	shrq	$16, %rax
	xorl	%eax, %ecx
	movl	%r15d, %eax
	shrl	$6, %eax
	cmpl	$0, -328(%rbp)                  ## 4-byte Folded Reload
	cmovnel	%ecx, %eax
	leal	-1(%rbx), %ecx
	cmpl	$7, %ecx
	ja	LBB0_35
## %bb.30:
	movl	%eax, %esi
	andl	$7, %esi
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_31:
	xorl	%esi, %esi
	jmp	LBB0_38
LBB0_32:
	movups	L_.str.2+16(%rip), %xmm0
	movaps	%xmm0, -288(%rbp)
	movups	L_.str.2(%rip), %xmm0
	movaps	%xmm0, -304(%rbp)
	movb	$0, -272(%rbp)
	leaq	-304(%rbp), %rsi
	movq	-320(%rbp), %rdi                ## 8-byte Reload
LBB0_33:
	callq	_edac_mc_handle_ce_no_info
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	-328(%rbp), %r13                ## 8-byte Reload
	jmp	LBB0_16
LBB0_34:
	andl	$1, %eax
	jmp	LBB0_37
LBB0_35:
	movups	L_.str.7+16(%rip), %xmm0
	movaps	%xmm0, -288(%rbp)
	movups	L_.str.7(%rip), %xmm0
	movaps	%xmm0, -304(%rbp)
	movb	$0, -272(%rbp)
	leaq	-304(%rbp), %rsi
	movq	-320(%rbp), %rdi                ## 8-byte Reload
	jmp	LBB0_14
LBB0_36:
	andl	$3, %eax
LBB0_37:
	movl	%eax, %esi
LBB0_38:
	movl	%esi, %eax
	movq	-344(%rbp), %rcx                ## 8-byte Reload
	movl	(%rcx,%rax,4), %ecx
	movq	-336(%rbp), %r14                ## 8-byte Reload
	movl	%ecx, (%r14)
	movl	%ebx, %edx
	leaq	L_.str.8(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_debugf0
	movl	(%r14), %edi
	callq	_get_mci_for_node_id
	testq	%rax, %rax
	je	LBB0_48
## %bb.39:
	movq	%rax, -336(%rbp)                ## 8-byte Spill
	movq	(%rax), %rax
	movq	%rax, -344(%rbp)                ## 8-byte Spill
	movq	_MAX_TAD@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_45
## %bb.40:
	movq	%r13, -328(%rbp)                ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	_tad_dram_rule@GOTPCREL(%rip), %r15
	leaq	-308(%rbp), %r13
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_41:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rbx
	movq	-344(%rbp), %rax                ## 8-byte Reload
	movl	32(%rax), %edi
	movq	(%r15), %rax
	movl	(%rax,%r12,4), %esi
	movq	%r13, %rdx
	callq	_pci_read_config_dword
	movl	-308(%rbp), %edi
	callq	_TAD_LIMIT
	cmpq	%rbx, %rax
	jle	LBB0_49
## %bb.42:                              ##   in Loop: Header=BB0_41 Depth=1
	cmpq	-368(%rbp), %rax                ## 8-byte Folded Reload
	jge	LBB0_44
## %bb.43:                              ##   in Loop: Header=BB0_41 Depth=1
	incq	%r12
	movslq	(%r14), %rcx
	cmpq	%rcx, %r12
	jl	LBB0_41
LBB0_44:
	movq	%rax, -360(%rbp)                ## 8-byte Spill
	movq	-328(%rbp), %r13                ## 8-byte Reload
	movq	-368(%rbp), %r15                ## 8-byte Reload
LBB0_45:
	movl	-308(%rbp), %edi
	callq	_TAD_CH
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -328(%rbp)                ## 8-byte Spill
	leal	1(%rax), %r14d
	movl	-308(%rbp), %edi
	callq	_TAD_SOCK
	movl	%eax, %ebx
	movq	-344(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %edi
	movq	_tad_ch_nilv_offset@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r12d, %ecx
	movl	(%rax,%rcx,4), %esi
	leaq	-388(%rbp), %rdx
	callq	_pci_read_config_dword
	leal	7(%rbx), %eax
	cmpl	$3, %r14d
	movzbl	%al, %eax
	movl	$6, %ecx
	cmovnel	%eax, %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	sarq	%cl, %r15
	movl	%r15d, %eax
	cltd
	movl	%r14d, -320(%rbp)               ## 4-byte Spill
	idivl	%r14d
	cmpl	$3, %edx
	ja	LBB0_50
## %bb.46:
	movl	%edx, %r15d
	leaq	LJTI0_1(%rip), %rax
	movslq	(%rax,%r15,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_47:
	movl	-308(%rbp), %edi
	callq	_TAD_TGT0
	jmp	LBB0_54
LBB0_48:
	movl	(%r14), %edx
	leaq	L_.str.9(%rip), %rsi
	xorl	%r14d, %r14d
	leaq	-304(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_sprintf
	movq	-320(%rbp), %rdi                ## 8-byte Reload
	jmp	LBB0_77
LBB0_49:
	movups	L_.str.10+16(%rip), %xmm0
	movaps	%xmm0, -288(%rbp)
	movups	L_.str.10(%rip), %xmm0
	movaps	%xmm0, -304(%rbp)
	movw	$108, -272(%rbp)
	leaq	-304(%rbp), %rsi
	movq	-336(%rbp), %rdi                ## 8-byte Reload
	jmp	LBB0_33
LBB0_50:
	movups	L_.str.11+14(%rip), %xmm0
	movups	%xmm0, -290(%rbp)
	movups	L_.str.11(%rip), %xmm0
	movaps	%xmm0, -304(%rbp)
	jmp	LBB0_65
LBB0_51:
	movl	-308(%rbp), %edi
	callq	_TAD_TGT1
	jmp	LBB0_54
LBB0_52:
	movl	-308(%rbp), %edi
	callq	_TAD_TGT2
	jmp	LBB0_54
LBB0_53:
	movl	-308(%rbp), %edi
	callq	_TAD_TGT3
LBB0_54:
	movl	%eax, %esi
	movq	-352(%rbp), %r14                ## 8-byte Reload
	incl	%ebx
	movl	$1, %eax
	movl	$1, %edx
	movl	%esi, %ecx
	shll	%cl, %edx
	movslq	%edx, %rdx
	movq	%rdx, (%r14)
	movq	-344(%rbp), %rcx                ## 8-byte Reload
	cmpq	$0, 24(%rcx)
	je	LBB0_57
## %bb.55:
	leal	2(%rsi), %ecx
	andb	$3, %cl
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	orq	%rdx, %rax
	movq	%rax, (%r14)
	movq	-328(%rbp), %rcx                ## 8-byte Reload
	orl	$2, %ecx
	cmpl	$3, %ecx
	jne	LBB0_64
## %bb.56:
	movl	-320(%rbp), %ecx                ## 4-byte Reload
	shrl	%ecx
	imull	%ecx, %ebx
	movl	$1, %edx
	movl	%ebx, %ecx
	shll	%cl, %edx
	movl	%edx, -372(%rbp)                ## 4-byte Spill
	jmp	LBB0_58
LBB0_57:
	movl	-320(%rbp), %eax                ## 4-byte Reload
	movl	%ebx, %ecx
	shll	%cl, %eax
	movl	%eax, -372(%rbp)                ## 4-byte Spill
	movq	%rdx, %rax
LBB0_58:
	movq	%r15, -328(%rbp)                ## 8-byte Spill
	movq	-344(%rbp), %rcx                ## 8-byte Reload
	cmpq	$0, 16(%rcx)
	je	LBB0_60
## %bb.59:
	leal	1(%rsi), %ecx
	andb	$3, %cl
	movl	$1, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	orq	%rdx, %rax
	movq	%rax, (%r14)
LBB0_60:
	movl	-388(%rbp), %edi
	movq	%rsi, %r15
	callq	_TAD_OFFSET
	movq	%rax, -384(%rbp)                ## 8-byte Spill
	movl	-308(%rbp), %edi
	callq	_TAD_SOCK
	leaq	L_.str.13(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%r12d, %esi
	movq	-368(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdx
	movq	-360(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, %r8d
	movl	-320(%rbp), %r9d                ## 4-byte Reload
	xorl	%eax, %eax
	movq	-352(%rbp), %rbx                ## 8-byte Reload
	pushq	(%rbx)
	movq	%r15, -352(%rbp)                ## 8-byte Spill
	pushq	%r15
	pushq	-328(%rbp)                      ## 8-byte Folded Reload
	movq	-384(%rbp), %rbx                ## 8-byte Reload
	pushq	%rbx
	callq	_debugf0
	movq	%rbx, %rdx
	addq	$32, %rsp
	cmpq	%r12, %rbx
	jle	LBB0_62
## %bb.61:
	leaq	L_.str.14(%rip), %rsi
	leaq	-304(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_sprintf
	jmp	LBB0_76
LBB0_62:
	subq	%rdx, %r12
	movl	%r12d, %eax
	andl	$127, %eax
	movq	%rax, -320(%rbp)                ## 8-byte Spill
	sarq	$6, %r12
	movl	-372(%rbp), %esi                ## 4-byte Reload
	movslq	%esi, %rcx
	movq	%r12, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_66
## %bb.63:
	movq	%r12, %rax
	cqto
	idivq	%rcx
	jmp	LBB0_67
LBB0_64:
	movups	L_.str.12+16(%rip), %xmm0
	movaps	%xmm0, -288(%rbp)
	movups	L_.str.12(%rip), %xmm0
	movaps	%xmm0, -304(%rbp)
	movabsq	$32198529634035044, %rax        ## imm = 0x72646461206564
	movq	%rax, -274(%rbp)
LBB0_65:
	leaq	-304(%rbp), %rsi
	movq	-336(%rbp), %rdi                ## 8-byte Reload
	jmp	LBB0_27
LBB0_66:
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
LBB0_67:
	movq	-352(%rbp), %r12                ## 8-byte Reload
	shlq	$6, %rax
	movq	%rax, -328(%rbp)                ## 8-byte Spill
	orq	%rax, -320(%rbp)                ## 8-byte Folded Spill
	movq	_MAX_RIR_RANGES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movslq	%r12d, %rcx
	movq	%rcx, -368(%rbp)                ## 8-byte Spill
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jg	LBB0_70
LBB0_68:
	movq	-360(%rbp), %r12                ## 8-byte Reload
	jmp	LBB0_74
LBB0_69:                                ##   in Loop: Header=BB0_70 Depth=1
	incq	%r15
	movq	_MAX_RIR_RANGES@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r15
	jge	LBB0_68
LBB0_70:                                ## =>This Inner Loop Header: Depth=1
	movq	-344(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rax
	movq	-368(%rbp), %rcx                ## 8-byte Reload
	movl	(%rax,%rcx,4), %edi
	movq	_rir_way_limit@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r15,4), %esi
	leaq	-308(%rbp), %rdx
	callq	_pci_read_config_dword
	movl	-308(%rbp), %edi
	callq	_IS_RIR_VALID
	testl	%eax, %eax
	je	LBB0_69
## %bb.71:                              ##   in Loop: Header=BB0_70 Depth=1
	movl	-308(%rbp), %edi
	callq	_RIR_LIMIT
	movq	%rax, %r12
	movq	%rax, %r14
	sarq	$20, %r14
	movq	%r14, %rax
	movabsq	$2361183241434822607, %rcx      ## imm = 0x20C49BA5E353F7CF
	imulq	%rcx
	movq	%rdx, %rbx
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$7, %rbx
	addq	%rax, %rbx
	imulq	$1000, %rbx, %rax               ## imm = 0x3E8
	subq	%rax, %r14
	movl	-308(%rbp), %edi
	callq	_RIR_WAY
	movl	$1, %r9d
	movl	%eax, %ecx
	shll	%cl, %r9d
	leaq	L_.str.15(%rip), %rdi
	movl	%r15d, %esi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	movq	%r12, %r8
	xorl	%eax, %eax
	callq	_debugf0
	cmpq	%r12, -320(%rbp)                ## 8-byte Folded Reload
	jle	LBB0_73
## %bb.72:                              ##   in Loop: Header=BB0_70 Depth=1
	movq	%r12, -360(%rbp)                ## 8-byte Spill
	jmp	LBB0_69
LBB0_73:
	movq	_MAX_RIR_RANGES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_74:
	cmpl	%eax, %r15d
	jne	LBB0_78
## %bb.75:
	leaq	L_.str.16(%rip), %rsi
	xorl	%r14d, %r14d
	leaq	-304(%rbp), %rbx
	movq	%rbx, %rdi
	movq	-320(%rbp), %rdx                ## 8-byte Reload
	xorl	%eax, %eax
	callq	_sprintf
LBB0_76:
	movq	-336(%rbp), %rdi                ## 8-byte Reload
LBB0_77:
	movq	%rbx, %rsi
	jmp	LBB0_14
LBB0_78:
	movl	-308(%rbp), %edi
	movq	%r12, -360(%rbp)                ## 8-byte Spill
	callq	_RIR_WAY
	movl	%eax, %edx
	movl	%eax, -336(%rbp)                ## 4-byte Spill
	movq	-320(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rax
	shrq	$6, %rax
	movq	-328(%rbp), %rcx                ## 8-byte Reload
	shrq	$13, %rcx
	movq	-344(%rbp), %rdi                ## 8-byte Reload
	cmpq	$0, 8(%rdi)
	cmovel	%ecx, %eax
	movl	$1, %esi
	movl	%edx, %ecx
	shll	%cl, %esi
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	%esi
	movq	(%rdi), %rax
	movq	-368(%rbp), %rcx                ## 8-byte Reload
	movl	(%rax,%rcx,4), %edi
	movq	_rir_offset@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r15d, %ecx
	movq	(%rax,%rcx,8), %rax
	movslq	%edx, %rbx
	movl	(%rax,%rbx,4), %esi
	leaq	-308(%rbp), %rdx
	callq	_pci_read_config_dword
	movl	-308(%rbp), %edi
	callq	_RIR_RNK_TGT
	movq	-400(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, (%rcx)
	leaq	L_.str.17(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%r15d, %esi
	movq	%r12, %rdx
	movq	-360(%rbp), %rcx                ## 8-byte Reload
	movl	-336(%rbp), %r8d                ## 4-byte Reload
	movl	%ebx, %r9d
	xorl	%eax, %eax
	callq	_debugf0
	jmp	LBB0_16
LBB0_79:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_31, LBB0_31-LJTI0_0
.set L0_0_set_34, LBB0_34-LJTI0_0
.set L0_0_set_35, LBB0_35-LJTI0_0
.set L0_0_set_36, LBB0_36-LJTI0_0
.set L0_0_set_38, LBB0_38-LJTI0_0
LJTI0_0:
	.long	L0_0_set_31
	.long	L0_0_set_34
	.long	L0_0_set_35
	.long	L0_0_set_36
	.long	L0_0_set_35
	.long	L0_0_set_35
	.long	L0_0_set_35
	.long	L0_0_set_38
.set L0_1_set_47, LBB0_47-LJTI0_1
.set L0_1_set_51, LBB0_51-LJTI0_1
.set L0_1_set_52, LBB0_52-LJTI0_1
.set L0_1_set_53, LBB0_53-LJTI0_1
LJTI0_1:
	.long	L0_1_set_47
	.long	L0_1_set_51
	.long	L0_1_set_52
	.long	L0_1_set_53
	.end_data_region
                                        ## -- End function
	.comm	_MAX_INTERLEAVE,4,2             ## @MAX_INTERLEAVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error at TOLM area, on addr 0x%08Lx"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Error at MMIOH area, on addr 0x%016Lx"

	.comm	_MAX_SAD,4,2                    ## @MAX_SAD
	.comm	_dram_rule,8,3                  ## @dram_rule
L_.str.2:                               ## @.str.2
	.asciz	"Can't discover the memory socket"

	.comm	_interleave_list,8,3            ## @interleave_list
L_.str.3:                               ## @.str.3
	.asciz	"SAD interleave #%d: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"mc#%d: Error detected on SAD#%d: address 0x%016Lx < 0x%016Lx, Interleave [%d:6]%s\n"

L_.str.5:                               ## @.str.5
	.space	1

L_.str.6:                               ## @.str.6
	.asciz	"XOR[18:16]"

L_.str.7:                               ## @.str.7
	.asciz	"Can't discover socket interleave"

L_.str.8:                               ## @.str.8
	.asciz	"SAD interleave index: %d (wayness %d) = CPU socket %d\n"

L_.str.9:                               ## @.str.9
	.asciz	"Struct for socket #%u wasn't initialized"

	.comm	_MAX_TAD,4,2                    ## @MAX_TAD
	.comm	_tad_dram_rule,8,3              ## @tad_dram_rule
L_.str.10:                              ## @.str.10
	.asciz	"Can't discover the memory channel"

	.comm	_tad_ch_nilv_offset,8,3         ## @tad_ch_nilv_offset
L_.str.11:                              ## @.str.11
	.asciz	"Can't discover the TAD target"

L_.str.12:                              ## @.str.12
	.asciz	"Invalid mirror set. Can't decode addr"

L_.str.13:                              ## @.str.13
	.asciz	"TAD#%d: address 0x%016Lx < 0x%016Lx, socket interleave %d, channel interleave %d (offset 0x%08Lx), index %d, base ch: %d, ch mask: 0x%02lx\n"

L_.str.14:                              ## @.str.14
	.asciz	"Can't calculate ch addr: TAD offset 0x%08Lx is too high for addr 0x%08Lx!"

	.comm	_MAX_RIR_RANGES,4,2             ## @MAX_RIR_RANGES
	.comm	_rir_way_limit,8,3              ## @rir_way_limit
L_.str.15:                              ## @.str.15
	.asciz	"RIR#%d, limit: %Lu.%03Lu GB (0x%016Lx), way: %d\n"

L_.str.16:                              ## @.str.16
	.asciz	"Can't discover the memory rank for ch addr 0x%08Lx"

	.comm	_rir_offset,8,3                 ## @rir_offset
L_.str.17:                              ## @.str.17
	.asciz	"RIR#%d: channel address 0x%08Lx < 0x%08Lx, RIR interleave %d, index %d\n"

	.no_dead_strip	_get_memory_error_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_memory_error_data
_get_memory_error_data:                 ; @get_memory_error_data
	.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, #320
	mov	x19, sp
	mov	x26, x3
	mov	x22, x1
	mov	x25, x0
	mov	x21, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	ldr	x20, [x0]
Lloh3:
	adrp	x8, _MAX_INTERLEAVE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_INTERLEAVE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x27, x9, x8
	mov	sp, x27
	mov	w8, #-1
	cmp	x1, x8
	b.gt	LBB0_3
; %bb.1:
	ldr	x8, [x20, #64]
	cmp	x8, x22
	b.ge	LBB0_3
; %bb.2:
	str	x22, [sp, #-16]!
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_16
LBB0_3:
	ldr	x8, [x20, #56]
	cmp	x8, x22
	b.le	LBB0_15
; %bb.4:
	str	x2, [x19, #24]                  ; 8-byte Folded Spill
	str	x4, [x19, #8]                   ; 8-byte Folded Spill
Lloh10:
	adrp	x28, _MAX_SAD@GOTPAGE
Lloh11:
	ldr	x28, [x28, _MAX_SAD@GOTPAGEOFF]
	ldr	w8, [x28]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.5:
	str	x26, [x19, #16]                 ; 8-byte Folded Spill
	str	x21, [x19, #32]                 ; 8-byte Folded Spill
	mov	x23, #0
	mov	x21, #0
Lloh12:
	adrp	x26, _dram_rule@GOTPAGE
Lloh13:
	ldr	x26, [x26, _dram_rule@GOTPAGEOFF]
                                        ; implicit-def: $x24
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x21, x24
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x28]
	cmp	x23, x8
	b.ge	LBB0_12
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #48]
	ldr	x8, [x26]
	ldr	w1, [x8, x23, lsl #2]
	add	x2, x19, #44
	bl	_pci_read_config_dword
	ldr	w0, [x19, #44]
	bl	_DRAM_RULE_ENABLE
	cbz	w0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x19, #44]
	bl	_SAD_LIMIT
	cmp	x0, x21
	b.le	LBB0_32
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x24, x0
	cmp	x0, x22
	b.lt	LBB0_6
; %bb.11:
	ldr	w8, [x28]
LBB0_12:
	ldr	x21, [x19, #32]                 ; 8-byte Folded Reload
	ldr	x26, [x19, #16]                 ; 8-byte Folded Reload
	cmp	w23, w8
	b.ne	LBB0_21
LBB0_13:
	strb	wzr, [x19, #80]
Lloh14:
	adrp	x8, l_.str.2@PAGE
Lloh15:
	add	x8, x8, l_.str.2@PAGEOFF
LBB0_14:
	ldp	q0, q1, [x8]
	stp	q0, q1, [x19, #48]
	b	LBB0_17
LBB0_15:
	str	x22, [sp, #-16]!
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_16:
	add	x0, x19, #48
	bl	_sprintf
	add	sp, sp, #16
LBB0_17:
	add	x1, x19, #48
	mov	x0, x25
	bl	_edac_mc_handle_ce_no_info
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_18:
	mov	sp, x21
	ldur	x8, [x29, #-96]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_74
; %bb.19:
	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_20:
	mov	w23, #0
                                        ; implicit-def: $x24
	cmp	w23, w8
	b.eq	LBB0_13
LBB0_21:
	ldr	w0, [x19, #44]
	bl	_get_dram_attr
	ldr	w0, [x19, #44]
	bl	_INTERLEAVE_MODE
	str	w0, [x19, #32]                  ; 4-byte Folded Spill
	ldr	w0, [x20, #48]
Lloh24:
	adrp	x8, _interleave_list@GOTPAGE
Lloh25:
	ldr	x8, [x8, _interleave_list@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	mov	w9, w23
	str	x9, [x19, #16]                  ; 8-byte Folded Spill
	ldr	w1, [x8, w23, uxtw #2]
	add	x2, x19, #44
	bl	_pci_read_config_dword
	ldr	w0, [x19, #44]
	mov	w1, #0
	bl	_sad_pkg
	mov	x28, x0
	ldr	w0, [x19, #44]
	mov	w1, #0
	bl	_sad_pkg
	str	w0, [x27]
	mov	w2, w0
Lloh27:
	adrp	x0, l_.str.3@PAGE
Lloh28:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	w1, #0
	bl	_debugf0
	ldr	w0, [x19, #44]
	mov	w23, #1
	mov	w1, #1
	bl	_sad_pkg
	cmp	w28, w0
	b.eq	LBB0_29
; %bb.22:
	ldr	w0, [x19, #44]
	mov	w1, #1
	bl	_sad_pkg
	str	w0, [x27, #4]
	mov	w2, w0
Lloh29:
	adrp	x0, l_.str.3@PAGE
Lloh30:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	w1, #1
	bl	_debugf0
	ldr	w0, [x19, #44]
	mov	w23, #2
	mov	w1, #2
	bl	_sad_pkg
	cmp	w28, w0
	b.eq	LBB0_29
; %bb.23:
	ldr	w0, [x19, #44]
	mov	w1, #2
	bl	_sad_pkg
	str	w0, [x27, #8]
	mov	w2, w0
Lloh31:
	adrp	x0, l_.str.3@PAGE
Lloh32:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	w1, #2
	bl	_debugf0
	ldr	w0, [x19, #44]
	mov	w23, #3
	mov	w1, #3
	bl	_sad_pkg
	cmp	w28, w0
	b.eq	LBB0_29
; %bb.24:
	ldr	w0, [x19, #44]
	mov	w1, #3
	bl	_sad_pkg
	str	w0, [x27, #12]
	mov	w2, w0
Lloh33:
	adrp	x0, l_.str.3@PAGE
Lloh34:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	w1, #3
	bl	_debugf0
	ldr	w0, [x19, #44]
	mov	w23, #4
	mov	w1, #4
	bl	_sad_pkg
	cmp	w28, w0
	b.eq	LBB0_29
; %bb.25:
	ldr	w0, [x19, #44]
	mov	w1, #4
	bl	_sad_pkg
	str	w0, [x27, #16]
	mov	w2, w0
Lloh35:
	adrp	x0, l_.str.3@PAGE
Lloh36:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	w1, #4
	bl	_debugf0
	ldr	w0, [x19, #44]
	mov	w23, #5
	mov	w1, #5
	bl	_sad_pkg
	cmp	w28, w0
	b.eq	LBB0_29
; %bb.26:
	ldr	w0, [x19, #44]
	mov	w1, #5
	bl	_sad_pkg
	str	w0, [x27, #20]
	mov	w2, w0
Lloh37:
	adrp	x0, l_.str.3@PAGE
Lloh38:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	w1, #5
	bl	_debugf0
	ldr	w0, [x19, #44]
	mov	w23, #6
	mov	w1, #6
	bl	_sad_pkg
	cmp	w28, w0
	b.eq	LBB0_29
; %bb.27:
	ldr	w0, [x19, #44]
	mov	w1, #6
	bl	_sad_pkg
	str	w0, [x27, #24]
	mov	w2, w0
Lloh39:
	adrp	x0, l_.str.3@PAGE
Lloh40:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	w1, #6
	bl	_debugf0
	ldr	w0, [x19, #44]
	mov	w23, #7
	mov	w1, #7
	bl	_sad_pkg
	cmp	w28, w0
	b.eq	LBB0_29
; %bb.28:
	ldr	w0, [x19, #44]
	mov	w1, #7
	bl	_sad_pkg
	str	w0, [x27, #28]
	mov	w2, w0
Lloh41:
	adrp	x0, l_.str.3@PAGE
Lloh42:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	w1, #7
	bl	_debugf0
	mov	w23, #8
LBB0_29:
	ldr	x8, [x20, #40]
	ldr	w28, [x8]
	add	w20, w23, #7
	ldr	w0, [x19, #44]
	bl	_INTERLEAVE_MODE
Lloh43:
	adrp	x8, l_.str.5@PAGE
Lloh44:
	add	x8, x8, l_.str.5@PAGEOFF
Lloh45:
	adrp	x9, l_.str.6@PAGE
Lloh46:
	add	x9, x9, l_.str.6@PAGEOFF
	cmp	w0, #0
	csel	x8, x9, x8, eq
	sub	sp, sp, #32
	stp	x20, x8, [sp, #16]
	stp	x22, x24, [sp]
Lloh47:
	adrp	x0, l_.str.4@PAGE
Lloh48:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x28
	ldr	x2, [x19, #16]                  ; 8-byte Folded Reload
	bl	_debugf0
	add	sp, sp, #32
	lsr	x8, x22, #6
	lsr	x9, x22, #16
	eor	w8, w8, w9
	ubfx	x9, x22, #6, #26
	ldr	w10, [x19, #32]                 ; 4-byte Folded Reload
	cmp	w10, #0
	csel	w8, w9, w8, eq
	sub	w9, w23, #1
	cmp	w9, #7
	b.hi	LBB0_34
; %bb.30:
	and	w1, w8, #0x7
Lloh49:
	adrp	x10, lJTI0_0@PAGE
Lloh50:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_31
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_31:
	mov	w1, #0
	b	LBB0_36
LBB0_32:
	strb	wzr, [x19, #80]
Lloh51:
	adrp	x8, l_.str.2@PAGE
Lloh52:
	add	x8, x8, l_.str.2@PAGEOFF
	ldp	q0, q1, [x8]
	stp	q0, q1, [x19, #48]
	add	x1, x19, #48
	mov	x0, x25
	b	LBB0_69
LBB0_33:
	and	w1, w8, #0x1
	b	LBB0_36
LBB0_34:
	strb	wzr, [x19, #80]
Lloh53:
	adrp	x8, l_.str.7@PAGE
Lloh54:
	add	x8, x8, l_.str.7@PAGEOFF
	b	LBB0_14
LBB0_35:
	and	w1, w8, #0x3
LBB0_36:
	ldr	w8, [x27, w1, uxtw #2]
	ldr	x20, [x19, #24]                 ; 8-byte Folded Reload
	str	w8, [x20]
	mov	w2, w23
	str	x8, [sp, #-16]!
Lloh55:
	adrp	x0, l_.str.8@PAGE
Lloh56:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_debugf0
	add	sp, sp, #16
	ldr	w0, [x20]
	bl	_get_mci_for_node_id
	cbz	x0, LBB0_43
; %bb.37:
	mov	x28, x0
	str	x21, [x19, #32]                 ; 8-byte Folded Spill
	ldr	x20, [x0]
Lloh57:
	adrp	x21, _MAX_TAD@GOTPAGE
Lloh58:
	ldr	x21, [x21, _MAX_TAD@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_44
; %bb.38:
	mov	x27, x26
	mov	x25, #0
	mov	x24, #0
Lloh59:
	adrp	x23, _tad_dram_rule@GOTPAGE
Lloh60:
	ldr	x23, [x23, _tad_dram_rule@GOTPAGEOFF]
LBB0_39:                                ; =>This Inner Loop Header: Depth=1
	mov	x26, x24
	ldr	w0, [x20, #32]
	ldr	x8, [x23]
	ldr	w1, [x8, x25, lsl #2]
	add	x2, x19, #44
	bl	_pci_read_config_dword
	ldr	w0, [x19, #44]
	bl	_TAD_LIMIT
	cmp	x0, x24
	b.le	LBB0_48
; %bb.40:                               ;   in Loop: Header=BB0_39 Depth=1
	mov	x24, x0
	cmp	x0, x22
	b.ge	LBB0_42
; %bb.41:                               ;   in Loop: Header=BB0_39 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x21]
	cmp	x25, x8
	b.lt	LBB0_39
LBB0_42:
	str	x28, [x19, #24]                 ; 8-byte Folded Spill
	mov	x26, x27
	b	LBB0_45
LBB0_43:
	ldr	w8, [x20]
	str	x8, [sp, #-16]!
Lloh61:
	adrp	x1, l_.str.9@PAGE
Lloh62:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_16
LBB0_44:
	str	x28, [x19, #24]                 ; 8-byte Folded Spill
	mov	w25, #0
LBB0_45:
	ldr	w0, [x19, #44]
	bl	_TAD_CH
	mov	x27, x0
	add	w21, w0, #1
	ldr	w0, [x19, #44]
	bl	_TAD_SOCK
	mov	x28, x0
	ldr	x8, [x20]
	ldr	w0, [x8]
Lloh63:
	adrp	x8, _tad_ch_nilv_offset@GOTPAGE
Lloh64:
	ldr	x8, [x8, _tad_ch_nilv_offset@GOTPAGEOFF]
Lloh65:
	ldr	x8, [x8]
	ldr	w1, [x8, w25, uxtw #2]
	add	x2, x19, #40
	bl	_pci_read_config_dword
	add	w8, w28, #7
	mov	w9, #6
	cmp	w21, #3
	csel	w8, w9, w8, eq
	asr	x8, x22, x8
	sdiv	w9, w8, w21
	msub	w23, w9, w21, w8
	cmp	w23, #3
	b.hi	LBB0_49
; %bb.46:
Lloh66:
	adrp	x8, lJTI0_1@PAGE
Lloh67:
	add	x8, x8, lJTI0_1@PAGEOFF
	adr	x9, LBB0_47
	ldrb	w10, [x8, x23]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_47:
	ldr	w0, [x19, #44]
	bl	_TAD_TGT0
	b	LBB0_53
LBB0_48:
	mov	w8, #108
	strh	w8, [x19, #80]
Lloh68:
	adrp	x8, l_.str.10@PAGE
Lloh69:
	add	x8, x8, l_.str.10@PAGEOFF
	ldp	q0, q1, [x8]
	stp	q0, q1, [x19, #48]
	add	x1, x19, #48
	mov	x0, x28
	b	LBB0_69
LBB0_49:
Lloh70:
	adrp	x8, l_.str.11@PAGE
Lloh71:
	add	x8, x8, l_.str.11@PAGEOFF
	ldr	q0, [x8]
	str	q0, [x19, #48]
	ldur	q0, [x8, #14]
	stur	q0, [x19, #62]
	b	LBB0_68
LBB0_50:
	ldr	w0, [x19, #44]
	bl	_TAD_TGT1
	b	LBB0_53
LBB0_51:
	ldr	w0, [x19, #44]
	bl	_TAD_TGT2
	b	LBB0_53
LBB0_52:
	ldr	w0, [x19, #44]
	bl	_TAD_TGT3
LBB0_53:
                                        ; kill: def $w0 killed $w0 def $x0
	add	w9, w28, #1
	mov	w10, #1
	lsl	w8, w10, w0
	sxtw	x8, w8
	str	x8, [x26]
	ldr	x11, [x20, #24]
	cbz	x11, LBB0_56
; %bb.54:
	add	w11, w0, #2
	and	w11, w11, #0x3
	lsl	w10, w10, w11
	orr	x8, x10, x8
	str	x8, [x26]
	orr	w10, w27, #0x2
	cmp	w10, #3
	b.ne	LBB0_67
; %bb.55:
	lsr	w10, w21, #1
	mul	w9, w9, w10
	mov	w10, #1
	lsl	w9, w10, w9
	b	LBB0_57
LBB0_56:
	lsl	w9, w21, w9
LBB0_57:
	str	x9, [x19]                       ; 8-byte Folded Spill
	ldr	x9, [x20, #16]
	cbz	x9, LBB0_59
; %bb.58:
	add	w9, w0, #1
	and	w9, w9, #0x3
	mov	w10, #1
	lsl	w9, w10, w9
	orr	x8, x8, x9
	str	x8, [x26]
LBB0_59:
	mov	x28, x0
	ldr	w0, [x19, #40]
	bl	_TAD_OFFSET
	mov	x27, x0
	ldr	w0, [x19, #44]
	bl	_TAD_SOCK
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x26]
	sub	sp, sp, #64
	str	x8, [sp, #48]
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	str	x28, [x19, #16]                 ; 8-byte Folded Spill
	stp	x23, x28, [sp, #32]
Lloh72:
	adrp	x8, l_.str.13@PAGE
Lloh73:
	add	x8, x8, l_.str.13@PAGEOFF
	stp	x21, x27, [sp, #16]
	stp	x24, x0, [sp]
	mov	x0, x8
	mov	x1, x25
	mov	x2, x22
	bl	_debugf0
	add	sp, sp, #64
	cmp	x27, x22
	b.le	LBB0_61
; %bb.60:
	stp	x27, x22, [sp, #-16]!
Lloh74:
	adrp	x1, l_.str.14@PAGE
Lloh75:
	add	x1, x1, l_.str.14@PAGEOFF
	add	x0, x19, #48
	bl	_sprintf
	add	sp, sp, #16
	b	LBB0_68
LBB0_61:
	sub	x8, x22, x27
	and	x9, x8, #0x7f
	asr	x8, x8, #6
	ldr	x10, [x19]                      ; 8-byte Folded Reload
	sxtw	x10, w10
	sdiv	x8, x8, x10
	lsl	x8, x8, #6
	str	x8, [x19]                       ; 8-byte Folded Spill
	orr	x22, x8, x9
Lloh76:
	adrp	x28, _MAX_RIR_RANGES@GOTPAGE
Lloh77:
	ldr	x28, [x28, _MAX_RIR_RANGES@GOTPAGEOFF]
	ldr	w8, [x28]
	cmp	w8, #1
	b.lt	LBB0_70
; %bb.62:
	mov	x23, #0
	ldr	x8, [x19, #16]                  ; 8-byte Folded Reload
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
Lloh78:
	adrp	x21, _rir_way_limit@GOTPAGE
Lloh79:
	ldr	x21, [x21, _rir_way_limit@GOTPAGEOFF]
	sxtw	x25, w8
	b	LBB0_64
LBB0_63:                                ;   in Loop: Header=BB0_64 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x28]
	cmp	x23, x8
	b.ge	LBB0_71
LBB0_64:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	w0, [x8, x25, lsl #2]
	ldr	x8, [x21]
	ldr	w1, [x8, x23, lsl #2]
	add	x2, x19, #44
	bl	_pci_read_config_dword
	ldr	w0, [x19, #44]
	bl	_IS_RIR_VALID
	cbz	w0, LBB0_63
; %bb.65:                               ;   in Loop: Header=BB0_64 Depth=1
	ldr	w0, [x19, #44]
	bl	_RIR_LIMIT
	mov	x24, x0
	asr	x8, x0, #20
	mov	x9, #63439
	movk	x9, #58195, lsl #16
	movk	x9, #39845, lsl #32
	movk	x9, #8388, lsl #48
	smulh	x9, x8, x9
	asr	x10, x9, #7
	add	x27, x10, x9, lsr #63
	mov	w9, #1000
	msub	x26, x27, x9, x8
	ldr	w0, [x19, #44]
	bl	_RIR_WAY
	mov	w8, #1
	lsl	w8, w8, w0
	sub	sp, sp, #32
	stp	x24, x8, [sp, #8]
	str	x26, [sp]
Lloh80:
	adrp	x0, l_.str.15@PAGE
Lloh81:
	add	x0, x0, l_.str.15@PAGEOFF
	mov	x1, x23
	mov	x2, x27
	bl	_debugf0
	add	sp, sp, #32
	cmp	x22, x24
	b.gt	LBB0_63
; %bb.66:
	ldr	w8, [x28]
	b	LBB0_71
LBB0_67:
Lloh82:
	adrp	x8, l_.str.12@PAGE
Lloh83:
	add	x8, x8, l_.str.12@PAGEOFF
	ldp	q0, q1, [x8]
	stp	q0, q1, [x19, #48]
	ldur	x8, [x8, #30]
	stur	x8, [x19, #78]
LBB0_68:
	add	x1, x19, #48
	ldr	x0, [x19, #24]                  ; 8-byte Folded Reload
LBB0_69:
	bl	_edac_mc_handle_ce_no_info
Lloh84:
	adrp	x8, _EINVAL@GOTPAGE
Lloh85:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh86:
	ldr	w8, [x8]
	neg	w0, w8
	ldr	x21, [x19, #32]                 ; 8-byte Folded Reload
	b	LBB0_18
LBB0_70:
	mov	w23, #0
LBB0_71:
	cmp	w23, w8
	ldp	x25, x21, [x19, #24]            ; 16-byte Folded Reload
	b.ne	LBB0_73
; %bb.72:
	str	x22, [sp, #-16]!
Lloh87:
	adrp	x1, l_.str.16@PAGE
Lloh88:
	add	x1, x1, l_.str.16@PAGEOFF
	b	LBB0_16
LBB0_73:
	ldr	w0, [x19, #44]
	bl	_RIR_WAY
	mov	x25, x0
	lsr	x8, x22, #6
	ldr	x9, [x19]                       ; 8-byte Folded Reload
	lsr	x9, x9, #13
	ldp	x11, x10, [x20]
	cmp	x10, #0
	csel	w8, w9, w8, eq
	mov	w9, #1
	lsl	w9, w9, w0
	sdiv	w10, w8, w9
	ldr	x12, [x19, #16]                 ; 8-byte Folded Reload
	ldr	w0, [x11, w12, sxtw #2]
Lloh89:
	adrp	x11, _rir_offset@GOTPAGE
Lloh90:
	ldr	x11, [x11, _rir_offset@GOTPAGEOFF]
	msub	w20, w10, w9, w8
Lloh91:
	ldr	x8, [x11]
	ldr	x8, [x8, w23, uxtw #3]
	ldr	w1, [x8, w20, sxtw #2]
	add	x2, x19, #44
	bl	_pci_read_config_dword
	ldr	w0, [x19, #44]
	bl	_RIR_RNK_TGT
	ldr	x8, [x19, #8]                   ; 8-byte Folded Reload
	str	w0, [x8]
	sub	sp, sp, #32
	stp	x25, x20, [sp, #8]
	str	x24, [sp]
Lloh92:
	adrp	x0, l_.str.17@PAGE
Lloh93:
	add	x0, x0, l_.str.17@PAGEOFF
	mov	x1, x23
	mov	x2, x22
	bl	_debugf0
	add	sp, sp, #32
	mov	w0, #0
	b	LBB0_18
LBB0_74:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpLdrGot	Lloh76, Lloh77
	.loh AdrpLdrGot	Lloh78, Lloh79
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpAdd	Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpAdd	Lloh87, Lloh88
	.loh AdrpAdd	Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_31-LBB0_31)>>2
	.byte	(LBB0_33-LBB0_31)>>2
	.byte	(LBB0_34-LBB0_31)>>2
	.byte	(LBB0_35-LBB0_31)>>2
	.byte	(LBB0_34-LBB0_31)>>2
	.byte	(LBB0_34-LBB0_31)>>2
	.byte	(LBB0_34-LBB0_31)>>2
	.byte	(LBB0_36-LBB0_31)>>2
lJTI0_1:
	.byte	(LBB0_47-LBB0_47)>>2
	.byte	(LBB0_50-LBB0_47)>>2
	.byte	(LBB0_51-LBB0_47)>>2
	.byte	(LBB0_52-LBB0_47)>>2
                                        ; -- End function
	.comm	_MAX_INTERLEAVE,4,2             ; @MAX_INTERLEAVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error at TOLM area, on addr 0x%08Lx"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Error at MMIOH area, on addr 0x%016Lx"

	.comm	_MAX_SAD,4,2                    ; @MAX_SAD
	.comm	_dram_rule,8,3                  ; @dram_rule
l_.str.2:                               ; @.str.2
	.asciz	"Can't discover the memory socket"

	.comm	_interleave_list,8,3            ; @interleave_list
l_.str.3:                               ; @.str.3
	.asciz	"SAD interleave #%d: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"mc#%d: Error detected on SAD#%d: address 0x%016Lx < 0x%016Lx, Interleave [%d:6]%s\n"

l_.str.5:                               ; @.str.5
	.space	1

l_.str.6:                               ; @.str.6
	.asciz	"XOR[18:16]"

l_.str.7:                               ; @.str.7
	.asciz	"Can't discover socket interleave"

l_.str.8:                               ; @.str.8
	.asciz	"SAD interleave index: %d (wayness %d) = CPU socket %d\n"

l_.str.9:                               ; @.str.9
	.asciz	"Struct for socket #%u wasn't initialized"

	.comm	_MAX_TAD,4,2                    ; @MAX_TAD
	.comm	_tad_dram_rule,8,3              ; @tad_dram_rule
l_.str.10:                              ; @.str.10
	.asciz	"Can't discover the memory channel"

	.comm	_tad_ch_nilv_offset,8,3         ; @tad_ch_nilv_offset
l_.str.11:                              ; @.str.11
	.asciz	"Can't discover the TAD target"

l_.str.12:                              ; @.str.12
	.asciz	"Invalid mirror set. Can't decode addr"

l_.str.13:                              ; @.str.13
	.asciz	"TAD#%d: address 0x%016Lx < 0x%016Lx, socket interleave %d, channel interleave %d (offset 0x%08Lx), index %d, base ch: %d, ch mask: 0x%02lx\n"

l_.str.14:                              ; @.str.14
	.asciz	"Can't calculate ch addr: TAD offset 0x%08Lx is too high for addr 0x%08Lx!"

	.comm	_MAX_RIR_RANGES,4,2             ; @MAX_RIR_RANGES
	.comm	_rir_way_limit,8,3              ; @rir_way_limit
l_.str.15:                              ; @.str.15
	.asciz	"RIR#%d, limit: %Lu.%03Lu GB (0x%016Lx), way: %d\n"

l_.str.16:                              ; @.str.16
	.asciz	"Can't discover the memory rank for ch addr 0x%08Lx"

	.comm	_rir_offset,8,3                 ; @rir_offset
l_.str.17:                              ; @.str.17
	.asciz	"RIR#%d: channel address 0x%08Lx < 0x%08Lx, RIR interleave %d, index %d\n"

	.no_dead_strip	_get_memory_error_data
.subsections_via_symbols
