	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function base64_encode
_base64_encode:                         ## @base64_encode
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_raw@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jne	LBB0_2
## %bb.1:
	movq	_output@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_mode@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_av@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_2:
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-43(%rbp), %rdi
	movl	$1, %r15d
	movl	$1, %esi
	movl	$3, %edx
	callq	_fread
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movq	%rax, %r13
	movl	$-1, %edx
	leaq	-59(%rbp), %r14
	leaq	-43(%rbp), %rbx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-43(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$3, %edx
	callq	_fread
	movq	%rax, %r13
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	decl	%edx
	incl	%r15d
	testq	%rax, %rax
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %eax
	movl	$2938661835, %ecx               ## imm = 0xAF286BCB
	imulq	%rcx, %rax
	shrq	$32, %rax
	movl	%r15d, %ecx
	subl	%eax, %ecx
	shrl	%ecx
	addl	%eax, %ecx
	shrl	$4, %ecx
	leal	(%rcx,%rcx,8), %eax
	leal	(%rcx,%rax,2), %r12d
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	addl	%edx, %r12d
	movq	%r14, %rdi
	callq	_nitems
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	movl	%eax, %ecx
	callq	_b64_ntop
	cmpl	$-1, %eax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_errx
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_output@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rcx
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	testl	%r12d, %r12d
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str.3(%rip), %rcx
	jmp	LBB0_8
LBB0_9:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	movq	_raw@GOTPCREL(%rip), %r14
	je	LBB0_11
## %bb.10:
	movq	_output@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_11:
	cmpl	$0, (%r14)
	jne	LBB0_13
## %bb.12:
	movq	_output@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_raw,4,2                        ## @raw
	.comm	_output,4,2                     ## @output
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"begin-base64 %o %s\n"

	.comm	_mode,4,2                       ## @mode
	.comm	_av,8,3                         ## @av
	.comm	_stdin,4,2                      ## @stdin
L_.str.1:                               ## @.str.1
	.asciz	"b64_ntop: error encoding base64"

L_.str.2:                               ## @.str.2
	.asciz	"%s%s"

L_.str.3:                               ## @.str.3
	.space	1

L_.str.4:                               ## @.str.4
	.asciz	"\n"

L_.str.5:                               ## @.str.5
	.asciz	"====\n"

	.comm	_GROUPS,4,2                     ## @GROUPS
	.no_dead_strip	_base64_encode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function base64_encode
_base64_encode:                         ; @base64_encode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
Lloh0:
	adrp	x19, _raw@GOTPAGE
Lloh1:
	ldr	x19, [x19, _raw@GOTPAGEOFF]
	ldr	w8, [x19]
	cbnz	w8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _mode@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mode@GOTPAGEOFF]
Lloh4:
	adrp	x9, _output@GOTPAGE
Lloh5:
	ldr	x9, [x9, _output@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x9]
Lloh7:
	adrp	x9, _av@GOTPAGE
Lloh8:
	ldr	x9, [x9, _av@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	ldr	x9, [x9]
Lloh10:
	ldr	w8, [x8]
	stp	x8, x9, [sp]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_2:
Lloh13:
	adrp	x8, _stdin@GOTPAGE
Lloh14:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
	add	x0, sp, #29
	mov	w1, #1
	mov	w2, #3
	bl	_fread
	cbz	x0, LBB0_9
; %bb.3:
	mov	x21, x0
	mov	w25, #-1
	mov	w26, #1
	mov	w28, #19
	add	x23, sp, #22
Lloh16:
	adrp	x19, l_.str.3@PAGE
Lloh17:
	add	x19, x19, l_.str.3@PAGEOFF
Lloh18:
	adrp	x22, l_.str.4@PAGE
Lloh19:
	add	x22, x22, l_.str.4@PAGEOFF
Lloh20:
	adrp	x20, l_.str.2@PAGE
Lloh21:
	add	x20, x20, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w8, w24, w27, lsr #1
	lsr	w8, w8, #4
	madd	w24, w8, w28, w25
Lloh22:
	adrp	x8, _output@GOTPAGE
Lloh23:
	ldr	x8, [x8, _output@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	cmp	w24, #0
	csel	x8, x22, x19, eq
	stp	x23, x8, [sp]
	mov	x1, x20
	bl	_fprintf
Lloh25:
	adrp	x8, _stdin@GOTPAGE
Lloh26:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
Lloh27:
	ldr	w3, [x8]
	add	x0, sp, #29
	mov	w1, #1
	mov	w2, #3
	bl	_fread
	mov	x21, x0
	sub	w25, w25, #1
	add	w26, w26, #1
	cbz	x0, LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	w8, #27595
	movk	w8, #44840, lsl #16
	umull	x8, w26, w8
	lsr	x24, x8, #32
	sub	w27, w26, w24
	add	x0, sp, #22
	bl	_nitems
	mov	x3, x0
	add	x0, sp, #29
	add	x2, sp, #22
	mov	x1, x21
	bl	_b64_ntop
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #1
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_errx
	b	LBB0_4
LBB0_7:
Lloh30:
	adrp	x19, _raw@GOTPAGE
Lloh31:
	ldr	x19, [x19, _raw@GOTPAGEOFF]
	cbz	w24, LBB0_9
; %bb.8:
Lloh32:
	adrp	x8, _output@GOTPAGE
Lloh33:
	ldr	x8, [x8, _output@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
Lloh35:
	adrp	x1, l_.str.4@PAGE
Lloh36:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
LBB0_9:
	ldr	w8, [x19]
	cbnz	w8, LBB0_11
; %bb.10:
Lloh37:
	adrp	x8, _output@GOTPAGE
Lloh38:
	ldr	x8, [x8, _output@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
Lloh40:
	adrp	x1, l_.str.5@PAGE
Lloh41:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_fprintf
LBB0_11:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_raw,4,2                        ; @raw
	.comm	_output,4,2                     ; @output
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"begin-base64 %o %s\n"

	.comm	_mode,4,2                       ; @mode
	.comm	_av,8,3                         ; @av
	.comm	_stdin,4,2                      ; @stdin
l_.str.1:                               ; @.str.1
	.asciz	"b64_ntop: error encoding base64"

l_.str.2:                               ; @.str.2
	.asciz	"%s%s"

l_.str.3:                               ; @.str.3
	.space	1

l_.str.4:                               ; @.str.4
	.asciz	"\n"

l_.str.5:                               ; @.str.5
	.asciz	"====\n"

	.comm	_GROUPS,4,2                     ; @GROUPS
	.no_dead_strip	_base64_encode
.subsections_via_symbols
