	.file	"820854.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"socket"
.LC1:
	.string	"r"
.LC2:
	.string	"para1.txt"
.LC3:
	.string	" "
	.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, 1584
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -1520[rbp]
	add	rax, 500
	movabs	rcx, 8679613171472949616
	mov	QWORD PTR [rax], rcx
	mov	WORD PTR 8[rax], 116
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -1572[rbp], eax
	cmp	DWORD PTR -1572[rbp], 0
	jns	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	lea	rax, -1536[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	edi, 3000
	call	htons@PLT
	mov	WORD PTR -1534[rbp], ax
	mov	WORD PTR -1536[rbp], 2
	mov	DWORD PTR -1532[rbp], 0
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	fopen@PLT
	mov	QWORD PTR -1544[rbp], rax
	mov	rax, QWORD PTR -1544[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -1544[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	DWORD PTR -1568[rbp], eax
	mov	rax, QWORD PTR -1544[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	jmp	.L3
.L6:
	lea	rdx, -1560[rbp]
	lea	rax, -512[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strtok_r@PLT
	mov	QWORD PTR -1552[rbp], rax
.L5:
	mov	rax, QWORD PTR -1552[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -1564[rbp], eax
	mov	eax, DWORD PTR -1564[rbp]
	cdqe
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -1552[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L4
	mov	eax, DWORD PTR -1564[rbp]
	cdqe
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -1552[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	sub	DWORD PTR -1564[rbp], 1
.L4:
	mov	rdx, QWORD PTR -1552[rbp]
	lea	rax, -1520[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rdx, -1536[rbp]
	lea	rsi, -1520[rbp]
	mov	eax, DWORD PTR -1572[rbp]
	mov	r9d, 16
	mov	r8, rdx
	mov	ecx, 2048
	mov	edx, 1000
	mov	edi, eax
	call	sendto@PLT
	lea	rax, -1560[rbp]
	mov	rdx, rax
	lea	rsi, .LC3[rip]
	mov	edi, 0
	call	strtok_r@PLT
	mov	QWORD PTR -1552[rbp], rax
	cmp	QWORD PTR -1552[rbp], 0
	jne	.L5
.L3:
	mov	eax, DWORD PTR -1568[rbp]
	lea	ecx, 1[rax]
	mov	rdx, QWORD PTR -1544[rbp]
	lea	rax, -512[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L6
	mov	rax, QWORD PTR -1544[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	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	"820854.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"para1.txt\000"
	.align	2
.LC1:
	.ascii	"socket\000"
	.align	2
.LC2:
	.ascii	"r\000"
	.align	2
.LC3:
	.ascii	" \000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1544
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1552
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #1504
	sub	r3, r3, #4
	add	r3, r3, #500
	ldr	r2, .L9+4
	ldm	r2, {r0, r1, r2}
	stmia	r3!, {r0, r1}
	strh	r2, [r3]	@ movhi
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-1540]
	ldr	r3, [fp, #-1540]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L9+8
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	sub	r3, fp, #1520
	sub	r3, r3, #4
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r0, .L9+12
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4
	sub	r3, r3, #1520
	strh	r2, [r3, #2]	@ movhi
	sub	r3, fp, #4
	sub	r3, r3, #1520
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-1520]
	ldr	r1, .L9+16
	ldr	r0, .L9+4
	bl	fopen
	str	r0, [fp, #-1536]
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-1536]
	bl	fseek
	ldr	r0, [fp, #-1536]
	bl	ftell
	str	r0, [fp, #-1532]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-1536]
	bl	fseek
	b	.L3
.L6:
	sub	r3, fp, #1536
	sub	r3, r3, #4
	sub	r3, r3, #8
	sub	r0, fp, #508
	mov	r2, r3
	ldr	r1, .L9+20
	bl	strtok_r
	str	r0, [fp, #-1544]
.L5:
	ldr	r0, [fp, #-1544]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-1528]
	ldr	r3, [fp, #-1528]
	sub	r3, r3, #1
	ldr	r2, [fp, #-1544]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L4
	ldr	r3, [fp, #-1528]
	sub	r3, r3, #1
	ldr	r2, [fp, #-1544]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-1528]
	sub	r3, r3, #1
	str	r3, [fp, #-1528]
.L4:
	sub	r3, fp, #1504
	sub	r3, r3, #4
	ldr	r1, [fp, #-1544]
	mov	r0, r3
	bl	strcpy
	sub	r1, fp, #1504
	sub	r1, r1, #4
	mov	r3, #16
	str	r3, [sp, #4]
	sub	r3, fp, #1520
	sub	r3, r3, #4
	str	r3, [sp]
	mov	r3, #2048
	mov	r2, #1000
	ldr	r0, [fp, #-1540]
	bl	sendto
	sub	r3, fp, #1536
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r2, r3
	ldr	r1, .L9+20
	mov	r0, #0
	bl	strtok_r
	str	r0, [fp, #-1544]
	ldr	r3, [fp, #-1544]
	cmp	r3, #0
	bne	.L5
.L3:
	ldr	r3, [fp, #-1532]
	add	r1, r3, #1
	sub	r3, fp, #508
	ldr	r2, [fp, #-1536]
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	ldr	r0, [fp, #-1536]
	bl	fclose
	mov	r3, #0
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	3000
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
