	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function block2mtd_read
_block2mtd_read:                        ## @block2mtd_read
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.1:
	movq	%rdx, %r13
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	-1(%rax), %ebx
	andl	%esi, %ebx
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %esi
	movq	(%rdi), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%ebx, %r12
	leaq	(%r12,%r13), %rcx
	cltq
	movl	%eax, %ebx
	subl	%r12d, %ebx
	cmpq	%rax, %rcx
	cmovbel	%r13d, %ebx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	callq	_page_read
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%ebx, %r14
	subq	%r14, %r13
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_page_address
	addq	%rax, %r12
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r14d, %edx
	callq	_memcpy
	movq	%r15, %rdi
	callq	_put_page
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	%r14, (%rax)
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	testq	%r13, %r13
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%esi
	leaq	(%rbx,%r14,4), %rbx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ebx, %ebx
	jmp	LBB0_2
LBB0_7:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r15, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.no_dead_strip	_block2mtd_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function block2mtd_read
_block2mtd_read:                        ; @block2mtd_read
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	cbz	x2, LBB0_7
; %bb.1:
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
Lloh0:
	adrp	x25, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w8, [x25]
	sub	w9, w8, #1
	and	w9, w9, w1
Lloh2:
	adrp	x10, _PAGE_SHIFT@GOTPAGE
Lloh3:
	ldr	x10, [x10, _PAGE_SHIFT@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	asr	w22, w1, w10
	ldr	x26, [x0]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sxtw	x27, w9
	add	x10, x21, x27
	sub	w9, w8, w9
	cmp	x10, w8, sxtw
	csel	w23, w9, w21, hi
	ldr	x8, [x26]
	ldr	x8, [x8]
	ldr	w0, [x8]
	mov	x1, x22
	bl	_page_read
	mov	x24, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sxtw	x23, w23
	sub	x21, x21, x23
	mov	x0, x24
	bl	_page_address
	add	x1, x0, x27
	mov	x0, x19
	mov	x2, x23
	bl	_memcpy
	mov	x0, x24
	bl	_put_page
	cbz	x20, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x20]
	add	x8, x8, x23
	str	x8, [x20]
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	cbz	x21, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w9, #0
	add	w22, w22, #1
	add	x19, x19, x23, lsl #2
	ldr	w8, [x25]
	b	LBB0_2
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_PTR_ERR
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.no_dead_strip	_block2mtd_read
.subsections_via_symbols
