	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_stringbuf_from_stream      ## -- Begin function svn_stringbuf_from_stream
	.p2align	4, 0x90
_svn_stringbuf_from_stream:             ## @svn_stringbuf_from_stream
	.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, %rbx
	movq	%rsi, %r15
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	leaq	1(%rdx), %rdi
	movl	$64, %esi
	callq	_MAX
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_svn_stringbuf_create_ensure
	movq	%rax, %rbx
	movq	_TRUE@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	je	LBB0_6
## %bb.1:
	leaq	-48(%rbp), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, (%r13)
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	4(%rbx), %rsi
	movl	%esi, %eax
	notl	%eax
	addl	(%rbx), %eax
	movslq	%eax, %r14
	movq	%r14, -48(%rbp)
	addq	8(%rbx), %rsi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_svn_stream_read_full
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	-48(%rbp), %rcx
	movl	4(%rbx), %eax
	addl	%ecx, %eax
	movl	%eax, 4(%rbx)
	cmpq	%r14, %rcx
	jl	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %esi
	movl	%esi, %ecx
	subl	%eax, %ecx
	cmpl	$63, %ecx
	jg	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	%esi, %esi
	movq	%rbx, %rdi
	callq	_svn_stringbuf_ensure
	jmp	LBB0_5
LBB0_6:
	movq	8(%rbx), %rax
	movslq	4(%rbx), %rcx
	movb	$0, (%rax,%rcx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	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	_TRUE,8,3                       ## @TRUE
	.comm	_SVN_NO_ERROR,8,3               ## @SVN_NO_ERROR
	.comm	_MIN_READ_SIZE,8,3              ## @MIN_READ_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_stringbuf_from_stream      ; -- Begin function svn_stringbuf_from_stream
	.p2align	2
_svn_stringbuf_from_stream:             ; @svn_stringbuf_from_stream
	.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	x21, x3
	mov	x20, x1
	mov	x19, x0
	add	x0, x2, #1
	mov	w1, #64
	bl	_MAX
	mov	x1, x21
	bl	_svn_stringbuf_create_ensure
	mov	x21, x0
Lloh0:
	adrp	x22, _TRUE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _TRUE@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	cbz	x8, LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldp	w8, w9, [x21]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	mvn	w10, w9
	add	w8, w8, w10
	sxtw	x23, w8
	str	x23, [sp, #8]
	ldr	x8, [x21, #8]
	add	x1, x8, x9
	add	x2, sp, #8
	mov	x0, x20
	bl	_svn_stream_read_full
	bl	_SVN_ERR
	ldr	x9, [sp, #8]
	ldr	w8, [x21, #4]
	add	w8, w8, w9
	str	w8, [x21, #4]
	cmp	x9, x23
	b.lt	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w9, [x21]
	sub	w8, w9, w8
	cmp	w8, #63
	b.gt	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	lsl	w1, w9, #1
	mov	x0, x21
	bl	_svn_stringbuf_ensure
	b	LBB0_1
LBB0_5:
	ldr	x8, [x21, #8]
	ldrsw	x9, [x21, #4]
	strb	wzr, [x8, x9]
	str	x21, [x19]
Lloh2:
	adrp	x8, _SVN_NO_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SVN_NO_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	x0, [x8]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_SVN_NO_ERROR,8,3               ; @SVN_NO_ERROR
	.comm	_MIN_READ_SIZE,8,3              ; @MIN_READ_SIZE
.subsections_via_symbols
