	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function base64_gen_decode
_base64_gen_decode:                     ## @base64_gen_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	%r12
	pushq	%rbx
	subq	$288, %rsp                      ## imm = 0x120
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	leaq	-304(%rbp), %rdi
	movl	$128, %esi
	movl	$256, %edx                      ## imm = 0x100
	callq	_os_memset
	movzbl	(%r12), %eax
	movb	$0, -304(%rbp,%rax)
	movzbl	1(%r12), %eax
	movb	$1, -304(%rbp,%rax)
	movzbl	2(%r12), %eax
	movb	$2, -304(%rbp,%rax)
	movb	$0, -243(%rbp)
	testq	%r15, %r15
	je	LBB0_3
## %bb.1:
	leaq	-1(%r15), %rcx
	movl	%r15d, %r8d
	andl	$3, %r8d
	cmpq	$3, %rcx
	jae	LBB0_4
## %bb.2:
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	jmp	LBB0_6
LBB0_4:
	movq	%r15, %r9
	andq	$-4, %r9
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx,%rdx), %edi
	xorl	%eax, %eax
	cmpb	$-128, -304(%rbp,%rdi)
	setne	%al
	addq	%rcx, %rax
	movzbl	1(%rbx,%rdx), %ecx
	xorl	%edi, %edi
	cmpb	$-128, -304(%rbp,%rcx)
	setne	%dil
	addq	%rax, %rdi
	movzbl	2(%rbx,%rdx), %eax
	xorl	%esi, %esi
	cmpb	$-128, -304(%rbp,%rax)
	setne	%sil
	addq	%rdi, %rsi
	movzbl	3(%rbx,%rdx), %eax
	xorl	%ecx, %ecx
	cmpb	$-128, -304(%rbp,%rax)
	setne	%cl
	addq	%rsi, %rcx
	addq	$4, %rdx
	cmpq	%rdx, %r9
	jne	LBB0_5
LBB0_6:
	testq	%r8, %r8
	je	LBB0_9
## %bb.7:
	addq	%rbx, %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rdx,%rsi), %eax
	xorl	%edi, %edi
	cmpb	$-128, -304(%rbp,%rax)
	setne	%dil
	addq	%rdi, %rcx
	incq	%rsi
	cmpq	%rsi, %r8
	jne	LBB0_8
LBB0_9:
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.10:
	movl	%ecx, %r12d
	negl	%r12d
	andl	$3, %r12d
	addq	%r12, %rcx
	shrq	$2, %rcx
	leaq	(%rcx,%rcx,2), %rdi
	callq	_os_malloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.11:
	movq	%rax, %r8
	addq	%r15, %r12
	je	LBB0_26
## %bb.12:
	xorl	%r9d, %r9d
	movq	%rax, %r8
	xorl	%r10d, %r10d
	xorl	%esi, %esi
	jmp	LBB0_15
LBB0_3:
	xorl	%eax, %eax
	jmp	LBB0_27
LBB0_13:                                ##   in Loop: Header=BB0_15 Depth=1
	addq	$3, %r8
	xorl	%r10d, %r10d
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_15 Depth=1
	incq	%rsi
	cmpq	%rsi, %r12
	je	LBB0_26
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movb	$61, %cl
	cmpq	%r15, %rsi
	jae	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movzbl	(%rbx,%rsi), %ecx
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	movzbl	%cl, %edx
	movzbl	-304(%rbp,%rdx), %edx
	cmpb	$-128, %dl
	je	LBB0_14
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	xorl	%edi, %edi
	cmpb	$61, %cl
	sete	%dil
	addl	%edi, %r9d
	movb	%dl, -308(%rbp,%r10)
	incq	%r10
	cmpq	$4, %r10
	jne	LBB0_14
## %bb.19:                              ##   in Loop: Header=BB0_15 Depth=1
	movzbl	-308(%rbp), %ecx
	movzbl	-307(%rbp), %edx
	shlb	$2, %cl
	shrb	$4, %dl
	orb	%cl, %dl
	movb	%dl, (%r8)
	movzbl	-307(%rbp), %ecx
	movzbl	-306(%rbp), %edx
	shlb	$4, %cl
	shrb	$2, %dl
	orb	%cl, %dl
	movb	%dl, 1(%r8)
	movzbl	-306(%rbp), %ecx
	shlb	$6, %cl
	orb	-305(%rbp), %cl
	movb	%cl, 2(%r8)
	testl	%r9d, %r9d
	je	LBB0_13
## %bb.20:
	cmpl	$1, %r9d
	je	LBB0_25
## %bb.21:
	cmpl	$2, %r9d
	jne	LBB0_29
## %bb.22:
	incq	%r8
	jmp	LBB0_26
LBB0_25:
	addq	$2, %r8
LBB0_26:
	subq	%rax, %r8
	movq	%r8, (%r14)
LBB0_27:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_30
## %bb.28:
	addq	$288, %rsp                      ## imm = 0x120
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	movq	%rax, %rdi
	callq	_os_free
	xorl	%eax, %eax
	jmp	LBB0_27
LBB0_30:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_base64_gen_decode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function base64_gen_decode
_base64_gen_decode:                     ; @base64_gen_decode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #336
	.cfi_def_cfa_offset 336
	stp	x24, x23, [sp, #272]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #288]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #304]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #320]            ; 16-byte Folded Spill
	add	x29, sp, #320
	.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	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	add	x23, sp, #8
	add	x0, sp, #8
	mov	w1, #128
	mov	w2, #256
	bl	_os_memset
	ldrb	w8, [x22]
	strb	wzr, [x23, x8]
	ldrb	w8, [x22, #1]
	mov	w9, #1
	strb	w9, [x23, x8]
	ldrb	w8, [x22, #2]
	mov	w9, #2
	strb	w9, [x23, x8]
	strb	wzr, [sp, #69]
	cbz	x20, LBB0_12
; %bb.1:
	cmp	x20, #4
	b.hs	LBB0_3
; %bb.2:
	mov	x9, #0
	mov	x8, #0
	b	LBB0_6
LBB0_3:
	mov	x11, #0
	mov	x12, #0
	mov	x10, #0
	mov	x9, #0
	and	x8, x20, #0xfffffffffffffffc
	add	x13, x21, #3
	add	x14, sp, #8
	mov	x15, x8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldurb	w16, [x13, #-3]
	ldurb	w17, [x13, #-2]
	ldurb	w0, [x13, #-1]
	ldrb	w1, [x13], #4
	ldrb	w16, [x14, x16]
	ldrb	w17, [x14, x17]
	ldrb	w0, [x14, x0]
	ldrb	w1, [x14, x1]
	cmp	w16, #128
	cinc	x11, x11, ne
	cmp	w17, #128
	cinc	x12, x12, ne
	cmp	w0, #128
	cinc	x10, x10, ne
	cmp	w1, #128
	cinc	x9, x9, ne
	subs	x15, x15, #4
	b.ne	LBB0_4
; %bb.5:
	add	x11, x12, x11
	add	x10, x10, x11
	add	x9, x9, x10
	cmp	x8, x20
	b.eq	LBB0_8
LBB0_6:
	sub	x10, x20, x8
	add	x8, x21, x8
	add	x11, sp, #8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w12, [x8], #1
	ldrb	w12, [x11, x12]
	cmp	w12, #128
	cinc	x9, x9, ne
	subs	x10, x10, #1
	b.ne	LBB0_7
LBB0_8:
	cbz	x9, LBB0_12
; %bb.9:
	neg	w8, w9
	and	x22, x8, #0x3
	add	x8, x22, x9
	lsr	x8, x8, #2
	add	x0, x8, x8, lsl #1
	bl	_os_malloc
	cbz	x0, LBB0_26
; %bb.10:
	mov	x8, x0
	adds	x10, x22, x20
	b.eq	LBB0_25
; %bb.11:
	mov	w9, #0
	mov	x14, #0
	mov	x11, #0
	add	x12, sp, #8
	add	x13, sp, #4
	mov	x8, x0
	b	LBB0_15
LBB0_12:
	mov	x0, #0
	b	LBB0_26
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	x14, #0
	add	x8, x8, #3
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x11, x11, #1
	cmp	x10, x11
	b.eq	LBB0_25
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	cmp	x11, x20
	b.hs	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldrb	w15, [x21, x11]
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	w15, #61
LBB0_18:                                ;   in Loop: Header=BB0_15 Depth=1
	ldrb	w16, [x12, w15, uxtw]
	cmp	w16, #128
	b.eq	LBB0_14
; %bb.19:                               ;   in Loop: Header=BB0_15 Depth=1
	cmp	w15, #61
	cinc	w9, w9, eq
	strb	w16, [x13, x14]
	add	x14, x14, #1
	cmp	x14, #4
	b.ne	LBB0_14
; %bb.20:                               ;   in Loop: Header=BB0_15 Depth=1
	ldrb	w14, [sp, #4]
	ldrb	w15, [sp, #5]
	lsr	w15, w15, #4
	orr	w14, w15, w14, lsl #2
	strb	w14, [x8]
	ldrb	w14, [sp, #5]
	ldrb	w15, [sp, #6]
	lsr	w15, w15, #2
	orr	w14, w15, w14, lsl #4
	strb	w14, [x8, #1]
	ldrb	w14, [sp, #6]
	ldrb	w15, [sp, #7]
	orr	w14, w15, w14, lsl #6
	strb	w14, [x8, #2]
	cbz	w9, LBB0_13
; %bb.21:
	cmp	w9, #1
	b.eq	LBB0_24
; %bb.22:
	cmp	w9, #2
	b.ne	LBB0_28
; %bb.23:
	add	x8, x8, #1
	b	LBB0_25
LBB0_24:
	add	x8, x8, #2
LBB0_25:
	sub	x8, x8, x0
	str	x8, [x19]
LBB0_26:
	ldur	x8, [x29, #-56]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_29
; %bb.27:
	ldp	x29, x30, [sp, #320]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #304]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #288]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #336
	ret
LBB0_28:
	bl	_os_free
	mov	x0, #0
	b	LBB0_26
LBB0_29:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_base64_gen_decode
.subsections_via_symbols
