	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rax
	testl	%esi, %esi
	je	LBB0_12
## %bb.1:
	movl	%esi, %eax
	leaq	(%rdi,%rax,4), %r9
	leaq	304(%rdx), %r11
	movq	__base64@GOTPCREL(%rip), %r8
	movq	(%r8), %r10
	movl	$2, %r14d
	xorl	%esi, %esi
	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
	movq	%rsi, %rbx
	movl	(%rdi), %esi
	leal	(,%r14,8), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	orq	%rbx, %rsi
	testl	%r14d, %r14d
	jle	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	decl	%r14d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%esi, %ecx
	shrl	$18, %ecx
	andl	$63, %ecx
	movsbl	(%r10,%rcx), %ecx
	movl	%ecx, (%rax)
	movl	%esi, %ecx
	shrl	$12, %ecx
	andl	$63, %ecx
	movsbl	(%r10,%rcx), %ecx
	movl	%ecx, 4(%rax)
	movl	%esi, %ecx
	shrl	$6, %ecx
	andl	$63, %ecx
	movsbl	(%r10,%rcx), %ecx
	movl	%ecx, 8(%rax)
	andl	$63, %esi
	movsbl	(%r10,%rsi), %ecx
	movl	%ecx, 12(%rax)
	addq	$16, %rax
	movl	$2, %r14d
	xorl	%esi, %esi
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$4, %rdi
	cmpq	%r11, %rax
	jb	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	4(%rax), %rcx
	movl	$10, (%rax)
	addq	$308, %rax                      ## imm = 0x134
	movq	%rax, %r11
	movq	%rcx, %rax
	jmp	LBB0_7
LBB0_8:
	cmpl	$2, %r14d
	je	LBB0_12
## %bb.9:
	movq	(%r8), %rcx
	movl	%esi, %edi
	shrl	$18, %edi
	andl	$63, %edi
	movsbl	(%rcx,%rdi), %edi
	movl	%edi, (%rax)
	movl	%esi, %edi
	shrl	$12, %edi
	andl	$63, %edi
	movsbl	(%rcx,%rdi), %edi
	movl	%edi, 4(%rax)
	movl	$61, %edi
	testl	%r14d, %r14d
	jne	LBB0_11
## %bb.10:
	shrl	$6, %esi
	andl	$63, %esi
	movsbl	(%rcx,%rsi), %edi
LBB0_11:
	movl	%edi, 8(%rax)
	movl	$61, 12(%rax)
	addq	$16, %rax
LBB0_12:
	subq	%rdx, %rax
	shrq	$2, %rax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r14
	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	x9, #0
	add	x11, x0, w1, uxtw #2
	add	x12, x2, #304
Lloh0:
	adrp	x10, __base64@GOTPAGE
Lloh1:
	ldr	x10, [x10, __base64@GOTPAGEOFF]
	ldr	x13, [x10]
	mov	w14, #2
	mov	w15, #10
	mov	x8, x2
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	x0, x11
	b.hs	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w16, [x0], #4
	lsl	w17, w14, #3
	lsl	w16, w16, w17
	orr	x9, x9, x16
	cmp	w14, #0
	b.le	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w14, w14, #1
	cmp	x8, x12
	b.lo	LBB0_2
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ubfx	x14, x9, #18, #6
	ldrsb	w14, [x13, x14]
	str	w14, [x8]
	ubfx	x14, x9, #12, #6
	ldrsb	w14, [x13, x14]
	str	w14, [x8, #4]
	ubfx	x14, x9, #6, #6
	ldrsb	w14, [x13, x14]
	str	w14, [x8, #8]
	and	x9, x9, #0x3f
	ldrsb	w9, [x13, x9]
	str	w9, [x8, #12]
	add	x8, x8, #16
	mov	w14, #2
	mov	x9, #0
	cmp	x8, x12
	b.lo	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x12, x8, #308
	str	w15, [x8], #4
	b	LBB0_2
LBB0_7:
	cmp	w14, #2
	b.eq	LBB0_11
; %bb.8:
	ldr	x11, [x10]
	ubfx	x10, x9, #18, #6
	ldrsb	w10, [x11, x10]
	str	w10, [x8]
	ubfx	x10, x9, #12, #6
	ldrsb	w10, [x11, x10]
	str	w10, [x8, #4]
	mov	w10, #61
	mov	w12, #61
	cbnz	w14, LBB0_10
; %bb.9:
	ubfx	x9, x9, #6, #6
	ldrsb	w12, [x11, x9]
LBB0_10:
	stp	w12, w10, [x8, #8]
	add	x8, x8, #16
LBB0_11:
	sub	x8, x8, x2
	lsr	x0, x8, #2
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	__base64,8,3                    ; @_base64
	.no_dead_strip	_pg_base64_encode
.subsections_via_symbols
