	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function doc_read_page_ecc_init
_doc_read_page_ecc_init:                ## @doc_read_page_ecc_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_DOC_ECCCONF0_READ_MODE@GOTPCREL(%rip), %rax
	movq	_DOC_ECCCONF0_BCH_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_DOC_ECCCONF0_HAMMING_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_DOC_ECCCONF0_DATA_BYTES_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %esi
	movq	%rdi, %rbx
	orl	%ecx, %esi
	movq	_DOC_ECCCONF0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_doc_writew
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_doc_delay
	movq	_DOC_FLASHCONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_doc_register_readb
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_doc_wait_ready                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DOC_ECCCONF0_READ_MODE,4,2     ## @DOC_ECCCONF0_READ_MODE
	.comm	_DOC_ECCCONF0_BCH_ENABLE,4,2    ## @DOC_ECCCONF0_BCH_ENABLE
	.comm	_DOC_ECCCONF0_HAMMING_ENABLE,4,2 ## @DOC_ECCCONF0_HAMMING_ENABLE
	.comm	_DOC_ECCCONF0_DATA_BYTES_MASK,4,2 ## @DOC_ECCCONF0_DATA_BYTES_MASK
	.comm	_DOC_ECCCONF0,4,2               ## @DOC_ECCCONF0
	.comm	_DOC_FLASHCONTROL,4,2           ## @DOC_FLASHCONTROL
	.no_dead_strip	_doc_read_page_ecc_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function doc_read_page_ecc_init
_doc_read_page_ecc_init:                ; @doc_read_page_ecc_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	x8, _DOC_ECCCONF0_READ_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DOC_ECCCONF0_READ_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DOC_ECCCONF0_BCH_ENABLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DOC_ECCCONF0_BCH_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _DOC_ECCCONF0_HAMMING_ENABLE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DOC_ECCCONF0_HAMMING_ENABLE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _DOC_ECCCONF0_DATA_BYTES_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DOC_ECCCONF0_DATA_BYTES_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w9, w9, w1
	orr	w1, w8, w9
Lloh12:
	adrp	x8, _DOC_ECCCONF0@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DOC_ECCCONF0@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	bl	_doc_writew
	mov	x0, x19
	mov	w1, #4
	bl	_doc_delay
Lloh15:
	adrp	x8, _DOC_FLASHCONTROL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DOC_FLASHCONTROL@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_doc_register_readb
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_doc_wait_ready
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DOC_ECCCONF0_READ_MODE,4,2     ; @DOC_ECCCONF0_READ_MODE
	.comm	_DOC_ECCCONF0_BCH_ENABLE,4,2    ; @DOC_ECCCONF0_BCH_ENABLE
	.comm	_DOC_ECCCONF0_HAMMING_ENABLE,4,2 ; @DOC_ECCCONF0_HAMMING_ENABLE
	.comm	_DOC_ECCCONF0_DATA_BYTES_MASK,4,2 ; @DOC_ECCCONF0_DATA_BYTES_MASK
	.comm	_DOC_ECCCONF0,4,2               ; @DOC_ECCCONF0
	.comm	_DOC_FLASHCONTROL,4,2           ; @DOC_FLASHCONTROL
	.no_dead_strip	_doc_read_page_ecc_init
.subsections_via_symbols
