	.file	"278368.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"a"
.LC1:
	.string	"Conversacion_servidor.txt"
	.align 8
.LC2:
	.string	"\n\n------Inicio el chat EQUIPO3------\n"
	.align 8
.LC3:
	.string	"\n\n------Inicio el chat EQUIPO3------\n\n"
.LC4:
	.string	"\nCliente(%H:%M)->"
.LC5:
	.string	"%s"
.LC6:
	.string	"Hasta luego"
.LC7:
	.string	"\nYo(Servidor) (%H:%M)->"
	.align 8
.LC8:
	.string	"\n\nConversacion finalizada, gracias por usar nuestro chat :3"
	.align 8
.LC9:
	.string	"\nSe genero el archivo -> Conversacion_servidor.txt"
	.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
	sub	rsp, 400
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -376[rbp], rax
	movabs	rax, 7286946674224755541
	movabs	rdx, 8031169815595982956
	mov	QWORD PTR -112[rbp], rax
	mov	QWORD PTR -104[rbp], rdx
	movabs	rax, 2867733292266016
	mov	edx, 0
	mov	QWORD PTR -96[rbp], rax
	mov	QWORD PTR -88[rbp], rdx
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -392[rbp], eax
	lea	rax, -352[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	WORD PTR -352[rbp], 2
	mov	edi, 0
	call	htons@PLT
	movzx	eax, ax
	mov	DWORD PTR -348[rbp], eax
	mov	edi, 22000
	call	htons@PLT
	mov	WORD PTR -350[rbp], ax
	lea	rcx, -352[rbp]
	mov	eax, DWORD PTR -392[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	mov	eax, DWORD PTR -392[rbp]
	mov	esi, 10
	mov	edi, eax
	call	listen@PLT
	mov	eax, DWORD PTR -392[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -388[rbp], eax
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -376[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L2
.L4:
	lea	rax, -336[rbp]
	mov	rdx, rax
	mov	eax, 0
	mov	ecx, 12
	mov	rdi, rdx
	rep stosq
	mov	rdx, rdi
	mov	DWORD PTR [rdx], eax
	add	rdx, 4
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR -384[rbp], rax
	lea	rax, -384[rbp]
	mov	rdi, rax
	call	localtime@PLT
	mov	QWORD PTR -368[rbp], rax
	mov	rdx, QWORD PTR -368[rbp]
	lea	rax, -224[rbp]
	mov	rcx, rdx
	lea	rdx, .LC4[rip]
	mov	esi, 100
	mov	rdi, rax
	call	strftime@PLT
	lea	rcx, -336[rbp]
	mov	eax, DWORD PTR -388[rbp]
	mov	edx, 100
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	lea	rdx, -336[rbp]
	lea	rax, -224[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	QWORD PTR -360[rbp], rax
	mov	rax, QWORD PTR -360[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR -376[rbp]
	mov	rax, QWORD PTR -360[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	lea	rax, -336[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	jne	.L2
	mov	rdx, QWORD PTR -368[rbp]
	lea	rax, -224[rbp]
	mov	rcx, rdx
	lea	rdx, .LC7[rip]
	mov	esi, 100
	mov	rdi, rax
	call	strftime@PLT
	lea	rax, -224[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -112[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	gets@PLT
	lea	rdx, -112[rbp]
	lea	rax, -224[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	QWORD PTR -360[rbp], rax
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, 1[rax]
	lea	rcx, -112[rbp]
	mov	eax, DWORD PTR -388[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	rdx, QWORD PTR -376[rbp]
	mov	rax, QWORD PTR -360[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
.L2:
	lea	rax, -336[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	jne	.L3
	lea	rax, -112[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L4
.L3:
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -376[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"278368.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"a\000"
	.align	2
.LC1:
	.ascii	"Conversacion_servidor.txt\000"
	.align	2
.LC3:
	.ascii	"\012\012------Inicio el chat EQUIPO3------\012\000"
	.align	2
.LC4:
	.ascii	"\012\012------Inicio el chat EQUIPO3------\012\012\000"
	.align	2
.LC5:
	.ascii	"\012Cliente(%H:%M)->\000"
	.align	2
.LC6:
	.ascii	"%s\000"
	.align	2
.LC7:
	.ascii	"Hasta luego\000"
	.align	2
.LC8:
	.ascii	"\012Yo(Servidor) (%H:%M)->\000"
	.align	2
.LC9:
	.ascii	"\012\012Conversacion finalizada, gracias por usar n"
	.ascii	"uestro chat :3\000"
	.align	2
.LC10:
	.ascii	"\012Se genero el archivo -> Conversacion_servidor.t"
	.ascii	"xt\000"
	.align	2
.LC2:
	.ascii	"Usando el puerto 22000\012\000"
	.space	76
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 344
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #344
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L7+4
	ldr	r0, .L7+8
	bl	fopen
	str	r0, [fp, #-344]
	ldr	r3, .L7+12
	sub	ip, fp, #108
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	stm	ip, {r0, r1}
	sub	r3, fp, #84
	mov	r2, #76
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-340]
	sub	r3, fp, #324
	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, #320
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	mov	r0, #0
	bl	htons
	mov	r3, r0
	str	r3, [fp, #-320]
	ldr	r0, .L7+16
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4
	sub	r3, r3, #320
	strh	r2, [r3, #2]	@ movhi
	sub	r3, fp, #324
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-340]
	bl	bind
	mov	r1, #10
	ldr	r0, [fp, #-340]
	bl	listen
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-340]
	bl	accept
	str	r0, [fp, #-336]
	ldr	r0, .L7+20
	bl	puts
	ldr	r1, [fp, #-344]
	ldr	r0, .L7+24
	bl	printf
	b	.L2
.L4:
	sub	r3, fp, #308
	mov	r0, r3
	mov	r3, #100
	mov	r2, r3
	mov	r1, #0
	bl	memset
	mov	r0, #0
	bl	time
	mov	r3, r0
	str	r3, [fp, #-348]
	sub	r3, fp, #348
	mov	r0, r3
	bl	localtime
	str	r0, [fp, #-332]
	sub	r0, fp, #208
	ldr	r3, [fp, #-332]
	ldr	r2, .L7+28
	mov	r1, #100
	bl	strftime
	sub	r3, fp, #308
	mov	r2, #100
	mov	r1, r3
	ldr	r0, [fp, #-336]
	bl	read
	sub	r2, fp, #308
	sub	r3, fp, #208
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	str	r0, [fp, #-328]
	ldr	r1, [fp, #-328]
	ldr	r0, .L7+32
	bl	printf
	ldr	r1, [fp, #-344]
	ldr	r0, [fp, #-328]
	bl	fputs
	sub	r3, fp, #308
	ldr	r1, .L7+36
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	sub	r0, fp, #208
	ldr	r3, [fp, #-332]
	ldr	r2, .L7+40
	mov	r1, #100
	bl	strftime
	sub	r3, fp, #208
	mov	r1, r3
	ldr	r0, .L7+32
	bl	printf
	sub	r3, fp, #108
	mov	r0, r3
	bl	gets
	sub	r2, fp, #108
	sub	r3, fp, #208
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	str	r0, [fp, #-328]
	sub	r3, fp, #108
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r2, r3, #1
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, [fp, #-336]
	bl	write
	ldr	r1, [fp, #-344]
	ldr	r0, [fp, #-328]
	bl	fputs
.L2:
	sub	r3, fp, #308
	ldr	r1, .L7+36
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	bne	.L3
	sub	r3, fp, #108
	ldr	r1, .L7+36
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
.L3:
	ldr	r0, .L7+44
	bl	puts
	ldr	r0, .L7+48
	bl	puts
	ldr	r0, [fp, #-344]
	bl	fclose
	mov	r3, #0
	ldr	r2, .L7
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC11
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	22000
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
