	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn__decompress_lz4            ## -- Begin function svn__decompress_lz4
	.p2align	4, 0x90
_svn__decompress_lz4:                   ## @svn__decompress_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	%rcx, %r14
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	_INT_MAX@GOTPCREL(%rip), %r15
	xorl	%edi, %edi
	cmpq	%rsi, (%r15)
	setge	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpq	%r14, (%r15)
	setge	%dil
	callq	_assert
	leaq	(%rbx,%r12), %rdx
	leaq	-56(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_svn__decode_uint
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	-56(%rbp), %r15
	cmpq	%r14, %r15
	jle	LBB0_5
## %bb.4:
	movq	_SVN_ERR_SVNDIFF_INVALID_COMPRESSED_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_1:
	movq	_SVN_ERR_SVNDIFF_INVALID_COMPRESSED_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rdi
LBB0_2:
	callq	__
	movl	%ebx, %edi
	xorl	%esi, %esi
	movq	%rax, %rdx
LBB0_10:
	callq	_svn_error_create
	jmp	LBB0_11
LBB0_5:
	movq	%rax, %r13
	addl	%r12d, %ebx
	subl	%r13d, %ebx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_svn_stringbuf_setempty
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_svn_stringbuf_ensure
	movq	8(%r14), %rsi
	cmpl	%r15d, %ebx
	jne	LBB0_8
## %bb.6:
	movq	%rsi, %rdi
	movq	%r13, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	jmp	LBB0_7
LBB0_8:
	movq	%r13, %rdi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	callq	_LZ4_decompress_safe
	testl	%eax, %eax
	js	LBB0_9
## %bb.12:
	cmpl	%r15d, %eax
	jne	LBB0_13
LBB0_7:
	movq	8(%r14), %rax
	movslq	%r15d, %rcx
	movq	$0, (%rax,%rcx,8)
	movl	%r15d, (%r14)
	movq	_SVN_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_SVN_ERR_LZ4_DECOMPRESSION_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	jmp	LBB0_10
LBB0_13:
	movq	_SVN_ERR_SVNDIFF_INVALID_COMPRESSED_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,8,3                    ## @INT_MAX
	.comm	_SVN_ERR_SVNDIFF_INVALID_COMPRESSED_DATA,4,2 ## @SVN_ERR_SVNDIFF_INVALID_COMPRESSED_DATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Decompression of compressed data failed: no size"

L_.str.1:                               ## @.str.1
	.asciz	"Decompression of compressed data failed: size too large"

	.comm	_SVN_ERR_LZ4_DECOMPRESSION_FAILED,4,2 ## @SVN_ERR_LZ4_DECOMPRESSION_FAILED
L_.str.2:                               ## @.str.2
	.asciz	"Size of uncompressed data does not match stored original length"

	.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__decompress_lz4            ; -- Begin function svn__decompress_lz4
	.p2align	2
_svn__decompress_lz4:                   ; @svn__decompress_lz4
	.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	x24, x3
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x20, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x20, [x20, _INT_MAX@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x8, x1
	cset	w0, ge
	bl	_assert
	ldr	x8, [x20]
	cmp	x8, x24
	cset	w0, ge
	bl	_assert
	add	x2, x22, x21
	add	x0, sp, #8
	mov	x1, x22
	bl	_svn__decode_uint
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x20, [sp, #8]
	cmp	x20, x24
	b.le	LBB0_6
; %bb.2:
Lloh2:
	adrp	x8, _SVN_ERR_SVNDIFF_INVALID_COMPRESSED_DATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SVN_ERR_SVNDIFF_INVALID_COMPRESSED_DATA@GOTPAGEOFF]
Lloh4:
	ldr	w19, [x8]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh7:
	adrp	x8, _SVN_ERR_SVNDIFF_INVALID_COMPRESSED_DATA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SVN_ERR_SVNDIFF_INVALID_COMPRESSED_DATA@GOTPAGEOFF]
Lloh9:
	ldr	w19, [x8]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
LBB0_4:
	bl	__
	mov	x2, x0
	mov	x0, x19
	mov	x1, #0
LBB0_5:
	bl	_svn_error_create
	b	LBB0_11
LBB0_6:
	mov	x23, x0
	add	w8, w22, w21
	sub	w21, w8, w23
	mov	x0, x19
	bl	_svn_stringbuf_setempty
	mov	x0, x19
	mov	x1, x20
	bl	_svn_stringbuf_ensure
	ldr	x1, [x19, #8]
	cmp	w21, w20
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x1
	mov	x1, x23
	mov	x2, x20
	bl	_memcpy
	b	LBB0_10
LBB0_8:
	mov	x0, x23
	mov	x2, x21
	mov	x3, x20
	bl	_LZ4_decompress_safe
	tbnz	w0, #31, LBB0_12
; %bb.9:
	cmp	w0, w20
	b.ne	LBB0_13
LBB0_10:
	ldr	x8, [x19, #8]
	sbfiz	x9, x20, #3, #32
	str	xzr, [x8, x9]
	str	w20, [x19]
Lloh12:
	adrp	x8, _SVN_NO_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SVN_NO_ERROR@GOTPAGEOFF]
Lloh14:
	ldr	x0, [x8]
LBB0_11:
	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_12:
Lloh15:
	adrp	x8, _SVN_ERR_LZ4_DECOMPRESSION_FAILED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SVN_ERR_LZ4_DECOMPRESSION_FAILED@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, #0
	mov	x2, #0
	b	LBB0_5
LBB0_13:
Lloh18:
	adrp	x8, _SVN_ERR_SVNDIFF_INVALID_COMPRESSED_DATA@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SVN_ERR_SVNDIFF_INVALID_COMPRESSED_DATA@GOTPAGEOFF]
Lloh20:
	ldr	w19, [x8]
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,8,3                    ; @INT_MAX
	.comm	_SVN_ERR_SVNDIFF_INVALID_COMPRESSED_DATA,4,2 ; @SVN_ERR_SVNDIFF_INVALID_COMPRESSED_DATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Decompression of compressed data failed: no size"

l_.str.1:                               ; @.str.1
	.asciz	"Decompression of compressed data failed: size too large"

	.comm	_SVN_ERR_LZ4_DECOMPRESSION_FAILED,4,2 ; @SVN_ERR_LZ4_DECOMPRESSION_FAILED
l_.str.2:                               ; @.str.2
	.asciz	"Size of uncompressed data does not match stored original length"

	.comm	_SVN_NO_ERROR,8,3               ; @SVN_NO_ERROR
.subsections_via_symbols
