	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_stream_copy3               ## -- Begin function svn_stream_copy3
	.p2align	4, 0x90
_svn_stream_copy3:                      ## @svn_stream_copy3
	.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, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	_SVN__STREAM_CHUNK_SIZE@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	movq	%r8, %rdi
	callq	_apr_palloc
	movq	%rax, %rbx
	movq	(%r14), %rax
	leaq	-48(%rbp), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_1:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_SVN__STREAM_CHUNK_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, -48(%rbp)
	testq	%r13, %r13
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	*%r13
	testq	%rax, %rax
	jne	LBB0_11
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_svn_stream_read_full
	testq	%rax, %rax
	jne	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax
	testq	%rax, %rax
	jle	LBB0_1
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_svn_stream_write
	testq	%rax, %rax
	jne	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax
	jmp	LBB0_1
LBB0_11:
	movq	%rax, %r15
	jmp	LBB0_12
LBB0_9:
	xorl	%r15d, %r15d
LBB0_12:
	movq	%r12, %rdi
	callq	_svn_stream_close
	movq	%rax, %rbx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_svn_stream_close
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_svn_error_compose_create
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_svn_error_compose_create
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SVN__STREAM_CHUNK_SIZE,8,3     ## @SVN__STREAM_CHUNK_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_stream_copy3               ; -- Begin function svn_stream_copy3
	.p2align	2
_svn_stream_copy3:                      ; @svn_stream_copy3
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x25, _SVN__STREAM_CHUNK_SIZE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _SVN__STREAM_CHUNK_SIZE@GOTPAGEOFF]
	ldr	x1, [x25]
	mov	x0, x4
	bl	_apr_palloc
	mov	x23, x0
	ldr	x8, [x25]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_9
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	str	x8, [sp, #8]
	cbz	x22, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	blr	x22
	cbnz	x0, LBB0_8
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x23
	bl	_svn_stream_read_full
	cbnz	x0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #8]
	cmp	x8, #1
	b.lt	LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x23
	bl	_svn_stream_write
	cbnz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #8]
	b	LBB0_1
LBB0_8:
	mov	x24, x0
	b	LBB0_10
LBB0_9:
	mov	x24, #0
LBB0_10:
	mov	x0, x20
	bl	_svn_stream_close
	mov	x20, x0
	mov	x0, x19
	bl	_svn_stream_close
	mov	x1, x0
	mov	x0, x20
	bl	_svn_error_compose_create
	mov	x1, x0
	mov	x0, x24
	bl	_svn_error_compose_create
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SVN__STREAM_CHUNK_SIZE,8,3     ; @SVN__STREAM_CHUNK_SIZE
.subsections_via_symbols
