	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_eraseblock_by_2pages
_read_eraseblock_by_2pages:             ## @read_eraseblock_by_2pages
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_pgsize@GOTPCREL(%rip), %rcx
	movq	_pgcnt@GOTPCREL(%rip), %rdx
	movslq	%edi, %rbx
	movq	_mtd@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	imulq	(%rdi), %rbx
	movl	(%rdx), %r13d
	movq	_iobuf@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	cmpl	$2, %r13d
	jl	LBB0_6
## %bb.1:
	movslq	(%rcx), %r14
	addq	%r14, %r14
	movq	%rbx, %rsi
	movl	%r14d, %edx
	movq	%r15, %rcx
	callq	_mtdtest_read
	testl	%eax, %eax
	jne	LBB0_7
## %bb.2:
	movl	%r13d, %r12d
	shrl	$31, %r12d
	addl	%r13d, %r12d
	sarl	%r12d
	addq	%r14, %rbx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	addq	%r14, %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	decl	%r12d
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rbx,%rdx), %r13
	leaq	(%r15,%rdx), %r14
	movq	_mtd@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rbx, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	movq	%r15, %rcx
	callq	_mtdtest_read
	movq	%r14, %r15
	movq	%r13, %rbx
	testl	%eax, %eax
	je	LBB0_3
	jmp	LBB0_7
LBB0_5:
	movq	_pgcnt@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_pgsize@GOTPCREL(%rip), %rcx
LBB0_6:
	xorl	%eax, %eax
	testb	$1, %r13b
	jne	LBB0_8
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_mtd@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	(%rcx), %edx
	movq	%rbx, %rsi
	movq	%r15, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mtdtest_read                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_pgsize,4,2                     ## @pgsize
	.comm	_pgcnt,4,2                      ## @pgcnt
	.comm	_mtd,8,3                        ## @mtd
	.comm	_iobuf,8,3                      ## @iobuf
	.no_dead_strip	_read_eraseblock_by_2pages
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_eraseblock_by_2pages
_read_eraseblock_by_2pages:             ; @read_eraseblock_by_2pages
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x22, _pgsize@GOTPAGE
Lloh1:
	ldr	x22, [x22, _pgsize@GOTPAGEOFF]
Lloh2:
	adrp	x24, _pgcnt@GOTPAGE
Lloh3:
	ldr	x24, [x24, _pgcnt@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #0
	cinc	w25, w8, lt
	sxtw	x9, w0
Lloh4:
	adrp	x23, _mtd@GOTPAGE
Lloh5:
	ldr	x23, [x23, _mtd@GOTPAGEOFF]
	ldr	x0, [x23]
	ldr	x10, [x0]
	mul	x19, x10, x9
Lloh6:
	adrp	x9, _iobuf@GOTPAGE
Lloh7:
	ldr	x9, [x9, _iobuf@GOTPAGEOFF]
Lloh8:
	ldr	x20, [x9]
	cmp	w8, #2
	b.lt	LBB0_6
; %bb.1:
	ldrsw	x8, [x22]
	lsl	x21, x8, #1
	mov	x1, x19
	mov	x2, x21
	mov	x3, x20
	bl	_mtdtest_read
	cbnz	w0, LBB0_8
; %bb.2:
	asr	w25, w25, #1
	mov	x26, x21
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, x19, x26
	add	x3, x20, x26
	subs	w25, w25, #1
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x26, x26, x21
	ldr	x0, [x23]
	mov	x2, x21
	bl	_mtdtest_read
	cbz	w0, LBB0_3
	b	LBB0_8
LBB0_5:
	ldr	w8, [x24]
	mov	x19, x1
	mov	x20, x3
LBB0_6:
	tbnz	w8, #0, LBB0_9
; %bb.7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	x0, [x23]
	ldr	w2, [x22]
	mov	x1, x19
	mov	x3, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_mtdtest_read
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_pgsize,4,2                     ; @pgsize
	.comm	_pgcnt,4,2                      ; @pgcnt
	.comm	_mtd,8,3                        ; @mtd
	.comm	_iobuf,8,3                      ; @iobuf
	.no_dead_strip	_read_eraseblock_by_2pages
.subsections_via_symbols
