	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function config_nand_page_write
_config_nand_page_write:                ## @config_nand_page_write
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -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	_NAND_BAM_NEXT_SGL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	$1, %edx
	addq	$8, %rsp
	popq	%rbx
	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_BAM_NEXT_SGL,4,2          ## @NAND_BAM_NEXT_SGL
	.no_dead_strip	_config_nand_page_write
.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_write
_config_nand_page_write:                ; @config_nand_page_write
	.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:
	adrp	x9, _NAND_BAM_NEXT_SGL@GOTPAGE
Lloh9:
	ldr	x9, [x9, _NAND_BAM_NEXT_SGL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	ldr	w3, [x9]
	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	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.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_BAM_NEXT_SGL,4,2          ; @NAND_BAM_NEXT_SGL
	.no_dead_strip	_config_nand_page_write
.subsections_via_symbols
