	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function svn_spillbuf__write
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_svn_spillbuf__write
	.p2align	4, 0x90
_svn_spillbuf__write:                   ## @svn_spillbuf__write
	.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	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	56(%rdi), %rdi
	testq	%rdi, %rdi
	jne	LBB0_22
## %bb.1:
	leaq	56(%r15), %r12
	movq	(%r15), %rax
	subq	8(%r15), %rax
	cmpq	%r14, %rax
	jge	LBB0_10
## %bb.2:
	leaq	92(%r15), %rsi
	movl	72(%r15), %r8d
	movl	88(%r15), %edx
	cmpq	$0, 80(%r15)
	jne	LBB0_3
## %bb.4:
	movq	_svn_io_file_del_none@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_svn_io_file_del_on_close@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%rbx, %r9
	callq	_svn_io_open_unique_file3
	movl	%eax, %edi
	callq	_SVN_ERR
	cmpq	$0, 64(%r15)
	je	LBB0_10
## %bb.6:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r14
	movq	40(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	movq	(%rbx), %rsi
	movq	8(%rbx), %rdx
	xorl	%ecx, %ecx
	movq	%r14, %r8
	callq	_svn_io_file_write_full
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_7
LBB0_9:
	movq	8(%r15), %rax
	movq	%rax, 16(%r15)
	movq	%r14, %rbx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_10:
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
LBB0_22:
	movl	$0, -52(%rbp)
	movq	_APR_END@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-52(%rbp), %rdx
	movq	%rbx, %rcx
	callq	_svn_io_file_seek
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	56(%r15), %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	callq	_svn_io_file_write_full
	movl	%eax, %edi
	callq	_SVN_ERR
	addl	%r14d, 48(%r15)
LBB0_21:
	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
LBB0_11:
	testq	%r14, %r14
	jle	LBB0_21
## %bb.12:
	leaq	40(%r15), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	32(%r15), %r12
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%r12, (%rcx)
	movq	%r12, 32(%r15)
LBB0_20:                                ##   in Loop: Header=BB0_13 Depth=1
	addq	%rbx, %r13
	testq	%r14, %r14
	jle	LBB0_21
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	testq	%r12, %r12
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	8(%r12), %rdi
	movq	24(%r15), %rbx
	cmpq	%rbx, %rdi
	jne	LBB0_16
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%r15, %rdi
	callq	_get_buffer
	movq	%rax, %r12
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	movq	24(%r15), %rbx
	xorl	%edi, %edi
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	subq	%rdi, %rbx
	cmpq	%r14, %rbx
	cmovgeq	%r14, %rbx
	addq	(%r12), %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
	addq	%rbx, 8(%r12)
	addq	%rbx, 8(%r15)
	subq	%rbx, %r14
	movq	32(%r15), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpq	%rax, %r12
	je	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_13 Depth=1
	addq	$16, %rax
	movq	%rax, %rcx
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_svn_io_file_del_on_close,4,2   ## @svn_io_file_del_on_close
	.comm	_svn_io_file_del_none,4,2       ## @svn_io_file_del_none
	.comm	_APR_END,4,2                    ## @APR_END
	.comm	_SVN_NO_ERROR,8,3               ## @SVN_NO_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_spillbuf__write            ; -- Begin function svn_spillbuf__write
	.p2align	2
_svn_spillbuf__write:                   ; @svn_spillbuf__write
	.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	x22, x3
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	mov	x23, x0
	ldr	x0, [x23, #56]!
	cbnz	x0, LBB0_7
; %bb.1:
	ldp	x8, x9, [x20]
	sub	x8, x8, x9
	cmp	x8, x19
	b.ge	LBB0_6
; %bb.2:
	add	x1, x20, #92
	ldr	w2, [x20, #88]
	ldr	x8, [x20, #80]
Lloh0:
	adrp	x9, _svn_io_file_del_on_close@GOTPAGE
Lloh1:
	ldr	x9, [x9, _svn_io_file_del_on_close@GOTPAGEOFF]
Lloh2:
	adrp	x10, _svn_io_file_del_none@GOTPAGE
Lloh3:
	ldr	x10, [x10, _svn_io_file_del_none@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w3, [x8]
	ldr	w4, [x20, #72]
	mov	x0, x23
	mov	x5, x22
	bl	_svn_io_open_unique_file3
	bl	_SVN_ERR
	ldr	x8, [x20, #64]
	cbz	x8, LBB0_6
; %bb.3:
	ldr	x24, [x20, #40]
	cbz	x24, LBB0_5
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x23]
	ldp	x1, x2, [x24]
	mov	x3, #0
	mov	x4, x22
	bl	_svn_io_file_write_full
	bl	_SVN_ERR
	ldr	x24, [x24, #16]
	cbnz	x24, LBB0_4
LBB0_5:
	ldr	x8, [x20, #8]
	str	x8, [x20, #16]
LBB0_6:
	ldr	x0, [x23]
	cbz	x0, LBB0_9
LBB0_7:
	str	wzr, [sp, #12]
Lloh4:
	adrp	x8, _APR_END@GOTPAGE
Lloh5:
	ldr	x8, [x8, _APR_END@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x3, x22
	bl	_svn_io_file_seek
	bl	_SVN_ERR
	ldr	x0, [x20, #56]
	mov	x1, x21
	mov	x2, x19
	mov	x3, #0
	mov	x4, x22
	bl	_svn_io_file_write_full
	bl	_SVN_ERR
	ldr	w8, [x20, #48]
	add	w8, w8, w19
	str	w8, [x20, #48]
LBB0_8:
Lloh7:
	adrp	x8, _SVN_NO_ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SVN_NO_ERROR@GOTPAGEOFF]
Lloh9:
	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
LBB0_9:
	cmp	x19, #1
	b.lt	LBB0_8
; %bb.10:
	add	x24, x20, #40
	ldr	x22, [x20, #32]
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	str	x22, [x9]
	str	x22, [x20, #32]
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x21, x21, x23
	cmp	x19, #0
	b.le	LBB0_8
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	cbz	x22, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x22, #8]
	ldr	x9, [x20, #24]
	cmp	x8, x9
	b.ne	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x20
	bl	_get_buffer
	mov	x22, x0
	mov	x8, #0
	stp	xzr, xzr, [x0, #8]
	ldr	x9, [x20, #24]
LBB0_16:                                ;   in Loop: Header=BB0_13 Depth=1
	sub	x9, x9, x8
	cmp	x9, x19
	csel	x23, x9, x19, lt
	ldr	x9, [x22]
	add	x0, x9, x8
	mov	x1, x21
	mov	x2, x23
	bl	_memcpy
	ldr	x8, [x22, #8]
	add	x8, x8, x23
	str	x8, [x22, #8]
	sub	x19, x19, x23
	ldr	x8, [x20, #8]
	add	x8, x8, x23
	str	x8, [x20, #8]
	ldr	x8, [x20, #32]
	mov	x9, x24
	cbz	x8, LBB0_11
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=1
	cmp	x22, x8
	b.eq	LBB0_12
; %bb.18:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x9, x8, #16
	b	LBB0_11
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_svn_io_file_del_on_close,4,2   ; @svn_io_file_del_on_close
	.comm	_svn_io_file_del_none,4,2       ; @svn_io_file_del_none
	.comm	_APR_END,4,2                    ; @APR_END
	.comm	_SVN_NO_ERROR,8,3               ; @SVN_NO_ERROR
.subsections_via_symbols
