	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_openvpn_base64_decode          ## -- Begin function openvpn_base64_decode
	.p2align	4, 0x90
_openvpn_base64_decode:                 ## @openvpn_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, %rbx
	movq	%rdi, %r14
	movslq	%edx, %rax
	leaq	(%rsi,%rax), %rcx
	xorl	%r15d, %r15d
	testl	%eax, %eax
	cmovnsq	%rcx, %r15
	movq	_DECODE_ERROR@GOTPCREL(%rip), %r12
	movq	%rsi, %rax
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movb	%cl, 2(%rbx)
	addq	$3, %rbx
	movq	%rbx, %rdx
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	addq	$4, %r14
	movq	%rdx, %rbx
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r14), %eax
	cmpb	$61, %al
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	testb	%al, %al
	je	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_base64_chars@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movsbl	%al, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_14
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	testq	%r15, %r15
	sete	%r13b
	movq	%r14, %rdi
	callq	_token_decode
	movl	%eax, %ecx
	cmpq	%r15, %rbx
	setb	%dl
	movl	$-1, %eax
	cmpl	(%r12), %ecx
	je	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	orb	%dl, %r13b
	je	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%ecx, %esi
	shrl	$16, %esi
	leaq	1(%rbx), %rdx
	movb	%sil, (%rbx)
	cmpl	$33554431, %ecx                 ## imm = 0x1FFFFFF
	ja	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	testq	%r15, %r15
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%r15, %rdx
	jae	LBB0_15
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	leaq	2(%rbx), %rdx
	movb	%ch, 1(%rbx)
	cmpl	$16777215, %ecx                 ## imm = 0xFFFFFF
	ja	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	testq	%r15, %r15
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%r15, %rdx
	jb	LBB0_12
	jmp	LBB0_15
LBB0_14:
	subl	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	%ebx, %eax
LBB0_15:
	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	_openvpn_base64_decode          ; -- Begin function openvpn_base64_decode
	.p2align	2
_openvpn_base64_decode:                 ; @openvpn_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
	add	x8, x1, w2, sxtw
	cmp	w2, #0
	csel	x21, x8, xzr, ge
Lloh0:
	adrp	x22, _DECODE_ERROR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DECODE_ERROR@GOTPAGEOFF]
Lloh2:
	adrp	x23, _base64_chars@GOTPAGE
Lloh3:
	ldr	x23, [x23, _base64_chars@GOTPAGEOFF]
	mov	x24, x1
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x24, #3
	strb	w0, [x24, #2]
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #4
	mov	x24, x8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x20]
	cmp	w8, #61
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w8, LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x23]
	sxtb	w1, w8
	bl	_strchr
	cbz	x0, LBB0_14
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_token_decode
	cmp	x21, #0
	ldr	w8, [x22]
	ccmp	x24, x21, #0, ne
	cset	w9, lo
	cmp	w0, w8
	ccmp	w9, #0, #4, ne
	b.eq	LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	lsr	w9, w0, #16
	mov	x8, x24
	strb	w9, [x8], #1
	lsr	w9, w0, #25
	cbnz	w9, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	x21, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x8, x21
	b.hs	LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	lsr	w9, w0, #8
	add	x8, x24, #2
	strb	w9, [x24, #1]
	lsr	w9, w0, #24
	cbnz	w9, LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	cbz	x21, LBB0_1
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	cmp	x8, x21
	b.lo	LBB0_1
LBB0_13:
	mov	w0, #-1
	b	LBB0_15
LBB0_14:
	sub	w0, w24, w19
LBB0_15:
	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
