	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_board_nand_init                ## -- Begin function board_nand_init
	.p2align	4, 0x90
_board_nand_init:                       ## @board_nand_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_SYS_CTRL_RST_STATIC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	$1, %esi
	callq	_reset_block
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_reset_block
	movq	_SYS_CTRL_CLK_STATIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_enable_clock
	movq	_PINMUX_BANK_MFA@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_PINMUX_STATIC_DATA0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$12, %esi
	callq	_pinmux_set
	movl	(%rbx), %edi
	movq	_PINMUX_STATIC_DATA1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$13, %esi
	callq	_pinmux_set
	movl	(%rbx), %edi
	movq	_PINMUX_STATIC_DATA2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$14, %esi
	callq	_pinmux_set
	movl	(%rbx), %edi
	movq	_PINMUX_STATIC_DATA3@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$15, %esi
	callq	_pinmux_set
	movl	(%rbx), %edi
	movq	_PINMUX_STATIC_DATA4@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$16, %esi
	callq	_pinmux_set
	movl	(%rbx), %edi
	movq	_PINMUX_STATIC_DATA5@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$17, %esi
	callq	_pinmux_set
	movl	(%rbx), %edi
	movq	_PINMUX_STATIC_DATA6@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$18, %esi
	callq	_pinmux_set
	movl	(%rbx), %edi
	movq	_PINMUX_STATIC_DATA7@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$19, %esi
	callq	_pinmux_set
	movl	(%rbx), %edi
	movq	_PINMUX_STATIC_NWE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$20, %esi
	callq	_pinmux_set
	movl	(%rbx), %edi
	movq	_PINMUX_STATIC_NOE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$21, %esi
	callq	_pinmux_set
	movl	(%rbx), %edi
	movq	_PINMUX_STATIC_NCS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$22, %esi
	callq	_pinmux_set
	movl	(%rbx), %edi
	movq	_PINMUX_STATIC_ADDR18@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$23, %esi
	callq	_pinmux_set
	movl	(%rbx), %edi
	movq	_PINMUX_STATIC_ADDR19@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$24, %esi
	callq	_pinmux_set
	movq	_STATIC_READ_CYCLE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$63, %eax
	movl	$63, %edx
	shll	%cl, %edx
	movq	_STATIC_WRITE_CYCLE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_STATIC_WRITE_PULSE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$31, %esi
	shll	%cl, %esi
	movq	_STATIC_TURN_AROUND_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$3, %edi
	shll	%cl, %edi
	orl	%edx, %eax
	orl	%esi, %edi
	orl	%eax, %edi
	movq	_STATIC_BUS_WIDTH16@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_STATIC_CTL_BANK0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_writel
	movq	_nand_hwcontrol@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	_NAND_ECC_SOFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movl	$30, (%r14)
	movq	_nand_dev_ready@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	_nand_read_buf@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	%r14, %rdi
	callq	_nand_dev_reset
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SYS_CTRL_RST_STATIC,4,2        ## @SYS_CTRL_RST_STATIC
	.comm	_SYS_CTRL_CLK_STATIC,4,2        ## @SYS_CTRL_CLK_STATIC
	.comm	_PINMUX_BANK_MFA,4,2            ## @PINMUX_BANK_MFA
	.comm	_PINMUX_STATIC_DATA0,4,2        ## @PINMUX_STATIC_DATA0
	.comm	_PINMUX_STATIC_DATA1,4,2        ## @PINMUX_STATIC_DATA1
	.comm	_PINMUX_STATIC_DATA2,4,2        ## @PINMUX_STATIC_DATA2
	.comm	_PINMUX_STATIC_DATA3,4,2        ## @PINMUX_STATIC_DATA3
	.comm	_PINMUX_STATIC_DATA4,4,2        ## @PINMUX_STATIC_DATA4
	.comm	_PINMUX_STATIC_DATA5,4,2        ## @PINMUX_STATIC_DATA5
	.comm	_PINMUX_STATIC_DATA6,4,2        ## @PINMUX_STATIC_DATA6
	.comm	_PINMUX_STATIC_DATA7,4,2        ## @PINMUX_STATIC_DATA7
	.comm	_PINMUX_STATIC_NWE,4,2          ## @PINMUX_STATIC_NWE
	.comm	_PINMUX_STATIC_NOE,4,2          ## @PINMUX_STATIC_NOE
	.comm	_PINMUX_STATIC_NCS,4,2          ## @PINMUX_STATIC_NCS
	.comm	_PINMUX_STATIC_ADDR18,4,2       ## @PINMUX_STATIC_ADDR18
	.comm	_PINMUX_STATIC_ADDR19,4,2       ## @PINMUX_STATIC_ADDR19
	.comm	_STATIC_READ_CYCLE_SHIFT,4,2    ## @STATIC_READ_CYCLE_SHIFT
	.comm	_STATIC_WRITE_CYCLE_SHIFT,4,2   ## @STATIC_WRITE_CYCLE_SHIFT
	.comm	_STATIC_WRITE_PULSE_SHIFT,4,2   ## @STATIC_WRITE_PULSE_SHIFT
	.comm	_STATIC_TURN_AROUND_SHIFT,4,2   ## @STATIC_TURN_AROUND_SHIFT
	.comm	_STATIC_BUS_WIDTH16,4,2         ## @STATIC_BUS_WIDTH16
	.comm	_STATIC_CTL_BANK0,4,2           ## @STATIC_CTL_BANK0
	.comm	_nand_hwcontrol,4,2             ## @nand_hwcontrol
	.comm	_NAND_ECC_SOFT,4,2              ## @NAND_ECC_SOFT
	.comm	_nand_dev_ready,4,2             ## @nand_dev_ready
	.comm	_nand_read_buf,4,2              ## @nand_read_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_board_nand_init                ; -- Begin function board_nand_init
	.p2align	2
_board_nand_init:                       ; @board_nand_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x20, _SYS_CTRL_RST_STATIC@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SYS_CTRL_RST_STATIC@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	w1, #1
	bl	_reset_block
	ldr	w0, [x20]
	mov	w1, #0
	bl	_reset_block
Lloh2:
	adrp	x8, _SYS_CTRL_CLK_STATIC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SYS_CTRL_CLK_STATIC@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_enable_clock
Lloh5:
	adrp	x20, _PINMUX_BANK_MFA@GOTPAGE
Lloh6:
	ldr	x20, [x20, _PINMUX_BANK_MFA@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh7:
	adrp	x8, _PINMUX_STATIC_DATA0@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PINMUX_STATIC_DATA0@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	w1, #12
	bl	_pinmux_set
	ldr	w0, [x20]
Lloh10:
	adrp	x8, _PINMUX_STATIC_DATA1@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PINMUX_STATIC_DATA1@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	w1, #13
	bl	_pinmux_set
	ldr	w0, [x20]
Lloh13:
	adrp	x8, _PINMUX_STATIC_DATA2@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PINMUX_STATIC_DATA2@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	w1, #14
	bl	_pinmux_set
	ldr	w0, [x20]
Lloh16:
	adrp	x8, _PINMUX_STATIC_DATA3@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PINMUX_STATIC_DATA3@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	w1, #15
	bl	_pinmux_set
	ldr	w0, [x20]
Lloh19:
	adrp	x8, _PINMUX_STATIC_DATA4@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PINMUX_STATIC_DATA4@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	w1, #16
	bl	_pinmux_set
	ldr	w0, [x20]
Lloh22:
	adrp	x8, _PINMUX_STATIC_DATA5@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PINMUX_STATIC_DATA5@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	w1, #17
	bl	_pinmux_set
	ldr	w0, [x20]
Lloh25:
	adrp	x8, _PINMUX_STATIC_DATA6@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PINMUX_STATIC_DATA6@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	mov	w1, #18
	bl	_pinmux_set
	ldr	w0, [x20]
Lloh28:
	adrp	x8, _PINMUX_STATIC_DATA7@GOTPAGE
Lloh29:
	ldr	x8, [x8, _PINMUX_STATIC_DATA7@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	mov	w1, #19
	bl	_pinmux_set
	ldr	w0, [x20]
Lloh31:
	adrp	x8, _PINMUX_STATIC_NWE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _PINMUX_STATIC_NWE@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	mov	w1, #20
	bl	_pinmux_set
	ldr	w0, [x20]
Lloh34:
	adrp	x8, _PINMUX_STATIC_NOE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _PINMUX_STATIC_NOE@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	mov	w1, #21
	bl	_pinmux_set
	ldr	w0, [x20]
Lloh37:
	adrp	x8, _PINMUX_STATIC_NCS@GOTPAGE
Lloh38:
	ldr	x8, [x8, _PINMUX_STATIC_NCS@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
	mov	w1, #22
	bl	_pinmux_set
	ldr	w0, [x20]
Lloh40:
	adrp	x8, _PINMUX_STATIC_ADDR18@GOTPAGE
Lloh41:
	ldr	x8, [x8, _PINMUX_STATIC_ADDR18@GOTPAGEOFF]
Lloh42:
	ldr	w2, [x8]
	mov	w1, #23
	bl	_pinmux_set
	ldr	w0, [x20]
Lloh43:
	adrp	x8, _PINMUX_STATIC_ADDR19@GOTPAGE
Lloh44:
	ldr	x8, [x8, _PINMUX_STATIC_ADDR19@GOTPAGEOFF]
Lloh45:
	ldr	w2, [x8]
	mov	w1, #24
	bl	_pinmux_set
Lloh46:
	adrp	x8, _STATIC_READ_CYCLE_SHIFT@GOTPAGE
Lloh47:
	ldr	x8, [x8, _STATIC_READ_CYCLE_SHIFT@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	mov	w9, #63
	lsl	w8, w9, w8
Lloh49:
	adrp	x10, _STATIC_WRITE_CYCLE_SHIFT@GOTPAGE
Lloh50:
	ldr	x10, [x10, _STATIC_WRITE_CYCLE_SHIFT@GOTPAGEOFF]
Lloh51:
	ldr	w10, [x10]
	lsl	w9, w9, w10
Lloh52:
	adrp	x10, _STATIC_WRITE_PULSE_SHIFT@GOTPAGE
Lloh53:
	ldr	x10, [x10, _STATIC_WRITE_PULSE_SHIFT@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh54:
	ldr	w9, [x10]
	mov	w10, #31
	lsl	w9, w10, w9
Lloh55:
	adrp	x10, _STATIC_TURN_AROUND_SHIFT@GOTPAGE
Lloh56:
	ldr	x10, [x10, _STATIC_TURN_AROUND_SHIFT@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh57:
	ldr	w9, [x10]
	mov	w10, #3
	lsl	w9, w10, w9
Lloh58:
	adrp	x10, _STATIC_BUS_WIDTH16@GOTPAGE
Lloh59:
	ldr	x10, [x10, _STATIC_BUS_WIDTH16@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh60:
	ldr	w9, [x10]
	orr	w0, w8, w9
Lloh61:
	adrp	x8, _STATIC_CTL_BANK0@GOTPAGE
Lloh62:
	ldr	x8, [x8, _STATIC_CTL_BANK0@GOTPAGEOFF]
Lloh63:
	ldr	w1, [x8]
	bl	_writel
Lloh64:
	adrp	x8, _nand_hwcontrol@GOTPAGE
Lloh65:
	ldr	x8, [x8, _nand_hwcontrol@GOTPAGEOFF]
Lloh66:
	ldr	w8, [x8]
Lloh67:
	adrp	x9, _NAND_ECC_SOFT@GOTPAGE
Lloh68:
	ldr	x9, [x9, _NAND_ECC_SOFT@GOTPAGEOFF]
Lloh69:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #12]
	mov	w8, #30
	str	w8, [x19]
Lloh70:
	adrp	x8, _nand_dev_ready@GOTPAGE
Lloh71:
	ldr	x8, [x8, _nand_dev_ready@GOTPAGEOFF]
Lloh72:
	ldr	w8, [x8]
Lloh73:
	adrp	x9, _nand_read_buf@GOTPAGE
Lloh74:
	ldr	x9, [x9, _nand_read_buf@GOTPAGEOFF]
Lloh75:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #4]
	mov	x0, x19
	bl	_nand_dev_reset
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SYS_CTRL_RST_STATIC,4,2        ; @SYS_CTRL_RST_STATIC
	.comm	_SYS_CTRL_CLK_STATIC,4,2        ; @SYS_CTRL_CLK_STATIC
	.comm	_PINMUX_BANK_MFA,4,2            ; @PINMUX_BANK_MFA
	.comm	_PINMUX_STATIC_DATA0,4,2        ; @PINMUX_STATIC_DATA0
	.comm	_PINMUX_STATIC_DATA1,4,2        ; @PINMUX_STATIC_DATA1
	.comm	_PINMUX_STATIC_DATA2,4,2        ; @PINMUX_STATIC_DATA2
	.comm	_PINMUX_STATIC_DATA3,4,2        ; @PINMUX_STATIC_DATA3
	.comm	_PINMUX_STATIC_DATA4,4,2        ; @PINMUX_STATIC_DATA4
	.comm	_PINMUX_STATIC_DATA5,4,2        ; @PINMUX_STATIC_DATA5
	.comm	_PINMUX_STATIC_DATA6,4,2        ; @PINMUX_STATIC_DATA6
	.comm	_PINMUX_STATIC_DATA7,4,2        ; @PINMUX_STATIC_DATA7
	.comm	_PINMUX_STATIC_NWE,4,2          ; @PINMUX_STATIC_NWE
	.comm	_PINMUX_STATIC_NOE,4,2          ; @PINMUX_STATIC_NOE
	.comm	_PINMUX_STATIC_NCS,4,2          ; @PINMUX_STATIC_NCS
	.comm	_PINMUX_STATIC_ADDR18,4,2       ; @PINMUX_STATIC_ADDR18
	.comm	_PINMUX_STATIC_ADDR19,4,2       ; @PINMUX_STATIC_ADDR19
	.comm	_STATIC_READ_CYCLE_SHIFT,4,2    ; @STATIC_READ_CYCLE_SHIFT
	.comm	_STATIC_WRITE_CYCLE_SHIFT,4,2   ; @STATIC_WRITE_CYCLE_SHIFT
	.comm	_STATIC_WRITE_PULSE_SHIFT,4,2   ; @STATIC_WRITE_PULSE_SHIFT
	.comm	_STATIC_TURN_AROUND_SHIFT,4,2   ; @STATIC_TURN_AROUND_SHIFT
	.comm	_STATIC_BUS_WIDTH16,4,2         ; @STATIC_BUS_WIDTH16
	.comm	_STATIC_CTL_BANK0,4,2           ; @STATIC_CTL_BANK0
	.comm	_nand_hwcontrol,4,2             ; @nand_hwcontrol
	.comm	_NAND_ECC_SOFT,4,2              ; @NAND_ECC_SOFT
	.comm	_nand_dev_ready,4,2             ; @nand_dev_ready
	.comm	_nand_read_buf,4,2              ; @nand_read_buf
.subsections_via_symbols
