	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function translated_stream_read
_translated_stream_read:                ## @translated_stream_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
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	_SVN__STREAM_CHUNK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movl	(%rdx), %r14d
	cmpl	$1, %r14d
	jne	LBB0_3
## %bb.1:
	movq	(%r13), %rax
	movq	8(%r13), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_5
## %bb.2:
	movq	8(%rcx), %rcx
	leaq	1(%rax), %rdx
	movq	%rdx, (%r13)
	movb	(%rcx,%rax), %al
	movb	%al, (%r15)
	jmp	LBB0_14
LBB0_3:
	jl	LBB0_4
LBB0_5:
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	16(%r13), %edi
	callq	_svn_pool_clear
	movq	(%r13), %rsi
	movq	8(%r13), %rdi
	movq	(%rdi), %rbx
	cmpq	%rbx, %rsi
	jl	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	callq	_svn_stringbuf_setempty
	movq	$0, (%r13)
	movl	32(%r13), %edi
	movq	24(%r13), %rsi
	leaq	-44(%rbp), %rdx
	callq	_svn_stream_read_full
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	8(%r13), %rdi
	movl	16(%r13), %esi
	callq	_svn_stream_from_stringbuf
	movq	%rax, %rbx
	movl	16(%r13), %r8d
	movl	20(%r13), %esi
	movq	24(%r13), %rdx
	movl	-44(%rbp), %ecx
	movq	%rax, %rdi
	callq	_translate_chunk
	movl	%eax, %edi
	callq	_SVN_ERR
	movl	-44(%rbp), %eax
	movq	_SVN__STREAM_CHUNK_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	16(%r13), %r8d
	movl	20(%r13), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_translate_chunk
	movl	%eax, %edi
	callq	_SVN_ERR
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	callq	_svn_stream_close
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	(%r13), %rsi
	movq	8(%r13), %rdi
	movq	(%rdi), %rbx
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	subl	%esi, %ebx
	cmpl	%ebx, %r14d
	cmovll	%r14d, %ebx
	movslq	%r12d, %rax
	addq	%r15, %rax
	addq	8(%rdi), %rsi
	movq	%rax, %rdi
	movl	%ebx, %edx
	callq	_memcpy
	movslq	%ebx, %rax
	addq	%rax, (%r13)
	subl	%eax, %r14d
	movl	-44(%rbp), %eax
	movq	_SVN__STREAM_CHUNK_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	addl	%r12d, %ebx
	movl	%ebx, %r12d
	testl	%r14d, %r14d
	jg	LBB0_6
LBB0_12:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx), %eax
	jmp	LBB0_13
LBB0_4:
	movl	%r14d, %eax
LBB0_13:
	subl	%r14d, %eax
	movl	%eax, (%rdx)
LBB0_14:
	movq	_SVN_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	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,4,2     ## @SVN__STREAM_CHUNK_SIZE
	.comm	_SVN_NO_ERROR,8,3               ## @SVN_NO_ERROR
	.no_dead_strip	_translated_stream_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function translated_stream_read
_translated_stream_read:                ; @translated_stream_read
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x24, _SVN__STREAM_CHUNK_SIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _SVN__STREAM_CHUNK_SIZE@GOTPAGEOFF]
	ldr	w8, [x24]
	str	w8, [sp, #12]
	ldr	w23, [x2]
	cmp	w23, #1
	b.ne	LBB0_3
; %bb.1:
	ldp	x8, x9, [x21]
	ldr	x10, [x9]
	cmp	x8, x10
	b.ge	LBB0_4
; %bb.2:
	ldr	x9, [x9, #8]
	add	x10, x8, #1
	str	x10, [x21]
	ldrb	w8, [x9, x8]
	strb	w8, [x20]
	b	LBB0_13
LBB0_3:
	b.lt	LBB0_11
LBB0_4:
	mov	w25, #0
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x22
	bl	_svn_stream_close
	bl	_SVN_ERR
	ldp	x9, x0, [x21]
	ldr	x8, [x0]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	sub	w8, w8, w9
	cmp	w23, w8
	csel	w22, w23, w8, lt
	add	x8, x20, w25, sxtw
	ldr	x10, [x0, #8]
	add	x1, x10, x9
	mov	x0, x8
	mov	x2, x22
	bl	_memcpy
	add	w25, w22, w25
	ldr	x8, [x21]
	add	x8, x8, w22, sxtw
	str	x8, [x21]
	sub	w23, w23, w22
	ldr	w8, [sp, #12]
	ldr	w9, [x24]
	cmp	w8, w9
	ccmp	w23, #0, #4, eq
	b.le	LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21, #16]
	bl	_svn_pool_clear
	ldp	x9, x0, [x21]
	ldr	x8, [x0]
	cmp	x9, x8
	b.lt	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	bl	_svn_stringbuf_setempty
	str	xzr, [x21]
	ldr	w0, [x21, #32]
	ldr	x1, [x21, #24]
	add	x2, sp, #12
	bl	_svn_stream_read_full
	bl	_SVN_ERR
	ldr	x0, [x21, #8]
	ldr	w1, [x21, #16]
	bl	_svn_stream_from_stringbuf
	mov	x22, x0
	ldr	x2, [x21, #24]
	ldr	w3, [sp, #12]
	ldp	w4, w1, [x21, #16]
	bl	_translate_chunk
	bl	_SVN_ERR
	ldr	w8, [sp, #12]
	ldr	w9, [x24]
	cmp	w8, w9
	b.eq	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldp	w4, w1, [x21, #16]
	mov	x0, x22
	mov	x2, #0
	mov	w3, #0
	bl	_translate_chunk
	bl	_SVN_ERR
	b	LBB0_5
LBB0_10:
	ldr	w8, [x19]
	b	LBB0_12
LBB0_11:
	mov	x8, x23
LBB0_12:
	sub	w8, w8, w23
	str	w8, [x19]
LBB0_13:
Lloh2:
	adrp	x8, _SVN_NO_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SVN_NO_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	x0, [x8]
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SVN__STREAM_CHUNK_SIZE,4,2     ; @SVN__STREAM_CHUNK_SIZE
	.comm	_SVN_NO_ERROR,8,3               ; @SVN_NO_ERROR
	.no_dead_strip	_translated_stream_read
.subsections_via_symbols
