	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_read_errors
_parse_read_errors:                     ## @parse_read_errors
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -84(%rbp)                 ## 4-byte Spill
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r14
	leaq	16(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_get_qcom_nand_controller
	movq	%rax, %r12
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_nand_to_mtd
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	(%r12), %r15
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_nandc_read_buffer_sync
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movl	16(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	addq	$8, %r15
	xorl	%ecx, %ecx
	movq	%r13, %r14
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	xorl	%r12d, %r12d
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_BS_CORRECTABLE_ERR_MSK@GOTPCREL(%rip), %rax
	andl	(%rax), %r13d
	movq	-104(%rbp), %rax                ## 8-byte Reload
	addl	%r13d, (%rax)
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%r13d, %esi
	callq	_max
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	testq	%r14, %r14
	movslq	%ebx, %rax
	leaq	(%r14,%rax,4), %rax
	cmovneq	%rax, %r14
	incl	%r12d
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %eax
	addq	$12, %r15
	addl	$-4, %ecx
	cmpl	%eax, %r12d
	jge	LBB0_20
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	decl	%eax
	cmpl	%eax, %r12d
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	20(%rax), %eax
	addl	%ecx, %eax
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r15), %edi
	callq	_le32_to_cpu
	movl	%eax, %ebx
	movl	-4(%r15), %edi
	callq	_le32_to_cpu
	movl	%eax, %r13d
	movl	-8(%r15), %edi
	callq	_le32_to_cpu
	movq	_FS_OP_ERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ebx, %ecx
	je	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_BS_UNCORRECTABLE_BIT@GOTPCREL(%rip), %rdx
	testl	%r13d, (%rdx)
	je	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$0, 8(%rcx)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	notl	%eax
	xorl	%ecx, %ecx
	movq	_ERASED_CW@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	sete	%cl
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	testl	%ecx, %ecx
	jne	LBB0_13
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_FS_MPU_ERR@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	testl	%ebx, %ecx
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, -60(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_18
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	testq	%r14, %r14
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_erased_chunk_check_and_fixup
	movl	%eax, %ecx
	testl	%ecx, %ecx
	je	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	jmp	LBB0_19
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r12d, %edi
	callq	_BIT
	orl	%eax, -56(%rbp)                 ## 4-byte Folded Spill
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	jmp	LBB0_19
LBB0_20:
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_22
## %bb.21:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_24
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_24
LBB0_22:
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, %ecx
	je	LBB0_23
## %bb.25:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movl	-84(%rbp), %r8d                 ## 4-byte Reload
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_check_for_erased_page          ## TAILCALL
LBB0_23:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
LBB0_24:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FS_OP_ERR,4,2                  ## @FS_OP_ERR
	.comm	_BS_UNCORRECTABLE_BIT,4,2       ## @BS_UNCORRECTABLE_BIT
	.comm	_ERASED_CW,4,2                  ## @ERASED_CW
	.comm	_FS_MPU_ERR,4,2                 ## @FS_MPU_ERR
	.comm	_BS_CORRECTABLE_ERR_MSK,4,2     ## @BS_CORRECTABLE_ERR_MSK
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_parse_read_errors
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_read_errors
_parse_read_errors:                     ; @parse_read_errors
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x3
	mov	x24, x2
	mov	x28, x1
	mov	x22, x0
	add	x23, x0, #16
	mov	x0, x23
	bl	_get_qcom_nand_controller
	mov	x19, x0
	mov	x0, x23
	bl	_nand_to_mtd
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	ldr	x20, [x19]
	mov	x0, x19
	mov	w1, #1
	bl	_nandc_read_buffer_sync
	ldr	w8, [x22, #16]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.1:
	str	x24, [sp, #8]                   ; 8-byte Folded Spill
	str	w21, [sp, #20]                  ; 4-byte Folded Spill
	mov	w26, #0
	str	xzr, [sp, #40]                  ; 8-byte Folded Spill
	str	wzr, [sp, #36]                  ; 4-byte Folded Spill
	mov	w27, #0
	add	x25, x20, #8
Lloh0:
	adrp	x24, _FS_OP_ERR@GOTPAGE
Lloh1:
	ldr	x24, [x24, _FS_OP_ERR@GOTPAGEOFF]
	str	x28, [sp]                       ; 8-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh2:
	adrp	x8, _BS_CORRECTABLE_ERR_MSK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BS_CORRECTABLE_ERR_MSK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	and	w1, w8, w21
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	ldr	w8, [x9]
	add	w8, w8, w1
	str	w8, [x9]
	ldr	w0, [sp, #44]                   ; 4-byte Folded Reload
	bl	_max
	str	w0, [sp, #44]                   ; 4-byte Folded Spill
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x28, w19, sxtw #2
	cmp	x28, #0
	csel	x28, xzr, x8, eq
	add	w27, w27, #1
	ldr	w8, [x23]
	add	x25, x25, #12
	sub	w26, w26, #4
	cmp	w27, w8
	b.ge	LBB0_16
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w8, #1
	cmp	w27, w8
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x22, #20]
	add	w19, w26, w8
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w19, [x22]
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x25]
	bl	_le32_to_cpu
	mov	x20, x0
	ldur	w0, [x25, #-4]
	bl	_le32_to_cpu
	mov	x21, x0
	ldur	w0, [x25, #-8]
	bl	_le32_to_cpu
	ldr	w8, [x24]
	tst	w8, w20
	b.eq	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh5:
	adrp	x9, _BS_UNCORRECTABLE_BIT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BS_UNCORRECTABLE_BIT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w21
	b.eq	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh8:
	adrp	x8, _ERASED_CW@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERASED_CW@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	bics	wzr, w8, w0
	cset	w0, eq
	cbnz	w0, LBB0_3
	b	LBB0_15
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh11:
	adrp	x9, _FS_MPU_ERR@GOTPAGE
Lloh12:
	ldr	x9, [x9, _FS_MPU_ERR@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w20
	b.eq	LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #1
	str	w8, [sp, #40]                   ; 4-byte Folded Spill
	b	LBB0_3
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	x28, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x28
	mov	x1, x19
	bl	_erased_chunk_check_and_fixup
	cbnz	w0, LBB0_3
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x27
	bl	_BIT
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	orr	w8, w0, w8
	str	w8, [sp, #36]                   ; 4-byte Folded Spill
	b	LBB0_3
LBB0_16:
	ldr	w8, [sp, #40]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_19
; %bb.17:
Lloh14:
	adrp	x8, _EIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_22
LBB0_18:
	mov	w0, #0
	b	LBB0_22
LBB0_19:
	ldr	w3, [sp, #36]                   ; 4-byte Folded Reload
	cbz	w3, LBB0_21
; %bb.20:
	mov	x0, x22
	ldp	x1, x2, [sp]                    ; 16-byte Folded Reload
	ldr	w4, [sp, #20]                   ; 4-byte Folded Reload
	ldr	w5, [sp, #44]                   ; 4-byte Folded Reload
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_check_for_erased_page
LBB0_21:
	ldr	w0, [sp, #44]                   ; 4-byte Folded Reload
LBB0_22:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_FS_OP_ERR,4,2                  ; @FS_OP_ERR
	.comm	_BS_UNCORRECTABLE_BIT,4,2       ; @BS_UNCORRECTABLE_BIT
	.comm	_ERASED_CW,4,2                  ; @ERASED_CW
	.comm	_FS_MPU_ERR,4,2                 ; @FS_MPU_ERR
	.comm	_BS_CORRECTABLE_ERR_MSK,4,2     ; @BS_CORRECTABLE_ERR_MSK
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_parse_read_errors
.subsections_via_symbols
