	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function encode_bytes
_encode_bytes:                          ## @encode_bytes
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movslq	%edx, %r13
	leal	(,%r13,4), %eax
	cltq
	imulq	$1431655766, %rax, %rax         ## imm = 0x55555556
	movq	%rax, %rcx
	shrq	$32, %rcx
	shrq	$63, %rax
	addl	%eax, %ecx
	addl	$4, %ecx
	cmpq	$0, 16(%rbp)
	je	LBB0_2
## %bb.1:
	movq	_BASE64_LINELEN@GOTPCREL(%rip), %rsi
	movl	%ecx, %eax
	cltd
	idivl	(%rsi)
	addl	%eax, %ecx
LBB0_2:
	movslq	%ecx, %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	(%rdi), %rsi
	callq	_svn_stringbuf_ensure
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	$3, %ecx
	subq	%rax, %rcx
	cmpq	%r13, %rcx
	jbe	LBB0_3
LBB0_13:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	addq	%rax, %rdi
	movq	%r14, %rsi
	movl	%r13d, %edx
	callq	_memcpy
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	%r13, (%rax)
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	(%r14,%r13), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	subq	%r14, %r13
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	$3, %ecx
	subq	%rax, %rcx
	cmpq	%rcx, %r13
	jb	LBB0_13
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rax, %rax
	je	LBB0_5
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	leaq	(%rax,%r13), %rdi
	movl	$3, %edx
	subl	%eax, %edx
	movq	%r14, %rsi
	callq	_memcpy
	movl	$3, %ebx
	subq	(%r12), %rbx
	movq	%r13, %rdi
	movq	%r14, %r13
	leaq	-84(%rbp), %r14
	movq	%r14, %rsi
	callq	_encode_group
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r13, %r14
	movl	$4, %edx
	callq	_svn_stringbuf_appendbytes
	movq	$0, (%r12)
	movl	$4, %eax
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	addq	(%rcx), %rax
	addq	%rbx, %r14
	movq	%rax, (%rcx)
	cmpq	$0, 16(%rbp)
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_BASE64_LINELEN@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movl	$10, %esi
	callq	_svn_stringbuf_appendbyte
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax)
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, 16(%rbp)
	setne	%cl
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	cmpq	$0, (%rdx)
	setne	%dl
	testb	%dl, %cl
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_BYTES_PER_LINE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	cmpq	%rcx, %r13
	jl	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_encode_line
	movq	_BYTES_PER_LINE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	movq	_BASE64_LINELEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_BASE64_LINELEN,4,2             ## @BASE64_LINELEN
	.comm	_BYTES_PER_LINE,4,2             ## @BYTES_PER_LINE
	.no_dead_strip	_encode_bytes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function encode_bytes
_encode_bytes:                          ; @encode_bytes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x6
	mov	x23, x5
	mov	x19, x4
	mov	x21, x3
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x20, x1
	mov	x24, x0
	sxtw	x25, w2
	lsl	w8, w2, #2
	mov	w9, #21846
	movk	w9, #21845, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	lsr	x8, x8, #32
	add	w8, w8, w9
	add	w8, w8, #4
Lloh0:
	adrp	x26, _BASE64_LINELEN@GOTPAGE
Lloh1:
	ldr	x26, [x26, _BASE64_LINELEN@GOTPAGEOFF]
	cbz	x6, LBB0_2
; %bb.1:
	ldr	w9, [x26]
	sdiv	w9, w8, w9
	add	w8, w9, w8
LBB0_2:
	ldr	x9, [x24]
	add	x1, x9, w8, sxtw
	mov	x0, x24
	bl	_svn_stringbuf_ensure
	ldr	x8, [x19]
	mov	w27, #3
	sub	x9, x27, x8
	cmp	x9, x25
	b.ls	LBB0_4
LBB0_3:
	add	x0, x21, x8
	mov	x1, x20
	mov	x2, x25
	bl	_memcpy
	ldr	x8, [x19]
	add	x8, x8, x25
	str	x8, [x19]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_4:
	add	x28, x20, x25
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x20, x20, x25
	sub	x25, x28, x20
	ldr	x8, [x19]
	sub	x9, x27, x8
	cmp	x25, x9
	b.lo	LBB0_3
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cbnz	x8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x23]
	cmp	x9, #0
	ccmp	x22, #0, #4, ne
Lloh2:
	adrp	x9, _BYTES_PER_LINE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BYTES_PER_LINE@GOTPAGEOFF]
Lloh4:
	ldrsw	x9, [x9]
	ccmp	x25, x9, #8, eq
	b.ge	LBB0_12
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x0, x21, x8
	sub	w2, w27, w8
	mov	x1, x20
	bl	_memcpy
	ldr	x8, [x19]
	sub	x25, x27, x8
	add	x1, sp, #12
	mov	x0, x21
	bl	_encode_group
	add	x1, sp, #12
	mov	x0, x24
	mov	w2, #4
	bl	_svn_stringbuf_appendbytes
	str	xzr, [x19]
	mov	w8, #4
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x23]
	add	x8, x9, x8
	str	x8, [x23]
	cbz	x22, LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldrsw	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x24
	mov	w1, #10
	bl	_svn_stringbuf_appendbyte
	str	xzr, [x23]
	b	LBB0_5
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x24
	mov	x1, x20
	bl	_encode_line
Lloh5:
	adrp	x8, _BYTES_PER_LINE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BYTES_PER_LINE@GOTPAGEOFF]
Lloh7:
	ldrsw	x25, [x8]
	ldrsw	x8, [x26]
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_BASE64_LINELEN,4,2             ; @BASE64_LINELEN
	.comm	_BYTES_PER_LINE,4,2             ; @BYTES_PER_LINE
	.no_dead_strip	_encode_bytes
.subsections_via_symbols
