	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function base64_encode
LCPI0_0:
	.long	127                             ## 0x7f
	.long	127                             ## 0x7f
	.long	127                             ## 0x7f
	.long	127                             ## 0x7f
LCPI0_1:
	.long	1127219200                      ## 0x43300000
	.long	1160773632                      ## 0x45300000
	.long	0                               ## 0x0
	.long	0                               ## 0x0
LCPI0_2:
	.quad	0x4330000000000000              ## double 4503599627370496
	.quad	0x4530000000000000              ## double 1.9342813113834067E+25
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_3:
	.quad	0x3fe0000000000000              ## double 0.5
LCPI0_4:
	.quad	0x4020000000000000              ## double 8
LCPI0_5:
	.quad	0x4018000000000000              ## double 6
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_base64_encode
	.p2align	4, 0x90
_base64_encode:                         ## @base64_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.1:
	movl	$1, %r13d
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-4(%rsi,%r13,4), %ecx
	movl	%ecx, %edi
	shrl	$2, %edi
	andl	$63, %edi
	shll	$4, %ecx
	andl	$48, %ecx
	movl	%eax, %r14d
	shrl	$4, %r14d
	andl	$15, %r14d
	orl	%ecx, %r14d
	andl	$15, %eax
	movl	%ebx, %ecx
	shrl	$6, %ecx
	andl	$3, %ecx
	leal	(%rcx,%rax,4), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	andl	$63, %ebx
	callq	*%r15
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%r14d, %edi
	callq	*%r15
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	*%r15
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	*%r15
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movd	-52(%rbp), %xmm0                ## 4-byte Folded Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	pinsrd	$1, -44(%rbp), %xmm0            ## 4-byte Folded Reload
	pinsrd	$2, %r14d, %xmm0
	pinsrd	$3, %eax, %xmm0
	pand	LCPI0_0(%rip), %xmm0
	movdqu	%xmm0, (%r12)
	addq	$16, %r12
	leaq	3(%r13), %rax
	addq	$2, %r13
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%rdx, %r13
	movq	%rax, %r13
	jae	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%ebx, %ebx
	movl	$0, %eax
	cmpq	%rdx, %r13
	jae	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rsi,%r13,4), %eax
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	1(%r13), %rcx
	cmpq	%rdx, %rcx
	jae	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rsi,%r13,4), %ebx
	jmp	LBB0_6
LBB0_7:
	movq	%rdx, %xmm0
	punpckldq	LCPI0_1(%rip), %xmm0    ## xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
	subpd	LCPI0_2(%rip), %xmm0
	movapd	%xmm0, %xmm1
	unpckhpd	%xmm0, %xmm1                    ## xmm1 = xmm1[1],xmm0[1]
	addsd	%xmm0, %xmm1
	addsd	LCPI0_3(%rip), %xmm1
	mulsd	LCPI0_4(%rip), %xmm1
	divsd	LCPI0_5(%rip), %xmm1
	cvttsd2si	%xmm1, %edx
	testb	$3, %dl
	je	LBB0_11
## %bb.8:
	movslq	%edx, %rbx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rbx,4), %rdi
	shll	$2, %edx
	notl	%edx
	andl	$12, %edx
	addl	$4, %edx
	leaq	L_.memset_pattern(%rip), %rsi
	callq	_memset_pattern16
	leaq	1(%rbx), %rdx
	testb	$3, %dl
	je	LBB0_11
## %bb.9:
	leaq	2(%rbx), %rdx
	testb	$3, %dl
	je	LBB0_11
## %bb.10:
	leaq	3(%rbx), %rax
	addq	$4, %rbx
	testb	$3, %al
	cmoveq	%rax, %rbx
	movq	%rbx, %rdx
LBB0_11:
	movslq	%edx, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## @.memset_pattern
L_.memset_pattern:
	.long	61                              ## 0x3d
	.long	61                              ## 0x3d
	.long	61                              ## 0x3d
	.long	61                              ## 0x3d

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_base64_encode                  ; -- Begin function base64_encode
	.p2align	2
_base64_encode:                         ; @base64_encode
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x3
	mov	x20, x2
	cbz	x2, LBB0_9
; %bb.1:
	mov	x21, x1
	mov	x22, x0
	mov	x26, #0
	mov	x27, x19
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x21, x26, lsl #2
	ldr	w28, [x8, #8]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w24, [x21, x26, lsl #2]
	ubfx	w0, w24, #2, #6
	blr	x22
	mov	x23, x0
	ubfiz	w0, w24, #4, #2
	bfxil	w0, w25, #4, #4
	blr	x22
	mov	x24, x0
	ubfiz	w0, w25, #2, #4
	bfxil	w0, w28, #6, #2
	blr	x22
	mov	x25, x0
	and	w0, w28, #0x3f
	blr	x22
	and	w8, w23, #0x7f
	and	w9, w24, #0x7f
	stp	w8, w9, [x27]
	and	w8, w25, #0x7f
	and	w9, w0, #0x7f
	stp	w8, w9, [x27, #8]
	add	x26, x26, #3
	add	x27, x27, #16
	cmp	x26, x20
	b.hs	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x26, #1
	cmp	x8, x20
	b.hs	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x21, x26, lsl #2
	ldr	w25, [x8, #4]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w25, #0
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x26, #2
	cmp	x8, x20
	b.lo	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w28, #0
	b	LBB0_3
LBB0_9:
	ucvtf	d0, x20
	fmov	d1, #0.50000000
	fadd	d0, d0, d1
	fmov	d1, #8.00000000
	fmul	d0, d0, d1
	fmov	d1, #6.00000000
	fdiv	d0, d0, d1
	fcvtzs	w20, d0
	ands	w8, w20, #0x3
	b.eq	LBB0_11
; %bb.10:
	add	x0, x19, w20, sxtw #2
	eor	w19, w8, #0x3
	lsl	w8, w19, #2
	add	w2, w8, #4
Lloh0:
	adrp	x1, l_.memset_pattern@PAGE
Lloh1:
	add	x1, x1, l_.memset_pattern@PAGEOFF
	bl	_memset_pattern16
	add	w8, w19, w20
	add	w20, w8, #1
LBB0_11:
	sxtw	x0, w20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; @.memset_pattern
l_.memset_pattern:
	.long	61                              ; 0x3d
	.long	61                              ; 0x3d
	.long	61                              ; 0x3d
	.long	61                              ; 0x3d

.subsections_via_symbols
