	.file	"830467.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, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	error, .-error
	.globl	exitSmoothly
	.type	exitSmoothly, @function
exitSmoothly:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	exitSmoothly, .-exitSmoothly
	.section	.rodata
.LC0:
	.string	"usage %s hostname port\n"
.LC1:
	.string	"ERROR opening socket"
.LC2:
	.string	"ERROR, no such host\n"
.LC3:
	.string	"ERROR connecting"
.LC4:
	.string	"ERROR read"
	.align 8
.LC5:
	.string	"You have to think of a word starting on the first letter of this word: %s\n"
.LC6:
	.string	"Please give a word:"
.LC7:
	.string	"%s"
	.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, 1120
	mov	DWORD PTR -1108[rbp], edi
	mov	QWORD PTR -1120[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1100[rbp], 0
	mov	DWORD PTR -1096[rbp], 0
	mov	DWORD PTR -1092[rbp], 0
	mov	DWORD PTR -1088[rbp], 0
	mov	DWORD PTR -1084[rbp], 0
	mov	WORD PTR -1048[rbp], 35
	mov	DWORD PTR -1046[rbp], 1886352467
	mov	WORD PTR -1042[rbp], 10
	cmp	DWORD PTR -1108[rbp], 2
	jg	.L4
	mov	rax, QWORD PTR -1120[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 0
	call	exit@PLT
.L4:
	mov	rax, QWORD PTR -1120[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -1092[rbp], eax
	mov	rax, QWORD PTR -1120[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	gethostbyname@PLT
	mov	QWORD PTR -1080[rbp], rax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -1100[rbp], eax
	cmp	DWORD PTR -1100[rbp], 0
	jns	.L5
	lea	rdi, .LC1[rip]
	call	error
.L5:
	cmp	QWORD PTR -1080[rbp], 0
	jne	.L6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 20
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	edi, 0
	call	exit@PLT
.L6:
	lea	rax, -1072[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	WORD PTR -1072[rbp], 2
	mov	rax, QWORD PTR -1080[rbp]
	mov	eax, DWORD PTR 20[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -1080[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR [rax]
	lea	rcx, -1072[rbp]
	add	rcx, 4
	mov	rsi, rax
	mov	rdi, rcx
	call	memmove@PLT
	mov	eax, DWORD PTR -1092[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -1070[rbp], ax
	lea	rcx, -1072[rbp]
	mov	eax, DWORD PTR -1100[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	jns	.L13
	lea	rdi, .LC3[rip]
	call	error
.L13:
	lea	rax, -1040[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 128
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	lea	rcx, -1040[rbp]
	mov	eax, DWORD PTR -1100[rbp]
	mov	edx, 1023
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	test	rax, rax
	jns	.L8
	lea	rdi, .LC4[rip]
	call	error
.L8:
	lea	rcx, -1040[rbp]
	lea	rax, -1046[rbp]
	mov	edx, 6
	mov	rsi, rcx
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	je	.L17
	movzx	edx, BYTE PTR -1040[rbp]
	movzx	eax, BYTE PTR -1048[rbp]
	cmp	dl, al
	jne	.L11
	lea	rax, -1040[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rax, -1040[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 128
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	lea	rax, -1040[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rsi, -1040[rbp]
	mov	eax, DWORD PTR -1100[rbp]
	mov	ecx, 0
	mov	edx, 1023
	mov	edi, eax
	call	send@PLT
	mov	edi, 10
	call	putchar@PLT
	jmp	.L12
.L11:
	lea	rax, -1040[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L12
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	puts@PLT
.L12:
	lea	rax, -1040[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 128
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	jmp	.L13
.L17:
	nop
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	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	"830467.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, #0
	bl	exit
	.size	error, .-error
	.align	2
	.global	exitSmoothly
	.syntax unified
	.arm
	.fpu softvfp
	.type	exitSmoothly, %function
exitSmoothly:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	exitSmoothly, .-exitSmoothly
	.section	.rodata
	.align	2
.LC1:
	.ascii	"usage %s hostname port\012\000"
	.align	2
.LC2:
	.ascii	"ERROR opening socket\000"
	.align	2
.LC3:
	.ascii	"ERROR, no such host\012\000"
	.align	2
.LC4:
	.ascii	"ERROR connecting\000"
	.align	2
.LC5:
	.ascii	"ERROR read\000"
	.align	2
.LC6:
	.ascii	"You have to think of a word starting on the first l"
	.ascii	"etter of this word: %s\012\000"
	.align	2
.LC7:
	.ascii	"Please give a word:\000"
	.align	2
.LC8:
	.ascii	"%s\000"
	.align	2
.LC0:
	.ascii	"Stop\012\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1088
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1088
	str	r0, [fp, #-1088]
	str	r1, [fp, #-1092]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1084]
	mov	r3, #0
	str	r3, [fp, #-1080]
	mov	r3, #0
	str	r3, [fp, #-1076]
	mov	r3, #0
	str	r3, [fp, #-1072]
	mov	r3, #0
	str	r3, [fp, #-1068]
	sub	r3, fp, #4
	sub	r3, r3, #1040
	mov	r2, #35
	strh	r2, [r3]	@ movhi
	ldr	r2, .L18+4
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strh	r1, [r3]	@ movhi
	ldr	r3, [fp, #-1088]
	cmp	r3, #2
	bgt	.L4
	ldr	r3, .L18+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-1092]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L18+12
	bl	fprintf
	mov	r0, #0
	bl	exit
.L4:
	ldr	r3, [fp, #-1092]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-1076]
	ldr	r3, [fp, #-1092]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	gethostbyname
	str	r0, [fp, #-1064]
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-1084]
	ldr	r3, [fp, #-1084]
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L18+16
	bl	error
.L5:
	ldr	r3, [fp, #-1064]
	cmp	r3, #0
	bne	.L6
	ldr	r3, .L18+8
	ldr	r3, [r3]
	mov	r2, #20
	mov	r1, #1
	ldr	r0, .L18+20
	bl	fwrite
	mov	r0, #0
	bl	exit
.L6:
	sub	r3, fp, #1056
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	str	r3, [r2, #12]
	sub	r3, fp, #4
	sub	r3, r3, #1056
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-1064]
	ldr	r3, [r3, #16]
	ldr	r1, [r3]
	ldr	r3, [fp, #-1064]
	ldr	r3, [r3, #12]
	mov	r2, r3
	sub	r3, fp, #1056
	sub	r3, r3, #4
	add	r3, r3, #4
	mov	r0, r3
	bl	memmove
	ldr	r3, [fp, #-1076]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4
	sub	r3, r3, #1056
	strh	r2, [r3, #2]	@ movhi
	sub	r3, fp, #1056
	sub	r3, r3, #4
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-1084]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	bge	.L13
	ldr	r0, .L18+24
	bl	error
.L13:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	mov	r3, #1024
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, .L18+28
	mov	r1, r3
	ldr	r0, [fp, #-1084]
	bl	read
	mov	r3, r0
	cmp	r3, #0
	bge	.L8
	ldr	r0, .L18+32
	bl	error
.L8:
	sub	r1, fp, #1024
	sub	r1, r1, #4
	sub	r1, r1, #4
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r2, #6
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L17
	ldrb	r2, [fp, #-1032]	@ zero_extendqisi2
	ldrb	r3, [fp, #-1044]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L11
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L18+36
	bl	printf
	ldr	r0, .L18+40
	bl	puts
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	mov	r3, #1024
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L18+44
	bl	__isoc99_scanf
	sub	r1, fp, #1024
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	ldr	r2, .L18+28
	ldr	r0, [fp, #-1084]
	bl	send
	mov	r0, #10
	bl	putchar
	b	.L12
.L11:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L12
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	puts
.L12:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	mov	r3, #1024
	mov	r2, r3
	mov	r1, #0
	bl	memset
	b	.L13
.L17:
	nop
	mov	r3, #0
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC9
	.word	.LC0
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	1023
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
