	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_base64                         ## -- Begin function base64
	.p2align	4, 0x90
_base64:                                ## @base64
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movslq	%esi, %rax
	imulq	$1431655766, %rax, %r12         ## imm = 0x55555556
	movq	%r12, %rax
	shrq	$63, %rax
	shrq	$32, %r12
	addl	%eax, %r12d
	addl	%esi, %r12d
	rolb	$4, %r12b
	movl	%r12d, %eax
	andb	$51, %al
	shlb	$2, %al
	shrb	$2, %r12b
	andb	$51, %r12b
	orb	%al, %r12b
	movl	%r12d, %eax
	shrb	%al
	andb	$64, %r12b
	addb	%r12b, %r12b
	orb	%al, %r12b
	shrb	$6, %r12b
	movzbl	%r12b, %eax
	addl	%esi, %eax
	shll	$2, %eax
	cltq
	imulq	$1431655766, %rax, %rax         ## imm = 0x55555556
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$32, %rax
	leal	(%rax,%rcx), %esi
	movl	%esi, (%rdx)
	leal	(%rax,%rcx), %edi
	incl	%edi
	callq	_malloc
	xorl	%edi, %edi
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	$0, %r9d
	cmpl	$3, %r14d
	jl	LBB0_5
## %bb.3:
	addl	$-3, %r14d
	xorl	%edi, %edi
	movq	_b64@GOTPCREL(%rip), %r8
	xorl	%r9d, %r9d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r15,%rdi), %ecx
	movzbl	1(%r15,%rdi), %ebx
	movzbl	2(%r15,%rdi), %r11d
	movq	(%r8), %r10
	movq	%rcx, %rsi
	shrq	$2, %rsi
	movzbl	(%r10,%rsi), %edx
	movb	%dl, (%rax,%r9)
	movq	(%r8), %rdx
	shll	$4, %ecx
	andl	$48, %ecx
	movq	%rbx, %rsi
	shrq	$4, %rsi
	orq	%rcx, %rsi
	movzbl	(%rdx,%rsi), %ecx
	movb	%cl, 1(%rax,%r9)
	movq	(%r8), %rcx
	andl	$15, %ebx
	movq	%r11, %rdx
	shrq	$6, %rdx
	leaq	(%rdx,%rbx,4), %rdx
	movzbl	(%rcx,%rdx), %ecx
	movb	%cl, 2(%rax,%r9)
	movq	(%r8), %rcx
	andl	$63, %r11d
	movzbl	(%rcx,%r11), %ecx
	movb	%cl, 3(%rax,%r9)
	addq	$4, %r9
	addq	$3, %rdi
	cmpq	%r14, %rdi
	jbe	LBB0_4
LBB0_5:
	movl	%r9d, %esi
	cmpb	$1, %r12b
	je	LBB0_8
## %bb.6:
	cmpb	$2, %r12b
	jne	LBB0_10
## %bb.7:
	movq	_b64@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movl	%edi, %edi
	movzbl	(%r15,%rdi), %ebx
	shrq	$2, %rbx
	movb	(%rdx,%rbx), %dl
	movb	%dl, (%rax,%rsi)
	movq	%rsi, %rdx
	orq	$1, %rdx
	movq	(%rcx), %rcx
	movzbl	(%r15,%rdi), %edi
	shll	$4, %edi
	andl	$48, %edi
	movb	(%rcx,%rdi), %cl
	movb	%cl, (%rax,%rdx)
	movb	$61, %dl
	jmp	LBB0_9
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_8:
	movq	_b64@GOTPCREL(%rip), %r8
	movq	(%r8), %rbx
	movl	%edi, %edx
	movzbl	(%r15,%rdx), %edi
	shrq	$2, %rdi
	movb	(%rbx,%rdi), %bl
	movb	%bl, (%rax,%rsi)
	movq	%rsi, %rdi
	orq	$1, %rdi
	movq	(%r8), %r10
	movzbl	(%r15,%rdx), %ecx
	shll	$4, %ecx
	andl	$48, %ecx
	movzbl	1(%r15,%rdx), %ebx
	shrq	$4, %rbx
	orq	%rcx, %rbx
	movb	(%r10,%rbx), %cl
	movb	%cl, (%rax,%rdi)
	movq	(%r8), %rcx
	movzbl	1(%r15,%rdx), %edx
	andl	$15, %edx
	movb	(%rcx,%rdx,4), %dl
LBB0_9:
	movq	%rsi, %rcx
	orq	$2, %rcx
	orq	$3, %rsi
	movb	%dl, (%rax,%rcx)
	addl	$4, %r9d
	movb	$61, (%rax,%rsi)
LBB0_10:
	movslq	%r9d, %rcx
	movb	$0, (%rax,%rcx)
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_b64,8,3                        ## @b64
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_base64                         ; -- Begin function base64
	.p2align	2
_base64:                                ; @base64
	.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	x20, x1
	mov	x19, x0
	mov	w8, #21846
	movk	w8, #21845, lsl #16
	smull	x9, w1, w8
	lsr	x10, x9, #63
	lsr	x9, x9, #32
	add	w9, w9, w10
	add	w9, w1, w9
	rbit	w9, w9
	lsr	w21, w9, #30
	add	w9, w21, w1
	lsl	w9, w9, #2
	smull	x8, w9, w8
	lsr	x9, x8, #63
	lsr	x8, x8, #32
	add	w8, w8, w9
	str	w8, [x2]
	add	w0, w8, #1
	bl	_malloc
	cbz	x0, LBB0_11
; %bb.1:
	subs	w10, w20, #3
	b.ge	LBB0_3
; %bb.2:
	mov	w9, #0
	mov	w8, #0
	b	LBB0_5
LBB0_3:
	mov	x9, #0
	mov	x8, #0
	add	x11, x0, #3
Lloh0:
	adrp	x12, _b64@GOTPAGE
Lloh1:
	ldr	x12, [x12, _b64@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x13, x19, x9
	ldrb	w14, [x13]
	ldrb	w15, [x13, #1]
	ldr	x16, [x12]
	lsr	x17, x14, #2
	ldrb	w16, [x16, x17]
	ldrb	w13, [x13, #2]
	add	x17, x11, x8
	sturb	w16, [x17, #-3]
	ldr	x16, [x12]
	lsl	w14, w14, #4
	and	x14, x14, #0x30
	orr	x14, x14, x15, lsr #4
	ldrb	w14, [x16, x14]
	sturb	w14, [x17, #-2]
	lsl	w14, w15, #2
	and	x14, x14, #0x3c
	ldr	x15, [x12]
	orr	x14, x14, x13, lsr #6
	ldrb	w14, [x15, x14]
	sturb	w14, [x17, #-1]
	ldr	x14, [x12]
	and	x13, x13, #0x3f
	ldrb	w13, [x14, x13]
	add	x8, x8, #4
	strb	w13, [x17]
	add	x9, x9, #3
	cmp	x9, x10
	b.ls	LBB0_4
LBB0_5:
	cmp	w21, #1
	b.eq	LBB0_8
; %bb.6:
	cmp	w21, #2
	b.ne	LBB0_10
; %bb.7:
Lloh2:
	adrp	x10, _b64@GOTPAGE
Lloh3:
	ldr	x10, [x10, _b64@GOTPAGEOFF]
	mov	w9, w9
	ldrb	w11, [x19, x9]
	ldr	x12, [x10]
	lsr	x11, x11, #2
	ldrb	w11, [x12, x11]
	mov	w12, w8
	orr	x13, x12, #0x1
	strb	w11, [x0, x12]
	ldr	x10, [x10]
	ldrb	w9, [x19, x9]
	lsl	w9, w9, #4
	and	x9, x9, #0x30
	ldrb	w9, [x10, x9]
	strb	w9, [x0, x13]
	mov	w9, #61
	b	LBB0_9
LBB0_8:
Lloh4:
	adrp	x10, _b64@GOTPAGE
Lloh5:
	ldr	x10, [x10, _b64@GOTPAGEOFF]
	ldr	x11, [x10]
	add	x9, x19, w9, uxtw
	ldrb	w12, [x9]
	lsr	x12, x12, #2
	ldrb	w11, [x11, x12]
	mov	w12, w8
	orr	x13, x12, #0x1
	strb	w11, [x0, x12]
	ldr	x11, [x10]
	ldrb	w12, [x9]
	lsl	w12, w12, #4
	and	x12, x12, #0x30
	ldrb	w14, [x9, #1]
	orr	x12, x12, x14, lsr #4
	ldrb	w11, [x11, x12]
	strb	w11, [x0, x13]
	ldr	x10, [x10]
	ldrb	w9, [x9, #1]
	lsl	w9, w9, #2
	and	x9, x9, #0x3c
	ldrb	w9, [x10, x9]
LBB0_9:
	mov	w10, w8
	orr	x11, x10, #0x2
	orr	x10, x10, #0x3
	strb	w9, [x0, x11]
	add	w8, w8, #4
	mov	w9, #61
	strb	w9, [x0, x10]
LBB0_10:
	strb	wzr, [x0, w8, sxtw]
LBB0_11:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_b64,8,3                        ; @b64
.subsections_via_symbols
