	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function config_nand_page_read
_config_nand_page_read:                 ## @config_nand_page_read
	.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, %rbx
	movq	_NAND_ADDR0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$2, %edx
	xorl	%ecx, %ecx
	callq	_write_reg_dma
	movq	_NAND_DEV0_CFG0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$3, %edx
	xorl	%ecx, %ecx
	callq	_write_reg_dma
	movq	_NAND_EBI2_ECC_BUF_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_write_reg_dma
	movq	_NAND_ERASED_CW_DETECT_CFG@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_write_reg_dma
	movl	(%r14), %esi
	movq	_NAND_ERASED_CW_SET@GOTPCREL(%rip), %rax
	movq	_NAND_BAM_NEXT_SGL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	$1, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_write_reg_dma                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NAND_ADDR0,4,2                 ## @NAND_ADDR0
	.comm	_NAND_DEV0_CFG0,4,2             ## @NAND_DEV0_CFG0
	.comm	_NAND_EBI2_ECC_BUF_CFG,4,2      ## @NAND_EBI2_ECC_BUF_CFG
	.comm	_NAND_ERASED_CW_DETECT_CFG,4,2  ## @NAND_ERASED_CW_DETECT_CFG
	.comm	_NAND_ERASED_CW_SET,4,2         ## @NAND_ERASED_CW_SET
	.comm	_NAND_BAM_NEXT_SGL,4,2          ## @NAND_BAM_NEXT_SGL
	.no_dead_strip	_config_nand_page_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function config_nand_page_read
_config_nand_page_read:                 ; @config_nand_page_read
	.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	x8, _NAND_ADDR0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NAND_ADDR0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #2
	mov	w3, #0
	bl	_write_reg_dma
Lloh3:
	adrp	x8, _NAND_DEV0_CFG0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NAND_DEV0_CFG0@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #3
	mov	w3, #0
	bl	_write_reg_dma
Lloh6:
	adrp	x8, _NAND_EBI2_ECC_BUF_CFG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NAND_EBI2_ECC_BUF_CFG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	mov	w3, #0
	bl	_write_reg_dma
Lloh9:
	adrp	x20, _NAND_ERASED_CW_DETECT_CFG@GOTPAGE
Lloh10:
	ldr	x20, [x20, _NAND_ERASED_CW_DETECT_CFG@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #1
	mov	w3, #0
	bl	_write_reg_dma
	ldr	w1, [x20]
Lloh11:
	adrp	x8, _NAND_ERASED_CW_SET@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NAND_ERASED_CW_SET@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _NAND_BAM_NEXT_SGL@GOTPAGE
Lloh15:
	ldr	x9, [x9, _NAND_BAM_NEXT_SGL@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, x19
	mov	w2, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_write_reg_dma
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NAND_ADDR0,4,2                 ; @NAND_ADDR0
	.comm	_NAND_DEV0_CFG0,4,2             ; @NAND_DEV0_CFG0
	.comm	_NAND_EBI2_ECC_BUF_CFG,4,2      ; @NAND_EBI2_ECC_BUF_CFG
	.comm	_NAND_ERASED_CW_DETECT_CFG,4,2  ; @NAND_ERASED_CW_DETECT_CFG
	.comm	_NAND_ERASED_CW_SET,4,2         ; @NAND_ERASED_CW_SET
	.comm	_NAND_BAM_NEXT_SGL,4,2          ; @NAND_BAM_NEXT_SGL
	.no_dead_strip	_config_nand_page_read
.subsections_via_symbols
