	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pg_b64_decode                  ## -- Begin function pg_b64_decode
	.p2align	4, 0x90
_pg_b64_decode:                         ## @pg_b64_decode
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movslq	%ecx, %r10
	movq	%rdx, %r12
	testl	%esi, %esi
	jle	LBB0_26
## %bb.1:
	movl	%ecx, %r13d
	movslq	%esi, %r11
	addq	%rdi, %r11
	xorl	%r14d, %r14d
	movq	_b64lookup@GOTPCREL(%rip), %r8
	movabsq	$4294977024, %r9                ## imm = 0x100002600
	xorl	%eax, %eax
	xorl	%r15d, %r15d
	movq	%rdx, %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ecx, %r15d
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdi
	cmpq	%r11, %rdi
	jae	LBB0_25
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rdi), %ebx
	cmpq	$61, %rbx
	ja	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	jne	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%esi, %esi
	testl	%r14d, %r14d
	jne	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$3, %eax
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$2, %eax
	jne	LBB0_27
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	shll	$6, %r15d
	movl	$3, %eax
	movl	$1, %r14d
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	btq	%rbx, %r9
	jb	LBB0_27
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	leal	-1(%rbx), %esi
	cmpb	$125, %sil
	ja	LBB0_27
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r8), %rsi
	movl	(%rsi,%rbx,4), %esi
	testl	%esi, %esi
	js	LBB0_27
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	shll	$6, %r15d
	movl	%r15d, %ecx
	addl	%esi, %ecx
	incl	%eax
	cmpl	$4, %eax
	jne	LBB0_8
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rax
	subq	%rdx, %rax
	cmpq	%r10, %rax
	jge	LBB0_27
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%ecx, %esi
	shrl	$16, %esi
	movq	%r12, %rbx
	leaq	1(%r12), %rax
	movb	%sil, (%r12)
	testl	%r14d, %r14d
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$2, %r14d
	jl	LBB0_19
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	subq	%rdx, %rax
	cmpq	%r10, %rax
	jge	LBB0_27
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rax
	movb	%ch, 1(%rax)
	addq	$2, %rax
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r15d, %r15d
	testl	%r14d, %r14d
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$3, %r14d
	jl	LBB0_23
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rsi
	subq	%rdx, %rsi
	cmpq	%r10, %rsi
	jge	LBB0_27
## %bb.22:                              ##   in Loop: Header=BB0_2 Depth=1
	movb	%cl, (%rax)
	incq	%rax
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r12
	xorl	%eax, %eax
	jmp	LBB0_24
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	shll	$6, %r15d
	movl	$2, %r14d
	movl	%r15d, %ecx
	jmp	LBB0_14
LBB0_25:
	testl	%eax, %eax
	je	LBB0_26
LBB0_27:
	movq	%rdx, %rdi
	xorl	%esi, %esi
	movl	%r13d, %edx
	callq	_memset
	movl	$-1, %ebx
	jmp	LBB0_28
LBB0_26:
	movq	%r12, %rbx
	subq	%rdx, %rbx
	xorl	%edi, %edi
	cmpq	%r10, %rbx
	setle	%dil
	callq	_Assert
LBB0_28:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_b64lookup,8,3                  ## @b64lookup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pg_b64_decode                  ; -- Begin function pg_b64_decode
	.p2align	2
_pg_b64_decode:                         ; @pg_b64_decode
	.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	x15, x2
	cmp	w1, #1
	b.lt	LBB0_27
; %bb.1:
	mov	w14, #0
	mov	w16, #0
	mov	w12, #0
	sxtw	x8, w3
Lloh0:
	adrp	x9, _b64lookup@GOTPAGE
Lloh1:
	ldr	x9, [x9, _b64lookup@GOTPAGEOFF]
	mov	w10, #1
	mov	x11, #9728
	movk	x11, #1, lsl #32
	mov	x15, x2
	add	x13, x0, w1, sxtw
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w12, #0
	mov	w16, #0
	mov	x15, x17
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x0, x13
	b.hs	LBB0_25
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w17, [x0], #1
	cmp	w17, #61
	b.hi	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x17, #61
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	w14, LBB0_21
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w17, #0
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	lsl	x1, x10, x17
	tst	x1, x11
	b.ne	LBB0_26
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w1, w17, #1
	cmp	w1, #125
	b.hi	LBB0_26
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x9]
	ldr	w17, [x1, x17, lsl #2]
	tbnz	w17, #31, LBB0_26
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w12, w17, w12, lsl #6
	add	w16, w16, #1
	cmp	w16, #4
	b.ne	LBB0_3
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x16, x15, x2
	cmp	x16, x8
	b.ge	LBB0_26
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	lsr	w16, w12, #16
	mov	x17, x15
	strb	w16, [x17], #1
	cbz	w14, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w14, #2
	b.ge	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w14, LBB0_18
	b	LBB0_19
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x16, x17, x2
	cmp	x16, x8
	b.ge	LBB0_26
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
	lsr	w16, w12, #8
	add	x17, x15, #2
	strb	w16, [x15, #1]
	cbz	w14, LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w14, #3
	b.lt	LBB0_2
LBB0_19:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x15, x17, x2
	cmp	x15, x8
	b.ge	LBB0_26
; %bb.20:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w16, #0
	strb	w12, [x17], #1
	mov	x15, x17
	mov	w12, #0
	b	LBB0_3
LBB0_21:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w16, #3
	b.eq	LBB0_24
; %bb.22:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w16, #2
	b.ne	LBB0_26
; %bb.23:                               ;   in Loop: Header=BB0_4 Depth=1
	lsl	w12, w12, #6
	mov	w16, #3
	mov	w14, #1
	b	LBB0_3
LBB0_24:                                ;   in Loop: Header=BB0_4 Depth=1
	lsl	w12, w12, #6
	mov	w14, #2
	b	LBB0_12
LBB0_25:
	cbz	w16, LBB0_27
LBB0_26:
	mov	x0, x2
	mov	w1, #0
	mov	x2, x3
	bl	_memset
	mov	w19, #-1
	b	LBB0_28
LBB0_27:
	sub	x19, x15, x2
	cmp	x19, w3, sxtw
	cset	w0, le
	bl	_Assert
LBB0_28:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_b64lookup,8,3                  ; @b64lookup
.subsections_via_symbols
