	.file	"843574.c"
	.intel_syntax noprefix
	.text
	.globl	t
	.bss
	.align 32
	.type	t, @object
	.size	t, 128
t:
	.zero	128
	.globl	cs
	.align 32
	.type	cs, @object
	.size	cs, 128
cs:
	.zero	128
	.globl	g
	.data
	.align 16
	.type	g, @object
	.size	g, 18
g:
	.string	"10001000000100001"
	.globl	a
	.bss
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.zero	4
	.globl	e
	.align 4
	.type	e, @object
	.size	e, 4
e:
	.zero	4
	.globl	c
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.text
	.globl	xor
	.type	xor, @function
xor:
.LFB0:
	.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, 8
	.cfi_offset 3, -24
	mov	DWORD PTR c[rip], 1
	jmp	.L2
.L5:
	mov	eax, DWORD PTR c[rip]
	cdqe
	lea	rdx, cs[rip]
	movzx	edx, BYTE PTR [rax+rdx]
	mov	eax, DWORD PTR c[rip]
	cdqe
	lea	rcx, g[rip]
	movzx	eax, BYTE PTR [rax+rcx]
	cmp	dl, al
	jne	.L3
	mov	ecx, 48
	jmp	.L4
.L3:
	mov	ecx, 49
.L4:
	mov	eax, DWORD PTR c[rip]
	cdqe
	lea	rdx, cs[rip]
	mov	BYTE PTR [rax+rdx], cl
	mov	eax, DWORD PTR c[rip]
	add	eax, 1
	mov	DWORD PTR c[rip], eax
.L2:
	mov	eax, DWORD PTR c[rip]
	movsx	rbx, eax
	lea	rdi, g[rip]
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L5
	nop
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	xor, .-xor
	.globl	crc
	.type	crc, @function
crc:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	DWORD PTR e[rip], 0
	jmp	.L7
.L8:
	mov	eax, DWORD PTR e[rip]
	mov	ecx, DWORD PTR e[rip]
	cdqe
	lea	rdx, t[rip]
	movzx	edx, BYTE PTR [rax+rdx]
	movsx	rax, ecx
	lea	rcx, cs[rip]
	mov	BYTE PTR [rax+rcx], dl
	mov	eax, DWORD PTR e[rip]
	add	eax, 1
	mov	DWORD PTR e[rip], eax
.L7:
	mov	eax, DWORD PTR e[rip]
	movsx	rbx, eax
	lea	rdi, g[rip]
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L8
.L12:
	movzx	eax, BYTE PTR cs[rip]
	cmp	al, 49
	jne	.L9
	mov	eax, 0
	call	xor
.L9:
	mov	DWORD PTR c[rip], 0
	jmp	.L10
.L11:
	mov	eax, DWORD PTR c[rip]
	add	eax, 1
	mov	ecx, DWORD PTR c[rip]
	cdqe
	lea	rdx, cs[rip]
	movzx	edx, BYTE PTR [rax+rdx]
	movsx	rax, ecx
	lea	rcx, cs[rip]
	mov	BYTE PTR [rax+rcx], dl
	mov	eax, DWORD PTR c[rip]
	add	eax, 1
	mov	DWORD PTR c[rip], eax
.L10:
	mov	eax, DWORD PTR c[rip]
	movsx	rbx, eax
	lea	rdi, g[rip]
	call	strlen@PLT
	sub	rax, 1
	cmp	rbx, rax
	jb	.L11
	mov	eax, DWORD PTR e[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR e[rip], edx
	mov	ecx, DWORD PTR c[rip]
	cdqe
	lea	rdx, t[rip]
	movzx	edx, BYTE PTR [rax+rdx]
	movsx	rax, ecx
	lea	rcx, cs[rip]
	mov	BYTE PTR [rax+rcx], dl
	mov	eax, DWORD PTR e[rip]
	movsx	rbx, eax
	mov	eax, DWORD PTR a[rip]
	movsx	r12, eax
	lea	rdi, g[rip]
	call	strlen@PLT
	add	rax, r12
	sub	rax, 1
	cmp	rbx, rax
	jbe	.L12
	nop
	nop
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	crc, .-crc
	.section	.rodata
.LC0:
	.string	"\nEnter poly : "
.LC1:
	.string	"%s"
	.align 8
.LC2:
	.string	"\nGenerating Polynomial is : %s"
.LC3:
	.string	"\nModified t[u] is :  %s"
.LC4:
	.string	"\nChecksum is : %s"
.LC5:
	.string	"\nFinal Codeword is : %s"
	.align 8
.LC6:
	.string	"\nTest Error detection 0(yes) 1(no) ? : "
.LC7:
	.string	"%d"
	.align 8
.LC8:
	.string	"Enter position where error is to inserted : "
.LC9:
	.string	"Errorneous data   : %s\n"
.LC10:
	.string	"Error detected."
.LC11:
	.string	"No Error Detected."
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, t[rip]
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rsi, g[rip]
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, t[rip]
	call	strlen@PLT
	mov	DWORD PTR a[rip], eax
	mov	eax, DWORD PTR a[rip]
	mov	DWORD PTR e[rip], eax
	jmp	.L14
.L15:
	mov	eax, DWORD PTR e[rip]
	cdqe
	lea	rdx, t[rip]
	mov	BYTE PTR [rax+rdx], 48
	mov	eax, DWORD PTR e[rip]
	add	eax, 1
	mov	DWORD PTR e[rip], eax
.L14:
	mov	eax, DWORD PTR e[rip]
	movsx	rbx, eax
	mov	eax, DWORD PTR a[rip]
	movsx	r12, eax
	lea	rdi, g[rip]
	call	strlen@PLT
	add	rax, r12
	sub	rax, 1
	cmp	rbx, rax
	jb	.L15
	lea	rsi, t[rip]
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	crc
	lea	rsi, cs[rip]
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR a[rip]
	mov	DWORD PTR e[rip], eax
	jmp	.L16
.L17:
	mov	eax, DWORD PTR e[rip]
	mov	edx, DWORD PTR a[rip]
	sub	eax, edx
	mov	ecx, DWORD PTR e[rip]
	cdqe
	lea	rdx, cs[rip]
	movzx	edx, BYTE PTR [rax+rdx]
	movsx	rax, ecx
	lea	rcx, t[rip]
	mov	BYTE PTR [rax+rcx], dl
	mov	eax, DWORD PTR e[rip]
	add	eax, 1
	mov	DWORD PTR e[rip], eax
.L16:
	mov	eax, DWORD PTR e[rip]
	movsx	rbx, eax
	mov	eax, DWORD PTR a[rip]
	movsx	r12, eax
	lea	rdi, g[rip]
	call	strlen@PLT
	add	rax, r12
	sub	rax, 1
	cmp	rbx, rax
	jb	.L17
	lea	rsi, t[rip]
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, e[rip]
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR e[rip]
	test	eax, eax
	jne	.L18
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, e[rip]
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR e[rip]
	cdqe
	lea	rdx, t[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 48
	jne	.L19
	mov	ecx, 49
	jmp	.L20
.L19:
	mov	ecx, 48
.L20:
	mov	eax, DWORD PTR e[rip]
	cdqe
	lea	rdx, t[rip]
	mov	BYTE PTR [rax+rdx], cl
	lea	rsi, t[rip]
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
.L18:
	mov	eax, 0
	call	crc
	mov	DWORD PTR e[rip], 0
	jmp	.L21
.L23:
	mov	eax, DWORD PTR e[rip]
	add	eax, 1
	mov	DWORD PTR e[rip], eax
.L21:
	mov	eax, DWORD PTR e[rip]
	movsx	rbx, eax
	lea	rdi, g[rip]
	call	strlen@PLT
	sub	rax, 1
	cmp	rbx, rax
	jnb	.L22
	mov	eax, DWORD PTR e[rip]
	cdqe
	lea	rdx, cs[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 49
	jne	.L23
.L22:
	mov	eax, DWORD PTR e[rip]
	movsx	rbx, eax
	lea	rdi, g[rip]
	call	strlen@PLT
	sub	rax, 1
	cmp	rbx, rax
	jnb	.L24
	lea	rdi, .LC10[rip]
	call	puts@PLT
	jmp	.L25
.L24:
	lea	rdi, .LC11[rip]
	call	puts@PLT
.L25:
	mov	eax, 0
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	"843574.c"
	.text
	.comm	t,128,4
	.comm	cs,128,4
	.global	g
	.data
	.align	2
	.type	g, %object
	.size	g, 18
g:
	.ascii	"10001000000100001\000"
	.comm	a,4,4
	.comm	e,4,4
	.comm	c,4,4
	.text
	.align	2
	.global	xor
	.syntax unified
	.arm
	.fpu softvfp
	.type	xor, %function
xor:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L6
	mov	r2, #1
	str	r2, [r3]
	b	.L2
.L5:
	ldr	r3, .L6
	ldr	r3, [r3]
	ldr	r2, .L6+4
	ldrb	r2, [r2, r3]	@ zero_extendqisi2
	ldr	r3, .L6
	ldr	r3, [r3]
	ldr	r1, .L6+8
	ldrb	r3, [r1, r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L3
	mov	r1, #48
	b	.L4
.L3:
	mov	r1, #49
.L4:
	ldr	r3, .L6
	ldr	r3, [r3]
	ldr	r2, .L6+4
	strb	r1, [r2, r3]
	ldr	r3, .L6
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L6
	str	r3, [r2]
.L2:
	ldr	r0, .L6+8
	bl	strlen
	mov	r3, r0
	ldr	r2, .L6
	ldr	r2, [r2]
	cmp	r3, r2
	bhi	.L5
	nop
	nop
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	c
	.word	cs
	.word	g
	.size	xor, .-xor
	.align	2
	.global	crc
	.syntax unified
	.arm
	.fpu softvfp
	.type	crc, %function
crc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L15
	mov	r2, #0
	str	r2, [r3]
	b	.L9
.L10:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, .L15
	ldr	r3, [r3]
	ldr	r1, .L15+4
	ldrb	r1, [r1, r2]	@ zero_extendqisi2
	ldr	r2, .L15+8
	strb	r1, [r2, r3]
	ldr	r3, .L15
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L15
	str	r3, [r2]
.L9:
	ldr	r0, .L15+12
	bl	strlen
	mov	r3, r0
	ldr	r2, .L15
	ldr	r2, [r2]
	cmp	r3, r2
	bhi	.L10
.L14:
	ldr	r3, .L15+8
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #49
	bne	.L11
	bl	xor
.L11:
	ldr	r3, .L15+16
	mov	r2, #0
	str	r2, [r3]
	b	.L12
.L13:
	ldr	r3, .L15+16
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, .L15+16
	ldr	r3, [r3]
	ldr	r1, .L15+8
	ldrb	r1, [r1, r2]	@ zero_extendqisi2
	ldr	r2, .L15+8
	strb	r1, [r2, r3]
	ldr	r3, .L15+16
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L15+16
	str	r3, [r2]
.L12:
	ldr	r0, .L15+12
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	ldr	r2, .L15+16
	ldr	r2, [r2]
	cmp	r3, r2
	bhi	.L13
	ldr	r3, .L15
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L15
	str	r2, [r1]
	ldr	r2, .L15+16
	ldr	r2, [r2]
	ldr	r1, .L15+4
	ldrb	r1, [r1, r3]	@ zero_extendqisi2
	ldr	r3, .L15+8
	strb	r1, [r3, r2]
	ldr	r0, .L15+12
	bl	strlen
	mov	r3, r0
	ldr	r2, .L15+20
	ldr	r2, [r2]
	add	r3, r3, r2
	sub	r3, r3, #1
	ldr	r2, .L15
	ldr	r2, [r2]
	cmp	r3, r2
	bcs	.L14
	nop
	nop
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	e
	.word	t
	.word	cs
	.word	g
	.word	c
	.word	a
	.size	crc, .-crc
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012Enter poly : \000"
	.align	2
.LC1:
	.ascii	"%s\000"
	.align	2
.LC2:
	.ascii	"\012Generating Polynomial is : %s\000"
	.align	2
.LC3:
	.ascii	"\012Modified t[u] is :  %s\000"
	.align	2
.LC4:
	.ascii	"\012Checksum is : %s\000"
	.align	2
.LC5:
	.ascii	"\012Final Codeword is : %s\000"
	.align	2
.LC6:
	.ascii	"\012Test Error detection 0(yes) 1(no) ? : \000"
	.align	2
.LC7:
	.ascii	"%d\000"
	.align	2
.LC8:
	.ascii	"Enter position where error is to inserted : \000"
	.align	2
.LC9:
	.ascii	"Errorneous data   : %s\012\000"
	.align	2
.LC10:
	.ascii	"Error detected.\000"
	.align	2
.LC11:
	.ascii	"No Error Detected.\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L31
	bl	printf
	ldr	r1, .L31+4
	ldr	r0, .L31+8
	bl	__isoc99_scanf
	ldr	r1, .L31+12
	ldr	r0, .L31+16
	bl	printf
	ldr	r0, .L31+4
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L31+20
	str	r2, [r3]
	ldr	r3, .L31+20
	ldr	r3, [r3]
	ldr	r2, .L31+24
	str	r3, [r2]
	b	.L18
.L19:
	ldr	r3, .L31+24
	ldr	r3, [r3]
	ldr	r2, .L31+4
	mov	r1, #48
	strb	r1, [r2, r3]
	ldr	r3, .L31+24
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L31+24
	str	r3, [r2]
.L18:
	ldr	r0, .L31+12
	bl	strlen
	mov	r3, r0
	ldr	r2, .L31+20
	ldr	r2, [r2]
	add	r3, r3, r2
	sub	r3, r3, #1
	ldr	r2, .L31+24
	ldr	r2, [r2]
	cmp	r3, r2
	bhi	.L19
	ldr	r1, .L31+4
	ldr	r0, .L31+28
	bl	printf
	bl	crc
	ldr	r1, .L31+32
	ldr	r0, .L31+36
	bl	printf
	ldr	r3, .L31+20
	ldr	r3, [r3]
	ldr	r2, .L31+24
	str	r3, [r2]
	b	.L20
.L21:
	ldr	r3, .L31+24
	ldr	r2, [r3]
	ldr	r3, .L31+20
	ldr	r3, [r3]
	sub	r2, r2, r3
	ldr	r3, .L31+24
	ldr	r3, [r3]
	ldr	r1, .L31+32
	ldrb	r1, [r1, r2]	@ zero_extendqisi2
	ldr	r2, .L31+4
	strb	r1, [r2, r3]
	ldr	r3, .L31+24
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L31+24
	str	r3, [r2]
.L20:
	ldr	r0, .L31+12
	bl	strlen
	mov	r3, r0
	ldr	r2, .L31+20
	ldr	r2, [r2]
	add	r3, r3, r2
	sub	r3, r3, #1
	ldr	r2, .L31+24
	ldr	r2, [r2]
	cmp	r3, r2
	bhi	.L21
	ldr	r1, .L31+4
	ldr	r0, .L31+40
	bl	printf
	ldr	r0, .L31+44
	bl	printf
	ldr	r1, .L31+24
	ldr	r0, .L31+48
	bl	__isoc99_scanf
	ldr	r3, .L31+24
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L22
	ldr	r0, .L31+52
	bl	printf
	ldr	r1, .L31+24
	ldr	r0, .L31+48
	bl	__isoc99_scanf
	ldr	r3, .L31+24
	ldr	r3, [r3]
	ldr	r2, .L31+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #48
	bne	.L23
	mov	r1, #49
	b	.L24
.L23:
	mov	r1, #48
.L24:
	ldr	r3, .L31+24
	ldr	r3, [r3]
	ldr	r2, .L31+4
	strb	r1, [r2, r3]
	ldr	r1, .L31+4
	ldr	r0, .L31+56
	bl	printf
.L22:
	bl	crc
	ldr	r3, .L31+24
	mov	r2, #0
	str	r2, [r3]
	b	.L25
.L27:
	ldr	r3, .L31+24
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L31+24
	str	r3, [r2]
.L25:
	ldr	r0, .L31+12
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	ldr	r2, .L31+24
	ldr	r2, [r2]
	cmp	r3, r2
	bls	.L26
	ldr	r3, .L31+24
	ldr	r3, [r3]
	ldr	r2, .L31+32
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #49
	bne	.L27
.L26:
	ldr	r0, .L31+12
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	ldr	r2, .L31+24
	ldr	r2, [r2]
	cmp	r3, r2
	bls	.L28
	ldr	r0, .L31+60
	bl	puts
	b	.L29
.L28:
	ldr	r0, .L31+64
	bl	puts
.L29:
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC0
	.word	t
	.word	.LC1
	.word	g
	.word	.LC2
	.word	a
	.word	e
	.word	.LC3
	.word	cs
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
