	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function input_addr_to_dram_addr
_input_addr_to_dram_addr:               ## @input_addr_to_dram_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	(%rdi), %rbx
	movl	(%rbx), %r12d
	xorl	%edi, %edi
	cmpl	$8, %r12d
	setae	%dil
	callq	_BUG_ON
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_dram_intlv_en
	movl	%eax, %edi
	callq	_num_node_interleave_bits
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %r15d
	movl	$12, %edi
	movl	$35, %esi
	callq	_GENMASK
	andl	%r14d, %eax
	movl	%r15d, %ecx
	shll	%cl, %eax
	movl	%r14d, %r13d
	andl	$4095, %r13d                    ## imm = 0xFFF
	addl	%eax, %r13d
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_dram_intlv_sel
	movl	$-1, %ebx
	movl	%r15d, %ecx
	shll	%cl, %ebx
	notl	%ebx
	andl	%eax, %ebx
	shll	$12, %ebx
	addl	%r13d, %ebx
	movl	%r14d, %esi
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rdx
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_debugf1
	movl	%ebx, %r14d
	jmp	LBB0_3
LBB0_1:
	movl	%r14d, %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_debugf1
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"    InputAddr 0x%lx translates to DramAddr of same value\n"

L_.str.1:                               ## @.str.1
	.asciz	"InputAddr 0x%lx translates to DramAddr 0x%lx (%d node interleave bits)\n"

	.no_dead_strip	_input_addr_to_dram_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function input_addr_to_dram_addr
_input_addr_to_dram_addr:               ; @input_addr_to_dram_addr
	.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, x1
	ldr	x20, [x0]
	ldr	w21, [x20]
	cmp	w21, #7
	cset	w0, hi
	bl	_BUG_ON
	mov	x0, x20
	mov	w1, #0
	bl	_dram_intlv_en
	bl	_num_node_interleave_bits
	cbz	w0, LBB0_2
; %bb.1:
	mov	x22, x0
	mov	w0, #12
	mov	w1, #35
	bl	_GENMASK
	and	w8, w0, w19
	lsl	w8, w8, w22
	and	w9, w19, #0xfff
	add	w23, w8, w9
	mov	x0, x20
	mov	x1, x21
	bl	_dram_intlv_sel
	mov	w8, #-1
	lsl	w8, w8, w22
	bic	w8, w0, w8
	add	w20, w23, w8, lsl #12
	mov	w1, w19
	stp	x20, x22, [sp]
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_debugf1
	mov	x19, x20
	b	LBB0_3
LBB0_2:
	mov	w1, w19
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_debugf1
LBB0_3:
	mov	x0, x19
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"    InputAddr 0x%lx translates to DramAddr of same value\n"

l_.str.1:                               ; @.str.1
	.asciz	"InputAddr 0x%lx translates to DramAddr 0x%lx (%d node interleave bits)\n"

	.no_dead_strip	_input_addr_to_dram_addr
.subsections_via_symbols
