	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pg_base64_encode
_pg_base64_encode:                      ## @pg_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	%rbx
	.cfi_offset %rbx, -24
	movq	%rdx, %rax
	testl	%esi, %esi
	je	LBB0_12
## %bb.1:
	movl	%esi, %r9d
	addq	%rdi, %r9
	leaq	76(%rdx), %r10
	movl	$2, %r11d
	xorl	%esi, %esi
	movq	__base64@GOTPCREL(%rip), %r8
	movq	%rdx, %rax
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r9, %rdi
	jae	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%esi, %ebx
	movzbl	(%rdi), %esi
	leal	(,%r11,8), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	orb	%bl, %sil
	testl	%r11d, %r11d
	jle	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	decl	%r11d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r8), %rcx
	movzbl	(%rcx), %ecx
	movb	%cl, (%rax)
	movq	(%r8), %rcx
	movzbl	(%rcx), %ecx
	movb	%cl, 1(%rax)
	movq	(%r8), %rcx
	movzbl	%sil, %ebx
	movq	%rbx, %rsi
	shrq	$6, %rsi
	movzbl	(%rcx,%rsi), %ecx
	movb	%cl, 2(%rax)
	movq	(%r8), %rcx
	andl	$63, %ebx
	movzbl	(%rcx,%rbx), %ecx
	movb	%cl, 3(%rax)
	addq	$4, %rax
	movl	$2, %r11d
	xorl	%esi, %esi
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdi
	cmpq	%r10, %rax
	jb	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	1(%rax), %rcx
	movb	$10, (%rax)
	addq	$77, %rax
	movq	%rax, %r10
	movq	%rcx, %rax
	jmp	LBB0_7
LBB0_8:
	cmpl	$2, %r11d
	je	LBB0_12
## %bb.9:
	movq	(%r8), %rcx
	movb	(%rcx), %cl
	movb	%cl, (%rax)
	movq	(%r8), %rcx
	movb	(%rcx), %cl
	movb	%cl, 1(%rax)
	movb	$61, %cl
	testl	%r11d, %r11d
	jne	LBB0_11
## %bb.10:
	movq	(%r8), %rcx
	movzbl	%sil, %esi
	shrq	$6, %rsi
	movb	(%rcx,%rsi), %cl
LBB0_11:
	movb	%cl, 2(%rax)
	movb	$61, 3(%rax)
	addq	$4, %rax
LBB0_12:
	subl	%edx, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__base64,8,3                    ## @_base64
	.no_dead_strip	_pg_base64_encode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pg_base64_encode
_pg_base64_encode:                      ; @pg_base64_encode
	.cfi_startproc
; %bb.0:
	mov	x8, x2
	cbz	w1, LBB0_11
; %bb.1:
	mov	w10, #0
	add	x11, x2, #76
	mov	w13, #2
Lloh0:
	adrp	x9, __base64@GOTPAGE
Lloh1:
	ldr	x9, [x9, __base64@GOTPAGEOFF]
	mov	w12, #10
	mov	x8, x2
	add	x14, x0, w1, uxtw
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	x0, x14
	b.hs	LBB0_7
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.le	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w13, w13, #1
	cmp	x8, x11
	b.lo	LBB0_2
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x13, [x9]
	ldrb	w13, [x13]
	strb	w13, [x8]
	ldr	x13, [x9]
	ldrb	w13, [x13]
	strb	w13, [x8, #1]
	ldr	x13, [x9]
	ubfx	x15, x10, #6, #2
	ldrb	w13, [x13, x15]
	strb	w13, [x8, #2]
	ldr	x13, [x9]
	and	x10, x10, #0x3f
	ldrb	w10, [x13, x10]
	strb	w10, [x8, #3]
	add	x8, x8, #4
	mov	w13, #2
	mov	w10, #0
	cmp	x8, x11
	b.lo	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x15, x8, #1
	strb	w12, [x8], #77
	mov	x11, x8
	mov	x8, x15
	b	LBB0_2
LBB0_7:
	cmp	w13, #2
	b.eq	LBB0_11
; %bb.8:
	ldr	x11, [x9]
	ldrb	w11, [x11]
	strb	w11, [x8]
	ldr	x11, [x9]
	ldrb	w11, [x11]
	strb	w11, [x8, #1]
	mov	w11, #61
	mov	w12, #61
	cbnz	w13, LBB0_10
; %bb.9:
	ldr	x9, [x9]
                                        ; kill: def $w10 killed $w10 killed $x10 def $x10
	ubfx	x10, x10, #6, #2
	ldrb	w12, [x9, x10]
LBB0_10:
	strb	w12, [x8, #2]
	strb	w11, [x8, #3]
	add	x8, x8, #4
LBB0_11:
	sub	w0, w8, w2
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	__base64,8,3                    ; @_base64
	.no_dead_strip	_pg_base64_encode
.subsections_via_symbols
