	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zlib_encode
_zlib_encode:                           ## @zlib_encode
	.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
	movl	%ecx, %r12d
	movq	%rdx, %r13
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	%rsp, -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, %rbx
	movq	%r13, %rdi
	callq	_svn_stringbuf_setempty
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_svn__encode_uint
	subl	%ebx, %eax
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_svn_stringbuf_appendbytes
	movq	_MIN_COMPRESS_SIZE@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jg	LBB0_5
## %bb.1:
	movq	_SVN__COMPRESSION_NONE@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	je	LBB0_5
## %bb.2:
	movslq	(%r13), %rbx
	movl	%r14d, %edi
	callq	_svnCompressBound
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rbx,%rax), %esi
	movq	%r13, %rdi
	callq	_svn_stringbuf_ensure
	movq	8(%r13), %rax
	movq	%rax, -64(%rbp)
	movq	16(%r13), %rdi
	addq	%rbx, %rdi
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdx
	movl	%r14d, %ecx
	movl	%r12d, %r8d
	callq	_compress2
	movl	%eax, %r12d
	movq	_Z_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_7
## %bb.3:
	movq	-64(%rbp), %rax
	movslq	%r14d, %rcx
	cmpq	%rcx, %rax
	jae	LBB0_8
## %bb.4:
	addl	%ebx, %eax
	movl	%eax, (%r13)
	movq	16(%r13), %rcx
	cltq
	movq	$0, (%rcx,%rax,8)
	jmp	LBB0_6
LBB0_5:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_svn_stringbuf_appendbytes
LBB0_6:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	_SVN_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_10
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edi
	movl	%eax, %edx
	callq	_svn_error__wrap_zlib
	movl	%eax, %edi
	callq	_svn_error_trace
	jmp	LBB0_9
LBB0_8:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_svn_stringbuf_appendbytes
	movq	_SVN_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_9:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
LBB0_10:
	movq	%rcx, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_12
## %bb.11:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SVN__MAX_ENCODED_UINT_LEN,4,2  ## @SVN__MAX_ENCODED_UINT_LEN
	.comm	_MIN_COMPRESS_SIZE,4,2          ## @MIN_COMPRESS_SIZE
	.comm	_SVN__COMPRESSION_NONE,4,2      ## @SVN__COMPRESSION_NONE
	.comm	_Z_OK,4,2                       ## @Z_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"compress2"

L_.str.1:                               ## @.str.1
	.asciz	"Compression of svndiff data failed"

	.comm	_SVN_NO_ERROR,8,3               ## @SVN_NO_ERROR
	.no_dead_strip	_zlib_encode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zlib_encode
_zlib_encode:                           ; @zlib_encode
	.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	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x24, sp
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	x23, x9, x8
	mov	sp, x23
	mov	x0, x2
	bl	_svn_stringbuf_setempty
	mov	x0, x23
	mov	x1, x20
	bl	_svn__encode_uint
	sub	w2, w0, w23
	mov	x0, x19
	mov	x1, x23
	bl	_svn_stringbuf_appendbytes
Lloh8:
	adrp	x8, _MIN_COMPRESS_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MIN_COMPRESS_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _SVN__COMPRESSION_NONE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SVN__COMPRESSION_NONE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w8, w20
	ccmp	w9, w22, #4, le
	b.eq	LBB0_4
; %bb.1:
	ldrsw	x23, [x19]
	mov	x0, x20
	bl	_svnCompressBound
	add	w1, w0, w23
	mov	x0, x19
	bl	_svn_stringbuf_ensure
	ldp	x8, x9, [x19, #8]
	stur	x8, [x29, #-64]
	add	x0, x9, x23
	sub	x1, x29, #64
	mov	x2, x21
	mov	x3, x20
	mov	x4, x22
	bl	_compress2
Lloh14:
	adrp	x8, _Z_OK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _Z_OK@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.2:
	ldur	x8, [x29, #-64]
	cmp	x8, w20, sxtw
	b.hs	LBB0_4
; %bb.3:
	add	w8, w23, w8
	str	w8, [x19]
	ldr	x9, [x19, #16]
	str	xzr, [x9, w8, sxtw #3]
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_svn_stringbuf_appendbytes
LBB0_5:
Lloh17:
	adrp	x8, _SVN_NO_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SVN_NO_ERROR@GOTPAGEOFF]
Lloh19:
	ldr	x0, [x8]
	b	LBB0_7
LBB0_6:
	mov	x22, x0
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x2, x0
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_svn_error__wrap_zlib
	bl	_svn_error_trace
LBB0_7:
	mov	sp, x24
	ldur	x8, [x29, #-56]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	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_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_SVN__MAX_ENCODED_UINT_LEN,4,2  ; @SVN__MAX_ENCODED_UINT_LEN
	.comm	_MIN_COMPRESS_SIZE,4,2          ; @MIN_COMPRESS_SIZE
	.comm	_SVN__COMPRESSION_NONE,4,2      ; @SVN__COMPRESSION_NONE
	.comm	_Z_OK,4,2                       ; @Z_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"compress2"

l_.str.1:                               ; @.str.1
	.asciz	"Compression of svndiff data failed"

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