	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _block2mtd_write
__block2mtd_write:                      ## @_block2mtd_write
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rsi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%edx, %r12d
	sarl	%cl, %r12d
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testq	%r8, %r8
	je	LBB0_2
## %bb.1:
	movq	$0, (%r8)
LBB0_2:
	testq	%r13, %r13
	je	LBB0_3
## %bb.4:
	notl	%eax
	andl	%edx, %eax
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%r15,%rbx,4), %rbx
	incl	%r12d
	xorl	%eax, %eax
	testq	%r13, %r13
	je	LBB0_13
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%eax, %r15
	leaq	(%r15,%r13), %rax
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movq	%r13, %rdx
	movl	%ecx, %r13d
	subl	%r15d, %r13d
	cmpq	%rcx, %rax
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	cmovbel	%edx, %r13d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	callq	_page_read
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	callq	_page_address
	leaq	(%rax,%r15), %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	callq	_lock_page
	movq	%r14, %rdi
	callq	_page_address
	addq	%rax, %r15
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_memcpy
	movq	%r14, %rdi
	callq	_set_page_dirty
	movq	%r14, %rdi
	callq	_unlock_page
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %r15
	movslq	%r13d, %rbx
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	subq	%rbx, %r13
	movq	%r14, %rdi
	callq	_page_cache_release
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	testq	%r8, %r8
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	addq	%rbx, (%r8)
	jmp	LBB0_12
LBB0_3:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	%r14, %rdi
	addq	$24, %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_MASK,4,2                  ## @PAGE_MASK
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	__block2mtd_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _block2mtd_write
__block2mtd_write:                      ; @_block2mtd_write
	.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
	mov	x19, x4
	mov	x20, x3
	mov	x21, x1
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x22, [x8]
Lloh0:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _PAGE_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PAGE_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cbz	x4, LBB0_2
; %bb.1:
	str	xzr, [x19]
LBB0_2:
	cbz	x20, LBB0_11
; %bb.3:
	asr	w23, w2, w8
	bic	w8, w2, w9
Lloh6:
	adrp	x26, _PAGE_SIZE@GOTPAGE
Lloh7:
	ldr	x26, [x26, _PAGE_SIZE@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #0
	mov	w0, #0
	add	w23, w23, #1
	add	x21, x21, x25, lsl #2
	cbz	x20, LBB0_13
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sxtw	x27, w8
	ldrsw	x9, [x26]
	sub	w8, w9, w8
	add	x10, x20, x27
	cmp	x10, x9
	csel	w25, w8, w20, hi
	mov	x0, x22
	mov	x1, x23
	bl	_page_read
	cbz	x0, LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	sxtw	x25, w25
	mov	x0, x24
	bl	_page_address
	add	x0, x0, x27
	mov	x1, x21
	mov	x2, x25
	bl	_memcmp
	cbz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x24
	bl	_lock_page
	mov	x0, x24
	bl	_page_address
	add	x0, x0, x27
	mov	x1, x21
	mov	x2, x25
	bl	_memcpy
	mov	x0, x24
	bl	_set_page_dirty
	mov	x0, x24
	bl	_unlock_page
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	sub	x20, x20, x25
	mov	x0, x24
	bl	_page_cache_release
	cbz	x19, LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19]
	add	x8, x8, x25
	str	x8, [x19]
	b	LBB0_4
LBB0_11:
	mov	w0, #0
	b	LBB0_13
LBB0_12:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	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_14:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_PAGE_MASK,4,2                  ; @PAGE_MASK
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	__block2mtd_write
.subsections_via_symbols
