	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ast_dram_init_2500
_ast_dram_init_2500:                    ## @ast_dram_init_2500
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	$-6, %ebx
	movq	_ast2500_ddr3_1600_timing_table@GOTPCREL(%rip), %r15
	movq	_ast2500_ddr4_1600_timing_table@GOTPCREL(%rip), %r12
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_ddr3_init_2500
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_ddr_test_2500
	testl	%eax, %eax
	jne	LBB0_7
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_set_mpll_2500
	movq	%r14, %rdi
	callq	_reset_mmc_2500
	movq	%r14, %rdi
	callq	_ddr_init_common_2500
	movq	%r14, %rdi
	movl	$510533744, %esi                ## imm = 0x1E6E2070
	callq	_ast_mindwm
	testl	$16777216, %eax                 ## imm = 0x1000000
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_ddr4_init_2500
	jmp	LBB0_6
LBB0_7:
	movq	%r14, %rdi
	movl	$510533696, %esi                ## imm = 0x1E6E2040
	callq	_ast_mindwm
	orl	$65, %eax
	movq	%r14, %rdi
	movl	$510533696, %esi                ## imm = 0x1E6E2040
	movl	%eax, %edx
	callq	_ast_moutdwm
	movq	%r14, %rdi
	movl	$510533644, %esi                ## imm = 0x1E6E200C
	callq	_ast_mindwm
                                        ## kill: def $eax killed $eax def $rax
	andl	$-369098753, %eax               ## imm = 0xE9FFFFFF
	leal	268435456(%rax), %edx
	movq	%r14, %rdi
	movl	$510533644, %esi                ## imm = 0x1E6E200C
	callq	_ast_moutdwm
	movl	$1, %eax
	jmp	LBB0_8
LBB0_2:
	xorl	%eax, %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ast2500_ddr4_1600_timing_table,4,2 ## @ast2500_ddr4_1600_timing_table
	.comm	_ast2500_ddr3_1600_timing_table,4,2 ## @ast2500_ddr3_1600_timing_table
	.no_dead_strip	_ast_dram_init_2500
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ast_dram_init_2500
_ast_dram_init_2500:                    ; @ast_dram_init_2500
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	mov	w20, #-6
	mov	w21, #8204
	movk	w21, #7790, lsl #16
Lloh0:
	adrp	x22, _ast2500_ddr3_1600_timing_table@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ast2500_ddr3_1600_timing_table@GOTPAGEOFF]
Lloh2:
	adrp	x23, _ast2500_ddr4_1600_timing_table@GOTPAGE
Lloh3:
	ldr	x23, [x23, _ast2500_ddr4_1600_timing_table@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x22]
	mov	x0, x19
	bl	_ddr3_init_2500
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_ddr_test_2500
	cbnz	w0, LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	adds	w20, w20, #1
	b.hs	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_set_mpll_2500
	mov	x0, x19
	bl	_reset_mmc_2500
	mov	x0, x19
	bl	_ddr_init_common_2500
	add	w1, w21, #100
	mov	x0, x19
	bl	_ast_mindwm
	tbz	w0, #24, LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x23]
	mov	x0, x19
	bl	_ddr4_init_2500
	b	LBB0_2
LBB0_6:
	add	w20, w21, #52
	mov	x0, x19
	mov	x1, x20
	bl	_ast_mindwm
	mov	w8, #65
	orr	w2, w0, w8
	mov	x0, x19
	mov	x1, x20
	bl	_ast_moutdwm
	mov	x0, x19
	mov	w1, #8204
	movk	w1, #7790, lsl #16
	bl	_ast_mindwm
	and	w8, w0, #0xf9ffffff
	orr	w2, w8, #0x10000000
	mov	x0, x19
	mov	w1, #8204
	movk	w1, #7790, lsl #16
	bl	_ast_moutdwm
	mov	w0, #1
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ast2500_ddr4_1600_timing_table,4,2 ; @ast2500_ddr4_1600_timing_table
	.comm	_ast2500_ddr3_1600_timing_table,4,2 ; @ast2500_ddr3_1600_timing_table
	.no_dead_strip	_ast_dram_init_2500
.subsections_via_symbols
