	.file	"238847.c"
	.intel_syntax noprefix
	.text
	.globl	encrypt
	.type	encrypt, @function
encrypt:
.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, 120
	.cfi_offset 3, -24
	mov	QWORD PTR -120[rbp], rdi
	mov	QWORD PTR -128[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -104[rbp], 0
	mov	DWORD PTR -100[rbp], 0
	mov	DWORD PTR -96[rbp], 0
	jmp	.L2
.L4:
	mov	eax, DWORD PTR -96[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jne	.L3
	mov	eax, DWORD PTR -96[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 95
.L3:
	add	DWORD PTR -96[rbp], 1
.L2:
	mov	eax, DWORD PTR -96[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	cmp	rbx, rax
	jb	.L4
	jmp	.L5
.L11:
	mov	eax, DWORD PTR -100[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jne	.L6
	add	DWORD PTR -100[rbp], 1
	jmp	.L5
.L6:
	mov	DWORD PTR -92[rbp], 0
	mov	DWORD PTR -88[rbp], 0
	jmp	.L7
.L9:
	mov	eax, DWORD PTR -100[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	lea	rcx, pad.1[rip]
	movzx	eax, BYTE PTR [rax+rcx]
	cmp	dl, al
	je	.L8
	add	DWORD PTR -92[rbp], 1
.L8:
	add	DWORD PTR -88[rbp], 1
.L7:
	mov	eax, DWORD PTR -88[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -128[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	cmp	rbx, rax
	jb	.L9
	mov	eax, DWORD PTR -92[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -128[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	cmp	rbx, rax
	jne	.L10
	mov	eax, DWORD PTR -100[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	lea	rcx, pad.1[rip]
	mov	BYTE PTR [rax+rcx], dl
	add	DWORD PTR -104[rbp], 1
.L10:
	add	DWORD PTR -100[rbp], 1
.L5:
	mov	eax, DWORD PTR -100[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -128[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	cmp	rbx, rax
	jb	.L11
	movabs	rax, 7523094288207667809
	movabs	rdx, 8101815670912281193
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], rdx
	movabs	rax, 8680537053616894577
	mov	QWORD PTR -48[rbp], rax
	mov	WORD PTR -40[rbp], 31353
	mov	DWORD PTR -100[rbp], 0
	jmp	.L12
.L17:
	mov	DWORD PTR -84[rbp], 0
	mov	DWORD PTR -80[rbp], 0
	jmp	.L13
.L15:
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	movzx	edx, BYTE PTR -64[rbp+rax]
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	lea	rcx, pad.1[rip]
	movzx	eax, BYTE PTR [rax+rcx]
	cmp	dl, al
	je	.L14
	add	DWORD PTR -84[rbp], 1
.L14:
	add	DWORD PTR -80[rbp], 1
.L13:
	cmp	DWORD PTR -80[rbp], 25
	jle	.L15
	cmp	DWORD PTR -84[rbp], 26
	jne	.L16
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	movzx	edx, BYTE PTR -64[rbp+rax]
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	lea	rcx, pad.1[rip]
	mov	BYTE PTR [rax+rcx], dl
	add	DWORD PTR -104[rbp], 1
.L16:
	add	DWORD PTR -100[rbp], 1
.L12:
	cmp	DWORD PTR -100[rbp], 25
	jle	.L17
	mov	DWORD PTR -76[rbp], 0
	jmp	.L18
.L24:
	mov	eax, DWORD PTR -76[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 95
	jne	.L19
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	lea	rdx, encrypted_message.0[rip]
	mov	BYTE PTR [rax+rdx], 32
	jmp	.L20
.L19:
	mov	DWORD PTR -72[rbp], 0
	mov	DWORD PTR -68[rbp], 0
	jmp	.L21
.L23:
	mov	eax, DWORD PTR -76[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	movzx	eax, BYTE PTR -64[rbp+rax]
	cmp	dl, al
	jne	.L22
	mov	eax, DWORD PTR -68[rbp]
	mov	DWORD PTR -72[rbp], eax
.L22:
	add	DWORD PTR -68[rbp], 1
.L21:
	mov	eax, DWORD PTR -68[rbp]
	movsx	rbx, eax
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L23
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rdx, pad.1[rip]
	movzx	edx, BYTE PTR [rax+rdx]
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	lea	rcx, encrypted_message.0[rip]
	mov	BYTE PTR [rax+rcx], dl
.L20:
	add	DWORD PTR -76[rbp], 1
.L18:
	mov	eax, DWORD PTR -76[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	cmp	rbx, rax
	jb	.L24
	lea	rax, encrypted_message.0[rip]
	mov	rsi, QWORD PTR -24[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	encrypt, .-encrypt
	.section	.rodata
.LC0:
	.string	"Enter the plaintext   : "
.LC1:
	.string	"Enter the keyword     : "
.LC2:
	.string	"The encrypted text is : %s\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 224
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -224[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	fgets@PLT
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -112[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	fgets@PLT
	lea	rdx, -112[rbp]
	lea	rax, -224[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	encrypt
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.local	pad.1
	.comm	pad.1,100,32
	.local	encrypted_message.0
	.comm	encrypted_message.0,100,32
	.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	"238847.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"abcdefghijklmnopqrstuvwxyz"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	encrypt
	.syntax unified
	.arm
	.fpu softvfp
	.type	encrypt, %function
encrypt:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	str	r0, [fp, #-80]
	str	r1, [fp, #-84]
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-76]
	mov	r3, #0
	str	r3, [fp, #-72]
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L2
.L4:
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-80]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L3
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-80]
	add	r3, r2, r3
	mov	r2, #95
	strb	r2, [r3]
.L3:
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L2:
	ldr	r0, [fp, #-80]
	bl	strlen
	mov	r3, r0
	sub	r2, r3, #1
	ldr	r3, [fp, #-68]
	cmp	r2, r3
	bhi	.L4
	b	.L5
.L11:
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L6
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
	b	.L5
.L6:
	mov	r3, #0
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L7
.L9:
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r1, .L27+4
	ldr	r3, [fp, #-60]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L8
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L8:
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L7:
	ldr	r0, [fp, #-84]
	bl	strlen
	mov	r3, r0
	sub	r2, r3, #1
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	bhi	.L9
	ldr	r0, [fp, #-84]
	bl	strlen
	mov	r3, r0
	sub	r2, r3, #1
	ldr	r3, [fp, #-64]
	cmp	r2, r3
	bne	.L10
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r2, .L27+4
	ldr	r3, [fp, #-76]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L10:
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L5:
	ldr	r0, [fp, #-84]
	bl	strlen
	mov	r3, r0
	sub	r2, r3, #1
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	bhi	.L11
	ldr	r3, .L27+8
	sub	ip, fp, #36
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stmia	ip!, {r0, r1}
	strh	r2, [ip]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-72]
	b	.L12
.L17:
	mov	r3, #0
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L13
.L15:
	sub	r2, fp, #36
	ldr	r3, [fp, #-72]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r1, .L27+4
	ldr	r3, [fp, #-52]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L14
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L14:
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L13:
	ldr	r3, [fp, #-52]
	cmp	r3, #25
	ble	.L15
	ldr	r3, [fp, #-56]
	cmp	r3, #26
	bne	.L16
	sub	r2, fp, #36
	ldr	r3, [fp, #-72]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r2, .L27+4
	ldr	r3, [fp, #-76]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L16:
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L12:
	ldr	r3, [fp, #-72]
	cmp	r3, #25
	ble	.L17
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L18
.L24:
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-80]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #95
	bne	.L19
	ldr	r2, .L27+12
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	mov	r2, #32
	strb	r2, [r3]
	b	.L20
.L19:
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L21
.L23:
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-80]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	sub	r1, fp, #36
	ldr	r3, [fp, #-40]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L22
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-44]
.L22:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L21:
	sub	r3, fp, #36
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	bhi	.L23
	ldr	r2, .L27+4
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r2, .L27+12
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
.L20:
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L18:
	ldr	r0, [fp, #-80]
	bl	strlen
	mov	r3, r0
	sub	r2, r3, #1
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	bhi	.L24
	ldr	r3, .L27+12
	ldr	r2, .L27
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L26
	bl	__stack_chk_fail
.L26:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC1
	.word	pad.5300
	.word	.LC0
	.word	encrypted_message.5299
	.size	encrypt, .-encrypt
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Enter the plaintext   : \000"
	.align	2
.LC3:
	.ascii	"Enter the keyword     : \000"
	.align	2
.LC4:
	.ascii	"The encrypted text is : %s\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 208
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #208
	ldr	r3, .L32
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L32+4
	bl	printf
	ldr	r3, .L32+8
	ldr	r2, [r3]
	sub	r3, fp, #208
	mov	r1, #100
	mov	r0, r3
	bl	fgets
	ldr	r0, .L32+12
	bl	printf
	ldr	r3, .L32+8
	ldr	r2, [r3]
	sub	r3, fp, #108
	mov	r1, #100
	mov	r0, r3
	bl	fgets
	sub	r2, fp, #108
	sub	r3, fp, #208
	mov	r1, r2
	mov	r0, r3
	bl	encrypt
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L32+16
	bl	printf
	mov	r3, #0
	ldr	r2, .L32
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L31
	bl	__stack_chk_fail
.L31:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC5
	.word	.LC2
	.word	stdin
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.local	pad.5300
	.comm	pad.5300,100,4
	.local	encrypted_message.5299
	.comm	encrypted_message.5299,100,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
