	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scan_read_data
_scan_read_data:                        ## @scan_read_data
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movl	%edx, %r14d
	movq	%rsi, %r15
	callq	_nand_to_mtd
	movq	_NAND_BBT_VERSION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	8(%rbx), %ecx
	movq	(%rbx), %rdx
	cmpl	$1, %ecx
	sbbq	$-1, %rdx
	leaq	-32(%rbp), %rcx
	movq	%rax, %rdi
	movl	%r14d, %esi
	movq	%r15, %r8
	callq	_mtd_read
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NAND_BBT_VERSION,4,2           ## @NAND_BBT_VERSION
	.no_dead_strip	_scan_read_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scan_read_data
_scan_read_data:                        ; @scan_read_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	bl	_nand_to_mtd
	ldr	x8, [x19]
	ldr	w9, [x19, #8]
Lloh0:
	adrp	x10, _NAND_BBT_VERSION@GOTPAGE
Lloh1:
	ldr	x10, [x10, _NAND_BBT_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	cinc	x2, x8, ne
	add	x3, sp, #8
	mov	x1, x20
	mov	x4, x21
	bl	_mtd_read
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NAND_BBT_VERSION,4,2           ; @NAND_BBT_VERSION
	.no_dead_strip	_scan_read_data
.subsections_via_symbols
