	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ext2fs_read
_ext2fs_read:                           ## @ext2fs_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r14
	movq	(%r14), %rax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	8(%r14), %rax
	jge	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	leaq	-56(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	callq	_buf_read_file
	testl	%eax, %eax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %r15
	cmpq	%r15, %r12
	cmovbq	%r12, %r15
	movq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_memmove
	movq	(%r14), %rax
	addq	%r15, %rax
	movq	%rax, (%r14)
	addq	%r15, %rbx
	subq	%r15, %r12
	jne	LBB0_3
## %bb.8:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_1:
	xorl	%r12d, %r12d
	jmp	LBB0_10
LBB0_4:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_6:
                                        ## kill: def $eax killed $eax def $rax
LBB0_9:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
LBB0_10:
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.11:
	movq	%r12, (%rcx)
LBB0_12:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ext2fs_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ext2fs_read
_ext2fs_read:                           ; @ext2fs_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	x19, x3
	mov	x20, x2
	cbz	x2, LBB0_5
; %bb.1:
	mov	x21, x1
	mov	x22, x0
	ldr	x24, [x0]
	ldr	x8, [x24]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x24, #8]
	cmp	x8, x9
	b.ge	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x1, sp
	add	x2, sp, #8
	mov	x0, x22
	bl	_buf_read_file
	cbnz	w0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldp	x1, x8, [sp]
	cmp	x20, x8
	csel	x23, x20, x8, lo
	mov	x0, x21
	mov	x2, x23
	bl	_memmove
	ldr	x8, [x24]
	add	x8, x8, x23
	str	x8, [x24]
	add	x21, x21, x23
	subs	x20, x20, x23
	b.ne	LBB0_2
LBB0_5:
	mov	w0, #0
LBB0_6:
	cbz	x19, LBB0_8
; %bb.7:
	str	x20, [x19]
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
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ext2fs_read
.subsections_via_symbols
