	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function f1x_match_to_this_node
_f1x_match_to_this_node:                ## @f1x_match_to_this_node
	.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
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, %rbx
	callq	_dram_dst_node
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_dram_intlv_en
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_dram_intlv_sel
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_get_dram_limit
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_edac_dbg
	movq	%rbx, %rdi
	callq	_dhar_valid
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_dhar_base
	cmpl	%r12d, %eax
	jg	LBB0_4
## %bb.2:
	movl	$32, %edi
	callq	_BIT_64
	cmpl	%r12d, %eax
	jle	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	movl	%r12d, %esi
	callq	_amd64_warn
	jmp	LBB0_6
LBB0_4:
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.5:
	movl	%r12d, %eax
	sarl	$12, %eax
	andl	%r14d, %eax
	cmpl	%eax, %r15d
	jne	LBB0_6
LBB0_7:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_f1x_swap_interleaved_region
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_dct_sel_baseaddr
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_dct_high_range_enabled
	xorl	%r12d, %r12d
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	%rbx, %rdi
	callq	_dct_ganging_enabled
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movl	%r15d, %eax
	sarl	$27, %eax
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	sarl	$11, %ecx
	xorl	%r12d, %r12d
	cmpl	%ecx, %eax
	setge	%r12b
LBB0_10:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	callq	_f1x_determine_channel
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	callq	_f1x_get_norm_dct_addr
	movl	%eax, %r13d
	testl	%r14d, %r14d
	je	LBB0_12
## %bb.11:
	movl	%r14d, %edi
	callq	_hweight8
                                        ## kill: def $eax killed $eax def $rax
	leal	12(%rax), %ecx
	movl	%r13d, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %eax
	shll	$12, %eax
	andl	$4095, %r13d                    ## imm = 0xFFF
	orl	%eax, %r13d
LBB0_12:
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	movq	%rbx, %rdi
	callq	_dct_interleave_enabled
	testq	%rax, %rax
	je	LBB0_20
## %bb.13:
	movq	%rbx, %rdi
	callq	_dct_high_range_enabled
	testq	%rax, %rax
	jne	LBB0_20
## %bb.14:
	movq	%rbx, %rdi
	callq	_dct_ganging_enabled
	testl	%eax, %eax
	jne	LBB0_20
## %bb.15:
	movq	%rbx, %rdi
	callq	_dct_sel_interleave_addr
	cmpl	$1, %eax
	jne	LBB0_16
## %bb.19:
	movl	%r13d, %eax
	sarl	%eax
	andl	$-4096, %eax                    ## imm = 0xF000
	andl	$4095, %r13d                    ## imm = 0xFFF
	orl	%eax, %r13d
LBB0_20:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_21:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_edac_dbg
	movl	%r13d, %edi
	movl	%ebx, %esi
	movl	%r14d, %edx
	callq	_f1x_lookup_addr_in_dct
	testl	%eax, %eax
	js	LBB0_23
## %bb.22:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%r14d, (%rcx)
	jmp	LBB0_23
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_23:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	%rbx, %rdi
	callq	_dct_sel_interleave_addr
	movl	%r13d, %ecx
	sarl	%ecx
	cmpl	$3, %eax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jne	LBB0_18
## %bb.17:
	andl	$-512, %ecx                     ## imm = 0xFE00
	andl	$511, %r13d                     ## imm = 0x1FF
	orl	%ecx, %r13d
	jmp	LBB0_21
LBB0_18:
	andl	$-64, %ecx
	andl	$63, %r13d
	orl	%ecx, %r13d
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(range %d) SystemAddr= 0x%llx Limit=0x%llx\n"

L_.str.1:                               ## @.str.1
	.asciz	"Huh? Address is in the MMIO hole: 0x%016llx\n"

L_.str.2:                               ## @.str.2
	.asciz	"   Normalized DCT addr: 0x%llx\n"

	.no_dead_strip	_f1x_match_to_this_node
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function f1x_match_to_this_node
_f1x_match_to_this_node:                ; @f1x_match_to_this_node
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x3
	mov	x24, x2
	mov	x22, x1
	mov	x21, x0
	bl	_dram_dst_node
	mov	x20, x0
	mov	x0, x21
	mov	x1, x22
	bl	_dram_intlv_en
	mov	x23, x0
	mov	x0, x21
	mov	x1, x22
	bl	_dram_intlv_sel
	mov	x25, x0
	mov	x0, x21
	mov	x1, x22
	bl	_get_dram_limit
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x24, x0, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x22
	bl	_edac_dbg
	mov	x0, x21
	bl	_dhar_valid
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x21
	bl	_dhar_base
	cmp	w0, w24
	b.gt	LBB0_4
; %bb.2:
	mov	w0, #32
	bl	_BIT_64
	cmp	w0, w24
	b.le	LBB0_4
; %bb.3:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x24
	bl	_amd64_warn
	b	LBB0_8
LBB0_4:
	cbz	w23, LBB0_6
; %bb.5:
	and	w8, w23, w24, asr #12
	cmp	w25, w8
	b.ne	LBB0_8
LBB0_6:
	mov	x0, x21
	mov	x1, x24
	bl	_f1x_swap_interleaved_region
	mov	x25, x0
	mov	x0, x21
	bl	_dct_sel_baseaddr
	mov	x26, x0
	mov	x0, x21
	bl	_dct_high_range_enabled
	cbz	x0, LBB0_9
; %bb.7:
	mov	x0, x21
	bl	_dct_ganging_enabled
	asr	w8, w25, #27
	cmp	w8, w26, asr #11
	cset	w8, ge
	cmp	w0, #0
	csel	w27, wzr, w8, ne
	b	LBB0_10
LBB0_8:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_23
LBB0_9:
	mov	w27, #0
LBB0_10:
	mov	x0, x21
	mov	x1, x25
	mov	x2, x27
	mov	x3, x23
	bl	_f1x_determine_channel
	mov	x24, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x25
	mov	x3, x27
	mov	x4, x26
	bl	_f1x_get_norm_dct_addr
	mov	x22, x0
	cbz	w23, LBB0_12
; %bb.11:
	mov	x0, x23
	bl	_hweight8
	add	w8, w0, #12
	asr	w8, w22, w8
	bfi	w22, w8, #12, #20
LBB0_12:
	mov	x0, x21
	bl	_dct_interleave_enabled
	cbz	x0, LBB0_21
; %bb.13:
	mov	x0, x21
	bl	_dct_high_range_enabled
	cbnz	x0, LBB0_21
; %bb.14:
	mov	x0, x21
	bl	_dct_ganging_enabled
	cbnz	w0, LBB0_21
; %bb.15:
	mov	x0, x21
	bl	_dct_sel_interleave_addr
	cmp	w0, #1
	b.ne	LBB0_17
; %bb.16:
	asr	w8, w22, #1
	bfxil	w8, w22, #0, #12
	b	LBB0_20
LBB0_17:
	mov	x0, x21
	bl	_dct_sel_interleave_addr
	asr	w8, w22, #1
	cmp	w0, #3
	b.ne	LBB0_19
; %bb.18:
	bfxil	w8, w22, #0, #9
	b	LBB0_20
LBB0_19:
	bfxil	w8, w22, #0, #6
LBB0_20:
	mov	x22, x8
LBB0_21:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	mov	x2, x22
	bl	_edac_dbg
	mov	x0, x22
	mov	x1, x20
	mov	x2, x24
	bl	_f1x_lookup_addr_in_dct
	tbnz	w0, #31, LBB0_23
; %bb.22:
	str	w24, [x19]
LBB0_23:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(range %d) SystemAddr= 0x%llx Limit=0x%llx\n"

l_.str.1:                               ; @.str.1
	.asciz	"Huh? Address is in the MMIO hole: 0x%016llx\n"

l_.str.2:                               ; @.str.2
	.asciz	"   Normalized DCT addr: 0x%llx\n"

	.no_dead_strip	_f1x_match_to_this_node
.subsections_via_symbols
