	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function encode_base_64
_encode_base_64:                        ## @encode_base_64
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_strlen
	cmpl	$5, %r14d
	jl	LBB0_1
## %bb.2:
	decl	%r14d
	shrl	$2, %r14d
	leaq	_encode_base_64.base64(%rip), %r8
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %r9
	testl	%eax, %eax
	je	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$2, %eax
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$1, %eax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movsbl	(%rbx), %edi
	shll	$16, %edi
	movsbl	1(%rbx), %edx
	shll	$8, %edx
	orl	%edi, %edx
	movsbq	2(%rbx), %rdi
	orl	%edi, %edx
	movl	%edx, %esi
	shrl	$18, %esi
	andl	$63, %esi
	movzbl	(%rsi,%r8), %ecx
	movb	%cl, (%r9)
	movl	%edx, %ecx
	shrl	$12, %ecx
	andl	$63, %ecx
	movzbl	(%rcx,%r8), %ecx
	movb	%cl, 1(%r9)
	shrl	$6, %edx
	andl	$63, %edx
	movzbl	(%rdx,%r8), %ecx
	movb	%cl, 2(%r9)
	andl	$63, %edi
	movzbl	(%rdi,%r8), %ecx
	movb	%cl, 3(%r9)
	cmpl	$3, %eax
	jl	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	4(%r9), %r15
	addq	$3, %rbx
	addl	$-3, %eax
	decl	%r14d
	jne	LBB0_3
	jmp	LBB0_11
LBB0_1:
	movq	%r15, %r9
	jmp	LBB0_12
LBB0_9:
	movsbl	(%rbx), %eax
	shll	$16, %eax
	movsbl	1(%rbx), %esi
	movl	%esi, %edi
	shll	$8, %edi
	orl	%eax, %edi
	movl	%edi, %eax
	shrl	$18, %eax
	andl	$63, %eax
	movb	(%rax,%r8), %al
	movb	%al, (%r9)
	shrl	$12, %edi
	andl	$63, %edi
	movb	(%rdi,%r8), %al
	movb	%al, 1(%r9)
	andl	$15, %esi
	movb	(%r8,%rsi,4), %al
	movb	%al, 2(%r9)
	jmp	LBB0_10
LBB0_6:
	movsbl	(%rbx), %eax
	movl	%eax, %esi
	shrl	$2, %esi
	andl	$63, %esi
	movb	(%rsi,%r8), %bl
	movb	%bl, (%r9)
	shll	$4, %eax
	andl	$48, %eax
	movb	(%rax,%r8), %al
	movb	%al, 1(%r9)
	movb	$61, 2(%r9)
LBB0_10:
	movb	$61, 3(%r9)
LBB0_11:
	addq	$4, %r9
LBB0_12:
	movb	$0, (%r9)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
	.p2align	4                               ## @encode_base_64.base64
_encode_base_64.base64:
	.asciz	"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"

	.no_dead_strip	_encode_base_64
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function encode_base_64
_encode_base_64:                        ; @encode_base_64
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_strlen
	cmp	w21, #5
	b.lt	LBB0_11
; %bb.1:
	sub	w8, w21, #1
	lsr	w10, w8, #2
	add	x9, x20, #1
Lloh0:
	adrp	x8, _encode_base_64.base64@PAGE
Lloh1:
	add	x8, x8, _encode_base_64.base64@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w0, LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #2
	b.eq	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #1
	b.eq	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldursb	w11, [x9, #-1]
	ldrsb	w12, [x9]
	lsl	w12, w12, #8
	orr	w11, w12, w11, lsl #16
	ldrsb	x12, [x9, #1]
	orr	w11, w11, w12
	ubfx	x13, x11, #18, #6
	ldrb	w13, [x8, x13]
	ubfx	x14, x11, #12, #6
	ldrb	w14, [x8, x14]
	strb	w13, [x19]
	strb	w14, [x19, #1]
	ubfx	x11, x11, #6, #6
	ldrb	w11, [x8, x11]
	strb	w11, [x19, #2]
	and	x11, x12, #0x3f
	ldrb	w12, [x8, x11]
	add	x11, x19, #4
	strb	w12, [x19, #3]
	subs	w0, w0, #3
	b.lt	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #3
	mov	x19, x11
	subs	w10, w10, #1
	b.ne	LBB0_2
LBB0_7:
	mov	x19, x11
	b	LBB0_11
LBB0_8:
	ldursb	w10, [x9, #-1]
	ldrsb	w9, [x9]
	lsl	w11, w9, #8
	orr	w10, w11, w10, lsl #16
	ubfx	x11, x10, #18, #6
	ldrb	w11, [x8, x11]
	strb	w11, [x19]
	ubfx	x10, x10, #12, #6
	ldrb	w10, [x8, x10]
	strb	w10, [x19, #1]
	lsl	w9, w9, #2
	and	x9, x9, #0x3c
	ldrb	w8, [x8, x9]
	b	LBB0_10
LBB0_9:
	ldursb	w9, [x9, #-1]
	ubfx	x10, x9, #2, #6
	ldrb	w10, [x8, x10]
	strb	w10, [x19]
	lsl	w9, w9, #4
	and	x9, x9, #0x30
	ldrb	w8, [x8, x9]
	strb	w8, [x19, #1]
	mov	w8, #61
LBB0_10:
	strb	w8, [x19, #2]
	mov	w8, #61
	strb	w8, [x19, #3]
	add	x19, x19, #4
LBB0_11:
	strb	wzr, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
_encode_base_64.base64:                 ; @encode_base_64.base64
	.asciz	"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"

	.no_dead_strip	_encode_base_64
.subsections_via_symbols
