	.file	"216223.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"ABB %d\n"
	.align 8
.LC2:
	.string	"Erro ao enviar a resposta para o cliente !"
	.align 8
.LC1:
	.ascii	"HTTP/1.1 200 OK\n    Date: Mon, 26 Oct 2018 23:59:59 GMT\n  "
	.ascii	"  Server: Sam007 (Unix)  (Ubuntu/Linux)\n    Accept-Ran"
	.string	"ges: bytes\n    Content-Length: 170\n    Connection: close\n    Content-Type: text/html; charset=UTF-8\n\n    <!DOCTYPE html><html>\n    <head>\n    <title>FilaDeTarefas</title>\n    </head>\n    <body>\n    <h1>Conectado com Sucesso ! <h1>\n    </body>\n    </html>\r\n"
	.zero	655
	.text
	.globl	resposta_servidor
	.type	resposta_servidor, @function
resposta_servidor:
.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, 1072
	mov	DWORD PTR -1060[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -1060[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -1040[rbp]
	lea	rdx, .LC1[rip]
	mov	ecx, 46
	mov	rdi, rax
	mov	rsi, rdx
	rep movsq
	mov	rdx, rsi
	mov	rax, rdi
	movzx	ecx, BYTE PTR [rdx]
	mov	BYTE PTR [rax], cl
	lea	rdx, -671[rbp]
	mov	eax, 0
	mov	BYTE PTR [rdx], al
	add	rdx, 1
	mov	WORD PTR [rdx], ax
	add	rdx, 2
	mov	DWORD PTR [rdx], eax
	add	rdx, 4
	mov	ecx, 81
	mov	rdi, rdx
	rep stosq
	lea	rcx, -1040[rbp]
	mov	eax, DWORD PTR -1060[rbp]
	mov	edx, 1024
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -1044[rbp], eax
	cmp	DWORD PTR -1044[rbp], -1
	jne	.L4
	lea	rdi, .LC2[rip]
	call	perror@PLT
.L4:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	resposta_servidor, .-resposta_servidor
	.section	.rodata
.LC3:
	.string	"Servidor Aguardando"
.LC4:
	.string	"Mensagem Recebida:\n %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, 1088
	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 -1084[rbp], eax
	mov	WORD PTR -1072[rbp], 2
	mov	DWORD PTR -1068[rbp], 0
	mov	edi, 8001
	call	htons@PLT
	mov	WORD PTR -1070[rbp], ax
	mov	DWORD PTR -1080[rbp], 16
	mov	edx, DWORD PTR -1080[rbp]
	lea	rcx, -1072[rbp]
	mov	eax, DWORD PTR -1084[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	mov	eax, DWORD PTR -1084[rbp]
	mov	esi, 15
	mov	edi, eax
	call	listen@PLT
	mov	DWORD PTR -1088[rbp], 16
.L7:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdx, -1088[rbp]
	lea	rcx, -1056[rbp]
	mov	eax, DWORD PTR -1084[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -1076[rbp], eax
	call	fork@PLT
	test	eax, eax
	jne	.L6
	lea	rax, -1040[rbp]
	mov	rdx, rax
	mov	eax, 0
	mov	ecx, 126
	mov	rdi, rdx
	rep stosq
	mov	rdx, rdi
	mov	DWORD PTR [rdx], eax
	add	rdx, 4
	mov	WORD PTR [rdx], ax
	add	rdx, 2
	lea	rcx, -1040[rbp]
	mov	eax, DWORD PTR -1076[rbp]
	mov	edx, 1024
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	lea	rax, -1040[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -1076[rbp]
	mov	edi, eax
	call	resposta_servidor
	mov	eax, DWORD PTR -1076[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 0
	call	exit@PLT
.L6:
	mov	eax, DWORD PTR -1076[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L7
	.cfi_endproc
.LFE7:
	.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	"216223.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"ABB %d\012\000"
	.align	2
.LC2:
	.ascii	"Erro ao enviar a resposta para o cliente !\000"
	.align	2
.LC1:
	.ascii	"HTTP/1.1 200 OK\012    Date: Mon, 26 Oct 2018 23:59"
	.ascii	":59 GMT\012    Server: Sam007 (Unix)  (Ubuntu/Linux"
	.ascii	")\012    Accept-Ranges: bytes\012    Content-Length"
	.ascii	": 170\012    Connection: close\012    Content-Type:"
	.ascii	" text/html; charset=UTF-8\012\012    <!DOCTYPE html"
	.ascii	"><html>\012    <head>\012    <title>FilaDeTarefas</"
	.ascii	"title>\012    </head>\012    <body>\012    <h1>Cone"
	.ascii	"ctado com Sucesso ! <h1>\012    </body>\012    </ht"
	.ascii	"ml>\015\012\000"
	.space	655
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	resposta_servidor
	.syntax unified
	.arm
	.fpu softvfp
	.type	resposta_servidor, %function
resposta_servidor:
	@ args = 0, pretend = 0, frame = 1040
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1040
	str	r0, [fp, #-1040]
	ldr	r3, .L5
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, [fp, #-1040]
	ldr	r0, .L5+4
	bl	printf
	ldr	r2, .L5+8
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	ldr	r2, .L5+12
	mov	r0, r3
	bl	memcpy
	sub	r3, fp, #660
	sub	r3, r3, #3
	ldr	r2, .L5+16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, r3
	ldr	r0, [fp, #-1040]
	bl	write
	str	r0, [fp, #-1036]
	ldr	r3, [fp, #-1036]
	cmn	r3, #1
	bne	.L4
	ldr	r0, .L5+20
	bl	perror
.L4:
	nop
	ldr	r3, .L5
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	369
	.word	655
	.word	.LC2
	.size	resposta_servidor, .-resposta_servidor
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Servidor Aguardando\000"
	.align	2
.LC5:
	.ascii	"Mensagem Recebida:\012 %s\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1080
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1072
	sub	sp, sp, #8
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-1076]
	sub	r3, fp, #4
	sub	r3, r3, #1056
	sub	r3, r3, #4
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-1060]
	ldr	r0, .L11+4
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4
	sub	r3, r3, #1056
	sub	r3, r3, #4
	strh	r2, [r3, #2]	@ movhi
	mov	r3, #16
	str	r3, [fp, #-1072]
	ldr	r2, [fp, #-1072]
	sub	r3, fp, #1056
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-1076]
	bl	bind
	mov	r1, #15
	ldr	r0, [fp, #-1076]
	bl	listen
	mov	r3, #16
	str	r3, [fp, #-1080]
.L9:
	ldr	r0, .L11+8
	bl	puts
	sub	r2, fp, #1072
	sub	r2, r2, #4
	sub	r2, r2, #4
	sub	r3, fp, #1040
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-1076]
	bl	accept
	str	r0, [fp, #-1068]
	bl	fork
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	ldr	r3, .L11+12
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, r3
	ldr	r0, [fp, #-1068]
	bl	read
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L11+16
	bl	printf
	ldr	r0, [fp, #-1068]
	bl	resposta_servidor
	ldr	r0, [fp, #-1068]
	bl	close
	mov	r0, #0
	bl	exit
.L8:
	ldr	r0, [fp, #-1068]
	bl	close
	b	.L9
.L12:
	.align	2
.L11:
	.word	.LC6
	.word	8001
	.word	.LC4
	.word	1014
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
