	.file	"extr_rahash2.c_encrypt_or_decrypt.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"encryption"
.LC1:
	.string	"decryption"
.LC2:
	.string	"Encryption"
.LC3:
	.string	"Decryption"
.LC4:
	.string	"base64"
.LC5:
	.string	"base91"
.LC6:
	.string	"punycode"
.LC7:
	.string	"Invalid IV.\n"
.LC8:
	.string	"Invalid key\n"
.LC9:
	.string	"Unknown %s algorithm '%s'\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC10:
	.string	"%s key not defined. Use -S [key]\n"
	.text
	.p2align 4
	.type	encrypt_or_decrypt, @function
encrypt_or_decrypt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, r9d
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, r8
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, esi
	lea	rsi, .LC4[rip]
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	DWORD PTR 12[rsp], ecx
	mov	ecx, 7
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	repz cmpsb
	seta	al
	sbb	al, 0
	test	al, al
	je	.L2
	mov	ecx, 7
	lea	rsi, .LC5[rip]
	mov	rdi, rbp
	repz cmpsb
	seta	al
	sbb	al, 0
	test	al, al
	jne	.L32
.L2:
	xor	eax, eax
	call	r_crypto_new@PLT
	mov	rsi, rbp
	mov	rdi, rax
	mov	r12, rax
	call	r_crypto_use@PLT
	test	rax, rax
	jne	.L33
	test	ebx, ebx
	lea	rax, .LC1[rip]
	mov	rdx, rbp
	mov	r13d, 1
	lea	rsi, .LC0[rip]
	lea	rdi, .LC9[rip]
	cmovne	rsi, rax
	xor	eax, eax
	call	eprintf@PLT
	mov	rdi, r12
	call	r_crypto_free@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L34
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L32:
	.cfi_restore_state
	mov	ecx, 9
	lea	rsi, .LC6[rip]
	mov	rdi, rbp
	repz cmpsb
	seta	al
	sbb	al, 0
	test	al, al
	je	.L2
	cmp	QWORD PTR s[rip], 0
	jg	.L2
	test	ebx, ebx
	lea	rax, .LC3[rip]
	lea	rsi, .LC2[rip]
	mov	r13d, 1
	cmovne	rsi, rax
	lea	rdi, .LC10[rip]
	xor	eax, eax
	call	eprintf@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L33:
	mov	rdx, QWORD PTR s[rip]
	xor	ecx, ecx
	mov	r8d, ebx
	mov	rdi, r12
	mov	esi, DWORD PTR s[rip+8]
	call	r_crypto_set_key@PLT
	test	rax, rax
	je	.L5
	test	r13, r13
	je	.L6
	mov	rsi, r13
	mov	edx, r14d
	mov	rdi, r12
	call	r_crypto_set_iv@PLT
	mov	r13d, eax
	test	eax, eax
	je	.L35
.L6:
	mov	edx, DWORD PTR 12[rsp]
	mov	rsi, r15
	mov	rdi, r12
	call	r_crypto_update@PLT
	xor	edx, edx
	xor	esi, esi
	mov	rdi, r12
	call	r_crypto_final@PLT
	lea	rsi, 20[rsp]
	mov	rdi, r12
	mov	DWORD PTR 20[rsp], 0
	call	r_crypto_get_output@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L30
	mov	edx, DWORD PTR 20[rsp]
	mov	edi, 1
	mov	rsi, rax
	call	write@PLT
	mov	rdi, rbp
	call	free@PLT
.L30:
	xor	r13d, r13d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L35:
	lea	rdi, .LC7[rip]
	xor	eax, eax
	call	eprintf@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	lea	rdi, .LC8[rip]
	xor	eax, eax
	call	eprintf@PLT
	jmp	.L30
.L34:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	encrypt_or_decrypt, .-encrypt_or_decrypt
	.comm	s,16,16
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_rahash2.c_encrypt_or_decrypt.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"encryption\000"
	.align	2
.LC1:
	.ascii	"decryption\000"
	.align	2
.LC2:
	.ascii	"Encryption\000"
	.align	2
.LC3:
	.ascii	"Decryption\000"
	.align	2
.LC4:
	.ascii	"base64\000"
	.align	2
.LC5:
	.ascii	"base91\000"
	.align	2
.LC6:
	.ascii	"punycode\000"
	.align	2
.LC7:
	.ascii	"Invalid IV.\012\000"
	.align	2
.LC8:
	.ascii	"Invalid key\012\000"
	.align	2
.LC9:
	.ascii	"Unknown %s algorithm '%s'\012\000"
	.align	2
.LC10:
	.ascii	"%s key not defined. Use -S [key]\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	encrypt_or_decrypt, %function
encrypt_or_decrypt:
	@ args = 12, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r7, r3
	ldr	r3, .L35
	sub	sp, sp, #20
	mov	r4, r0
	mov	r8, r1
	mov	r1, r0
	ldr	r0, .L35+4
	mov	r6, r2
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	strcmp
	cmp	r0, #0
	ldr	r9, [sp, #48]
	beq	.L2
	mov	r1, r4
	ldr	r0, .L35+8
	bl	strcmp
	cmp	r0, #0
	bne	.L31
.L2:
	bl	r_crypto_new
	mov	r1, r4
	mov	r5, r0
	bl	r_crypto_use
	cmp	r0, #0
	bne	.L32
	ldr	r3, .L35+12
	cmp	r8, #0
	mov	r2, r4
	ldr	r1, .L35+16
	ldr	r0, .L35+20
	movne	r1, r3
	bl	eprintf
	mov	r0, r5
	bl	r_crypto_free
	mov	r4, #1
.L1:
	ldr	r3, .L35
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L33
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L31:
	mov	r1, r4
	ldr	r0, .L35+24
	bl	strcmp
	cmp	r0, #0
	beq	.L2
	ldr	r3, .L35+28
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L2
	ldr	r3, .L35+32
	cmp	r8, #0
	ldr	r1, .L35+36
	ldr	r0, .L35+40
	movne	r1, r3
	bl	eprintf
	mov	r4, #1
	b	.L1
.L32:
	ldr	r3, .L35+28
	str	r8, [sp]
	ldr	r2, [r3]
	ldr	r1, [r3, #4]
	mov	r0, r5
	mov	r3, #0
	bl	r_crypto_set_key
	subs	r4, r0, #0
	beq	.L5
	cmp	r9, #0
	beq	.L6
	mov	r1, r9
	mov	r0, r5
	ldr	r2, [sp, #52]
	bl	r_crypto_set_iv
	subs	r4, r0, #0
	beq	.L34
.L6:
	mov	r2, r7
	mov	r1, r6
	mov	r0, r5
	bl	r_crypto_update
	mov	r2, #0
	mov	r0, r5
	mov	r1, r2
	bl	r_crypto_final
	mov	r3, #0
	mov	r0, r5
	add	r1, sp, #8
	str	r3, [sp, #8]
	bl	r_crypto_get_output
	subs	r4, r0, #0
	beq	.L8
	mov	r1, r4
	mov	r0, #1
	ldr	r2, [sp, #8]
	bl	write
	mov	r0, r4
	bl	free
.L8:
	mov	r4, #0
	b	.L1
.L34:
	ldr	r0, .L35+44
	bl	eprintf
	b	.L1
.L5:
	ldr	r0, .L35+48
	bl	eprintf
	b	.L1
.L33:
	bl	__stack_chk_fail
.L36:
	.align	2
.L35:
	.word	.LC11
	.word	.LC4
	.word	.LC5
	.word	.LC1
	.word	.LC0
	.word	.LC9
	.word	.LC6
	.word	s
	.word	.LC3
	.word	.LC2
	.word	.LC10
	.word	.LC7
	.word	.LC8
	.size	encrypt_or_decrypt, .-encrypt_or_decrypt
	.comm	s,8,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
