	.file	"402493.c"
	.intel_syntax noprefix
	.text
	.globl	cliente_socket
	.bss
	.align 4
	.type	cliente_socket, @object
	.size	cliente_socket, 4
cliente_socket:
	.zero	4
	.globl	recebido
	.align 4
	.type	recebido, @object
	.size	recebido, 4
recebido:
	.zero	4
	.globl	tam_server
	.align 4
	.type	tam_server, @object
	.size	tam_server, 4
tam_server:
	.zero	4
	.globl	mensagem
	.align 32
	.type	mensagem, @object
	.size	mensagem, 1025
mensagem:
	.zero	1025
	.section	.rodata
.LC0:
	.string	"%s: Problema no socket \n"
	.align 8
.LC1:
	.string	"Parametros: %s <ip_server> <arquivo.extensao>\n"
	.align 8
.LC2:
	.string	"%s: Configurando servidor chefe...\n"
.LC3:
	.string	"%s: Problema no bind\n"
.LC4:
	.string	"NOME ARQUIVO: %s\n"
.LC5:
	.string	"EXTENSAO: %s\n"
.LC6:
	.string	"192.168.1.11"
.LC7:
	.string	"%s %s"
.LC9:
	.string	"Para Server: %s\n"
.LC10:
	.string	"Server: %s\n"
.LC11:
	.string	"NGC"
	.align 8
.LC12:
	.string	"Arquivo nao existe ou ja copiado!"
	.align 8
.LC13:
	.string	"%s: Configurando servidor do arquivo...\n"
.LC14:
	.string	"wb"
.LC15:
	.string	"ACK %d"
.LC16:
	.string	"Para Cliente2: %s\n"
.LC17:
	.string	"txt"
.LC18:
	.string	"NGC %d"
	.align 8
.LC19:
	.string	"\n%s: Arquivo recebido com sucesso!\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 3256
	.cfi_offset 3, -24
	mov	DWORD PTR -3252[rbp], edi
	mov	QWORD PTR -3264[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -3236[rbp], 2
	mov	QWORD PTR -3103[rbp], 0
	mov	DWORD PTR -3095[rbp], 0
	mov	WORD PTR -3091[rbp], 0
	mov	BYTE PTR -3089[rbp], 0
	mov	DWORD PTR -3124[rbp], 0
	mov	BYTE PTR -3120[rbp], 0
	mov	QWORD PTR -3088[rbp], 0
	mov	QWORD PTR -3080[rbp], 0
	mov	QWORD PTR -3072[rbp], 0
	mov	DWORD PTR -3064[rbp], 0
	mov	WORD PTR -3060[rbp], 0
	mov	DWORD PTR -3119[rbp], 0
	mov	BYTE PTR -3115[rbp], 0
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR cliente_socket[rip], eax
	mov	eax, DWORD PTR cliente_socket[rip]
	test	eax, eax
	jns	.L2
	mov	rax, QWORD PTR -3264[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	cmp	DWORD PTR -3252[rbp], 3
	je	.L3
	mov	rax, QWORD PTR -3264[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	rax, QWORD PTR -3264[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -3264[rbp]
	add	rax, 8
	mov	rcx, QWORD PTR [rax]
	lea	rax, -3168[rbp]
	mov	edx, 1500
	mov	rsi, rcx
	mov	rdi, rax
	call	inicializar_host
	lea	rax, -3184[rbp]
	mov	esi, 1500
	mov	rdi, rax
	call	inicializar_sockaddr_in
	mov	eax, DWORD PTR cliente_socket[rip]
	lea	rcx, -3184[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	mov	DWORD PTR -3212[rbp], eax
	cmp	DWORD PTR -3212[rbp], 0
	jns	.L4
	mov	rax, QWORD PTR -3264[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	rax, QWORD PTR -3264[rbp]
	add	rax, 16
	mov	rdx, QWORD PTR [rax]
	lea	rax, -3088[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -3088[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -3232[rbp], 0
	mov	DWORD PTR -3228[rbp], 0
	mov	DWORD PTR -3224[rbp], 0
	jmp	.L5
.L8:
	cmp	DWORD PTR -3232[rbp], 1
	jne	.L6
	mov	eax, DWORD PTR -3224[rbp]
	cdqe
	movzx	edx, BYTE PTR -3088[rbp+rax]
	mov	eax, DWORD PTR -3228[rbp]
	cdqe
	mov	BYTE PTR -3119[rbp+rax], dl
	add	DWORD PTR -3228[rbp], 1
.L6:
	mov	eax, DWORD PTR -3224[rbp]
	cdqe
	movzx	eax, BYTE PTR -3088[rbp+rax]
	cmp	al, 46
	jne	.L7
	mov	DWORD PTR -3232[rbp], 1
.L7:
	add	DWORD PTR -3224[rbp], 1
.L5:
	mov	eax, DWORD PTR -3224[rbp]
	movsx	rbx, eax
	lea	rax, -3088[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L8
	lea	rax, -3119[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -3236[rbp], 2
	jmp	.L9
.L14:
	mov	eax, DWORD PTR -3236[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -3264[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rcx, .LC6[rip]
	mov	rdx, rax
	lea	rsi, .LC7[rip]
	lea	rdi, mensagem[rip]
	mov	eax, 0
	call	sprintf@PLT
	jmp	.L10
.L11:
	movss	xmm0, DWORD PTR .LC8[rip]
	call	temporizador_de_dados
.L10:
	mov	eax, DWORD PTR cliente_socket[rip]
	lea	rdx, -3168[rbp]
	mov	r9d, 16
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 1026
	lea	rsi, mensagem[rip]
	mov	edi, eax
	call	sendto@PLT
	mov	DWORD PTR -3212[rbp], eax
	cmp	DWORD PTR -3212[rbp], 0
	js	.L11
	lea	rsi, mensagem[rip]
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -3240[rbp], 16
	mov	DWORD PTR tam_server[rip], 16
	jmp	.L12
.L13:
	movss	xmm0, DWORD PTR .LC8[rip]
	call	temporizador_de_dados
.L12:
	mov	eax, DWORD PTR cliente_socket[rip]
	lea	rcx, -3240[rbp]
	lea	rdx, -3184[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 1024
	lea	rsi, mensagem[rip]
	mov	edi, eax
	call	recvfrom@PLT
	mov	DWORD PTR recebido[rip], eax
	mov	eax, DWORD PTR recebido[rip]
	test	eax, eax
	js	.L13
	lea	rsi, mensagem[rip]
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -3236[rbp], 1
.L9:
	mov	eax, DWORD PTR -3236[rbp]
	cmp	eax, DWORD PTR -3252[rbp]
	jl	.L14
	mov	edx, 3
	lea	rsi, .LC11[rip]
	lea	rdi, mensagem[rip]
	call	strncmp@PLT
	test	eax, eax
	jne	.L15
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L15:
	mov	esi, 2
	lea	rdi, mensagem[rip]
	call	retorne_quantidade
	mov	DWORD PTR -3208[rbp], eax
	mov	esi, 3
	lea	rdi, mensagem[rip]
	call	retorne_quantidade
	mov	DWORD PTR -3204[rbp], eax
	mov	eax, DWORD PTR -3208[rbp]
	movsx	rdx, eax
	lea	rax, -3103[rbp]
	lea	rsi, mensagem[rip+4]
	mov	rdi, rax
	call	memcpy@PLT
	mov	eax, DWORD PTR -3204[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -3208[rbp]
	add	eax, 5
	cdqe
	lea	rcx, mensagem[rip]
	add	rcx, rax
	lea	rax, -3124[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	lea	rax, -3124[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -3200[rbp], eax
	mov	rax, QWORD PTR -3264[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -3200[rbp]
	lea	rcx, -3103[rbp]
	lea	rax, -3152[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	inicializar_host
	mov	DWORD PTR -3240[rbp], 16
	mov	rax, QWORD PTR -3264[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -3192[rbp], rax
	mov	QWORD PTR -2080[rbp], 0
	mov	QWORD PTR -2072[rbp], 0
	lea	rdx, -2064[rbp]
	mov	eax, 0
	mov	ecx, 126
	mov	rdi, rdx
	rep stosq
	mov	QWORD PTR -1056[rbp], 0
	mov	QWORD PTR -1048[rbp], 0
	lea	rdx, -1040[rbp]
	mov	eax, 0
	mov	ecx, 126
	mov	rdi, rdx
	rep stosq
	mov	QWORD PTR -3056[rbp], 0
	mov	QWORD PTR -3048[rbp], 0
	lea	rdx, -3040[rbp]
	mov	eax, 0
	mov	ecx, 119
	mov	rdi, rdx
	rep stosq
	mov	rdx, rdi
	mov	DWORD PTR [rdx], eax
	add	rdx, 4
	mov	WORD PTR [rdx], ax
	add	rdx, 2
	mov	BYTE PTR [rdx], al
	add	rdx, 1
	mov	QWORD PTR -3114[rbp], 0
	mov	WORD PTR -3106[rbp], 0
	mov	BYTE PTR -3104[rbp], 0
	mov	DWORD PTR -3220[rbp], 0
	mov	DWORD PTR -3196[rbp], 0
	mov	DWORD PTR -3216[rbp], 0
	jmp	.L16
.L28:
	mov	edx, 1024
	mov	esi, 0
	lea	rdi, mensagem[rip]
	call	memset@PLT
	lea	rax, -2080[rbp]
	mov	edx, 1024
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -3056[rbp]
	mov	edx, 975
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -3114[rbp]
	mov	edx, 11
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	jmp	.L17
.L18:
	movss	xmm0, DWORD PTR .LC8[rip]
	call	temporizador_de_dados
.L17:
	mov	eax, DWORD PTR cliente_socket[rip]
	lea	rcx, -3240[rbp]
	lea	rdx, -3152[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 1025
	lea	rsi, mensagem[rip]
	mov	edi, eax
	call	recvfrom@PLT
	mov	DWORD PTR recebido[rip], eax
	mov	eax, DWORD PTR recebido[rip]
	test	eax, eax
	js	.L18
	lea	rax, -2080[rbp]
	mov	edx, 1021
	lea	rsi, mensagem[rip+4]
	mov	rdi, rax
	call	memcpy@PLT
	lea	rax, -2080[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -3196[rbp], eax
	mov	eax, DWORD PTR -3196[rbp]
	mov	edi, eax
	call	digitos_numero
	add	eax, 1
	cdqe
	mov	edx, 1024
	mov	rbx, rdx
	sub	rbx, rax
	mov	eax, DWORD PTR -3196[rbp]
	mov	edi, eax
	call	digitos_numero
	add	eax, 1
	lea	rdx, -2080[rbp]
	cdqe
	lea	rcx, [rdx+rax]
	lea	rax, -2080[rbp]
	mov	rdx, rbx
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	lea	rax, -2080[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -3216[rbp], eax
	mov	esi, 2
	lea	rdi, mensagem[rip]
	call	retorne_quantidade
	add	eax, 7
	cdqe
	lea	rdx, mensagem[rip]
	lea	rcx, [rax+rdx]
	lea	rax, -3114[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	cmp	DWORD PTR -3216[rbp], 1
	je	.L31
	lea	rax, -3056[rbp]
	mov	edx, 976
	lea	rsi, mensagem[rip+50]
	mov	rdi, rax
	call	memcpy@PLT
	mov	eax, DWORD PTR -3196[rbp]
	cmp	eax, DWORD PTR -3220[rbp]
	jne	.L21
	lea	rax, -3114[rbp]
	lea	rsi, mensagem[rip]
	mov	rdi, rax
	call	checksum_correto
	test	al, al
	je	.L21
	lea	rax, -1056[rbp]
	mov	edx, 1024
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	edx, DWORD PTR -3196[rbp]
	lea	rax, -1056[rbp]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	jmp	.L22
.L23:
	movss	xmm0, DWORD PTR .LC8[rip]
	call	temporizador_de_dados
.L22:
	mov	eax, DWORD PTR cliente_socket[rip]
	lea	rdx, -3152[rbp]
	lea	rsi, -1056[rbp]
	mov	r9d, 16
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 1024
	mov	edi, eax
	call	sendto@PLT
	mov	DWORD PTR -3212[rbp], eax
	cmp	DWORD PTR -3212[rbp], 0
	js	.L23
	lea	rax, -1056[rbp]
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -3119[rbp]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L24
	mov	rdx, QWORD PTR -3192[rbp]
	lea	rax, -3056[rbp]
	mov	rcx, rdx
	mov	edx, 975
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	jmp	.L25
.L24:
	lea	rax, -3056[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rsi, rax
	mov	rdx, QWORD PTR -3192[rbp]
	lea	rax, -3056[rbp]
	mov	rcx, rdx
	mov	rdx, rsi
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
.L25:
	add	DWORD PTR -3220[rbp], 1
	jmp	.L16
.L21:
	mov	edx, DWORD PTR -3220[rbp]
	lea	rax, -1056[rbp]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	jmp	.L26
.L27:
	movss	xmm0, DWORD PTR .LC8[rip]
	call	temporizador_de_dados
.L26:
	mov	eax, DWORD PTR cliente_socket[rip]
	lea	rdx, -3152[rbp]
	lea	rsi, -1056[rbp]
	mov	r9d, 16
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 1024
	mov	edi, eax
	call	sendto@PLT
	mov	DWORD PTR -3212[rbp], eax
	cmp	DWORD PTR -3212[rbp], 0
	js	.L27
.L16:
	cmp	DWORD PTR -3216[rbp], 1
	jne	.L28
	jmp	.L20
.L31:
	nop
.L20:
	mov	rax, QWORD PTR -3192[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -3264[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	inicializar_sockaddr_in
	.type	inicializar_sockaddr_in, @function
inicializar_sockaddr_in:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	rax, QWORD PTR -8[rbp]
	mov	WORD PTR [rax], 2
	mov	edi, 0
	call	htonl@PLT
	mov	rdx, QWORD PTR -8[rbp]
	mov	DWORD PTR 4[rdx], eax
	mov	eax, DWORD PTR -12[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	rdx, QWORD PTR -8[rbp]
	mov	WORD PTR 2[rdx], ax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	inicializar_sockaddr_in, .-inicializar_sockaddr_in
	.section	.rodata
.LC20:
	.string	"-> Host desconhecido '%s' \n"
	.align 8
.LC21:
	.string	"-> Configurando host '%s' (IP : %s) \n"
	.text
	.globl	inicializar_host
	.type	inicializar_host, @function
inicializar_host:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	gethostbyname@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L34
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L34:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	WORD PTR [rax], dx
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 20[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR [rax]
	mov	rcx, QWORD PTR -24[rbp]
	add	rcx, 4
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	eax, DWORD PTR -36[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	rdx, QWORD PTR -24[rbp]
	mov	WORD PTR 2[rdx], ax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR [rax]
	mov	edi, DWORD PTR [rax]
	call	inet_ntoa@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	inicializar_host, .-inicializar_host
	.globl	digitos_numero
	.type	digitos_numero, @function
digitos_numero:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -4[rbp], 0
.L36:
	add	DWORD PTR -4[rbp], 1
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx, 2
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jne	.L36
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	digitos_numero, .-digitos_numero
	.globl	temporizador_de_dados
	.type	temporizador_de_dados, @function
temporizador_de_dados:
.LFB10:
	.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
	movss	DWORD PTR -20[rbp], xmm0
	pxor	xmm0, xmm0
	movss	DWORD PTR -4[rbp], xmm0
	pxor	xmm0, xmm0
	movss	DWORD PTR -8[rbp], xmm0
	call	clock@PLT
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rax
	movss	xmm1, DWORD PTR .LC23[rip]
	divss	xmm0, xmm1
	movss	DWORD PTR -4[rbp], xmm0
	jmp	.L39
.L40:
	call	clock@PLT
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rax
	movss	xmm1, DWORD PTR .LC23[rip]
	divss	xmm0, xmm1
	movss	DWORD PTR -8[rbp], xmm0
.L39:
	movss	xmm0, DWORD PTR -8[rbp]
	movaps	xmm1, xmm0
	subss	xmm1, DWORD PTR -4[rbp]
	movss	xmm0, DWORD PTR -20[rbp]
	comiss	xmm0, xmm1
	ja	.L40
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	temporizador_de_dados, .-temporizador_de_dados
	.globl	retorne_quantidade
	.type	retorne_quantidade, @function
retorne_quantidade:
.LFB11:
	.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, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	jmp	.L43
.L48:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jne	.L44
	sub	DWORD PTR -44[rbp], 1
	cmp	DWORD PTR -44[rbp], 0
	je	.L50
	mov	DWORD PTR -24[rbp], 0
	jmp	.L47
.L44:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	je	.L47
	add	DWORD PTR -24[rbp], 1
.L47:
	add	DWORD PTR -20[rbp], 1
.L43:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L48
	jmp	.L46
.L50:
	nop
.L46:
	mov	eax, DWORD PTR -24[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	retorne_quantidade, .-retorne_quantidade
	.section	.rodata
.LC24:
	.string	"--- Checksum correto"
.LC25:
	.string	"--- Checksum ERROR"
	.text
	.globl	checksum_correto
	.type	checksum_correto, @function
checksum_correto:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	mov	QWORD PTR -19[rbp], 0
	mov	WORD PTR -11[rbp], 0
	mov	BYTE PTR -9[rbp], 0
	mov	DWORD PTR -28[rbp], 0
	jmp	.L52
.L53:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	mov	BYTE PTR -19[rbp+rax], 48
	add	DWORD PTR -28[rbp], 1
.L52:
	cmp	DWORD PTR -28[rbp], 9
	jle	.L53
	mov	DWORD PTR -28[rbp], 50
	jmp	.L54
.L56:
	cmp	DWORD PTR -24[rbp], 9
	jle	.L55
	mov	DWORD PTR -24[rbp], 0
.L55:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	movzx	eax, BYTE PTR -19[rbp+rax]
	mov	ecx, eax
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	add	eax, ecx
	mov	edx, eax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	BYTE PTR -19[rbp+rax], dl
	add	DWORD PTR -24[rbp], 1
	add	DWORD PTR -28[rbp], 1
.L54:
	cmp	DWORD PTR -28[rbp], 1023
	jle	.L56
	lea	rdx, -19[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L57
	lea	rdi, .LC24[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L59
.L57:
	lea	rdi, .LC25[rip]
	call	puts@PLT
	mov	eax, 0
.L59:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L60
	call	__stack_chk_fail@PLT
.L60:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	checksum_correto, .-checksum_correto
	.section	.rodata
	.align 4
.LC8:
	.long	1065353216
	.align 4
.LC23:
	.long	1232348160
	.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	"402493.c"
	.text
	.comm	cliente_socket,4,4
	.comm	recebido,4,4
	.comm	tam_server,4,4
	.global	mensagem
	.bss
	.align	2
	.type	mensagem, %object
	.size	mensagem, 1025
mensagem:
	.space	1025
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s: Problema no socket \012\000"
	.align	2
.LC1:
	.ascii	"Parametros: %s <ip_server> <arquivo.extensao>\012\000"
	.align	2
.LC2:
	.ascii	"%s: Configurando servidor chefe...\012\000"
	.align	2
.LC3:
	.ascii	"%s: Problema no bind\012\000"
	.align	2
.LC4:
	.ascii	"NOME ARQUIVO: %s\012\000"
	.align	2
.LC5:
	.ascii	"EXTENSAO: %s\012\000"
	.align	2
.LC6:
	.ascii	"192.168.1.11\000"
	.align	2
.LC7:
	.ascii	"%s %s\000"
	.align	2
.LC8:
	.ascii	"Para Server: %s\012\000"
	.align	2
.LC9:
	.ascii	"Server: %s\012\000"
	.align	2
.LC10:
	.ascii	"NGC\000"
	.align	2
.LC11:
	.ascii	"Arquivo nao existe ou ja copiado!\000"
	.align	2
.LC12:
	.ascii	"%s: Configurando servidor do arquivo...\012\000"
	.align	2
.LC13:
	.ascii	"wb\000"
	.align	2
.LC14:
	.ascii	"ACK %d\000"
	.align	2
.LC15:
	.ascii	"Para Cliente2: %s\012\000"
	.align	2
.LC16:
	.ascii	"txt\000"
	.align	2
.LC17:
	.ascii	"NGC %d\000"
	.align	2
.LC18:
	.ascii	"\012%s: Arquivo recebido com sucesso!\012\000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 3216
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #3216
	sub	sp, sp, #12
	str	r0, [fp, #-3224]
	str	r1, [fp, #-3228]
	ldr	r3, .L32
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #2
	str	r3, [fp, #-3212]
	mov	r3, #0
	str	r3, [fp, #-3088]
	sub	r3, fp, #3072
	sub	r3, r3, #12
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	strh	r2, [r3, #8]	@ movhi
	strb	r2, [r3, #10]
	mov	r3, #0
	str	r3, [fp, #-3116]
	mov	r3, #0
	strb	r3, [fp, #-3112]
	mov	r3, #0
	str	r3, [fp, #-3072]
	sub	r3, fp, #3056
	sub	r3, r3, #12
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	str	r2, [r3, #16]
	str	r2, [r3, #20]
	strh	r2, [r3, #24]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-3108]
	mov	r3, #0
	strb	r3, [fp, #-3104]
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	socket
	mov	r3, r0
	ldr	r2, .L32+4
	str	r3, [r2]
	ldr	r3, .L32+4
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L2
	ldr	r3, [fp, #-3228]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L32+8
	bl	printf
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-3224]
	cmp	r3, #3
	beq	.L3
	ldr	r3, [fp, #-3228]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L32+12
	bl	printf
	mov	r0, #1
	bl	exit
.L3:
	ldr	r3, [fp, #-3228]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L32+16
	bl	printf
	ldr	r3, [fp, #-3228]
	add	r3, r3, #4
	ldr	r1, [r3]
	sub	r3, fp, #3136
	sub	r3, r3, #12
	ldr	r2, .L32+20
	mov	r0, r3
	bl	inicializar_host
	sub	r3, fp, #3152
	sub	r3, r3, #12
	ldr	r1, .L32+20
	mov	r0, r3
	bl	inicializar_sockaddr_in
	ldr	r3, .L32+4
	ldr	r3, [r3]
	sub	r1, fp, #3152
	sub	r1, r1, #12
	mov	r2, #16
	mov	r0, r3
	bl	bind
	str	r0, [fp, #-3188]
	ldr	r3, [fp, #-3188]
	cmp	r3, #0
	bge	.L4
	ldr	r3, [fp, #-3228]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L32+24
	bl	printf
	mov	r0, #1
	bl	exit
.L4:
	ldr	r3, [fp, #-3228]
	add	r3, r3, #8
	ldr	r2, [r3]
	sub	r3, fp, #3056
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #3056
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L32+28
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-3208]
	mov	r3, #0
	str	r3, [fp, #-3204]
	mov	r3, #0
	str	r3, [fp, #-3200]
	b	.L5
.L8:
	ldr	r3, [fp, #-3208]
	cmp	r3, #1
	bne	.L6
	sub	r3, fp, #3056
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-3200]
	add	r3, r3, r2
	ldrb	r1, [r3]	@ zero_extendqisi2
	sub	r3, fp, #3088
	sub	r3, r3, #12
	sub	r3, r3, #8
	ldr	r2, [fp, #-3204]
	add	r3, r3, r2
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-3204]
	add	r3, r3, #1
	str	r3, [fp, #-3204]
.L6:
	sub	r3, fp, #3056
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-3200]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #46
	bne	.L7
	mov	r3, #1
	str	r3, [fp, #-3208]
.L7:
	ldr	r3, [fp, #-3200]
	add	r3, r3, #1
	str	r3, [fp, #-3200]
.L5:
	sub	r3, fp, #3056
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-3200]
	cmp	r2, r3
	bhi	.L8
	sub	r3, fp, #3088
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r1, r3
	ldr	r0, .L32+32
	bl	printf
	mov	r3, #2
	str	r3, [fp, #-3212]
	b	.L9
.L14:
	ldr	r3, [fp, #-3212]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-3228]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L32+36
	ldr	r1, .L32+40
	ldr	r0, .L32+44
	bl	sprintf
	b	.L10
.L11:
	mov	r0, #1065353216
	bl	temporizador_de_dados
.L10:
	ldr	r3, .L32+4
	ldr	r0, [r3]
	mov	r3, #16
	str	r3, [sp, #4]
	sub	r3, fp, #3136
	sub	r3, r3, #12
	str	r3, [sp]
	mov	r3, #0
	ldr	r2, .L32+48
	ldr	r1, .L32+44
	bl	sendto
	str	r0, [fp, #-3188]
	ldr	r3, [fp, #-3188]
	cmp	r3, #0
	blt	.L11
	ldr	r1, .L32+44
	ldr	r0, .L32+52
	bl	printf
	mov	r3, #16
	str	r3, [fp, #-3216]
	ldr	r3, .L32+56
	mov	r2, #16
	str	r2, [r3]
	b	.L12
.L13:
	mov	r0, #1065353216
	bl	temporizador_de_dados
.L12:
	ldr	r3, .L32+4
	ldr	r0, [r3]
	sub	r3, fp, #3200
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [sp, #4]
	sub	r3, fp, #3152
	sub	r3, r3, #12
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #1024
	ldr	r1, .L32+44
	bl	recvfrom
	mov	r3, r0
	ldr	r2, .L32+60
	str	r3, [r2]
	ldr	r3, .L32+60
	ldr	r3, [r3]
	cmp	r3, #0
	blt	.L13
	ldr	r1, .L32+44
	ldr	r0, .L32+64
	bl	printf
	ldr	r3, [fp, #-3212]
	add	r3, r3, #1
	str	r3, [fp, #-3212]
.L9:
	ldr	r2, [fp, #-3212]
	ldr	r3, [fp, #-3224]
	cmp	r2, r3
	blt	.L14
	mov	r2, #3
	ldr	r1, .L32+68
	ldr	r0, .L32+44
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L15
	ldr	r0, .L32+72
	bl	puts
	mov	r0, #1
	bl	exit
.L15:
	mov	r1, #2
	ldr	r0, .L32+44
	bl	retorne_quantidade
	str	r0, [fp, #-3184]
	mov	r1, #3
	ldr	r0, .L32+44
	bl	retorne_quantidade
	str	r0, [fp, #-3180]
	ldr	r2, [fp, #-3184]
	sub	r3, fp, #3072
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L32+76
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-3184]
	add	r3, r3, #5
	ldr	r2, .L32+44
	add	r1, r3, r2
	ldr	r2, [fp, #-3180]
	sub	r3, fp, #3104
	sub	r3, r3, #12
	mov	r0, r3
	bl	memcpy
	sub	r3, fp, #3104
	sub	r3, r3, #12
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-3176]
	ldr	r3, [fp, #-3228]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L32+80
	bl	printf
	sub	r3, fp, #3072
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r0, fp, #3120
	sub	r0, r0, #12
	ldr	r2, [fp, #-3176]
	mov	r1, r3
	bl	inicializar_host
	mov	r3, #16
	str	r3, [fp, #-3216]
	ldr	r3, [fp, #-3228]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L32+84
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-3172]
	mov	r3, #0
	str	r3, [fp, #-2064]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	mov	r2, #1020
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-1040]
	sub	r3, fp, #1024
	sub	r3, r3, #12
	mov	r2, #1020
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-3040]
	sub	r3, fp, #3024
	sub	r3, r3, #12
	ldr	r2, .L32+88
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-3100]
	sub	r3, fp, #3072
	sub	r3, r3, #12
	sub	r3, r3, #12
	mov	r2, #0
	str	r2, [r3]
	strh	r2, [r3, #4]	@ movhi
	strb	r2, [r3, #6]
	mov	r3, #0
	str	r3, [fp, #-3196]
	mov	r3, #0
	str	r3, [fp, #-3168]
	mov	r3, #0
	str	r3, [fp, #-3192]
	b	.L16
.L28:
	mov	r2, #1024
	mov	r1, #0
	ldr	r0, .L32+44
	bl	memset
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #3024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, .L32+92
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #3088
	sub	r3, r3, #12
	mov	r2, #11
	mov	r1, #0
	mov	r0, r3
	bl	memset
	b	.L17
.L18:
	mov	r0, #1065353216
	bl	temporizador_de_dados
.L17:
	ldr	r3, .L32+4
	ldr	r0, [r3]
	sub	r3, fp, #3200
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [sp, #4]
	sub	r3, fp, #3120
	sub	r3, r3, #12
	str	r3, [sp]
	mov	r3, #0
	ldr	r2, .L32+96
	ldr	r1, .L32+44
	bl	recvfrom
	mov	r3, r0
	ldr	r2, .L32+60
	str	r3, [r2]
	ldr	r3, .L32+60
	ldr	r3, [r3]
	cmp	r3, #0
	blt	.L18
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, .L32+100
	ldr	r1, .L32+76
	mov	r0, r3
	bl	memcpy
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-3168]
	ldr	r0, [fp, #-3168]
	bl	digitos_numero
	mov	r3, r0
	add	r2, r3, #1
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r4, r3, r2
	ldr	r0, [fp, #-3168]
	bl	digitos_numero
	mov	r3, r0
	rsb	r2, r3, #1020
	add	r2, r2, #3
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r4
	mov	r0, r3
	bl	memcpy
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-3192]
	mov	r1, #2
	ldr	r0, .L32+44
	bl	retorne_quantidade
	mov	r3, r0
	add	r3, r3, #7
	ldr	r2, .L32+44
	add	r1, r3, r2
	sub	r3, fp, #3088
	sub	r3, r3, #12
	mov	r2, #10
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-3192]
	cmp	r3, #1
	beq	.L31
	sub	r3, fp, #3024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #976
	ldr	r1, .L32+104
	mov	r0, r3
	bl	memcpy
	ldr	r2, [fp, #-3168]
	ldr	r3, [fp, #-3196]
	cmp	r2, r3
	bne	.L21
	sub	r3, fp, #3088
	sub	r3, r3, #12
	ldr	r1, .L32+44
	mov	r0, r3
	bl	checksum_correto
	mov	r3, r0
	cmp	r3, #0
	beq	.L21
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-3168]
	ldr	r1, .L32+108
	mov	r0, r3
	bl	sprintf
	b	.L22
.L23:
	mov	r0, #1065353216
	bl	temporizador_de_dados
.L22:
	ldr	r3, .L32+4
	ldr	r0, [r3]
	sub	r1, fp, #1024
	sub	r1, r1, #12
	sub	r1, r1, #4
	mov	r3, #16
	str	r3, [sp, #4]
	sub	r3, fp, #3120
	sub	r3, r3, #12
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #1024
	bl	sendto
	str	r0, [fp, #-3188]
	ldr	r3, [fp, #-3188]
	cmp	r3, #0
	blt	.L23
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L32+112
	bl	printf
	sub	r3, fp, #3088
	sub	r3, r3, #12
	sub	r3, r3, #8
	ldr	r1, .L32+116
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L24
	sub	r0, fp, #3024
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [fp, #-3172]
	ldr	r2, .L32+92
	mov	r1, #1
	bl	fwrite
	b	.L25
.L24:
	sub	r3, fp, #3024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r0, fp, #3024
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [fp, #-3172]
	mov	r1, #1
	bl	fwrite
.L25:
	ldr	r3, [fp, #-3196]
	add	r3, r3, #1
	str	r3, [fp, #-3196]
	b	.L16
.L21:
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-3196]
	ldr	r1, .L32+120
	mov	r0, r3
	bl	sprintf
	b	.L26
.L27:
	mov	r0, #1065353216
	bl	temporizador_de_dados
.L26:
	ldr	r3, .L32+4
	ldr	r0, [r3]
	sub	r1, fp, #1024
	sub	r1, r1, #12
	sub	r1, r1, #4
	mov	r3, #16
	str	r3, [sp, #4]
	sub	r3, fp, #3120
	sub	r3, r3, #12
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #1024
	bl	sendto
	str	r0, [fp, #-3188]
	ldr	r3, [fp, #-3188]
	cmp	r3, #0
	blt	.L27
.L16:
	ldr	r3, [fp, #-3192]
	cmp	r3, #1
	bne	.L28
	b	.L20
.L31:
	nop
.L20:
	ldr	r0, [fp, #-3172]
	bl	fclose
	ldr	r3, [fp, #-3228]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L32+124
	bl	printf
	mov	r3, #0
	ldr	r2, .L32
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L30
	bl	__stack_chk_fail
.L30:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC19
	.word	cliente_socket
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	1500
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	mensagem
	.word	1026
	.word	.LC8
	.word	tam_server
	.word	recebido
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	mensagem+4
	.word	.LC12
	.word	.LC13
	.word	971
	.word	975
	.word	1025
	.word	1021
	.word	mensagem+50
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.size	main, .-main
	.align	2
	.global	inicializar_sockaddr_in
	.syntax unified
	.arm
	.fpu softvfp
	.type	inicializar_sockaddr_in, %function
inicializar_sockaddr_in:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	mov	r0, #0
	bl	htonl
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	strh	r2, [r3, #2]	@ movhi
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	inicializar_sockaddr_in, .-inicializar_sockaddr_in
	.section	.rodata
	.align	2
.LC20:
	.ascii	"-> Host desconhecido '%s' \012\000"
	.align	2
.LC21:
	.ascii	"-> Configurando host '%s' (IP : %s) \012\000"
	.text
	.align	2
	.global	inicializar_host
	.syntax unified
	.arm
	.fpu softvfp
	.type	inicializar_host, %function
inicializar_host:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r0, [fp, #-28]
	bl	gethostbyname
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L36
	ldr	r1, [fp, #-28]
	ldr	r0, .L37
	bl	printf
	mov	r0, #1
	bl	exit
.L36:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-24]
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-24]
	add	r0, r3, #4
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #16]
	ldr	r1, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	mov	r2, r3
	bl	memcpy
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-24]
	strh	r2, [r3, #2]	@ movhi
	ldr	r3, [fp, #-16]
	ldr	r4, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #16]
	ldr	r3, [r3]
	ldr	r0, [r3]
	bl	inet_ntoa
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L37+4
	bl	printf
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC20
	.word	.LC21
	.size	inicializar_host, .-inicializar_host
	.align	2
	.global	digitos_numero
	.syntax unified
	.arm
	.fpu softvfp
	.type	digitos_numero, %function
digitos_numero:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
.L40:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r2, .L42
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L40
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L43:
	.align	2
.L42:
	.word	1717986919
	.size	digitos_numero, .-digitos_numero
	.global	__aeabi_i2f
	.global	__aeabi_fdiv
	.global	__aeabi_fsub
	.global	__aeabi_fcmpgt
	.align	2
	.global	temporizador_de_dados
	.syntax unified
	.arm
	.fpu softvfp
	.type	temporizador_de_dados, %function
temporizador_de_dados:
	@ 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]	@ float
	mov	r3, #0
	str	r3, [fp, #-8]	@ float
	mov	r3, #0
	str	r3, [fp, #-12]	@ float
	bl	clock
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, .L48
	mov	r0, r3
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [fp, #-8]	@ float
	b	.L45
.L46:
	bl	clock
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, .L48
	mov	r0, r3
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [fp, #-12]	@ float
.L45:
	ldr	r1, [fp, #-8]	@ float
	ldr	r0, [fp, #-12]	@ float
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	bne	.L46
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L49:
	.align	2
.L48:
	.word	1232348160
	.size	temporizador_de_dados, .-temporizador_de_dados
	.align	2
	.global	retorne_quantidade
	.syntax unified
	.arm
	.fpu softvfp
	.type	retorne_quantidade, %function
retorne_quantidade:
	@ 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]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L51
.L56:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L52
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L58
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L55
.L52:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L55
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L55:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L51:
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bhi	.L56
	b	.L54
.L58:
	nop
.L54:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	retorne_quantidade, .-retorne_quantidade
	.section	.rodata
	.align	2
.LC22:
	.ascii	"--- Checksum correto\000"
	.align	2
.LC23:
	.ascii	"--- Checksum ERROR\000"
	.align	2
.LC24:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	checksum_correto
	.syntax unified
	.arm
	.fpu softvfp
	.type	checksum_correto, %function
checksum_correto:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L69
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	sub	r3, fp, #16
	mov	r2, #0
	str	r2, [r3]
	strh	r2, [r3, #4]	@ movhi
	strb	r2, [r3, #6]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L60
.L61:
	sub	r2, fp, #20
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, #48
	strb	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L60:
	ldr	r3, [fp, #-28]
	cmp	r3, #9
	ble	.L61
	mov	r3, #50
	str	r3, [fp, #-28]
	b	.L62
.L64:
	ldr	r3, [fp, #-24]
	cmp	r3, #9
	ble	.L63
	mov	r3, #0
	str	r3, [fp, #-24]
.L63:
	sub	r2, fp, #20
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-28]
	ldr	r1, [fp, #-36]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r2, r3
	and	r1, r3, #255
	sub	r2, fp, #20
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L62:
	ldr	r3, [fp, #-28]
	cmp	r3, #1024
	blt	.L64
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L65
	ldr	r0, .L69+4
	bl	puts
	mov	r3, #1
	b	.L67
.L65:
	ldr	r0, .L69+8
	bl	puts
	mov	r3, #0
.L67:
	ldr	r2, .L69
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L68
	bl	__stack_chk_fail
.L68:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L70:
	.align	2
.L69:
	.word	.LC24
	.word	.LC22
	.word	.LC23
	.size	checksum_correto, .-checksum_correto
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
