	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function run_bist_all
_run_bist_all:                          ## @run_bist_all
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	$0, -28(%rbp)
	movq	_REG_MEM_BIST@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	$5, %edx
	callq	_vsc_write
	movl	(%r14), %esi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_vsc_read
	xorl	%edi, %edi
	callq	_REG_DEV_SETUP
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_vsc_write
	movl	$1, %edi
	callq	_REG_DEV_SETUP
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_vsc_write
	movl	$2, %edi
	callq	_REG_DEV_SETUP
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_vsc_write
	movl	$3, %edi
	callq	_REG_DEV_SETUP
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_vsc_write
	movl	$4, %edi
	callq	_REG_DEV_SETUP
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_vsc_write
	movl	$5, %edi
	callq	_REG_DEV_SETUP
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_vsc_write
	movl	$6, %edi
	callq	_REG_DEV_SETUP
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_vsc_write
	movl	$7, %edi
	callq	_REG_DEV_SETUP
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_vsc_write
	movl	$8, %edi
	callq	_REG_DEV_SETUP
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_vsc_write
	movl	$9, %edi
	callq	_REG_DEV_SETUP
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_vsc_write
	movl	$10, %edi
	callq	_REG_DEV_SETUP
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_vsc_write
	movl	$11, %edi
	callq	_REG_DEV_SETUP
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_vsc_write
	movl	$300, %edi                      ## imm = 0x12C
	callq	_udelay
	movq	_REG_SPI4_MISC@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	$263177, %edx                   ## imm = 0x40409
	callq	_vsc_write
	movl	$300, %edi                      ## imm = 0x12C
	callq	_udelay
	movq	%rbx, %rdi
	movl	$13, %esi
	callq	_run_bist
	movq	%rbx, %rdi
	movl	$14, %esi
	callq	_run_bist
	movq	%rbx, %rdi
	movl	$20, %esi
	callq	_run_bist
	movq	%rbx, %rdi
	movl	$21, %esi
	callq	_run_bist
	movl	$200, %edi
	callq	_mdelay
	movq	%rbx, %rdi
	movl	$13, %esi
	callq	_check_bist
	movq	%rbx, %rdi
	movl	$14, %esi
	callq	_check_bist
	movq	%rbx, %rdi
	movl	$20, %esi
	callq	_check_bist
	movq	%rbx, %rdi
	movl	$21, %esi
	callq	_check_bist
	movl	$100, %edi
	callq	_udelay
	movq	%rbx, %rdi
	movl	$13, %esi
	callq	_enable_mem
	movq	%rbx, %rdi
	movl	$14, %esi
	callq	_enable_mem
	movq	%rbx, %rdi
	movl	$20, %esi
	callq	_enable_mem
	movq	%rbx, %rdi
	movl	$21, %esi
	callq	_enable_mem
	movl	$300, %edi                      ## imm = 0x12C
	callq	_udelay
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	$1610875904, %edx               ## imm = 0x60040400
	callq	_vsc_write
	movl	$300, %edi                      ## imm = 0x12C
	callq	_udelay
	xorl	%edi, %edi
	callq	_REG_DEV_SETUP
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$1, %edx
	callq	_vsc_write
	movl	$1, %edi
	callq	_REG_DEV_SETUP
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$1, %edx
	callq	_vsc_write
	movl	$2, %edi
	callq	_REG_DEV_SETUP
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$1, %edx
	callq	_vsc_write
	movl	$3, %edi
	callq	_REG_DEV_SETUP
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$1, %edx
	callq	_vsc_write
	movl	$4, %edi
	callq	_REG_DEV_SETUP
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$1, %edx
	callq	_vsc_write
	movl	$5, %edi
	callq	_REG_DEV_SETUP
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$1, %edx
	callq	_vsc_write
	movl	$6, %edi
	callq	_REG_DEV_SETUP
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$1, %edx
	callq	_vsc_write
	movl	$7, %edi
	callq	_REG_DEV_SETUP
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$1, %edx
	callq	_vsc_write
	movl	$8, %edi
	callq	_REG_DEV_SETUP
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$1, %edx
	callq	_vsc_write
	movl	$9, %edi
	callq	_REG_DEV_SETUP
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$1, %edx
	callq	_vsc_write
	movl	$10, %edi
	callq	_REG_DEV_SETUP
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$1, %edx
	callq	_vsc_write
	movl	$11, %edi
	callq	_REG_DEV_SETUP
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$1, %edx
	callq	_vsc_write
	movl	$300, %edi                      ## imm = 0x12C
	callq	_udelay
	movl	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_vsc_write
	movl	$10, %edi
	callq	_mdelay
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_MEM_BIST,4,2               ## @REG_MEM_BIST
	.comm	_REG_SPI4_MISC,4,2              ## @REG_SPI4_MISC
	.no_dead_strip	_run_bist_all
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function run_bist_all
_run_bist_all:                          ; @run_bist_all
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x20, _REG_MEM_BIST@GOTPAGE
Lloh1:
	ldr	x20, [x20, _REG_MEM_BIST@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w2, #5
	bl	_vsc_write
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	bl	_vsc_read
	mov	w0, #0
	bl	_REG_DEV_SETUP
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_vsc_write
	mov	w0, #1
	bl	_REG_DEV_SETUP
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_vsc_write
	mov	w0, #2
	bl	_REG_DEV_SETUP
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_vsc_write
	mov	w0, #3
	bl	_REG_DEV_SETUP
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_vsc_write
	mov	w0, #4
	bl	_REG_DEV_SETUP
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_vsc_write
	mov	w0, #5
	bl	_REG_DEV_SETUP
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_vsc_write
	mov	w0, #6
	bl	_REG_DEV_SETUP
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_vsc_write
	mov	w0, #7
	bl	_REG_DEV_SETUP
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_vsc_write
	mov	w0, #8
	bl	_REG_DEV_SETUP
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_vsc_write
	mov	w0, #9
	bl	_REG_DEV_SETUP
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_vsc_write
	mov	w0, #10
	bl	_REG_DEV_SETUP
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_vsc_write
	mov	w0, #11
	bl	_REG_DEV_SETUP
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_vsc_write
	mov	w0, #300
	bl	_udelay
Lloh2:
	adrp	x21, _REG_SPI4_MISC@GOTPAGE
Lloh3:
	ldr	x21, [x21, _REG_SPI4_MISC@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #1033
	movk	w2, #4, lsl #16
	bl	_vsc_write
	mov	w0, #300
	bl	_udelay
	mov	x0, x19
	mov	w1, #13
	bl	_run_bist
	mov	x0, x19
	mov	w1, #14
	bl	_run_bist
	mov	x0, x19
	mov	w1, #20
	bl	_run_bist
	mov	x0, x19
	mov	w1, #21
	bl	_run_bist
	mov	w0, #200
	bl	_mdelay
	mov	x0, x19
	mov	w1, #13
	bl	_check_bist
	mov	x0, x19
	mov	w1, #14
	bl	_check_bist
	mov	x0, x19
	mov	w1, #20
	bl	_check_bist
	mov	x0, x19
	mov	w1, #21
	bl	_check_bist
	mov	w0, #100
	bl	_udelay
	mov	x0, x19
	mov	w1, #13
	bl	_enable_mem
	mov	x0, x19
	mov	w1, #14
	bl	_enable_mem
	mov	x0, x19
	mov	w1, #20
	bl	_enable_mem
	mov	x0, x19
	mov	w1, #21
	bl	_enable_mem
	mov	w0, #300
	bl	_udelay
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #1024
	movk	w2, #24580, lsl #16
	bl	_vsc_write
	mov	w0, #300
	bl	_udelay
	mov	w0, #0
	bl	_REG_DEV_SETUP
	mov	x1, x0
	mov	x0, x19
	mov	w2, #1
	bl	_vsc_write
	mov	w0, #1
	bl	_REG_DEV_SETUP
	mov	x1, x0
	mov	x0, x19
	mov	w2, #1
	bl	_vsc_write
	mov	w0, #2
	bl	_REG_DEV_SETUP
	mov	x1, x0
	mov	x0, x19
	mov	w2, #1
	bl	_vsc_write
	mov	w0, #3
	bl	_REG_DEV_SETUP
	mov	x1, x0
	mov	x0, x19
	mov	w2, #1
	bl	_vsc_write
	mov	w0, #4
	bl	_REG_DEV_SETUP
	mov	x1, x0
	mov	x0, x19
	mov	w2, #1
	bl	_vsc_write
	mov	w0, #5
	bl	_REG_DEV_SETUP
	mov	x1, x0
	mov	x0, x19
	mov	w2, #1
	bl	_vsc_write
	mov	w0, #6
	bl	_REG_DEV_SETUP
	mov	x1, x0
	mov	x0, x19
	mov	w2, #1
	bl	_vsc_write
	mov	w0, #7
	bl	_REG_DEV_SETUP
	mov	x1, x0
	mov	x0, x19
	mov	w2, #1
	bl	_vsc_write
	mov	w0, #8
	bl	_REG_DEV_SETUP
	mov	x1, x0
	mov	x0, x19
	mov	w2, #1
	bl	_vsc_write
	mov	w0, #9
	bl	_REG_DEV_SETUP
	mov	x1, x0
	mov	x0, x19
	mov	w2, #1
	bl	_vsc_write
	mov	w0, #10
	bl	_REG_DEV_SETUP
	mov	x1, x0
	mov	x0, x19
	mov	w2, #1
	bl	_vsc_write
	mov	w0, #11
	bl	_REG_DEV_SETUP
	mov	x1, x0
	mov	x0, x19
	mov	w2, #1
	bl	_vsc_write
	mov	w0, #300
	bl	_udelay
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_vsc_write
	mov	w0, #10
	bl	_mdelay
	mov	w0, #0
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_MEM_BIST,4,2               ; @REG_MEM_BIST
	.comm	_REG_SPI4_MISC,4,2              ; @REG_SPI4_MISC
	.no_dead_strip	_run_bist_all
.subsections_via_symbols
