	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function filesys_read
_filesys_read:                          ## @filesys_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	%rcx, %rdi
	xorl	%esi, %esi
	callq	_memset
	leaq	-44(%rbp), %r8
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movq	%r14, %rcx
	callq	_copy_updates
	cmpl	%ebx, %eax
	je	LBB0_7
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$3, %edi
	callq	_vkprintf
	cmpl	%r15d, (%r12)
	jbe	LBB0_6
## %bb.2:
	movq	%r12, %rdi
	callq	_filesys_inode_load
	movq	8(%r12), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movl	(%r12), %r13d
	subl	%r15d, %r13d
	cmpl	%ebx, %r13d
	cmovael	%ebx, %r13d
	movl	%r15d, %ecx
	leaq	(%rax,%rcx,4), %rsi
	movq	%r14, %rdi
	movl	%r13d, %edx
	callq	_memcpy
	cmpl	%r13d, -44(%rbp)
	jae	LBB0_5
## %bb.4:
	movl	%r13d, -44(%rbp)
LBB0_5:
	leaq	-48(%rbp), %r8
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movq	%r14, %rcx
	callq	_copy_updates
LBB0_6:
	movl	-44(%rbp), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"filesys_read: before memset\n"

	.no_dead_strip	_filesys_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function filesys_read
_filesys_read:                          ; @filesys_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	mov	x0, x3
	mov	w1, #0
	bl	_memset
	add	x4, sp, #12
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	mov	x3, x20
	bl	_copy_updates
	cmp	w0, w19
	b.eq	LBB0_7
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #3
	bl	_vkprintf
	ldr	w8, [x22]
	cmp	w8, w21
	b.ls	LBB0_6
; %bb.2:
	mov	x0, x22
	bl	_filesys_inode_load
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	w9, [x22]
	sub	w9, w9, w21
	cmp	w9, w19
	csel	w23, w9, w19, lo
	add	x1, x8, w21, uxtw #2
	mov	x0, x20
	mov	x2, x23
	bl	_memcpy
	ldr	w8, [sp, #12]
	cmp	w8, w23
	b.hs	LBB0_5
; %bb.4:
	str	w23, [sp, #12]
LBB0_5:
	add	x4, sp, #8
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	mov	x3, x20
	bl	_copy_updates
LBB0_6:
	ldr	w19, [sp, #12]
LBB0_7:
	mov	x0, x19
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"filesys_read: before memset\n"

	.no_dead_strip	_filesys_read
.subsections_via_symbols
