	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dram_addr_to_sys_addr
_dram_addr_to_sys_addr:                 ## @dram_addr_to_sys_addr
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdi), %r15
	leaq	-48(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	leaq	-32(%rbp), %rcx
	callq	_amd64_get_dram_hole_info
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	-48(%rbp), %rax
	cmpq	%r14, %rax
	jg	LBB0_4
## %bb.2:
	addq	-32(%rbp), %rax
	cmpq	%r14, %rax
	jle	LBB0_4
## %bb.3:
	movq	-40(%rbp), %rbx
	addq	%r14, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_debugf1
	jmp	LBB0_5
LBB0_4:
	movl	(%r15), %esi
	movq	%r15, %rdi
	callq	_get_dram_base
	addq	%r14, %rax
	movabsq	$549755813888, %rbx             ## imm = 0x8000000000
	andq	%rax, %rbx
	negq	%rbx
	orq	%rax, %rbx
	movslq	(%r15), %rsi
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_debugf1
LBB0_5:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"using DHAR to translate DramAddr 0x%lx to SysAddr 0x%lx\n"

L_.str.1:                               ## @.str.1
	.asciz	"    Node %d, DramAddr 0x%lx to SysAddr 0x%lx\n"

	.no_dead_strip	_dram_addr_to_sys_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dram_addr_to_sys_addr
_dram_addr_to_sys_addr:                 ; @dram_addr_to_sys_addr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x1
	ldr	x20, [x0]
	add	x1, sp, #24
	add	x2, sp, #16
	add	x3, sp, #8
	bl	_amd64_get_dram_hole_info
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	x8, [sp, #24]
	cmp	x8, x19
	b.gt	LBB0_4
; %bb.2:
	ldr	x9, [sp, #8]
	add	x8, x9, x8
	cmp	x8, x19
	b.le	LBB0_4
; %bb.3:
	ldr	x8, [sp, #16]
	add	x21, x8, x19
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x21
	b	LBB0_5
LBB0_4:
	ldr	w1, [x20]
	mov	x0, x20
	bl	_get_dram_base
	add	x8, x0, x19
	and	x9, x8, #0x8000000000
	neg	x9, x9
	orr	x21, x8, x9
	ldrsw	x1, [x20]
	str	x21, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x19
LBB0_5:
	bl	_debugf1
	mov	x0, x21
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"using DHAR to translate DramAddr 0x%lx to SysAddr 0x%lx\n"

l_.str.1:                               ; @.str.1
	.asciz	"    Node %d, DramAddr 0x%lx to SysAddr 0x%lx\n"

	.no_dead_strip	_dram_addr_to_sys_addr
.subsections_via_symbols
