	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_handler_gz
_write_handler_gz:                      ## @write_handler_gz
	.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, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	cmpq	$0, 8(%rdi)
	jne	LBB0_2
## %bb.1:
	movq	16(%rbx), %rdi
	movl	$4, %esi
	callq	_apr_palloc
	movq	%rax, 8(%rbx)
	movq	_zalloc@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 44(%rax)
	movq	_zfree@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 40(%rax)
	movq	16(%rbx), %rcx
	movq	%rcx, 32(%rax)
	movq	_Z_DEFAULT_COMPRESSION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_deflateInit
	movq	8(%rbx), %rcx
	movl	12(%rcx), %edx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_svn_error__wrap_zlib
	movl	%eax, %edi
	callq	_SVN_ERR
LBB0_2:
	movslq	(%r15), %rax
	imulq	$274877907, %rax, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$38, %rcx
	addl	%edx, %ecx
	leal	(%rax,%rcx), %r14d
	addl	$13, %r14d
	movq	16(%rbx), %rdi
	callq	_svn_pool_create
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movl	%r14d, %esi
	callq	_apr_palloc
	movq	%rax, %r13
	movq	8(%rbx), %rdi
	movq	%r12, 24(%rdi)
	movslq	(%r15), %rax
	movq	%rax, (%rdi)
	testq	%rax, %rax
	jle	LBB0_7
## %bb.3:
	movq	_Z_NO_FLUSH@GOTPCREL(%rip), %r12
	leaq	L_.str.1(%rip), %r15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, (%rdi)
	jle	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, 16(%rdi)
	movl	%r14d, 8(%rdi)
	movl	(%r12), %esi
	callq	_deflate
	movq	8(%rbx), %rcx
	movl	12(%rcx), %edx
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_svn_error__wrap_zlib
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	8(%rbx), %rdi
	movl	%r14d, %eax
	subl	8(%rdi), %eax
	movl	%eax, -44(%rbp)
	jle	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rbx), %edi
	movq	%r13, %rsi
	leaq	-44(%rbp), %rdx
	callq	_svn_stream_write
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	8(%rbx), %rdi
	jmp	LBB0_6
LBB0_7:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_svn_pool_destroy
	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	_zalloc,4,2                     ## @zalloc
	.comm	_zfree,4,2                      ## @zfree
	.comm	_Z_DEFAULT_COMPRESSION,4,2      ## @Z_DEFAULT_COMPRESSION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"deflateInit"

	.comm	_Z_NO_FLUSH,4,2                 ## @Z_NO_FLUSH
L_.str.1:                               ## @.str.1
	.asciz	"deflate"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_handler_gz
_write_handler_gz:                      ; @write_handler_gz
	.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, x2
	mov	x24, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	x0, [x19, #16]
	mov	w1, #4
	bl	_apr_palloc
Lloh0:
	adrp	x8, _zalloc@GOTPAGE
Lloh1:
	ldr	x8, [x8, _zalloc@GOTPAGEOFF]
	str	x0, [x19, #8]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _zfree@GOTPAGE
Lloh4:
	ldr	x9, [x9, _zfree@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #40]
	ldr	x8, [x19, #16]
	str	x8, [x0, #32]
Lloh6:
	adrp	x8, _Z_DEFAULT_COMPRESSION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _Z_DEFAULT_COMPRESSION@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_deflateInit
	ldr	x8, [x19, #8]
	ldr	w2, [x8, #12]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_svn_error__wrap_zlib
	bl	_SVN_ERR
LBB0_2:
	ldrsw	x8, [x22]
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	mul	x9, x8, x9
	lsr	x10, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w10
	add	w8, w8, w9
	add	w20, w8, #13
	ldr	x0, [x19, #16]
	bl	_svn_pool_create
	mov	x21, x0
	mov	x1, x20
	bl	_apr_palloc
	mov	x23, x0
	ldr	x0, [x19, #8]
	str	x24, [x0, #24]
	ldrsw	x8, [x22]
	str	x8, [x0]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.3:
Lloh11:
	adrp	x24, _Z_NO_FLUSH@GOTPAGE
Lloh12:
	ldr	x24, [x24, _Z_NO_FLUSH@GOTPAGEOFF]
Lloh13:
	adrp	x22, l_.str.1@PAGE
Lloh14:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x0]
	cmp	x8, #0
	b.le	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	str	x23, [x0, #16]
	str	w20, [x0, #8]
	ldr	w1, [x24]
	bl	_deflate
	ldr	x8, [x19, #8]
	ldr	w2, [x8, #12]
	mov	x1, x22
	bl	_svn_error__wrap_zlib
	bl	_SVN_ERR
	ldr	x0, [x19, #8]
	ldr	w8, [x0, #8]
	sub	w8, w20, w8
	str	w8, [sp, #12]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x19]
	add	x2, sp, #12
	mov	x1, x23
	bl	_svn_stream_write
	bl	_SVN_ERR
	ldr	x0, [x19, #8]
	b	LBB0_4
LBB0_7:
	mov	x0, x21
	bl	_svn_pool_destroy
Lloh15:
	adrp	x8, _SVN_NO_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SVN_NO_ERROR@GOTPAGEOFF]
Lloh17:
	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
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_zalloc,4,2                     ; @zalloc
	.comm	_zfree,4,2                      ; @zfree
	.comm	_Z_DEFAULT_COMPRESSION,4,2      ; @Z_DEFAULT_COMPRESSION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"deflateInit"

	.comm	_Z_NO_FLUSH,4,2                 ; @Z_NO_FLUSH
l_.str.1:                               ; @.str.1
	.asciz	"deflate"

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