	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function encode_base64
_encode_base64:                         ## @encode_base64
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%edx, %edx
	jle	LBB0_8
## %bb.1:
	movslq	%edx, %rax
	leaq	(%rsi,%rax,4), %r8
	movq	_Base64Code@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi), %edx
	movl	%edx, %ecx
	sarl	$2, %ecx
	movslq	%ecx, %rcx
	movl	(%r9,%rcx,8), %ecx
	movl	%ecx, (%rdi)
	shll	$4, %edx
	andl	$48, %edx
	addq	$4, %rsi
	cmpq	%r8, %rsi
	jae	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rsi), %eax
	movl	%eax, %ecx
	shrl	$4, %ecx
	andl	$15, %ecx
	orq	%rdx, %rcx
	movl	(%r9,%rcx,8), %ecx
	movl	%ecx, 4(%rdi)
	shll	$2, %eax
	andl	$60, %eax
	addq	$4, %rsi
	cmpq	%r8, %rsi
	jae	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rsi), %ecx
	movl	%ecx, %edx
	shrl	$6, %edx
	andl	$3, %edx
	orq	%rax, %rdx
	movl	(%r9,%rdx,8), %eax
	movl	%eax, 8(%rdi)
	andl	$63, %ecx
	movl	(%r9,%rcx,8), %eax
	movl	%eax, 12(%rdi)
	addq	$16, %rdi
	addq	$4, %rsi
	cmpq	%r8, %rsi
	jb	LBB0_2
	jmp	LBB0_8
LBB0_6:
	leaq	4(%rdi), %r8
	movl	$2, %esi
	movl	%edx, %eax
	jmp	LBB0_7
LBB0_5:
	leaq	8(%rdi), %r8
	movl	$3, %esi
LBB0_7:
	movl	%eax, %eax
	movl	(%r9,%rax,8), %eax
	leaq	(%rdi,%rsi,4), %rdi
	movl	%eax, (%r8)
LBB0_8:
	movl	$0, (%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Base64Code,8,3                 ## @Base64Code
	.no_dead_strip	_encode_base64
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function encode_base64
_encode_base64:                         ; @encode_base64
	.cfi_startproc
; %bb.0:
	cmp	w2, #1
	b.lt	LBB0_6
; %bb.1:
	add	x9, x1, w2, sxtw #2
Lloh0:
	adrp	x8, _Base64Code@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Base64Code@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x1], #4
	asr	w11, w10, #2
	ldr	x11, [x8, w11, sxtw #3]
	str	w11, [x0]
	lsl	w10, w10, #4
	and	x10, x10, #0x30
	cmp	x1, x9
	b.hs	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w11, [x1], #4
	ubfx	x12, x11, #4, #4
	orr	x10, x12, x10
	ldr	x10, [x8, x10, lsl #3]
	str	w10, [x0, #4]
	lsl	w10, w11, #2
	and	x10, x10, #0x3c
	cmp	x1, x9
	b.hs	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w11, [x1], #4
	ubfx	x12, x11, #6, #2
	orr	x10, x12, x10
	ldr	x12, [x8, x10, lsl #3]
	and	x10, x11, #0x3f
	ldr	x11, [x8, x10, lsl #3]
	add	x10, x0, #16
	stp	w12, w11, [x0, #8]
	mov	x0, x10
	cmp	x1, x9
	b.lo	LBB0_2
; %bb.5:
	str	wzr, [x10]
	ret
LBB0_6:
	str	wzr, [x0]
	ret
LBB0_7:
	add	x9, x0, #4
	mov	w11, #2
                                        ; kill: def $w10 killed $w10 killed $x10 def $x10
	b	LBB0_9
LBB0_8:
	add	x9, x0, #8
	mov	w11, #3
LBB0_9:
	ldr	x8, [x8, w10, uxtw #3]
	add	x10, x0, x11, lsl #2
	str	w8, [x9]
	str	wzr, [x10]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_Base64Code,8,3                 ; @Base64Code
	.no_dead_strip	_encode_base64
.subsections_via_symbols
