	.file	"447755.c"
	.intel_syntax noprefix
	.text
	.globl	error
	.type	error, @function
error:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	error, .-error
	.section	.rodata
	.align 8
.LC0:
	.string	"The incorrect bit was:%d\nTherefore "
.LC1:
	.string	"No errorn"
	.align 8
.LC2:
	.string	"Error is present\nCorrecting it"
.LC3:
	.string	"Corrected msg:%s\n"
	.text
	.globl	errorCorrection
	.type	errorCorrection, @function
errorCorrection:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	lea	edx, -48[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 5
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 7
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 9
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 11
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	add	eax, edx
	and	eax, 1
	test	eax, eax
	je	.L3
	add	DWORD PTR -4[rbp], 1
.L3:
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	lea	edx, -48[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 6
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 7
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 10
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 11
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	add	eax, edx
	and	eax, 1
	test	eax, eax
	je	.L4
	add	DWORD PTR -4[rbp], 2
.L4:
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	lea	edx, -48[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 5
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 6
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 7
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 12
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	add	eax, edx
	and	eax, 1
	test	eax, eax
	je	.L5
	add	DWORD PTR -4[rbp], 4
.L5:
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 8
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	lea	edx, -48[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 9
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 10
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 11
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 12
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	add	eax, edx
	and	eax, 1
	test	eax, eax
	je	.L6
	add	DWORD PTR -4[rbp], 8
.L6:
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -4[rbp], 0
	jne	.L7
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L11
.L7:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 48
	jne	.L9
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 49
	jmp	.L10
.L9:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 48
.L10:
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L11:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	errorCorrection, .-errorCorrection
	.section	.rodata
.LC4:
	.string	"Error Opening Socket"
.LC5:
	.string	"127.0.0.1"
.LC6:
	.string	"Error, no such host "
.LC7:
	.string	"Connection Failed"
.LC8:
	.string	"Error on reading"
.LC9:
	.string	"Server: %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
	sub	rsp, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -64[rbp], eax
	cmp	DWORD PTR -64[rbp], 0
	jns	.L13
	lea	rdi, .LC4[rip]
	call	error
.L13:
	lea	rdi, .LC5[rip]
	call	gethostbyname@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	jne	.L14
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 20
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	edi, 0
	call	exit@PLT
.L14:
	lea	rax, -48[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	WORD PTR -48[rbp], 2
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 20[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR [rax]
	lea	rcx, -48[rbp]
	add	rcx, 4
	mov	rsi, rax
	mov	rdi, rcx
	call	memmove@PLT
	mov	edi, 9054
	call	htons@PLT
	mov	WORD PTR -46[rbp], ax
	lea	rcx, -48[rbp]
	mov	eax, DWORD PTR -64[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	jns	.L15
	lea	rdi, .LC7[rip]
	call	error
.L15:
	lea	rcx, -22[rbp]
	mov	eax, DWORD PTR -64[rbp]
	mov	edx, 14
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -60[rbp], eax
	cmp	DWORD PTR -60[rbp], 0
	jns	.L16
	lea	rdi, .LC8[rip]
	call	error
.L16:
	lea	rax, -22[rbp]
	add	rax, 1
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -64[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rax, -22[rbp]
	mov	rdi, rax
	call	errorCorrection
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	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	"447755.c"
	.text
	.align	2
	.global	error
	.syntax unified
	.arm
	.fpu softvfp
	.type	error, %function
error:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	perror
	mov	r0, #1
	bl	exit
	.size	error, .-error
	.section	.rodata
	.align	2
.LC0:
	.ascii	"The incorrect bit was:%d\012Therefore \000"
	.align	2
.LC1:
	.ascii	"No errorn\000"
	.align	2
.LC2:
	.ascii	"Error is present\012Correcting it\000"
	.align	2
.LC3:
	.ascii	"Corrected msg:%s\012\000"
	.text
	.align	2
	.global	errorCorrection
	.syntax unified
	.arm
	.fpu softvfp
	.type	errorCorrection, %function
errorCorrection:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r2, r3, #48
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #5
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #7
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #9
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #11
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	add	r3, r2, r3
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L3
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L3:
	ldr	r3, [fp, #-16]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r2, r3, #48
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #6
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #7
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #10
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #11
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	add	r3, r2, r3
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L4
	ldr	r3, [fp, #-8]
	add	r3, r3, #2
	str	r3, [fp, #-8]
.L4:
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r2, r3, #48
	ldr	r3, [fp, #-16]
	add	r3, r3, #5
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #6
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #7
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #12
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	add	r3, r2, r3
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L5
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	str	r3, [fp, #-8]
.L5:
	ldr	r3, [fp, #-16]
	add	r3, r3, #8
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r2, r3, #48
	ldr	r3, [fp, #-16]
	add	r3, r3, #9
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #10
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #11
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #12
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	add	r3, r2, r3
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L6
	ldr	r3, [fp, #-8]
	add	r3, r3, #8
	str	r3, [fp, #-8]
.L6:
	ldr	r1, [fp, #-8]
	ldr	r0, .L12
	bl	printf
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L7
	ldr	r0, .L12+4
	bl	puts
	b	.L11
.L7:
	ldr	r0, .L12+8
	bl	puts
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #48
	bne	.L9
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #49
	strb	r2, [r3]
	b	.L10
.L9:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #48
	strb	r2, [r3]
.L10:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L12+12
	bl	printf
.L11:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	errorCorrection, .-errorCorrection
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Error Opening Socket\000"
	.align	2
.LC5:
	.ascii	"127.0.0.1\000"
	.align	2
.LC6:
	.ascii	"Error, no such host \000"
	.align	2
.LC7:
	.ascii	"Connection Failed\000"
	.align	2
.LC8:
	.ascii	"Error on reading\000"
	.align	2
.LC9:
	.ascii	"Server: %s\012\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bge	.L15
	ldr	r0, .L21+4
	bl	error
.L15:
	ldr	r0, .L21+8
	bl	gethostbyname
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L16
	ldr	r3, .L21+12
	ldr	r3, [r3]
	mov	r2, #20
	mov	r1, #1
	ldr	r0, .L21+16
	bl	fwrite
	mov	r0, #0
	bl	exit
.L16:
	sub	r3, fp, #40
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	str	r3, [r2, #12]
	mov	r3, #2
	strh	r3, [fp, #-40]	@ movhi
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #16]
	ldr	r1, [r3]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #12]
	mov	r2, r3
	sub	r3, fp, #40
	add	r3, r3, #4
	mov	r0, r3
	bl	memmove
	ldr	r0, .L21+20
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-38]	@ movhi
	sub	r3, fp, #40
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-52]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	bge	.L17
	ldr	r0, .L21+24
	bl	error
.L17:
	sub	r3, fp, #24
	mov	r2, #14
	mov	r1, r3
	ldr	r0, [fp, #-52]
	bl	read
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bge	.L18
	ldr	r0, .L21+28
	bl	error
.L18:
	sub	r3, fp, #24
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L21+32
	bl	printf
	ldr	r0, [fp, #-52]
	bl	close
	sub	r3, fp, #24
	mov	r0, r3
	bl	errorCorrection
	mov	r3, #0
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC10
	.word	.LC4
	.word	.LC5
	.word	stderr
	.word	.LC6
	.word	9054
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
