	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mc7_init
_mc7_init:                              ## @mc7_init
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $esi killed $esi def $rsi
	cmpl	$0, (%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r12
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
	movq	24(%rdi), %r15
	leaq	8(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_A_MC7_CFG@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	addq	8(%rdi), %rsi
	movq	%r15, %rdi
	callq	_t3_read_reg
	movl	%eax, %ebx
	movq	_F_SLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%ebx, %edi
	callq	_G_WIDTH
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_G_DEN
	movq	(%r13), %rsi
	addq	8(%r12), %rsi
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_F_IFEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	%ebx, %edx
	movq	%r15, %rdi
	callq	_t3_write_reg
	movq	(%r13), %rsi
	movl	%r14d, %r13d
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	addq	8(%r12), %rsi
	movq	%r15, %rdi
	callq	_t3_read_reg
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movl	$1, %edi
	callq	_msleep
	movl	%ebx, -84(%rbp)                 ## 4-byte Spill
	testl	%ebx, %r13d
	je	LBB0_3
LBB0_5:
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	movslq	-52(%rbp), %rcx                 ## 4-byte Folded Reload
	movq	_A_MC7_PARM@GOTPCREL(%rip), %rax
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movq	(%rax), %r13
	addq	(%r14), %r13
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	leaq	(%rcx,%rcx,4), %r14
	shlq	$4, %r14
	leaq	_mc7_init.mc7_timings(%rip), %r12
	movl	56(%r14,%r12), %edi
	callq	_V_ACTTOPREDLY
	movl	%eax, %ebx
	movl	52(%r14,%r12), %edi
	callq	_V_ACTTORDWRDLY
	orl	%eax, %ebx
	movl	48(%r14,%r12), %edi
	callq	_V_PRECYC
	orl	%eax, %ebx
	movq	40(%r14,%r12), %rax
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	(%rax,%rcx,4), %edi
	callq	_V_REFCYC
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movl	32(%r14,%r12), %edi
	callq	_V_BKCYC
	orl	%eax, %ebx
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movl	24(%r14,%r12), %r15d
	movl	28(%r14,%r12), %edi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	callq	_V_WRTORDDLY
	orl	%eax, %ebx
	movl	%r15d, %edi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	callq	_V_RDTOWRDLY
	orl	%eax, %ebx
	orl	-80(%rbp), %ebx                 ## 4-byte Folded Reload
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_t3_write_reg
	movq	_A_MC7_CFG@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	addq	(%r14), %rsi
	movq	_F_CLKEN@GOTPCREL(%rip), %rax
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	orl	(%rax), %edx
	movq	_F_TERM150@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r15, %rdi
	callq	_t3_write_reg
	movq	(%rbx), %rsi
	addq	(%r14), %rsi
	movq	%r15, %rdi
	callq	_t3_read_reg
	movl	$3, %eax
	movl	-84(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %r12d
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, %ebx
	testl	%ecx, %edx
	jne	LBB0_7
## %bb.6:
	movq	_A_MC7_DLL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movq	_F_DLLENB@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%ecx, %edx
	callq	_t3_set_reg_field
	movl	$6, %eax
LBB0_7:
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	$1, %edi
	callq	_udelay
	movq	_A_MC7_PRE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_wrreg_wait
	movl	$-1, %r13d
	testq	%rax, %rax
	jne	LBB0_25
## %bb.8:
	movq	_A_MC7_EXT_MODE2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_wrreg_wait
	testq	%rax, %rax
	jne	LBB0_25
## %bb.9:
	movq	_A_MC7_EXT_MODE3@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_wrreg_wait
	testq	%rax, %rax
	jne	LBB0_25
## %bb.10:
	movq	%r14, %rax
	movq	_A_MC7_EXT_MODE1@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	addq	(%rax), %rsi
	movq	%r15, %rdi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_wrreg_wait
	testq	%rax, %rax
	jne	LBB0_25
## %bb.11:
	testl	%r12d, %ebx
	jne	LBB0_13
## %bb.12:
	movq	_A_MC7_MODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rbx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	addq	(%r14), %rsi
	movq	%r15, %rdi
	movl	$256, %edx                      ## imm = 0x100
	callq	_t3_write_reg
	movq	_A_MC7_DLL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movq	%rbx, %r14
	movq	_F_DLLRST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_t3_set_reg_field
	movl	$5, %edi
	callq	_udelay
LBB0_13:
	movq	_A_MC7_PRE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	addq	(%rbx), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_wrreg_wait
	testq	%rax, %rax
	jne	LBB0_25
## %bb.14:
	movq	_A_MC7_REF@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	addq	(%rbx), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_wrreg_wait
	testq	%rax, %rax
	jne	LBB0_25
## %bb.15:
	movq	(%r12), %rsi
	addq	(%rbx), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_wrreg_wait
	testq	%rax, %rax
	jne	LBB0_25
## %bb.16:
	movq	_A_MC7_MODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	leaq	_mc7_init.mc7_mode(%rip), %rax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movl	(%rax,%rcx,4), %edx
	movq	%r15, %rdi
	callq	_wrreg_wait
	testq	%rax, %rax
	jne	LBB0_25
## %bb.17:
	movq	(%r14), %rsi
	addq	(%rbx), %rsi
	movq	%r14, %r12
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	leal	896(%r14), %edx
	movq	%r15, %rdi
	callq	_wrreg_wait
	testq	%rax, %rax
	jne	LBB0_25
## %bb.18:
	movq	(%r12), %rsi
	addq	(%rbx), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_wrreg_wait
	testq	%rax, %rax
	jne	LBB0_25
## %bb.19:
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	imull	$7812, %ecx, %eax               ## imm = 0x1E84
	shrl	%ecx
	addl	%eax, %ecx
	imulq	$1125899907, %rcx, %rdi         ## imm = 0x431BDE83
	shrq	$50, %rdi
	movq	_A_MC7_REF@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	addq	8(%r12), %r14
	movq	_F_PERREFEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_V_PREREFDIV
	orl	%eax, %ebx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_t3_write_reg
	movq	_A_MC7_REF@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r12), %rsi
	movq	%r15, %rdi
	callq	_t3_read_reg
	movq	_A_MC7_ECC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r12), %rsi
	movq	_F_ECCGENEN@GOTPCREL(%rip), %rax
	movq	_F_ECCCHKEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r15, %rdi
	callq	_t3_write_reg
	movq	_A_MC7_BIST_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r12), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_t3_write_reg
	movq	_A_MC7_BIST_ADDR_BEG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r12), %rsi
	movq	%r15, %rdi
	movq	%r15, %rbx
	xorl	%edx, %edx
	callq	_t3_write_reg
	movq	_A_MC7_BIST_ADDR_END@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r12), %rsi
	movl	(%r12), %edx
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	decl	%edx
	movq	%r15, %rdi
	callq	_t3_write_reg
	movq	_A_MC7_BIST_OP@GOTPCREL(%rip), %r15
	movq	(%r15), %r14
	addq	8(%r12), %r14
	movl	$1, %edi
	callq	_V_OP
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_t3_write_reg
	movq	(%r15), %rsi
	addq	8(%r12), %rsi
	movq	%rbx, %rdi
	callq	_t3_read_reg
	movl	$-49, %ebx
	movq	_F_BUSY@GOTPCREL(%rip), %r14
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movl	$250, %edi
	callq	_msleep
	movq	(%r15), %rsi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_t3_read_reg
	andl	(%r14), %eax
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	leal	1(%rbx), %ecx
	testl	%ebx, %ebx
	movl	%ecx, %ebx
	jne	LBB0_20
LBB0_22:
	testl	%eax, %eax
	je	LBB0_24
## %bb.23:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_CH_ERR
	jmp	LBB0_25
LBB0_1:
	xorl	%r13d, %r13d
	jmp	LBB0_25
LBB0_3:
	movq	_A_MC7_CAL@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	addq	(%r14), %rsi
	movq	_F_SGL_CAL_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_t3_write_reg
	movq	(%rbx), %rsi
	addq	(%r14), %rsi
	movq	%r15, %rdi
	callq	_t3_read_reg
	movl	$1, %edi
	callq	_msleep
	movq	(%rbx), %rsi
	addq	(%r14), %rsi
	movq	%r15, %rdi
	callq	_t3_read_reg
	movq	_F_BUSY@GOTPCREL(%rip), %rcx
	movq	_F_SGL_CAL_EN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_F_CAL_FAULT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_5
## %bb.4:
	movl	16(%r12), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_CH_ERR
	movl	$-1, %r13d
LBB0_25:
	movl	%r13d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movq	_A_MC7_CFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %rsi
	movq	_F_RDY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r13d, %r13d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_t3_set_reg_field
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @mc7_init.mc7_mode
_mc7_init.mc7_mode:
	.long	1586                            ## 0x632
	.long	1602                            ## 0x642
	.long	1618                            ## 0x652
	.long	1074                            ## 0x432
	.long	1090                            ## 0x442

	.p2align	4                               ## @mc7_init.mc7_timings
_mc7_init.mc7_timings:
	.long	12                              ## 0xc
	.long	3                               ## 0x3
	.long	4                               ## 0x4
	.long	20                              ## 0x14
	.long	15                              ## 0xf
	.long	6                               ## 0x6
	.long	4                               ## 0x4
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.space	4
	.quad	0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.space	20
	.long	12                              ## 0xc
	.long	4                               ## 0x4
	.long	5                               ## 0x5
	.long	20                              ## 0x14
	.long	16                              ## 0x10
	.long	7                               ## 0x7
	.long	4                               ## 0x4
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.space	4
	.quad	0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.space	20
	.long	12                              ## 0xc
	.long	5                               ## 0x5
	.long	6                               ## 0x6
	.long	20                              ## 0x14
	.long	17                              ## 0x11
	.long	8                               ## 0x8
	.long	4                               ## 0x4
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.space	4
	.quad	0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.space	20
	.long	9                               ## 0x9
	.long	3                               ## 0x3
	.long	4                               ## 0x4
	.long	15                              ## 0xf
	.long	12                              ## 0xc
	.long	6                               ## 0x6
	.long	4                               ## 0x4
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.space	4
	.quad	0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.space	20
	.long	9                               ## 0x9
	.long	4                               ## 0x4
	.long	5                               ## 0x5
	.long	15                              ## 0xf
	.long	13                              ## 0xd
	.long	7                               ## 0x7
	.long	4                               ## 0x4
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.space	4
	.quad	0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.space	20

	.comm	_A_MC7_CFG,8,3                  ## @A_MC7_CFG
	.comm	_F_SLOW,4,2                     ## @F_SLOW
	.comm	_F_IFEN,4,2                     ## @F_IFEN
	.comm	_A_MC7_CAL,8,3                  ## @A_MC7_CAL
	.comm	_F_SGL_CAL_EN,4,2               ## @F_SGL_CAL_EN
	.comm	_F_BUSY,4,2                     ## @F_BUSY
	.comm	_F_CAL_FAULT,4,2                ## @F_CAL_FAULT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s MC7 calibration timed out\n"

	.comm	_A_MC7_PARM,8,3                 ## @A_MC7_PARM
	.comm	_F_CLKEN,4,2                    ## @F_CLKEN
	.comm	_F_TERM150,4,2                  ## @F_TERM150
	.comm	_A_MC7_DLL,8,3                  ## @A_MC7_DLL
	.comm	_F_DLLENB,4,2                   ## @F_DLLENB
	.comm	_A_MC7_PRE,8,3                  ## @A_MC7_PRE
	.comm	_A_MC7_EXT_MODE2,8,3            ## @A_MC7_EXT_MODE2
	.comm	_A_MC7_EXT_MODE3,8,3            ## @A_MC7_EXT_MODE3
	.comm	_A_MC7_EXT_MODE1,8,3            ## @A_MC7_EXT_MODE1
	.comm	_A_MC7_MODE,8,3                 ## @A_MC7_MODE
	.comm	_F_DLLRST,4,2                   ## @F_DLLRST
	.comm	_A_MC7_REF,8,3                  ## @A_MC7_REF
	.comm	_F_PERREFEN,4,2                 ## @F_PERREFEN
	.comm	_A_MC7_ECC,8,3                  ## @A_MC7_ECC
	.comm	_F_ECCGENEN,4,2                 ## @F_ECCGENEN
	.comm	_F_ECCCHKEN,4,2                 ## @F_ECCCHKEN
	.comm	_A_MC7_BIST_DATA,8,3            ## @A_MC7_BIST_DATA
	.comm	_A_MC7_BIST_ADDR_BEG,8,3        ## @A_MC7_BIST_ADDR_BEG
	.comm	_A_MC7_BIST_ADDR_END,8,3        ## @A_MC7_BIST_ADDR_END
	.comm	_A_MC7_BIST_OP,8,3              ## @A_MC7_BIST_OP
L_.str.1:                               ## @.str.1
	.asciz	"%s MC7 BIST timed out\n"

	.comm	_F_RDY,4,2                      ## @F_RDY
	.no_dead_strip	_mc7_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mc7_init
_mc7_init:                              ; @mc7_init
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_26
; %bb.1:
	mov	x24, x2
	mov	x20, x0
	str	w1, [sp, #12]                   ; 4-byte Folded Spill
	ldr	x19, [x0, #24]
	mov	x27, x0
	ldr	x8, [x27, #8]!
Lloh0:
	adrp	x22, _A_MC7_CFG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _A_MC7_CFG@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	x0, x19
	bl	_t3_read_reg
	mov	x23, x0
Lloh2:
	adrp	x8, _F_SLOW@GOTPAGE
Lloh3:
	ldr	x8, [x8, _F_SLOW@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	and	w21, w8, w0
	bl	_G_WIDTH
	mov	x28, x0
	mov	x0, x23
	bl	_G_DEN
	mov	x25, x0
	ldr	x8, [x27]
	ldr	x9, [x22]
	add	x1, x9, x8
Lloh5:
	adrp	x8, _F_IFEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _F_IFEN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	orr	w2, w8, w23
	mov	x0, x19
	bl	_t3_write_reg
	ldr	x8, [x27]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	x0, x19
	bl	_t3_read_reg
	mov	x23, x0
	mov	w0, #1
	bl	_msleep
	cbz	w21, LBB0_4
LBB0_2:
	str	w28, [sp, #8]                   ; 4-byte Folded Spill
	sxtw	x22, w24
	ldr	x8, [x27]
Lloh8:
	adrp	x9, _A_MC7_PARM@GOTPAGE
Lloh9:
	ldr	x9, [x9, _A_MC7_PARM@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x24, x9, x8
	mov	w8, #80
Lloh11:
	adrp	x9, _mc7_init.mc7_timings@PAGE
Lloh12:
	add	x9, x9, _mc7_init.mc7_timings@PAGEOFF
	madd	x28, x22, x8, x9
	ldr	w0, [x28, #56]
	bl	_V_ACTTOPREDLY
	mov	x26, x0
	ldr	w0, [x28, #52]
	bl	_V_ACTTORDWRDLY
	orr	w26, w0, w26
	ldr	w0, [x28, #48]
	bl	_V_PRECYC
	orr	w26, w26, w0
	ldr	x8, [x28, #40]
	ldr	w0, [x8, w25, uxtw #2]
	bl	_V_REFCYC
	orr	w25, w26, w0
	ldr	w0, [x28, #32]
	bl	_V_BKCYC
	orr	w25, w25, w0
	ldr	w0, [x28, #28]
	bl	_V_WRTORDDLY
	orr	w25, w25, w0
	ldr	w0, [x28, #24]
Lloh13:
	adrp	x26, _A_MC7_CFG@GOTPAGE
Lloh14:
	ldr	x26, [x26, _A_MC7_CFG@GOTPAGEOFF]
	bl	_V_RDTOWRDLY
	orr	w2, w25, w0
	mov	x0, x19
	mov	x1, x24
	bl	_t3_write_reg
	ldr	x8, [x27]
	ldr	x9, [x26]
	add	x1, x9, x8
Lloh15:
	adrp	x8, _F_CLKEN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _F_CLKEN@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	orr	w8, w8, w23
Lloh18:
	adrp	x9, _F_TERM150@GOTPAGE
Lloh19:
	ldr	x9, [x9, _F_TERM150@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_t3_write_reg
	ldr	x8, [x27]
	ldr	x9, [x26]
	add	x1, x9, x8
	mov	x0, x19
	bl	_t3_read_reg
	cbz	w21, LBB0_7
; %bb.3:
	mov	w23, #3
	b	LBB0_8
LBB0_4:
Lloh21:
	adrp	x22, _A_MC7_CAL@GOTPAGE
Lloh22:
	ldr	x22, [x22, _A_MC7_CAL@GOTPAGEOFF]
	ldr	x8, [x27]
	ldr	x9, [x22]
	add	x1, x9, x8
Lloh23:
	adrp	x26, _F_SGL_CAL_EN@GOTPAGE
Lloh24:
	ldr	x26, [x26, _F_SGL_CAL_EN@GOTPAGEOFF]
	ldr	w2, [x26]
	mov	x0, x19
	bl	_t3_write_reg
	ldr	x8, [x27]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	x0, x19
	bl	_t3_read_reg
	mov	w0, #1
	bl	_msleep
	ldr	x8, [x27]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	x0, x19
	bl	_t3_read_reg
Lloh25:
	adrp	x8, _F_BUSY@GOTPAGE
Lloh26:
	ldr	x8, [x8, _F_BUSY@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	ldr	w9, [x26]
	orr	w8, w9, w8
Lloh28:
	adrp	x9, _F_CAL_FAULT@GOTPAGE
Lloh29:
	ldr	x9, [x9, _F_CAL_FAULT@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w8, w8, w9
	tst	w8, w0
	b.eq	LBB0_2
; %bb.5:
	ldr	w2, [x20, #16]
Lloh31:
	adrp	x1, l_.str@PAGE
Lloh32:
	add	x1, x1, l_.str@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_CH_ERR
	mov	w0, #-1
	b	LBB0_27
LBB0_7:
Lloh33:
	adrp	x8, _A_MC7_DLL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _A_MC7_DLL@GOTPAGEOFF]
	ldr	x9, [x27]
Lloh35:
	ldr	x8, [x8]
	add	x1, x8, x9
Lloh36:
	adrp	x8, _F_DLLENB@GOTPAGE
Lloh37:
	ldr	x8, [x8, _F_DLLENB@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x2
	bl	_t3_set_reg_field
	mov	w23, #6
LBB0_8:
	mov	w0, #1
	bl	_udelay
	ldr	x8, [x27]
Lloh39:
	adrp	x25, _A_MC7_PRE@GOTPAGE
Lloh40:
	ldr	x25, [x25, _A_MC7_PRE@GOTPAGEOFF]
	ldr	x9, [x25]
	add	x1, x9, x8
	mov	x0, x19
	mov	w2, #0
	bl	_wrreg_wait
	cbnz	x0, LBB0_20
; %bb.9:
	ldr	x8, [x27]
Lloh41:
	adrp	x9, _A_MC7_EXT_MODE2@GOTPAGE
Lloh42:
	ldr	x9, [x9, _A_MC7_EXT_MODE2@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x19
	mov	w2, #0
	bl	_wrreg_wait
	cbnz	x0, LBB0_20
; %bb.10:
	ldr	x8, [x27]
Lloh44:
	adrp	x9, _A_MC7_EXT_MODE3@GOTPAGE
Lloh45:
	ldr	x9, [x9, _A_MC7_EXT_MODE3@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x19
	mov	w2, #0
	bl	_wrreg_wait
	cbnz	x0, LBB0_20
; %bb.11:
	ldr	x8, [x27]
Lloh47:
	adrp	x24, _A_MC7_EXT_MODE1@GOTPAGE
Lloh48:
	ldr	x24, [x24, _A_MC7_EXT_MODE1@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x1, x9, x8
	mov	x0, x19
	mov	x2, x23
	bl	_wrreg_wait
	cbnz	x0, LBB0_20
; %bb.12:
	cbnz	w21, LBB0_14
; %bb.13:
	ldr	x8, [x27]
Lloh49:
	adrp	x9, _A_MC7_MODE@GOTPAGE
Lloh50:
	ldr	x9, [x9, _A_MC7_MODE@GOTPAGEOFF]
Lloh51:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x19
	mov	w2, #256
	bl	_t3_write_reg
Lloh52:
	adrp	x8, _A_MC7_DLL@GOTPAGE
Lloh53:
	ldr	x8, [x8, _A_MC7_DLL@GOTPAGEOFF]
	ldr	x9, [x27]
Lloh54:
	ldr	x8, [x8]
	add	x1, x8, x9
Lloh55:
	adrp	x8, _F_DLLRST@GOTPAGE
Lloh56:
	ldr	x8, [x8, _F_DLLRST@GOTPAGEOFF]
Lloh57:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_t3_set_reg_field
	mov	w0, #5
	bl	_udelay
LBB0_14:
	ldr	x8, [x27]
	ldr	x9, [x25]
	add	x1, x9, x8
	mov	x0, x19
	mov	w2, #0
	bl	_wrreg_wait
	cbnz	x0, LBB0_20
; %bb.15:
	ldr	x8, [x27]
Lloh58:
	adrp	x21, _A_MC7_REF@GOTPAGE
Lloh59:
	ldr	x21, [x21, _A_MC7_REF@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	x0, x19
	mov	w2, #0
	bl	_wrreg_wait
	cbnz	x0, LBB0_20
; %bb.16:
	ldr	x8, [x27]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	x0, x19
	mov	w2, #0
	bl	_wrreg_wait
	cbnz	x0, LBB0_20
; %bb.17:
	ldr	x8, [x27]
Lloh60:
	adrp	x9, _A_MC7_MODE@GOTPAGE
Lloh61:
	ldr	x9, [x9, _A_MC7_MODE@GOTPAGEOFF]
Lloh62:
	ldr	x9, [x9]
	add	x1, x9, x8
Lloh63:
	adrp	x8, _mc7_init.mc7_mode@PAGE
Lloh64:
	add	x8, x8, _mc7_init.mc7_mode@PAGEOFF
	ldr	w2, [x8, x22, lsl #2]
	mov	x0, x19
	bl	_wrreg_wait
	cbnz	x0, LBB0_20
; %bb.18:
	ldr	x8, [x27]
	ldr	x9, [x24]
	add	x1, x9, x8
	orr	w2, w23, #0x380
	mov	x0, x19
	bl	_wrreg_wait
	cbnz	x0, LBB0_20
; %bb.19:
	ldr	x8, [x27]
	ldr	x9, [x24]
	add	x1, x9, x8
	mov	x0, x19
	mov	x2, x23
	bl	_wrreg_wait
	cbz	x0, LBB0_21
LBB0_20:
	mov	w0, #-1
	b	LBB0_27
LBB0_21:
	mov	w8, #7812
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	mul	w8, w9, w8
	add	w8, w8, w9, lsr #1
	mov	w9, #56963
	movk	w9, #17179, lsl #16
	umull	x8, w8, w9
	lsr	x0, x8, #50
	ldr	x8, [x20, #8]
	ldr	x9, [x21]
	add	x22, x9, x8
Lloh65:
	adrp	x8, _F_PERREFEN@GOTPAGE
Lloh66:
	ldr	x8, [x8, _F_PERREFEN@GOTPAGEOFF]
Lloh67:
	ldr	w23, [x8]
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_V_PREREFDIV
	orr	w2, w0, w23
	mov	x0, x19
	mov	x1, x22
	bl	_t3_write_reg
	ldr	x8, [x20, #8]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	x0, x19
	bl	_t3_read_reg
	ldr	x8, [x20, #8]
Lloh68:
	adrp	x9, _A_MC7_ECC@GOTPAGE
Lloh69:
	ldr	x9, [x9, _A_MC7_ECC@GOTPAGEOFF]
Lloh70:
	ldr	x9, [x9]
Lloh71:
	adrp	x10, _F_ECCGENEN@GOTPAGE
Lloh72:
	ldr	x10, [x10, _F_ECCGENEN@GOTPAGEOFF]
	add	x1, x9, x8
Lloh73:
	ldr	w8, [x10]
Lloh74:
	adrp	x9, _F_ECCCHKEN@GOTPAGE
Lloh75:
	ldr	x9, [x9, _F_ECCCHKEN@GOTPAGEOFF]
Lloh76:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_t3_write_reg
	ldr	x8, [x20, #8]
Lloh77:
	adrp	x9, _A_MC7_BIST_DATA@GOTPAGE
Lloh78:
	ldr	x9, [x9, _A_MC7_BIST_DATA@GOTPAGEOFF]
Lloh79:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x19
	mov	w2, #0
	bl	_t3_write_reg
	ldr	x8, [x20, #8]
Lloh80:
	adrp	x9, _A_MC7_BIST_ADDR_BEG@GOTPAGE
Lloh81:
	ldr	x9, [x9, _A_MC7_BIST_ADDR_BEG@GOTPAGEOFF]
Lloh82:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x19
	mov	w2, #0
	bl	_t3_write_reg
Lloh83:
	adrp	x8, _A_MC7_BIST_ADDR_END@GOTPAGE
Lloh84:
	ldr	x8, [x8, _A_MC7_BIST_ADDR_END@GOTPAGEOFF]
	ldr	x9, [x20, #8]
Lloh85:
	ldr	x8, [x8]
	add	x1, x8, x9
	ldr	w8, [x20]
	ldr	w9, [sp, #8]                    ; 4-byte Folded Reload
	lsl	w8, w8, w9
	sub	w2, w8, #1
	mov	x0, x19
	bl	_t3_write_reg
	ldr	x8, [x20, #8]
Lloh86:
	adrp	x22, _A_MC7_BIST_OP@GOTPAGE
Lloh87:
	ldr	x22, [x22, _A_MC7_BIST_OP@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x21, x9, x8
	mov	w0, #1
	bl	_V_OP
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_t3_write_reg
	ldr	x8, [x20, #8]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	x0, x19
	bl	_t3_read_reg
	mov	w21, #-49
Lloh88:
	adrp	x23, _F_BUSY@GOTPAGE
Lloh89:
	ldr	x23, [x23, _F_BUSY@GOTPAGEOFF]
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #250
	bl	_msleep
	ldr	x8, [x27]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	x0, x19
	bl	_t3_read_reg
	ldr	w8, [x23]
	and	w8, w8, w0
	cmp	w8, #0
	ccmp	w21, #0, #4, ne
	add	w21, w21, #1
	b.ne	LBB0_22
; %bb.23:
	cbz	w8, LBB0_25
; %bb.24:
	ldr	w2, [x20, #16]
Lloh90:
	adrp	x1, l_.str.1@PAGE
Lloh91:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_25:
	ldr	x8, [x27]
Lloh92:
	adrp	x9, _A_MC7_CFG@GOTPAGE
Lloh93:
	ldr	x9, [x9, _A_MC7_CFG@GOTPAGEOFF]
Lloh94:
	ldr	x9, [x9]
	add	x1, x9, x8
Lloh95:
	adrp	x8, _F_RDY@GOTPAGE
Lloh96:
	ldr	x8, [x8, _F_RDY@GOTPAGEOFF]
Lloh97:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_t3_set_reg_field
LBB0_26:
	mov	w0, #0
LBB0_27:
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh88, Lloh89
	.loh AdrpLdrGot	Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpAdd	Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @mc7_init.mc7_mode
_mc7_init.mc7_mode:
	.long	1586                            ; 0x632
	.long	1602                            ; 0x642
	.long	1618                            ; 0x652
	.long	1074                            ; 0x432
	.long	1090                            ; 0x442

	.p2align	3                               ; @mc7_init.mc7_timings
_mc7_init.mc7_timings:
	.long	12                              ; 0xc
	.long	3                               ; 0x3
	.long	4                               ; 0x4
	.long	20                              ; 0x14
	.long	15                              ; 0xf
	.long	6                               ; 0x6
	.long	4                               ; 0x4
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.space	4
	.quad	0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.space	20
	.long	12                              ; 0xc
	.long	4                               ; 0x4
	.long	5                               ; 0x5
	.long	20                              ; 0x14
	.long	16                              ; 0x10
	.long	7                               ; 0x7
	.long	4                               ; 0x4
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.space	4
	.quad	0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.space	20
	.long	12                              ; 0xc
	.long	5                               ; 0x5
	.long	6                               ; 0x6
	.long	20                              ; 0x14
	.long	17                              ; 0x11
	.long	8                               ; 0x8
	.long	4                               ; 0x4
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.space	4
	.quad	0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.space	20
	.long	9                               ; 0x9
	.long	3                               ; 0x3
	.long	4                               ; 0x4
	.long	15                              ; 0xf
	.long	12                              ; 0xc
	.long	6                               ; 0x6
	.long	4                               ; 0x4
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.space	4
	.quad	0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.space	20
	.long	9                               ; 0x9
	.long	4                               ; 0x4
	.long	5                               ; 0x5
	.long	15                              ; 0xf
	.long	13                              ; 0xd
	.long	7                               ; 0x7
	.long	4                               ; 0x4
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.space	4
	.quad	0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.space	20

	.comm	_A_MC7_CFG,8,3                  ; @A_MC7_CFG
	.comm	_F_SLOW,4,2                     ; @F_SLOW
	.comm	_F_IFEN,4,2                     ; @F_IFEN
	.comm	_A_MC7_CAL,8,3                  ; @A_MC7_CAL
	.comm	_F_SGL_CAL_EN,4,2               ; @F_SGL_CAL_EN
	.comm	_F_BUSY,4,2                     ; @F_BUSY
	.comm	_F_CAL_FAULT,4,2                ; @F_CAL_FAULT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s MC7 calibration timed out\n"

	.comm	_A_MC7_PARM,8,3                 ; @A_MC7_PARM
	.comm	_F_CLKEN,4,2                    ; @F_CLKEN
	.comm	_F_TERM150,4,2                  ; @F_TERM150
	.comm	_A_MC7_DLL,8,3                  ; @A_MC7_DLL
	.comm	_F_DLLENB,4,2                   ; @F_DLLENB
	.comm	_A_MC7_PRE,8,3                  ; @A_MC7_PRE
	.comm	_A_MC7_EXT_MODE2,8,3            ; @A_MC7_EXT_MODE2
	.comm	_A_MC7_EXT_MODE3,8,3            ; @A_MC7_EXT_MODE3
	.comm	_A_MC7_EXT_MODE1,8,3            ; @A_MC7_EXT_MODE1
	.comm	_A_MC7_MODE,8,3                 ; @A_MC7_MODE
	.comm	_F_DLLRST,4,2                   ; @F_DLLRST
	.comm	_A_MC7_REF,8,3                  ; @A_MC7_REF
	.comm	_F_PERREFEN,4,2                 ; @F_PERREFEN
	.comm	_A_MC7_ECC,8,3                  ; @A_MC7_ECC
	.comm	_F_ECCGENEN,4,2                 ; @F_ECCGENEN
	.comm	_F_ECCCHKEN,4,2                 ; @F_ECCCHKEN
	.comm	_A_MC7_BIST_DATA,8,3            ; @A_MC7_BIST_DATA
	.comm	_A_MC7_BIST_ADDR_BEG,8,3        ; @A_MC7_BIST_ADDR_BEG
	.comm	_A_MC7_BIST_ADDR_END,8,3        ; @A_MC7_BIST_ADDR_END
	.comm	_A_MC7_BIST_OP,8,3              ; @A_MC7_BIST_OP
l_.str.1:                               ; @.str.1
	.asciz	"%s MC7 BIST timed out\n"

	.comm	_F_RDY,4,2                      ; @F_RDY
	.no_dead_strip	_mc7_init
.subsections_via_symbols
