	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pg_b64_encode                  ## -- Begin function pg_b64_encode
	.p2align	4, 0x90
_pg_b64_encode:                         ## @pg_b64_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r8d
	movq	%rdx, %r15
	testl	%esi, %esi
	jle	LBB0_8
## %bb.1:
	movslq	%esi, %r14
	addq	%rdi, %r14
	movl	$4, %r10d
	subq	%rdx, %r10
	movslq	%r8d, %r9
	movl	$2, %esi
	xorl	%eax, %eax
	movq	__base64@GOTPCREL(%rip), %r11
	movq	%rdx, %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	decl	%esi
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdi
	cmpq	%r14, %rdi
	jae	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %ebx
	movzbl	(%rdi), %eax
	leal	(,%rsi,8), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	orb	%bl, %al
	testl	%esi, %esi
	jg	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r10,%r15), %rcx
	cmpq	%r9, %rcx
	jg	LBB0_14
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r11), %rcx
	movzbl	(%rcx), %ecx
	movb	%cl, (%r15)
	movq	(%r11), %rcx
	movzbl	(%rcx), %ecx
	movb	%cl, 1(%r15)
	movq	(%r11), %rcx
	movzbl	%al, %eax
	movq	%rax, %rsi
	shrq	$6, %rsi
	movzbl	(%rcx,%rsi), %ecx
	movb	%cl, 2(%r15)
	movq	(%r11), %rcx
	andl	$63, %eax
	movzbl	(%rcx,%rax), %eax
	movb	%al, 3(%r15)
	addq	$4, %r15
	movl	$2, %esi
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_7:
	cmpl	$2, %esi
	jne	LBB0_9
LBB0_8:
	movslq	%r8d, %r9
LBB0_13:
	subq	%rdx, %r15
	xorl	%edi, %edi
	cmpq	%r9, %r15
	setle	%dil
	callq	_Assert
	jmp	LBB0_15
LBB0_9:
	addq	%r15, %r10
	cmpq	%r9, %r10
	jle	LBB0_10
LBB0_14:
	movq	%rdx, %rdi
	xorl	%esi, %esi
	movl	%r8d, %edx
	callq	_memset
	movl	$-1, %r15d
LBB0_15:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	(%r11), %rcx
	movb	(%rcx), %cl
	movb	%cl, (%r15)
	movq	(%r11), %rcx
	movb	(%rcx), %cl
	movb	%cl, 1(%r15)
	movb	$61, %cl
	testl	%esi, %esi
	jne	LBB0_12
## %bb.11:
	movq	(%r11), %rcx
	movzbl	%al, %eax
	shrq	$6, %rax
	movb	(%rcx,%rax), %cl
LBB0_12:
	movb	%cl, 2(%r15)
	movb	$61, 3(%r15)
	addq	$4, %r15
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	__base64,8,3                    ## @_base64
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pg_b64_encode                  ; -- Begin function pg_b64_encode
	.p2align	2
_pg_b64_encode:                         ; @pg_b64_encode
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
                                        ; kill: def $w3 killed $w3 def $x3
	mov	x9, x2
	cmp	w1, #1
	b.lt	LBB0_7
; %bb.1:
	mov	w10, #0
	mov	w8, #4
	sub	x12, x8, x2
	mov	x8, x3
	sxtw	x8, w8
	mov	w13, #2
Lloh0:
	adrp	x11, __base64@GOTPAGE
Lloh1:
	ldr	x11, [x11, __base64@GOTPAGEOFF]
	mov	x9, x2
	add	x14, x0, w1, sxtw
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	w13, w13, #1
	cmp	x0, x14
	b.hs	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w15, [x0], #1
	lsl	w16, w13, #3
	lsl	w15, w15, w16
	orr	w10, w10, w15
	cmp	w13, #0
	b.gt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x13, x12, x9
	cmp	x13, x8
	b.gt	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x13, [x11]
	ldrb	w13, [x13]
	strb	w13, [x9]
	ldr	x13, [x11]
	ldrb	w13, [x13]
	strb	w13, [x9, #1]
	ldr	x13, [x11]
	ubfx	x15, x10, #6, #2
	ldrb	w13, [x13, x15]
	strb	w13, [x9, #2]
	ldr	x13, [x11]
	and	x10, x10, #0x3f
	ldrb	w10, [x13, x10]
	strb	w10, [x9, #3]
	add	x9, x9, #4
	mov	w13, #2
	mov	w10, #0
	cmp	x0, x14
	b.lo	LBB0_3
LBB0_6:
	cmp	w13, #2
	b.ne	LBB0_9
LBB0_7:
	sxtw	x8, w3
LBB0_8:
	sub	x19, x9, x2
	cmp	x19, x8
	cset	w0, le
	bl	_Assert
	b	LBB0_11
LBB0_9:
	add	x12, x12, x9
	cmp	x12, x8
	b.le	LBB0_12
LBB0_10:
	mov	x0, x2
	mov	w1, #0
	mov	x2, x3
	bl	_memset
	mov	w19, #-1
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_12:
	ldr	x12, [x11]
	ldrb	w12, [x12]
	strb	w12, [x9]
	ldr	x12, [x11]
	ldrb	w12, [x12]
	strb	w12, [x9, #1]
	mov	w12, #61
	mov	w14, #61
	cbnz	w13, LBB0_14
; %bb.13:
	ldr	x11, [x11]
                                        ; kill: def $w10 killed $w10 killed $x10 def $x10
	ubfx	x10, x10, #6, #2
	ldrb	w14, [x11, x10]
LBB0_14:
	strb	w14, [x9, #2]
	strb	w12, [x9, #3]
	add	x9, x9, #4
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	__base64,8,3                    ; @_base64
.subsections_via_symbols
