	.file	"393763.c"
	.intel_syntax noprefix
	.text
	.globl	xlat
	.data
	.align 16
	.type	xlat, @object
	.size	xlat, 26
xlat:
	.ascii	"dsfd;kfoA,.iyewrkldJKDHSUB"
	.globl	pw_str1
	.align 8
	.type	pw_str1, @object
	.size	pw_str1, 13
pw_str1:
	.string	" password 7 "
	.globl	pw_str2
	.align 16
	.type	pw_str2, @object
	.size	pw_str2, 19
pw_str2:
	.string	"enable password 7 "
	.globl	pw_str3
	.align 16
	.type	pw_str3, @object
	.size	pw_str3, 19
pw_str3:
	.string	"ip ftp password 7 "
	.globl	pw_str4
	.align 32
	.type	pw_str4, @object
	.size	pw_str4, 37
pw_str4:
	.string	" ip ospf message-digest-key 1 md5 7 "
	.globl	pname
	.bss
	.align 8
	.type	pname, @object
	.size	pname, 8
pname:
	.zero	8
	.text
	.globl	cdecrypt
	.type	cdecrypt, @function
cdecrypt:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -20[rbp], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	and	eax, 1
	test	rax, rax
	je	.L2
	mov	eax, -1
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	lea	edx, -48[rax]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	add	eax, edx
	sub	eax, 48
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 15
	ja	.L4
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	je	.L4
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	jne	.L5
.L4:
	mov	eax, -1
	jmp	.L3
.L5:
	mov	DWORD PTR -24[rbp], 2
	jmp	.L6
.L11:
	cmp	DWORD PTR -24[rbp], 2
	je	.L7
	mov	eax, DWORD PTR -24[rbp]
	and	eax, 1
	test	eax, eax
	jne	.L7
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -28[rbp], edx
	mov	edx, eax
	lea	rax, xlat[rip]
	movzx	eax, BYTE PTR [rdx+rax]
	mov	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	xor	edx, eax
	mov	eax, DWORD PTR -24[rbp]
	shr	eax
	sub	eax, 2
	mov	ecx, eax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	mov	DWORD PTR -20[rbp], 0
.L7:
	sal	DWORD PTR -20[rbp], 4
	call	__ctype_b_loc@PLT
	mov	rbx, QWORD PTR [rax]
	mov	edx, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	toupper@PLT
	mov	edx, eax
	mov	ecx, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rbx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	je	.L8
	mov	edx, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	edx, al
	mov	eax, DWORD PTR -20[rbp]
	add	eax, edx
	sub	eax, 48
	mov	DWORD PTR -20[rbp], eax
	jmp	.L9
.L8:
	mov	edx, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 64
	jle	.L10
	mov	edx, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 70
	jg	.L10
	mov	edx, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	edx, al
	mov	eax, DWORD PTR -20[rbp]
	add	eax, edx
	sub	eax, 55
	mov	DWORD PTR -20[rbp], eax
	jmp	.L9
.L10:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, DWORD PTR -24[rbp]
	cmp	rax, rdx
	je	.L9
	mov	eax, -1
	jmp	.L3
.L9:
	add	DWORD PTR -24[rbp], 1
.L6:
	mov	ebx, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jbe	.L11
	add	DWORD PTR -24[rbp], 1
	mov	eax, DWORD PTR -24[rbp]
	shr	eax
	mov	edx, eax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	eax, 0
.L3:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cdecrypt, .-cdecrypt
	.section	.rodata
	.align 8
.LC0:
	.string	"Usage: %s -p <encrypted password>\n"
	.align 8
.LC1:
	.string	"       %s <router config file> <output file>\n"
	.text
	.globl	usage
	.type	usage, @function
usage:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rdx, QWORD PTR pname[rip]
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rdx, QWORD PTR pname[rip]
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	usage, .-usage
	.section	.rodata
.LC2:
	.string	"Error.\n"
.LC3:
	.string	"password: %s\n"
.LC4:
	.string	"%s: unknow option."
.LC5:
	.string	"rt"
.LC6:
	.string	"wt"
.LC7:
	.string	"%s\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 408
	.cfi_offset 3, -24
	mov	DWORD PTR -404[rbp], edi
	mov	QWORD PTR -416[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR stdin[rip]
	mov	QWORD PTR -384[rbp], rax
	mov	rax, QWORD PTR stdout[rip]
	mov	QWORD PTR -376[rbp], rax
	mov	rax, QWORD PTR -416[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR pname[rip], rax
	cmp	DWORD PTR -404[rbp], 1
	jle	.L43
	cmp	DWORD PTR -404[rbp], 3
	jle	.L16
	mov	eax, 0
	call	usage
	mov	edi, 1
	call	exit@PLT
.L16:
	mov	rax, QWORD PTR -416[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L17
	mov	rax, QWORD PTR -416[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	eax, 104
	je	.L18
	cmp	eax, 112
	je	.L19
	jmp	.L46
.L18:
	mov	eax, 0
	call	usage
	jmp	.L21
.L19:
	lea	rax, -368[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	QWORD PTR 16[rax], 0
	mov	QWORD PTR 24[rax], 0
	mov	QWORD PTR 32[rax], 0
	mov	QWORD PTR 40[rax], 0
	mov	QWORD PTR 48[rax], 0
	mov	QWORD PTR 56[rax], 0
	mov	BYTE PTR 64[rax], 0
	mov	rax, QWORD PTR -416[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rdx, -368[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	cdecrypt
	test	eax, eax
	je	.L22
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 7
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L22:
	mov	rax, QWORD PTR stdout[rip]
	lea	rdx, -368[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L21
.L46:
	mov	rdx, QWORD PTR pname[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L21:
	mov	eax, 0
	jmp	.L44
.L17:
	mov	rax, QWORD PTR -416[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -384[rbp], rax
	cmp	QWORD PTR -384[rbp], 0
	jne	.L24
	mov	edi, 1
	call	exit@PLT
.L24:
	cmp	DWORD PTR -404[rbp], 2
	jle	.L43
	mov	rax, QWORD PTR -416[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -376[rbp], rax
	cmp	QWORD PTR -376[rbp], 0
	jne	.L43
	mov	edi, 1
	call	exit@PLT
.L43:
	mov	DWORD PTR -392[rbp], 0
	jmp	.L25
.L31:
	mov	rax, QWORD PTR -384[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -392[rbp]
	mov	BYTE PTR -288[rbp+rax], dl
	mov	eax, DWORD PTR -392[rbp]
	movzx	eax, BYTE PTR -288[rbp+rax]
	cmp	al, -1
	jne	.L26
	cmp	DWORD PTR -392[rbp], 0
	jne	.L47
	mov	rax, QWORD PTR -384[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -376[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	jmp	.L44
.L26:
	mov	eax, DWORD PTR -392[rbp]
	movzx	eax, BYTE PTR -288[rbp+rax]
	cmp	al, 13
	jne	.L29
	sub	DWORD PTR -392[rbp], 1
.L29:
	mov	eax, DWORD PTR -392[rbp]
	movzx	eax, BYTE PTR -288[rbp+rax]
	cmp	al, 10
	je	.L48
	add	DWORD PTR -392[rbp], 1
.L25:
	cmp	DWORD PTR -392[rbp], 255
	jbe	.L31
	jmp	.L28
.L47:
	nop
	jmp	.L28
.L48:
	nop
.L28:
	mov	DWORD PTR -388[rbp], 0
	mov	eax, DWORD PTR -392[rbp]
	mov	BYTE PTR -288[rbp+rax], 0
	lea	rdi, pw_str1[rip]
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -288[rbp]
	lea	rsi, pw_str1[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L32
	lea	rdi, pw_str1[rip]
	call	strlen@PLT
	mov	DWORD PTR -388[rbp], eax
.L32:
	lea	rdi, pw_str2[rip]
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -288[rbp]
	lea	rsi, pw_str2[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L33
	lea	rdi, pw_str2[rip]
	call	strlen@PLT
	mov	DWORD PTR -388[rbp], eax
.L33:
	lea	rdi, pw_str3[rip]
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -288[rbp]
	lea	rsi, pw_str3[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L34
	lea	rdi, pw_str3[rip]
	call	strlen@PLT
	mov	DWORD PTR -388[rbp], eax
.L34:
	lea	rdi, pw_str4[rip]
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -288[rbp]
	lea	rsi, pw_str4[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L35
	lea	rdi, pw_str4[rip]
	call	strlen@PLT
	mov	DWORD PTR -388[rbp], eax
.L35:
	cmp	DWORD PTR -388[rbp], 0
	jne	.L36
	mov	rax, QWORD PTR stdout[rip]
	lea	rdx, -288[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L37
.L36:
	lea	rax, -368[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	QWORD PTR 16[rax], 0
	mov	QWORD PTR 24[rax], 0
	mov	QWORD PTR 32[rax], 0
	mov	QWORD PTR 40[rax], 0
	mov	QWORD PTR 48[rax], 0
	mov	QWORD PTR 56[rax], 0
	mov	BYTE PTR 64[rax], 0
	lea	rdx, -288[rbp]
	mov	eax, DWORD PTR -388[rbp]
	add	rdx, rax
	lea	rax, -368[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	mov	eax, 0
	call	cdecrypt
	test	eax, eax
	je	.L38
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 7
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L38:
	mov	ebx, DWORD PTR -388[rbp]
	lea	rdi, pw_str1[rip]
	call	strlen@PLT
	cmp	rbx, rax
	jne	.L39
	mov	rax, QWORD PTR -376[rbp]
	mov	rsi, rax
	lea	rdi, pw_str1[rip]
	call	fputs@PLT
	jmp	.L40
.L39:
	mov	ebx, DWORD PTR -388[rbp]
	lea	rdi, pw_str2[rip]
	call	strlen@PLT
	cmp	rbx, rax
	jne	.L41
	mov	rax, QWORD PTR -376[rbp]
	mov	rsi, rax
	lea	rdi, pw_str2[rip]
	call	fputs@PLT
	jmp	.L40
.L41:
	mov	ebx, DWORD PTR -388[rbp]
	lea	rdi, pw_str3[rip]
	call	strlen@PLT
	cmp	rbx, rax
	jne	.L42
	mov	rax, QWORD PTR -376[rbp]
	mov	rsi, rax
	lea	rdi, pw_str3[rip]
	call	fputs@PLT
	jmp	.L40
.L42:
	mov	ebx, DWORD PTR -388[rbp]
	lea	rdi, pw_str4[rip]
	call	strlen@PLT
	cmp	rbx, rax
	jne	.L40
	mov	rax, QWORD PTR -376[rbp]
	mov	rsi, rax
	lea	rdi, pw_str4[rip]
	call	fputs@PLT
.L40:
	lea	rdx, -368[rbp]
	mov	rax, QWORD PTR -376[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L37:
	jmp	.L43
.L44:
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L45
	call	__stack_chk_fail@PLT
.L45:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"393763.c"
	.text
	.global	xlat
	.data
	.align	2
	.type	xlat, %object
	.size	xlat, 26
xlat:
	.ascii	"dsfd;kfoA,.iyewrkldJKDHSUB"
	.global	pw_str1
	.align	2
	.type	pw_str1, %object
	.size	pw_str1, 13
pw_str1:
	.ascii	" password 7 \000"
	.global	pw_str2
	.align	2
	.type	pw_str2, %object
	.size	pw_str2, 19
pw_str2:
	.ascii	"enable password 7 \000"
	.global	pw_str3
	.align	2
	.type	pw_str3, %object
	.size	pw_str3, 19
pw_str3:
	.ascii	"ip ftp password 7 \000"
	.global	pw_str4
	.align	2
	.type	pw_str4, %object
	.size	pw_str4, 37
pw_str4:
	.ascii	" ip ospf message-digest-key 1 md5 7 \000"
	.comm	pname,4,4
	.text
	.align	2
	.global	cdecrypt
	.syntax unified
	.arm
	.fpu softvfp
	.type	cdecrypt, %function
cdecrypt:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r0, [fp, #-32]
	bl	strlen
	mov	r3, r0
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L2
	mvn	r3, #0
	b	.L3
.L2:
	ldr	r3, [fp, #-32]
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r2, r3, #48
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r2, r3
	sub	r3, r3, #48
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #15
	bhi	.L4
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	beq	.L4
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	bne	.L5
.L4:
	mvn	r3, #0
	b	.L3
.L5:
	mov	r3, #2
	str	r3, [fp, #-20]
	b	.L6
.L11:
	ldr	r3, [fp, #-20]
	cmp	r3, #2
	beq	.L7
	ldr	r3, [fp, #-20]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L7
	ldr	r3, [fp, #-24]
	add	r2, r3, #1
	str	r2, [fp, #-24]
	ldr	r2, .L12
	ldrb	r1, [r2, r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-16]
	and	r2, r3, #255
	ldr	r3, [fp, #-20]
	lsr	r3, r3, #1
	sub	r3, r3, #2
	ldr	r0, [fp, #-36]
	add	r3, r0, r3
	eor	r2, r2, r1
	and	r2, r2, #255
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-16]
.L7:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #4
	str	r3, [fp, #-16]
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r4, [r3]
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	toupper
	mov	r1, r0
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	and	r2, r1, #255
	strb	r2, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r4, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	beq	.L8
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	sub	r3, r3, #48
	str	r3, [fp, #-16]
	b	.L9
.L8:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #64
	bls	.L10
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #70
	bhi	.L10
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	sub	r3, r3, #55
	str	r3, [fp, #-16]
	b	.L9
.L10:
	ldr	r0, [fp, #-32]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-20]
	cmp	r3, r2
	beq	.L9
	mvn	r3, #0
	b	.L3
.L9:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L6:
	ldr	r0, [fp, #-32]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-20]
	cmp	r3, r2
	bls	.L11
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	lsr	r3, r3, #1
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L13:
	.align	2
.L12:
	.word	xlat
	.size	cdecrypt, .-cdecrypt
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: %s -p <encrypted password>\012\000"
	.align	2
.LC1:
	.ascii	"       %s <router config file> <output file>\012\000"
	.text
	.align	2
	.global	usage
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L16
	ldr	r3, [r3]
	ldr	r2, .L16+4
	ldr	r2, [r2]
	ldr	r1, .L16+8
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L16
	ldr	r3, [r3]
	ldr	r2, .L16+4
	ldr	r2, [r2]
	ldr	r1, .L16+12
	mov	r0, r3
	bl	fprintf
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	stdout
	.word	pname
	.word	.LC0
	.word	.LC1
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Error.\012\000"
	.align	2
.LC3:
	.ascii	"password: %s\012\000"
	.align	2
.LC4:
	.ascii	"%s: unknow option.\000"
	.align	2
.LC5:
	.ascii	"rt\000"
	.align	2
.LC6:
	.ascii	"wt\000"
	.align	2
.LC7:
	.ascii	"%s\012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 360
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #360
	str	r0, [fp, #-360]
	str	r1, [fp, #-364]
	ldr	r3, .L50
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L50+4
	ldr	r3, [r3]
	str	r3, [fp, #-352]
	ldr	r3, .L50+8
	ldr	r3, [r3]
	str	r3, [fp, #-348]
	ldr	r3, [fp, #-364]
	ldr	r3, [r3]
	ldr	r2, .L50+12
	str	r3, [r2]
	ldr	r3, [fp, #-360]
	cmp	r3, #1
	ble	.L45
	ldr	r3, [fp, #-360]
	cmp	r3, #3
	ble	.L20
	bl	usage
	mov	r0, #1
	bl	exit
.L20:
	ldr	r3, [fp, #-364]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L21
	ldr	r3, [fp, #-364]
	add	r3, r3, #4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #104
	beq	.L22
	cmp	r3, #112
	beq	.L23
	b	.L47
.L22:
	bl	usage
	b	.L25
.L23:
	sub	r3, fp, #336
	mov	r0, r3
	mov	r3, #65
	mov	r2, r3
	mov	r1, #0
	bl	memset
	ldr	r3, [fp, #-364]
	add	r3, r3, #8
	ldr	r3, [r3]
	sub	r2, fp, #336
	mov	r1, r2
	mov	r0, r3
	bl	cdecrypt
	mov	r3, r0
	cmp	r3, #0
	beq	.L26
	ldr	r3, .L50+16
	ldr	r3, [r3]
	mov	r2, #7
	mov	r1, #1
	ldr	r0, .L50+20
	bl	fwrite
	mov	r0, #1
	bl	exit
.L26:
	ldr	r3, .L50+8
	ldr	r3, [r3]
	sub	r2, fp, #336
	ldr	r1, .L50+24
	mov	r0, r3
	bl	fprintf
	b	.L25
.L47:
	ldr	r3, .L50+16
	ldr	r3, [r3]
	ldr	r2, .L50+12
	ldr	r2, [r2]
	ldr	r1, .L50+28
	mov	r0, r3
	bl	fprintf
.L25:
	mov	r3, #0
	ldr	r2, .L50
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L46
	b	.L48
.L21:
	ldr	r3, [fp, #-364]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L50+32
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-352]
	ldr	r3, [fp, #-352]
	cmp	r3, #0
	bne	.L28
	mov	r0, #1
	bl	exit
.L28:
	ldr	r3, [fp, #-360]
	cmp	r3, #2
	ble	.L45
	ldr	r3, [fp, #-364]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L50+36
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-348]
	ldr	r3, [fp, #-348]
	cmp	r3, #0
	bne	.L45
	mov	r0, #1
	bl	exit
.L45:
	mov	r3, #0
	str	r3, [fp, #-344]
	b	.L29
.L33:
	ldr	r0, [fp, #-352]
	bl	fgetc
	mov	r3, r0
	and	r1, r3, #255
	sub	r2, fp, #268
	ldr	r3, [fp, #-344]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	sub	r2, fp, #268
	ldr	r3, [fp, #-344]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #13
	bne	.L30
	ldr	r3, [fp, #-344]
	sub	r3, r3, #1
	str	r3, [fp, #-344]
.L30:
	sub	r2, fp, #268
	ldr	r3, [fp, #-344]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L49
	ldr	r3, [fp, #-344]
	add	r3, r3, #1
	str	r3, [fp, #-344]
.L29:
	ldr	r3, [fp, #-344]
	cmp	r3, #255
	bls	.L33
	b	.L32
.L49:
	nop
.L32:
	mov	r3, #0
	str	r3, [fp, #-340]
	sub	r2, fp, #268
	ldr	r3, [fp, #-344]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r0, .L50+40
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #268
	ldr	r1, .L50+40
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L34
	ldr	r0, .L50+40
	bl	strlen
	str	r0, [fp, #-340]
.L34:
	ldr	r0, .L50+44
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #268
	ldr	r1, .L50+44
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L35
	ldr	r0, .L50+44
	bl	strlen
	str	r0, [fp, #-340]
.L35:
	ldr	r0, .L50+48
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #268
	ldr	r1, .L50+48
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L36
	ldr	r0, .L50+48
	bl	strlen
	str	r0, [fp, #-340]
.L36:
	ldr	r0, .L50+52
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #268
	ldr	r1, .L50+52
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L37
	ldr	r0, .L50+52
	bl	strlen
	str	r0, [fp, #-340]
.L37:
	ldr	r3, [fp, #-340]
	cmp	r3, #0
	bne	.L38
	ldr	r3, .L50+8
	ldr	r3, [r3]
	sub	r2, fp, #268
	ldr	r1, .L50+56
	mov	r0, r3
	bl	fprintf
	b	.L39
.L38:
	sub	r3, fp, #336
	mov	r0, r3
	mov	r3, #65
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r2, fp, #268
	ldr	r3, [fp, #-340]
	add	r3, r2, r3
	sub	r2, fp, #336
	mov	r1, r2
	mov	r0, r3
	bl	cdecrypt
	mov	r3, r0
	cmp	r3, #0
	beq	.L40
	ldr	r3, .L50+16
	ldr	r3, [r3]
	mov	r2, #7
	mov	r1, #1
	ldr	r0, .L50+20
	bl	fwrite
	mov	r0, #1
	bl	exit
.L40:
	ldr	r0, .L50+40
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-340]
	cmp	r3, r2
	bne	.L41
	ldr	r1, [fp, #-348]
	ldr	r0, .L50+40
	bl	fputs
	b	.L42
.L41:
	ldr	r0, .L50+44
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-340]
	cmp	r3, r2
	bne	.L43
	ldr	r1, [fp, #-348]
	ldr	r0, .L50+44
	bl	fputs
	b	.L42
.L43:
	ldr	r0, .L50+48
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-340]
	cmp	r3, r2
	bne	.L44
	ldr	r1, [fp, #-348]
	ldr	r0, .L50+48
	bl	fputs
	b	.L42
.L44:
	ldr	r0, .L50+52
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-340]
	cmp	r3, r2
	bne	.L42
	ldr	r1, [fp, #-348]
	ldr	r0, .L50+52
	bl	fputs
.L42:
	sub	r3, fp, #336
	mov	r2, r3
	ldr	r1, .L50+56
	ldr	r0, [fp, #-348]
	bl	fprintf
.L39:
	b	.L45
.L48:
	bl	__stack_chk_fail
.L46:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L51:
	.align	2
.L50:
	.word	.LC8
	.word	stdin
	.word	stdout
	.word	pname
	.word	stderr
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	pw_str1
	.word	pw_str2
	.word	pw_str3
	.word	pw_str4
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
