	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function writebuf_output
_writebuf_output:                       ## @writebuf_output
	.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	%rdx, %rbx
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movslq	%ecx, %r12
	movq	40(%rdi), %r15
	addl	%r12d, 36(%rdi)
	callq	_check_io_limits
	movl	%eax, %edi
	callq	_SVN_ERR
	testl	%r12d, %r12d
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_1
## %bb.2:
	leaq	(%rbx,%r12), %r13
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r13, %rbx
	jae	LBB0_17
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %eax
	subl	%ebx, %eax
	movl	%eax, -44(%rbp)
	testq	%r15, %r15
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rax), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	24(%r15), %edi
	callq	*%rax
	movl	%eax, %edi
	callq	_SVN_ERR
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	32(%r14), %edi
	movq	%rbx, %rsi
	leaq	-44(%rbp), %rdx
	callq	_svn_ra_svn__stream_write
	movl	%eax, %edi
	callq	_SVN_ERR
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	jne	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	testq	%r12, %r12
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	callq	_svn_pool_clear
	jmp	LBB0_11
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_svn_pool_create
	movq	%rax, %r12
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	16(%r14), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	*24(%r14)
	movl	%eax, %edi
	callq	_SVN_ERR
	movl	-44(%rbp), %eax
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movslq	%eax, %rdi
	addq	%rdi, %rbx
	testq	%r15, %r15
	je	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r15), %rax
	addq	8(%r15), %rdi
	movq	%rdi, 8(%r15)
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rax), %r8
	testq	%r8, %r8
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	addq	(%r15), %rdi
	movl	(%rax), %edx
	movl	$-1, %esi
	movq	%r12, %rcx
	callq	*%r8
	jmp	LBB0_16
LBB0_1:
	xorl	%r12d, %r12d
LBB0_17:
	movslq	(%r14), %rax
	addq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	movl	%eax, (%r14)
	xorl	%ecx, %ecx
	cmpq	%rax, 8(%r14)
	setle	%cl
	movl	%ecx, 4(%r14)
	testq	%r12, %r12
	je	LBB0_19
## %bb.18:
	movq	%r12, %rdi
	callq	_svn_pool_destroy
LBB0_19:
	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_NO_ERROR,8,3               ## @SVN_NO_ERROR
	.no_dead_strip	_writebuf_output
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function writebuf_output
_writebuf_output:                       ; @writebuf_output
	.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	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x24, [x0, #40]
	ldr	w8, [x0, #36]
	add	w8, w8, w3
	str	w8, [x0, #36]
	bl	_check_io_limits
	bl	_SVN_ERR
	cmp	w20, #1
	b.lt	LBB0_16
; %bb.1:
	mov	x23, #0
	add	x25, x21, w20, sxtw
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, x26
	cmp	x21, x25
	b.hs	LBB0_17
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w25, w21
	str	w8, [sp, #12]
	cbz	x24, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x24, #16]
	cbz	x8, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x24, #24]
	blr	x8
	bl	_SVN_ERR
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x19, #32]
	add	x2, sp, #12
	mov	x1, x21
	bl	_svn_ra_svn__stream_write
	bl	_SVN_ERR
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	sxtw	x26, w8
	cbnz	x24, LBB0_13
	b	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	cbz	x23, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	bl	_svn_pool_clear
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	_svn_pool_create
	mov	x23, x0
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #24]
	ldr	w2, [x19, #16]
	mov	x0, x19
	mov	x1, x23
	blr	x8
	bl	_SVN_ERR
	ldr	w8, [sp, #12]
	sxtw	x26, w8
	cbz	x24, LBB0_2
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	x9, x8, [x24, #8]
	add	x10, x9, x26
	str	x10, [x24, #8]
	cbz	x8, LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_2
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x11, [x24]
	add	x0, x11, x10
	ldr	w2, [x8]
	mov	w1, #-1
	mov	x3, x23
	blr	x9
	b	LBB0_2
LBB0_16:
	mov	x23, #0
LBB0_17:
	ldrsw	x8, [x19]
	add	x8, x8, w20, sxtw
	ldr	x9, [x19, #8]
	cmp	x9, x8
	cset	w9, le
	stp	w8, w9, [x19]
	cbz	x23, LBB0_19
; %bb.18:
	mov	x0, x23
	bl	_svn_pool_destroy
LBB0_19:
Lloh0:
	adrp	x8, _SVN_NO_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SVN_NO_ERROR@GOTPAGEOFF]
Lloh2:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SVN_NO_ERROR,8,3               ; @SVN_NO_ERROR
	.no_dead_strip	_writebuf_output
.subsections_via_symbols
