	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axp_mc_read_config
_axp_mc_read_config:                    ## @axp_mc_read_config
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rbx
	movq	_SDRAM_CONFIG_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%rbx), %rdi
	callq	_readl
	movq	_SDRAM_CONFIG_BUS_WIDTH_MASK@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	movl	(%rdx), %edx
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	andl	%eax, %edx
	setne	%cl
	leal	4(,%rcx,4), %eax
	movl	%eax, (%rbx)
	movq	_SDRAM_ADDR_CTRL_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%rbx), %rdi
	callq	_readl
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_SDRAM_RANK_CTRL_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	addq	16(%rbx), %rdi
	callq	_readl
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_SDRAM_NUM_CS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_11
## %bb.1:
	xorl	%ebx, %ebx
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %eax
	movl	%eax, 12(%rdx)
	movq	_EDAC_SECDED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rdx)
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movq	_SDRAM_NUM_CS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	%rax, %rbx
	jae	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %r15
	movl	%ebx, %edi
	callq	_SDRAM_RANK_CTRL_EXIST_MASK
	testl	%eax, -52(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	callq	_SDRAM_ADDR_CTRL_ADDR_SEL_MASK
	xorl	%ecx, %ecx
	testl	%r13d, %eax
	setne	%cl
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	%ecx, (%rax,%rbx,4)
	movl	%ebx, %edi
	callq	_SDRAM_ADDR_CTRL_STRUCT_MASK
	movl	%eax, %r14d
	andl	%r13d, %r14d
	movl	%ebx, %edi
	callq	_SDRAM_ADDR_CTRL_STRUCT_OFFSET
	movl	%eax, %ecx
	sarl	%cl, %r14d
	movl	%ebx, %edi
	callq	_SDRAM_ADDR_CTRL_SIZE_HIGH_MASK
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movl	%eax, %r15d
	andl	%r13d, %r15d
	movl	%ebx, %edi
	callq	_SDRAM_ADDR_CTRL_SIZE_HIGH_OFFSET
                                        ## kill: def $eax killed $eax def $rax
	leal	-2(%rax), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %r15d
	movl	%ebx, %edi
	callq	_SDRAM_ADDR_CTRL_SIZE_LOW_MASK
	movl	%eax, %r12d
	andl	%r13d, %r12d
	movl	%ebx, %edi
	callq	_SDRAM_ADDR_CTRL_SIZE_LOW_OFFSET
	movl	%eax, %ecx
	sarl	%cl, %r12d
	orl	%r15d, %r12d
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	cmpl	$5, %r12d
	ja	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r12d, %rax
	leaq	l_switch.table.axp_mc_read_config(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
	movl	%eax, (%rdx)
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$8, 4(%rdx)
	movq	_DEV_X16@GOTPCREL(%rip), %rax
	testl	%r14d, %r14d
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_DEV_X8@GOTPCREL(%rip), %rax
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %eax
	movl	%eax, 16(%rdx)
	movq	_SDRAM_CONFIG_REGISTERED_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_MEM_RDDR3@GOTPCREL(%rip), %rax
	andl	-48(%rbp), %ecx                 ## 4-byte Folded Reload
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_MEM_DDR3@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDRAM_CONFIG_REG,8,3           ## @SDRAM_CONFIG_REG
	.comm	_SDRAM_CONFIG_BUS_WIDTH_MASK,4,2 ## @SDRAM_CONFIG_BUS_WIDTH_MASK
	.comm	_SDRAM_ADDR_CTRL_REG,8,3        ## @SDRAM_ADDR_CTRL_REG
	.comm	_SDRAM_RANK_CTRL_REG,8,3        ## @SDRAM_RANK_CTRL_REG
	.comm	_SDRAM_NUM_CS,4,2               ## @SDRAM_NUM_CS
	.comm	_DEV_X16,4,2                    ## @DEV_X16
	.comm	_DEV_X8,4,2                     ## @DEV_X8
	.comm	_SDRAM_CONFIG_REGISTERED_MASK,4,2 ## @SDRAM_CONFIG_REGISTERED_MASK
	.comm	_MEM_RDDR3,4,2                  ## @MEM_RDDR3
	.comm	_MEM_DDR3,4,2                   ## @MEM_DDR3
	.comm	_EDAC_SECDED,4,2                ## @EDAC_SECDED
	.no_dead_strip	_axp_mc_read_config
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.axp_mc_read_config
l_switch.table.axp_mc_read_config:
	.long	524288                          ## 0x80000
	.long	65536                           ## 0x10000
	.long	131072                          ## 0x20000
	.long	262144                          ## 0x40000
	.long	1048576                         ## 0x100000
	.long	2097152                         ## 0x200000

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function axp_mc_read_config
_axp_mc_read_config:                    ; @axp_mc_read_config
	.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, x0
	ldr	x26, [x0, #8]
	ldr	x8, [x26, #16]
Lloh0:
	adrp	x9, _SDRAM_CONFIG_REG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SDRAM_CONFIG_REG@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
Lloh3:
	adrp	x8, _SDRAM_CONFIG_BUS_WIDTH_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SDRAM_CONFIG_BUS_WIDTH_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	tst	w8, w0
	mov	w9, #8
	mov	w8, #4
	csel	w8, w8, w9, eq
	str	w8, [x26]
	ldr	x8, [x26, #16]
Lloh6:
	adrp	x9, _SDRAM_ADDR_CTRL_REG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SDRAM_ADDR_CTRL_REG@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x21, x0
	ldr	x8, [x26, #16]
Lloh9:
	adrp	x9, _SDRAM_RANK_CTRL_REG@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SDRAM_RANK_CTRL_REG@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
Lloh12:
	adrp	x8, _SDRAM_NUM_CS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SDRAM_NUM_CS@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cbz	w8, LBB0_7
; %bb.1:
	mov	x22, x0
	mov	x23, #0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	and	w8, w24, w21
	asr	w8, w8, w25
	mov	w9, #8
	str	w9, [x27, #4]
	cmp	w8, #0
Lloh15:
	adrp	x8, _DEV_X16@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DEV_X16@GOTPAGEOFF]
Lloh17:
	adrp	x9, _DEV_X8@GOTPAGE
Lloh18:
	ldr	x9, [x9, _DEV_X8@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	str	w8, [x27, #16]
Lloh19:
	adrp	x8, _SDRAM_CONFIG_REGISTERED_MASK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SDRAM_CONFIG_REGISTERED_MASK@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	tst	w8, w9
Lloh22:
	adrp	x8, _MEM_RDDR3@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MEM_RDDR3@GOTPAGEOFF]
Lloh24:
	adrp	x9, _MEM_DDR3@GOTPAGE
Lloh25:
	ldr	x9, [x9, _MEM_DDR3@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _EDAC_SECDED@GOTPAGE
Lloh27:
	ldr	x9, [x9, _EDAC_SECDED@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	stp	w9, w8, [x27, #8]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
Lloh29:
	adrp	x8, _SDRAM_NUM_CS@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SDRAM_NUM_CS@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	cmp	x23, x8
	b.hs	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x27, [x8, x23, lsl #3]
	mov	x0, x23
	bl	_SDRAM_RANK_CTRL_EXIST_MASK
	tst	w0, w22
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_SDRAM_ADDR_CTRL_ADDR_SEL_MASK
	tst	w0, w21
	cset	w8, ne
	ldr	x9, [x26, #8]
	str	w8, [x9, x23, lsl #2]
	mov	x0, x23
	bl	_SDRAM_ADDR_CTRL_STRUCT_MASK
	mov	x24, x0
	mov	x0, x23
	bl	_SDRAM_ADDR_CTRL_STRUCT_OFFSET
	mov	x25, x0
	mov	x0, x23
	bl	_SDRAM_ADDR_CTRL_SIZE_HIGH_MASK
	and	w28, w0, w21
	mov	x0, x23
	bl	_SDRAM_ADDR_CTRL_SIZE_HIGH_OFFSET
	sub	w8, w0, #2
	asr	w28, w28, w8
	mov	x0, x23
	bl	_SDRAM_ADDR_CTRL_SIZE_LOW_MASK
	and	w20, w0, w21
	mov	x0, x23
	bl	_SDRAM_ADDR_CTRL_SIZE_LOW_OFFSET
	asr	w8, w20, w0
	orr	w8, w8, w28
	cmp	w8, #5
	b.hi	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh32:
	adrp	x9, l_switch.table.axp_mc_read_config@PAGE
Lloh33:
	add	x9, x9, l_switch.table.axp_mc_read_config@PAGEOFF
	ldr	w8, [x9, w8, sxtw #2]
	str	w8, [x27]
	b	LBB0_2
LBB0_7:
	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 AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_SDRAM_CONFIG_REG,8,3           ; @SDRAM_CONFIG_REG
	.comm	_SDRAM_CONFIG_BUS_WIDTH_MASK,4,2 ; @SDRAM_CONFIG_BUS_WIDTH_MASK
	.comm	_SDRAM_ADDR_CTRL_REG,8,3        ; @SDRAM_ADDR_CTRL_REG
	.comm	_SDRAM_RANK_CTRL_REG,8,3        ; @SDRAM_RANK_CTRL_REG
	.comm	_SDRAM_NUM_CS,4,2               ; @SDRAM_NUM_CS
	.comm	_DEV_X16,4,2                    ; @DEV_X16
	.comm	_DEV_X8,4,2                     ; @DEV_X8
	.comm	_SDRAM_CONFIG_REGISTERED_MASK,4,2 ; @SDRAM_CONFIG_REGISTERED_MASK
	.comm	_MEM_RDDR3,4,2                  ; @MEM_RDDR3
	.comm	_MEM_DDR3,4,2                   ; @MEM_DDR3
	.comm	_EDAC_SECDED,4,2                ; @EDAC_SECDED
	.no_dead_strip	_axp_mc_read_config
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.axp_mc_read_config
l_switch.table.axp_mc_read_config:
	.long	524288                          ; 0x80000
	.long	65536                           ; 0x10000
	.long	131072                          ; 0x20000
	.long	262144                          ; 0x40000
	.long	1048576                         ; 0x100000
	.long	2097152                         ; 0x200000

.subsections_via_symbols
