	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function f15_m30h_match_to_this_node
_f15_m30h_match_to_this_node:           ## @f15_m30h_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r13
	callq	_f10_dhar_offset
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_dct_sel_interleave_addr
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_dram_dst_node
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_dram_intlv_en
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movl	4(%r13), %edi
	movq	_DRAM_CONT_BASE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	-44(%rbp), %rdx
	callq	_amd64_read_pci_cfg
	movl	4(%r13), %edi
	movq	_DRAM_CONT_LIMIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	-84(%rbp), %rdx
	callq	_amd64_read_pci_cfg
	movl	-44(%rbp), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	xorl	%edi, %edi
	callq	_BIT
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	-44(%rbp), %r14d
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_get_dram_limit
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%ebx, %edx
	movl	%r12d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_edac_dbg
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_get_dram_base
	cmpl	%r12d, %eax
	jle	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_get_dram_limit
	cmpl	%r12d, %eax
	jl	LBB0_15
LBB0_2:
	movq	%r13, %rdi
	callq	_dhar_valid
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%r13, %rdi
	callq	_dhar_base
	cmpl	%r12d, %eax
	jg	LBB0_6
## %bb.4:
	movl	$32, %edi
	callq	_BIT_64
	cmpl	%r12d, %eax
	jle	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	movl	%r12d, %esi
	callq	_amd64_warn
	jmp	LBB0_15
LBB0_6:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_dct_sel_baseaddr
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	-84(%rbp), %r15d
	movl	-44(%rbp), %ebx
	xorl	%edi, %edi
	callq	_BIT
	testl	%ebx, %eax
	jne	LBB0_9
## %bb.7:
	movl	%r12d, %eax
	sarl	$27, %eax
	cmpl	-96(%rbp), %eax                 ## 4-byte Folded Reload
	jl	LBB0_15
## %bb.8:
	shrl	$11, %r15d
	andl	$8191, %r15d                    ## imm = 0x1FFF
	cmpl	%eax, %r15d
	jl	LBB0_15
LBB0_9:
	movl	-76(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_hweight8
	movq	%rax, %r15
	cmpl	$4, %r15d
	jg	LBB0_15
## %bb.10:
	movl	%r15d, %eax
	andl	$1, %eax
	jne	LBB0_15
## %bb.11:
	cmpl	$96, (%r13)
	jl	LBB0_13
## %bb.12:
	movq	%r13, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	callq	_f1x_determine_channel
	jmp	LBB0_14
LBB0_13:
	shrl	$4, %r14d
	andl	$7, %r14d
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	callq	_f15_m30h_determine_channel
LBB0_14:
	movl	%eax, %r14d
	cmpl	$4, %eax
	jl	LBB0_17
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_16:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movl	-44(%rbp), %ebx
	sarl	%ebx
	xorl	%edi, %edi
	callq	_BIT
	testl	%eax, %ebx
	movl	-72(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_19
## %bb.18:
	movl	$32, %edi
	callq	_BIT_64
	cmpl	%r12d, %eax
	jle	LBB0_20
LBB0_19:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	shll	$27, %eax
	movl	%eax, %ebx
LBB0_20:
	subl	%ebx, %r12d
	cmpl	$4, %r15d
	je	LBB0_25
## %bb.21:
	cmpl	$2, %r15d
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	jne	LBB0_30
## %bb.22:
	cmpl	$5, %eax
	je	LBB0_29
## %bb.23:
	cmpl	$4, %eax
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_15
## %bb.24:
	movl	%r12d, %eax
	sarl	%eax
	jmp	LBB0_28
LBB0_25:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	cmpl	$5, %eax
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_31
## %bb.26:
	cmpl	$4, %eax
	jne	LBB0_15
## %bb.27:
	movl	%r12d, %eax
	sarl	$2, %eax
LBB0_28:
	andl	$-256, %eax
	movzbl	%r12b, %r12d
	jmp	LBB0_32
LBB0_29:
	movl	%r12d, %eax
	sarl	%eax
	andl	$-512, %eax                     ## imm = 0xFE00
	andl	$511, %r12d                     ## imm = 0x1FF
	orl	%eax, %r12d
LBB0_30:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_33
LBB0_31:
	movl	%r12d, %eax
	sarl	$2, %eax
	andl	$-512, %eax                     ## imm = 0xFE00
	andl	$511, %r12d                     ## imm = 0x1FF
LBB0_32:
	orl	%eax, %r12d
LBB0_33:
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	sarl	$3, %eax
	andl	-60(%rbp), %eax                 ## 4-byte Folded Reload
	je	LBB0_35
## %bb.34:
	movl	4(%r13), %edi
	movq	_DRAM_CONT_HIGH_OFF@GOTPCREL(%rip), %rax
	leal	(,%r14,4), %ecx
	movslq	%ecx, %rsi
	addq	(%rax), %rsi
	leaq	-80(%rbp), %rdx
	callq	_amd64_read_pci_cfg
	movl	-80(%rbp), %eax
	shll	$16, %eax
	andl	$-134217728, %eax               ## imm = 0xF8000000
	addl	%eax, %r12d
LBB0_35:
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_f15h_select_dct
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %ebx
	movl	$1, %edi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_edac_dbg
	cmpl	$3, %r14d
	cmovel	%ebx, %r14d
	movl	%r12d, %edi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	movl	%r14d, %edx
	callq	_f1x_lookup_addr_in_dct
	testl	%eax, %eax
	js	LBB0_16
## %bb.36:
	movl	%r14d, (%r15)
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DRAM_CONT_BASE,8,3             ## @DRAM_CONT_BASE
	.comm	_DRAM_CONT_LIMIT,8,3            ## @DRAM_CONT_LIMIT
	.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"

	.comm	_DRAM_CONT_HIGH_OFF,8,3         ## @DRAM_CONT_HIGH_OFF
L_.str.2:                               ## @.str.2
	.asciz	"   Normalized DCT addr: 0x%llx\n"

	.no_dead_strip	_f15_m30h_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 f15_m30h_match_to_this_node
_f15_m30h_match_to_this_node:           ; @f15_m30h_match_to_this_node
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x27, x1
	mov	x20, x0
	bl	_f10_dhar_offset
	mov	x25, x0
	mov	x0, x20
	bl	_dct_sel_interleave_addr
	mov	x28, x0
	mov	x0, x20
	mov	x1, x27
	bl	_dram_dst_node
	mov	x23, x0
	mov	x0, x20
	mov	x1, x27
	bl	_dram_intlv_en
	mov	x26, x0
	ldr	w0, [x20, #4]
Lloh0:
	adrp	x8, _DRAM_CONT_BASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRAM_CONT_BASE@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x8]
	add	x2, sp, #44
	bl	_amd64_read_pci_cfg
	ldr	w0, [x20, #4]
Lloh3:
	adrp	x8, _DRAM_CONT_LIMIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRAM_CONT_LIMIT@GOTPAGEOFF]
Lloh5:
	ldr	x1, [x8]
	add	x2, sp, #40
	bl	_amd64_read_pci_cfg
	ldr	w22, [sp, #44]
	mov	w0, #0
	bl	_BIT
	str	w0, [sp, #32]                   ; 4-byte Folded Spill
	ldr	w21, [sp, #44]
	mov	x0, x20
	mov	x1, x27
	bl	_get_dram_limit
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x24, x0, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x27
	bl	_edac_dbg
	mov	x0, x20
	mov	x1, x27
	bl	_get_dram_base
	cmp	w0, w24
	b.le	LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x27
	bl	_get_dram_limit
	cmp	w0, w24
	b.lt	LBB0_15
LBB0_2:
	mov	x0, x20
	bl	_dhar_valid
	cbz	x0, LBB0_6
; %bb.3:
	mov	x0, x20
	bl	_dhar_base
	cmp	w0, w24
	b.gt	LBB0_6
; %bb.4:
	mov	w0, #32
	bl	_BIT_64
	cmp	w0, w24
	b.le	LBB0_6
; %bb.5:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x24
	bl	_amd64_warn
	b	LBB0_15
LBB0_6:
	stp	w28, w23, [sp, #24]             ; 8-byte Folded Spill
	mov	x23, x19
	mov	x0, x20
	bl	_dct_sel_baseaddr
	mov	x27, x0
	ldp	w28, w19, [sp, #40]
	mov	w0, #0
	bl	_BIT
	tst	w0, w19
	b.ne	LBB0_9
; %bb.7:
	asr	w8, w24, #27
	cmp	w8, w27
	b.lt	LBB0_15
; %bb.8:
	ubfx	w9, w28, #11, #13
	cmp	w9, w8
	b.lt	LBB0_15
LBB0_9:
	mov	x0, x26
	bl	_hweight8
	mov	x28, x0
	cmp	w28, #4
	b.gt	LBB0_15
; %bb.10:
	tbnz	w28, #0, LBB0_15
; %bb.11:
	ldr	w8, [x20]
	cmp	w8, #96
	b.lt	LBB0_13
; %bb.12:
	mov	x0, x20
	mov	x1, x24
	mov	w2, #0
	mov	x3, x26
	bl	_f1x_determine_channel
	b	LBB0_14
LBB0_13:
	ubfx	w4, w21, #4, #3
	mov	x0, x20
	mov	x1, x24
	mov	x2, x26
	mov	x3, x28
	bl	_f15_m30h_determine_channel
LBB0_14:
	mov	x26, x0
	cmp	w0, #4
	b.lt	LBB0_17
LBB0_15:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_16:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_17:
	ldr	w19, [sp, #44]
	mov	w0, #0
	bl	_BIT
	tst	w0, w19, asr #1
	b.eq	LBB0_19
; %bb.18:
	mov	w0, #32
	bl	_BIT_64
	cmp	w0, w24
	b.le	LBB0_20
LBB0_19:
	lsl	w25, w27, #27
LBB0_20:
	sub	w24, w24, w25
	cmp	w28, #4
	b.eq	LBB0_25
; %bb.21:
	cmp	w28, #2
	b.ne	LBB0_32
; %bb.22:
	ldr	w8, [sp, #24]                   ; 4-byte Folded Reload
	cmp	w8, #5
	b.eq	LBB0_28
; %bb.23:
	cmp	w8, #4
	b.ne	LBB0_15
; %bb.24:
	asr	w8, w24, #1
	bfxil	w8, w24, #0, #8
	b	LBB0_31
LBB0_25:
	ldr	w8, [sp, #24]                   ; 4-byte Folded Reload
	cmp	w8, #5
	b.eq	LBB0_29
; %bb.26:
	cmp	w8, #4
	b.ne	LBB0_15
; %bb.27:
	asr	w8, w24, #2
	bfxil	w8, w24, #0, #8
	b	LBB0_31
LBB0_28:
	asr	w8, w24, #1
	b	LBB0_30
LBB0_29:
	asr	w8, w24, #2
LBB0_30:
	bfxil	w8, w24, #0, #9
LBB0_31:
	mov	x24, x8
LBB0_32:
	ldr	w8, [sp, #32]                   ; 4-byte Folded Reload
	and	w8, w8, w22, asr #3
	cbz	w8, LBB0_34
; %bb.33:
	ldr	w0, [x20, #4]
Lloh13:
	adrp	x8, _DRAM_CONT_HIGH_OFF@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DRAM_CONT_HIGH_OFF@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	lsl	w9, w26, #2
	add	x1, x8, w9, sxtw
	add	x2, sp, #36
	bl	_amd64_read_pci_cfg
	ldr	w8, [sp, #36]
	lsl	w8, w8, #16
	and	w8, w8, #0xf8000000
	add	w24, w8, w24
LBB0_34:
	mov	x0, x20
	mov	x1, x26
	bl	_f15h_select_dct
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	mov	x2, x24
	bl	_edac_dbg
	cmp	w26, #3
	csinc	w20, w26, wzr, ne
	mov	x0, x24
	ldr	w1, [sp, #28]                   ; 4-byte Folded Reload
	mov	x2, x20
	bl	_f1x_lookup_addr_in_dct
	tbnz	w0, #31, LBB0_16
; %bb.35:
	str	w20, [x23]
	b	LBB0_16
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DRAM_CONT_BASE,8,3             ; @DRAM_CONT_BASE
	.comm	_DRAM_CONT_LIMIT,8,3            ; @DRAM_CONT_LIMIT
	.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"

	.comm	_DRAM_CONT_HIGH_OFF,8,3         ; @DRAM_CONT_HIGH_OFF
l_.str.2:                               ; @.str.2
	.asciz	"   Normalized DCT addr: 0x%llx\n"

	.no_dead_strip	_f15_m30h_match_to_this_node
.subsections_via_symbols
