	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_base64_decode                  ## -- Begin function base64_decode
	.p2align	4, 0x90
_base64_decode:                         ## @base64_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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_DECODE_ERROR@GOTPCREL(%rip), %r15
	movq	_base64_chars@GOTPCREL(%rip), %r12
	movq	%rsi, %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	incq	%rcx
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%rcx, %r13
	addq	$4, %rbx
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %eax
	cmpb	$61, %al
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	testb	%al, %al
	je	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r12), %edi
	movsbl	%al, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_12
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_token_decode
	cmpl	(%r15), %eax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %ecx
	shrl	$16, %ecx
	movb	%cl, (%r13)
	movq	%r13, %rcx
	cmpl	$33554431, %eax                 ## imm = 0x1FFFFFF
	ja	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movb	%ah, 1(%rcx)
	cmpl	$16777215, %eax                 ## imm = 0xFFFFFF
	ja	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movb	%al, 2(%rcx)
	addq	$3, %rcx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	addq	$2, %rcx
	jmp	LBB0_11
LBB0_12:
	movq	%r13, %rax
	subl	%r14d, %eax
	jmp	LBB0_13
LBB0_5:
	movl	$-1, %eax
LBB0_13:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_base64_chars,4,2               ## @base64_chars
	.comm	_DECODE_ERROR,4,2               ## @DECODE_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_base64_decode                  ; -- Begin function base64_decode
	.p2align	2
_base64_decode:                         ; @base64_decode
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _DECODE_ERROR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _DECODE_ERROR@GOTPAGEOFF]
Lloh2:
	adrp	x22, _base64_chars@GOTPAGE
Lloh3:
	ldr	x22, [x22, _base64_chars@GOTPAGEOFF]
	mov	x23, x1
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x23, x8
	add	x20, x20, #4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x20]
	cmp	w8, #61
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	w8, LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x22]
	sxtb	w1, w8
	bl	_strchr
	cbz	x0, LBB0_10
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_token_decode
	ldr	w8, [x21]
	cmp	w0, w8
	b.eq	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	lsr	w9, w0, #16
	mov	x8, x23
	strb	w9, [x8], #1
	lsr	w9, w0, #25
	cbnz	w9, LBB0_1
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	lsr	w8, w0, #8
	strb	w8, [x23, #1]
	lsr	w8, w0, #24
	cbnz	w8, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	strb	w0, [x23, #2]
	add	x23, x23, #3
	add	x20, x20, #4
	b	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x23, x23, #2
	add	x20, x20, #4
	b	LBB0_2
LBB0_10:
	sub	w0, w23, w19
	b	LBB0_12
LBB0_11:
	mov	w0, #-1
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_base64_chars,4,2               ; @base64_chars
	.comm	_DECODE_ERROR,4,2               ; @DECODE_ERROR
.subsections_via_symbols
