	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function base64_decode
_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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leal	1(%rbx), %r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	shll	$2, %ebx
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movb	$0, (%r13)
	leaq	1(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movabsq	$2305992542795071488, %r15      ## imm = 0x2000880000000000
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_strcpy
	movq	%r12, %rdi
	callq	_strlen
	movslq	%eax, %r14
	addq	%r12, %r14
	movq	%r12, %rdi
	callq	_strlen
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	%ecx, %esi
	subl	%eax, %esi
	movq	%r14, %rdi
	callq	_get_line
	cmpl	$2, %eax
	jb	LBB0_12
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movb	(%r12), %al
	movl	$-1, %r14d
	testb	%al, %al
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	incl	%r13d
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	testb	$3, %r13b
	cmovel	%ebx, %r14d
	movzbl	1(%r12,%rbx), %eax
	incq	%rbx
	testb	%al, %al
	je	LBB0_9
LBB0_4:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	%al, %edi
	callq	_isalnum
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movzbl	(%r12,%rbx), %eax
	cmpq	$61, %rax
	ja	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	btq	%rax, %r15
	jb	LBB0_7
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movslq	%r14d, %rbx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rbx), %rsi
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_strcpy
	movb	$0, 1(%rbx,%r12)
	movq	%r12, %rdi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_b64_pton
	testl	%eax, %eax
	js	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_outfp@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	%eax, %edx
	callq	_fwrite
	jmp	LBB0_1
LBB0_11:
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	callq	_checkend
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_14
## %bb.13:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
	.comm	_outfp,4,2                      ## @outfp
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"===="

L_.str.1:                               ## @.str.1
	.asciz	"error decoding base64 input stream"

	.no_dead_strip	_base64_decode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function base64_decode
_base64_decode:                         ; @base64_decode
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MAXPATHLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXPATHLEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w19, w8, #1
	mov	x9, x19
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x19, #15
	and	x12, x10, #0x1fffffff0
	sub	x20, x9, x12
	mov	sp, x20
	lsl	w13, w8, #2
	mov	x9, x13
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	stur	x13, [x29, #-96]                ; 8-byte Folded Spill
	add	x9, x13, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
	mov	x9, x19
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x23, x8, x12
	mov	sp, x23
	strb	wzr, [x23]
	add	x25, x20, #1
	mov	w27, #1
	mov	x28, #149533581377536
	movk	x28, #8192, lsl #48
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	mov	x0, x20
	mov	x1, x23
	bl	_strcpy
	mov	x0, x20
	bl	_strlen
	add	x24, x20, w0, sxtw
	mov	x0, x20
	bl	_strlen
	sub	w1, w19, w0
	mov	x0, x24
	bl	_get_line
	cmp	w0, #2
	b.lo	LBB0_12
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldrb	w8, [x20]
	cbz	w8, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x26, #0
	mov	w21, #0
	mov	w24, #-1
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	w21, w21, #1
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	tst	w21, #0x3
	csel	w24, w26, w24, eq
	add	x8, x20, x26
	ldrb	w8, [x8, #1]
	add	x26, x26, #1
	cbz	w8, LBB0_9
LBB0_6:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sxtb	w0, w8
	bl	_isalnum
	cbnz	x0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldrb	w8, [x20, x26]
	cmp	w8, #61
	lsl	x8, x27, x8
	and	x8, x8, x28
	ccmp	x8, #0, #4, ls
	b.ne	LBB0_4
	b	LBB0_5
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	w24, #-1
LBB0_9:                                 ;   in Loop: Header=BB0_1 Depth=1
	sxtw	x21, w24
	add	x1, x25, x21
	mov	x0, x23
	bl	_strcpy
	add	x8, x21, x20
	strb	wzr, [x8, #1]
	mov	x0, x20
	mov	x1, x22
	ldur	x2, [x29, #-96]                 ; 8-byte Folded Reload
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_b64_pton
	tbnz	w0, #31, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x2, x0
Lloh12:
	adrp	x8, _outfp@GOTPAGE
Lloh13:
	ldr	x8, [x8, _outfp@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	x0, x22
	mov	w1, #1
	bl	_fwrite
	b	LBB0_1
LBB0_11:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
Lloh17:
	adrp	x2, l_.str.1@PAGE
Lloh18:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_checkend
LBB0_12:
	ldur	x8, [x29, #-88]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
	.comm	_outfp,4,2                      ; @outfp
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"===="

l_.str.1:                               ; @.str.1
	.asciz	"error decoding base64 input stream"

	.no_dead_strip	_base64_decode
.subsections_via_symbols
