	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function encrypt_or_decrypt
_encrypt_or_decrypt:                    ## @encrypt_or_decrypt
	.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
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movq	%r8, %r13
	movl	%ecx, %r14d
	movq	%rdx, %r12
	movl	%esi, %r15d
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	_s@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jg	LBB0_4
## %bb.14:
	testl	%r15d, %r15d
	leaq	L_.str.9(%rip), %rax
	leaq	L_.str.10(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_eprintf
	jmp	LBB0_15
LBB0_4:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_r_crypto_new
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_r_crypto_use
	testq	%rax, %rax
	je	LBB0_13
## %bb.5:
	movl	%r14d, %ebx
	movq	_s@GOTPCREL(%rip), %rax
	movl	8(%rax), %esi
	movq	(%rax), %rdx
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	movl	%r15d, %r8d
	callq	_r_crypto_set_key
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:
	testq	%r13, %r13
	je	LBB0_9
## %bb.7:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_r_crypto_set_iv
	testl	%eax, %eax
	je	LBB0_8
LBB0_9:
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_r_crypto_update
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_r_crypto_final
	movl	$0, -44(%rbp)
	leaq	-44(%rbp), %rsi
	movq	%r12, %rdi
	callq	_r_crypto_get_output
	testq	%rax, %rax
	je	LBB0_16
## %bb.10:
	movq	%rax, %rbx
	movl	-44(%rbp), %edx
	movl	$1, %edi
	movq	%rax, %rsi
	callq	_write
	movq	%rbx, %rdi
	callq	_free
	jmp	LBB0_16
LBB0_13:
	testl	%r15d, %r15d
	leaq	L_.str.6(%rip), %rax
	leaq	L_.str.7(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str.5(%rip), %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_eprintf
	movq	%r12, %rdi
	callq	_r_crypto_free
LBB0_15:
	movl	$1, %r14d
	jmp	LBB0_16
LBB0_11:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_12
LBB0_8:
	leaq	L_.str.3(%rip), %rdi
	xorl	%r14d, %r14d
LBB0_12:
	xorl	%eax, %eax
	callq	_eprintf
LBB0_16:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"base64"

L_.str.1:                               ## @.str.1
	.asciz	"base91"

L_.str.2:                               ## @.str.2
	.asciz	"punycode"

	.comm	_s,16,3                         ## @s
L_.str.3:                               ## @.str.3
	.asciz	"Invalid IV.\n"

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

L_.str.5:                               ## @.str.5
	.asciz	"Unknown %s algorithm '%s'\n"

L_.str.6:                               ## @.str.6
	.asciz	"encryption"

L_.str.7:                               ## @.str.7
	.asciz	"decryption"

L_.str.8:                               ## @.str.8
	.asciz	"%s key not defined. Use -S [key]\n"

L_.str.9:                               ## @.str.9
	.asciz	"Encryption"

L_.str.10:                              ## @.str.10
	.asciz	"Decryption"

	.no_dead_strip	_encrypt_or_decrypt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function encrypt_or_decrypt
_encrypt_or_decrypt:                    ; @encrypt_or_decrypt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x21, x5
	mov	x22, x4
	mov	x19, x3
	mov	x20, x2
	mov	x24, x1
	mov	x25, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x25
	bl	_strcmp
	cbz	w0, LBB0_5
; %bb.1:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x25
	bl	_strcmp
	cbz	w0, LBB0_5
; %bb.2:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x25
	bl	_strcmp
	cbz	w0, LBB0_5
; %bb.3:
Lloh6:
	adrp	x8, _s@GOTPAGE
Lloh7:
	ldr	x8, [x8, _s@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x8, #1
	b.ge	LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, l_.str.10@PAGE
Lloh10:
	add	x8, x8, l_.str.10@PAGEOFF
Lloh11:
	adrp	x9, l_.str.9@PAGE
Lloh12:
	add	x9, x9, l_.str.9@PAGEOFF
	cmp	w24, #0
	csel	x8, x9, x8, eq
	str	x8, [sp]
Lloh13:
	adrp	x0, l_.str.8@PAGE
Lloh14:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_eprintf
	b	LBB0_12
LBB0_5:
	bl	_r_crypto_new
	mov	x23, x0
	mov	x1, x25
	bl	_r_crypto_use
	cbz	x0, LBB0_11
; %bb.6:
Lloh15:
	adrp	x8, _s@GOTPAGE
Lloh16:
	ldr	x8, [x8, _s@GOTPAGEOFF]
	ldr	w1, [x8, #8]
	ldr	x2, [x8]
	mov	x0, x23
	mov	w3, #0
	mov	x4, x24
	bl	_r_crypto_set_key
	cbz	x0, LBB0_13
; %bb.7:
	cbz	x22, LBB0_9
; %bb.8:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	bl	_r_crypto_set_iv
	cbz	w0, LBB0_14
LBB0_9:
	mov	x0, x23
	mov	x1, x20
	mov	x2, x19
	bl	_r_crypto_update
	mov	x0, x23
	mov	x1, #0
	mov	w2, #0
	bl	_r_crypto_final
	str	wzr, [sp, #28]
	add	x1, sp, #28
	mov	x0, x23
	bl	_r_crypto_get_output
	cbz	x0, LBB0_16
; %bb.10:
	mov	x19, x0
	ldr	w2, [sp, #28]
	mov	w0, #1
	mov	x1, x19
	bl	_write
	mov	x0, x19
	bl	_free
	b	LBB0_16
LBB0_11:
Lloh17:
	adrp	x8, l_.str.7@PAGE
Lloh18:
	add	x8, x8, l_.str.7@PAGEOFF
Lloh19:
	adrp	x9, l_.str.6@PAGE
Lloh20:
	add	x9, x9, l_.str.6@PAGEOFF
	cmp	w24, #0
	csel	x8, x9, x8, eq
	stp	x8, x25, [sp]
Lloh21:
	adrp	x0, l_.str.5@PAGE
Lloh22:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_eprintf
	mov	x0, x23
	bl	_r_crypto_free
LBB0_12:
	mov	w0, #1
	b	LBB0_17
LBB0_13:
Lloh23:
	adrp	x0, l_.str.4@PAGE
Lloh24:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_15
LBB0_14:
Lloh25:
	adrp	x0, l_.str.3@PAGE
Lloh26:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_15:
	bl	_eprintf
LBB0_16:
	mov	w0, #0
LBB0_17:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"base64"

l_.str.1:                               ; @.str.1
	.asciz	"base91"

l_.str.2:                               ; @.str.2
	.asciz	"punycode"

	.comm	_s,16,3                         ; @s
l_.str.3:                               ; @.str.3
	.asciz	"Invalid IV.\n"

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

l_.str.5:                               ; @.str.5
	.asciz	"Unknown %s algorithm '%s'\n"

l_.str.6:                               ; @.str.6
	.asciz	"encryption"

l_.str.7:                               ; @.str.7
	.asciz	"decryption"

l_.str.8:                               ; @.str.8
	.asciz	"%s key not defined. Use -S [key]\n"

l_.str.9:                               ; @.str.9
	.asciz	"Encryption"

l_.str.10:                              ; @.str.10
	.asciz	"Decryption"

	.no_dead_strip	_encrypt_or_decrypt
.subsections_via_symbols
