	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function splitfs_read
_splitfs_read:                          ## @splitfs_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, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	(%rdi), %rbx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	16(%rbx), %edi
	movq	%r15, %rdx
	subq	%r13, %rdx
	movq	%r12, %rsi
	callq	_read
	cmpl	$-1, %eax
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	addl	%eax, (%rbx)
	addl	%eax, 4(%rbx)
	movslq	%eax, %r14
	addq	%r14, %r13
	cmpq	%r15, %r13
	jae	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	12(%rbx), %eax
	decl	%eax
	cmpl	%eax, 8(%rbx)
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	16(%rbx), %edi
	callq	_close
	testq	%rax, %rax
	jne	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	addq	%r14, %r12
	incl	8(%rbx)
	movq	%rbx, %rdi
	callq	_split_openfile
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	testl	%eax, %eax
	je	LBB0_1
	jmp	LBB0_9
LBB0_7:
	xorl	%eax, %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.8:
	subq	%r13, %r15
	movq	%r15, (%rcx)
	jmp	LBB0_9
LBB0_2:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_splitfs_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function splitfs_read
_splitfs_read:                          ; @splitfs_read
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x23, #0
	ldr	x22, [x0]
Lloh0:
	adrp	x24, _errno@GOTPAGE
Lloh1:
	ldr	x24, [x24, _errno@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22, #16]
	sub	x2, x20, x23
	mov	x1, x21
	bl	_read
                                        ; kill: def $w0 killed $w0 def $x0
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	dup.2s	v0, w0
	ldr	d1, [x22]
	add.2s	v0, v1, v0
	str	d0, [x22]
	sxtw	x25, w0
	add	x23, x23, x25
	cmp	x23, x20
	b.hs	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldp	w8, w9, [x22, #8]
	sub	w9, w9, #1
	cmp	w8, w9
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x22, #16]
	bl	_close
	cbnz	x0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x21, x21, x25
	ldr	w8, [x22, #8]
	add	w8, w8, #1
	str	w8, [x22, #8]
	mov	x0, x22
	bl	_split_openfile
	str	w0, [x24]
	cbz	w0, LBB0_1
	b	LBB0_9
LBB0_6:
	mov	w0, #0
	cbz	x19, LBB0_9
; %bb.7:
	sub	x8, x20, x23
	str	x8, [x19]
	b	LBB0_9
LBB0_8:
	ldr	w0, [x24]
LBB0_9:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_splitfs_read
.subsections_via_symbols
