	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn__compress_lz4              ## -- Begin function svn__compress_lz4
	.p2align	4, 0x90
_svn__compress_lz4:                     ## @svn__compress_lz4
	.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, %r13
	movl	%esi, %r14d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SVN__MAX_ENCODED_UINT_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	_LZ4_MAX_INPUT_SIZE@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%r14d, (%rax)
	setge	%dil
	callq	_assert
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_svn__encode_uint
	movq	%rax, %rbx
	subl	%r12d, %ebx
	movl	%r14d, %edi
	callq	_LZ4_compressBound
	movl	%eax, %r15d
	movq	%r13, %rdi
	callq	_svn_stringbuf_setempty
	leal	(%r15,%rbx), %esi
	movq	%r13, %rdi
	callq	_svn_stringbuf_ensure
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	callq	_svn_stringbuf_appendbytes
	movslq	(%r13), %rsi
	shlq	$3, %rsi
	addq	8(%r13), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	callq	_LZ4_compress_default
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	cmpl	%r14d, %eax
	jge	LBB0_3
## %bb.4:
	movslq	(%r13), %rcx
	cltq
	addq	%rcx, %rax
	movl	%eax, (%r13)
	movq	8(%r13), %rcx
	movq	$0, (%rcx,%rax,8)
	jmp	LBB0_5
LBB0_1:
	movq	_SVN_ERR_LZ4_COMPRESSION_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_svn_error_create
	jmp	LBB0_6
LBB0_3:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_svn_stringbuf_appendbytes
LBB0_5:
	movq	_SVN_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SVN__MAX_ENCODED_UINT_LEN,4,2  ## @SVN__MAX_ENCODED_UINT_LEN
	.comm	_LZ4_MAX_INPUT_SIZE,4,2         ## @LZ4_MAX_INPUT_SIZE
	.comm	_SVN_ERR_LZ4_COMPRESSION_FAILED,4,2 ## @SVN_ERR_LZ4_COMPRESSION_FAILED
	.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__compress_lz4              ; -- Begin function svn__compress_lz4
	.p2align	2
_svn__compress_lz4:                     ; @svn__compress_lz4
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _SVN__MAX_ENCODED_UINT_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SVN__MAX_ENCODED_UINT_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x22, x9, x8
	mov	sp, x22
Lloh8:
	adrp	x8, _LZ4_MAX_INPUT_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LZ4_MAX_INPUT_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w1
	cset	w0, ge
	bl	_assert
	mov	x0, x22
	mov	x1, x20
	bl	_svn__encode_uint
	sub	w23, w0, w22
	mov	x0, x20
	bl	_LZ4_compressBound
	mov	x24, x0
	mov	x0, x19
	bl	_svn_stringbuf_setempty
	add	w1, w24, w23
	mov	x0, x19
	bl	_svn_stringbuf_ensure
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_svn_stringbuf_appendbytes
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	add	x1, x8, x9, lsl #3
	mov	x0, x21
	mov	x2, x20
	mov	x3, x24
	bl	_LZ4_compress_default
	cbz	w0, LBB0_3
; %bb.1:
	cmp	w0, w20
	b.ge	LBB0_4
; %bb.2:
	ldr	w8, [x19]
	add	w8, w8, w0
	str	w8, [x19]
	ldr	x9, [x19, #8]
	str	xzr, [x9, w8, sxtw #3]
	b	LBB0_5
LBB0_3:
Lloh11:
	adrp	x8, _SVN_ERR_LZ4_COMPRESSION_FAILED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SVN_ERR_LZ4_COMPRESSION_FAILED@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	x1, #0
	mov	x2, #0
	bl	_svn_error_create
	b	LBB0_6
LBB0_4:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_svn_stringbuf_appendbytes
LBB0_5:
Lloh14:
	adrp	x8, _SVN_NO_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SVN_NO_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	x0, [x8]
LBB0_6:
	ldur	x8, [x29, #-56]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_SVN__MAX_ENCODED_UINT_LEN,4,2  ; @SVN__MAX_ENCODED_UINT_LEN
	.comm	_LZ4_MAX_INPUT_SIZE,4,2         ; @LZ4_MAX_INPUT_SIZE
	.comm	_SVN_ERR_LZ4_COMPRESSION_FAILED,4,2 ; @SVN_ERR_LZ4_COMPRESSION_FAILED
	.comm	_SVN_NO_ERROR,8,3               ; @SVN_NO_ERROR
.subsections_via_symbols
