	.file	"938176.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"line:%d\n"
	.text
	.globl	my_err
	.type	my_err, @function
my_err:
.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	DWORD PTR -12[rbp], esi
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -12[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	my_err, .-my_err
	.section	.rodata
.LC1:
	.string	"intput erro"
.LC2:
	.string	"sockfd"
.LC3:
	.string	"connect"
.LC4:
	.string	"recv"
.LC5:
	.string	"q"
.LC6:
	.string	"serve:%s\n"
.LC7:
	.string	"send"
	.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, 2112
	mov	DWORD PTR -2100[rbp], edi
	mov	QWORD PTR -2112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -2100[rbp], 3
	je	.L3
	mov	esi, 21
	lea	rdi, .LC1[rip]
	call	my_err
.L3:
	mov	QWORD PTR -2064[rbp], 0
	mov	QWORD PTR -2056[rbp], 0
	lea	rdx, -2048[rbp]
	mov	eax, 0
	mov	ecx, 126
	mov	rdi, rdx
	rep stosq
	mov	QWORD PTR -1040[rbp], 0
	mov	QWORD PTR -1032[rbp], 0
	lea	rdx, -1024[rbp]
	mov	eax, 0
	mov	ecx, 126
	mov	rdi, rdx
	rep stosq
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -2092[rbp], eax
	cmp	DWORD PTR -2092[rbp], 0
	jns	.L4
	mov	esi, 28
	lea	rdi, .LC2[rip]
	call	my_err
.L4:
	mov	rax, QWORD PTR -2112[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -2088[rbp], eax
	lea	rax, -2080[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -2080[rbp], 2
	mov	eax, DWORD PTR -2088[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -2078[rbp], ax
	mov	rax, QWORD PTR -2112[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	inet_addr@PLT
	mov	DWORD PTR -2076[rbp], eax
	mov	DWORD PTR -2084[rbp], 16
	mov	edx, DWORD PTR -2084[rbp]
	lea	rcx, -2080[rbp]
	mov	eax, DWORD PTR -2092[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	jns	.L10
	mov	esi, 36
	lea	rdi, .LC3[rip]
	call	my_err
.L10:
	lea	rsi, -2064[rbp]
	mov	eax, DWORD PTR -2092[rbp]
	mov	ecx, 0
	mov	edx, 1024
	mov	edi, eax
	call	recv@PLT
	test	rax, rax
	jns	.L6
	mov	esi, 40
	lea	rdi, .LC4[rip]
	call	my_err
.L6:
	lea	rax, -2064[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	BYTE PTR -2064[rbp+rax], 0
	lea	rax, -2064[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L14
	lea	rax, -2064[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -1040[rbp]
	mov	esi, 1024
	mov	rdi, rax
	call	fgets@PLT
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	mov	BYTE PTR -1040[rbp+rax], 0
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, 1[rax]
	lea	rsi, -1040[rbp]
	mov	eax, DWORD PTR -2092[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	test	rax, rax
	jns	.L10
	mov	esi, 48
	lea	rdi, .LC7[rip]
	call	my_err
	jmp	.L10
.L14:
	nop
	mov	eax, DWORD PTR -2092[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.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	"938176.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"line:%d\012\000"
	.text
	.align	2
	.global	my_err
	.syntax unified
	.arm
	.fpu softvfp
	.type	my_err, %function
my_err:
	@ 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, .L2
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	ldr	r1, .L2+4
	mov	r0, r3
	bl	fprintf
	ldr	r0, [fp, #-8]
	bl	perror
	mov	r0, #0
	bl	exit
.L3:
	.align	2
.L2:
	.word	stderr
	.word	.LC0
	.size	my_err, .-my_err
	.section	.rodata
	.align	2
.LC1:
	.ascii	"intput erro\000"
	.align	2
.LC2:
	.ascii	"sockfd\000"
	.align	2
.LC3:
	.ascii	"connect\000"
	.align	2
.LC4:
	.ascii	"recv\000"
	.align	2
.LC5:
	.ascii	"q\000"
	.align	2
.LC6:
	.ascii	"serve:%s\012\000"
	.align	2
.LC7:
	.ascii	"send\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 2088
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2080
	sub	sp, sp, #8
	str	r0, [fp, #-2088]
	str	r1, [fp, #-2092]
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-2088]
	cmp	r3, #3
	beq	.L5
	mov	r1, #21
	ldr	r0, .L17+4
	bl	my_err
.L5:
	mov	r3, #0
	str	r3, [fp, #-2056]
	sub	r3, fp, #2048
	sub	r3, r3, #4
	mov	r2, #1020
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-1032]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	mov	r2, #1020
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-2084]
	ldr	r3, [fp, #-2084]
	cmp	r3, #0
	bge	.L6
	mov	r1, #28
	ldr	r0, .L17+8
	bl	my_err
.L6:
	ldr	r3, [fp, #-2092]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-2080]
	sub	r3, fp, #2064
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4
	sub	r3, r3, #2064
	sub	r3, r3, #4
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-2080]
	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, #2064
	sub	r3, r3, #4
	strh	r2, [r3, #2]	@ movhi
	ldr	r3, [fp, #-2092]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	inet_addr
	mov	r3, r0
	str	r3, [fp, #-2068]
	mov	r3, #16
	str	r3, [fp, #-2076]
	sub	r3, fp, #2064
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-2076]
	mov	r1, r3
	ldr	r0, [fp, #-2084]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	bge	.L12
	mov	r1, #36
	ldr	r0, .L17+12
	bl	my_err
.L12:
	sub	r1, fp, #2048
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	mov	r2, #1024
	ldr	r0, [fp, #-2084]
	bl	recv
	mov	r3, r0
	cmp	r3, #0
	bge	.L8
	mov	r1, #40
	ldr	r0, .L17+16
	bl	my_err
.L8:
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-2052]
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L17+20
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L16
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L17+24
	bl	printf
	ldr	r3, .L17+28
	ldr	r2, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, #1024
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-1028]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r2, r3, #1
	sub	r1, fp, #1024
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	ldr	r0, [fp, #-2084]
	bl	send
	mov	r3, r0
	cmp	r3, #0
	bge	.L12
	mov	r1, #48
	ldr	r0, .L17+32
	bl	my_err
	b	.L12
.L16:
	nop
	ldr	r0, [fp, #-2084]
	bl	close
	mov	r3, #0
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC8
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	stdin
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
