	.file	"771200.c"
	.intel_syntax noprefix
	.text
	.globl	terror
	.type	terror, @function
terror:
.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	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	pthread_exit@PLT
	.cfi_endproc
.LFE6:
	.size	terror, .-terror
	.section	.rodata
.LC0:
	.string	"ERROR reading from socket"
.LC1:
	.string	"server received %d bytes: %s\n"
.LC2:
	.string	"quit"
.LC3:
	.string	"ERROR writing to socket"
.LC4:
	.string	"stop"
.LC5:
	.string	":: EXIT ::"
	.text
	.globl	process_connection
	.type	process_connection, @function
process_connection:
.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, 1072
	mov	QWORD PTR -1064[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -1064[rbp]
	mov	DWORD PTR -1048[rbp], eax
.L9:
	lea	rcx, -1040[rbp]
	mov	eax, DWORD PTR -1048[rbp]
	mov	edx, 1024
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -1044[rbp], eax
	cmp	DWORD PTR -1044[rbp], 0
	jns	.L3
	lea	rdi, .LC0[rip]
	call	terror
.L3:
	mov	eax, DWORD PTR -1044[rbp]
	cdqe
	mov	BYTE PTR -1040[rbp+rax], 0
	lea	rdx, -1040[rbp]
	mov	eax, DWORD PTR -1044[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -1044[rbp], 0
	je	.L4
	lea	rax, -1040[rbp]
	mov	edx, 4
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L5
	movzx	eax, BYTE PTR -1036[rbp]
	cmp	al, 31
	jg	.L5
.L4:
	mov	eax, DWORD PTR -1048[rbp]
	mov	edi, eax
	call	close@PLT
	nop
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	jmp	.L12
.L5:
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, 1[rax]
	lea	rcx, -1040[rbp]
	mov	eax, DWORD PTR -1048[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -1044[rbp], eax
	cmp	DWORD PTR -1044[rbp], 0
	jns	.L7
	lea	rdi, .LC3[rip]
	call	terror
.L7:
	lea	rax, -1040[rbp]
	mov	edx, 4
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L9
	movzx	eax, BYTE PTR -1036[rbp]
	cmp	al, 31
	jg	.L9
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L12:
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	process_connection, .-process_connection
	.globl	error
	.type	error, @function
error:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE8:
	.size	error, .-error
	.section	.rodata
.LC6:
	.string	"use: %s socket_name\n"
.LC7:
	.string	":: START ::"
.LC8:
	.string	"ERROR creating socket"
.LC9:
	.string	"/tmp/%s"
.LC10:
	.string	"ERROR on binding"
.LC11:
	.string	"ERROR on listen"
.LC12:
	.string	":: LISTENING ::"
.LC13:
	.string	"ERROR on accept"
	.align 8
.LC14:
	.string	"server established connection with client"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 288
	mov	DWORD PTR -276[rbp], edi
	mov	QWORD PTR -288[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -276[rbp], 2
	je	.L15
	mov	rax, QWORD PTR -288[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L15:
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	edx, 0
	mov	esi, 1
	mov	edi, 1
	call	socket@PLT
	mov	DWORD PTR -256[rbp], eax
	cmp	DWORD PTR -256[rbp], 0
	jns	.L16
	lea	rdi, .LC8[rip]
	call	error
.L16:
	lea	rax, -240[rbp]
	mov	edx, 110
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -240[rbp], 1
	mov	rax, QWORD PTR -288[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rdx, -240[rbp]
	lea	rcx, 2[rdx]
	mov	rdx, rax
	lea	rsi, .LC9[rip]
	mov	rdi, rcx
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -240[rbp]
	add	rax, 2
	mov	rdi, rax
	call	unlink@PLT
	lea	rcx, -240[rbp]
	mov	eax, DWORD PTR -256[rbp]
	mov	edx, 110
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L17
	mov	eax, DWORD PTR -256[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rdi, .LC10[rip]
	call	error
.L17:
	mov	eax, DWORD PTR -256[rbp]
	mov	esi, 5
	mov	edi, eax
	call	listen@PLT
	test	eax, eax
	jns	.L18
	mov	eax, DWORD PTR -256[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rax, -240[rbp]
	add	rax, 2
	mov	rdi, rax
	call	unlink@PLT
	lea	rdi, .LC11[rip]
	call	error
.L18:
	lea	rdi, .LC12[rip]
	call	puts@PLT
.L20:
	mov	DWORD PTR -260[rbp], 110
	lea	rdx, -260[rbp]
	lea	rcx, -128[rbp]
	mov	eax, DWORD PTR -256[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -252[rbp], eax
	cmp	DWORD PTR -252[rbp], 0
	jns	.L19
	mov	eax, DWORD PTR -256[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rax, -240[rbp]
	add	rax, 2
	mov	rdi, rax
	call	unlink@PLT
	lea	rdi, .LC13[rip]
	call	error
.L19:
	lea	rdi, .LC14[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -252[rbp]
	cdqe
	mov	rdx, rax
	lea	rax, -248[rbp]
	mov	rcx, rdx
	lea	rdx, process_connection[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	rax, QWORD PTR -248[rbp]
	mov	rdi, rax
	call	pthread_detach@PLT
	jmp	.L20
	.cfi_endproc
.LFE9:
	.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	"771200.c"
	.text
	.align	2
	.global	terror
	.syntax unified
	.arm
	.fpu softvfp
	.type	terror, %function
terror:
	@ 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]
	ldr	r0, [fp, #-8]
	bl	perror
	mov	r0, #1
	bl	pthread_exit
	.size	terror, .-terror
	.section	.rodata
	.align	2
.LC0:
	.ascii	"ERROR reading from socket\000"
	.align	2
.LC1:
	.ascii	"server received %d bytes: %s\012\000"
	.align	2
.LC2:
	.ascii	"quit\000"
	.align	2
.LC3:
	.ascii	"ERROR writing to socket\000"
	.align	2
.LC4:
	.ascii	"stop\000"
	.align	2
.LC5:
	.ascii	":: EXIT ::\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	process_connection
	.syntax unified
	.arm
	.fpu softvfp
	.type	process_connection, %function
process_connection:
	@ args = 0, pretend = 0, frame = 1048
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1040
	sub	sp, sp, #8
	str	r0, [fp, #-1048]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-1048]
	str	r3, [fp, #-1040]
.L9:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, r3
	ldr	r0, [fp, #-1040]
	bl	read
	str	r0, [fp, #-1036]
	ldr	r3, [fp, #-1036]
	cmp	r3, #0
	bge	.L3
	ldr	r0, .L13+4
	bl	terror
.L3:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1036]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, r3
	ldr	r1, [fp, #-1036]
	ldr	r0, .L13+8
	bl	printf
	ldr	r3, [fp, #-1036]
	cmp	r3, #0
	beq	.L4
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #4
	ldr	r1, .L13+12
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	ldrb	r3, [fp, #-1028]	@ zero_extendqisi2
	cmp	r3, #31
	bhi	.L5
.L4:
	ldr	r0, [fp, #-1040]
	bl	close
	nop
	mov	r3, #0
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	b	.L12
.L5:
	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	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-1040]
	bl	write
	str	r0, [fp, #-1036]
	ldr	r3, [fp, #-1036]
	cmp	r3, #0
	bge	.L7
	ldr	r0, .L13+16
	bl	terror
.L7:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #4
	ldr	r1, .L13+20
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L9
	ldrb	r3, [fp, #-1028]	@ zero_extendqisi2
	cmp	r3, #31
	bhi	.L9
	ldr	r0, .L13+24
	bl	puts
	mov	r0, #0
	bl	exit
.L12:
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	process_connection, .-process_connection
	.align	2
	.global	error
	.syntax unified
	.arm
	.fpu softvfp
	.type	error, %function
error:
	@ 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]
	ldr	r0, [fp, #-8]
	bl	perror
	mov	r0, #1
	bl	exit
	.size	error, .-error
	.section	.rodata
	.align	2
.LC7:
	.ascii	"use: %s socket_name\012\000"
	.align	2
.LC8:
	.ascii	":: START ::\000"
	.align	2
.LC9:
	.ascii	"ERROR creating socket\000"
	.align	2
.LC10:
	.ascii	"/tmp/%s\000"
	.align	2
.LC11:
	.ascii	"ERROR on binding\000"
	.align	2
.LC12:
	.ascii	"ERROR on listen\000"
	.align	2
.LC13:
	.ascii	":: LISTENING ::\000"
	.align	2
.LC14:
	.ascii	"ERROR on accept\000"
	.align	2
.LC15:
	.ascii	"server established connection with client\000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 256
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #256
	str	r0, [fp, #-256]
	str	r1, [fp, #-260]
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-256]
	cmp	r3, #2
	beq	.L17
	ldr	r3, .L24+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-260]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L24+8
	bl	fprintf
	mov	r0, #1
	bl	exit
.L17:
	ldr	r0, .L24+12
	bl	puts
	mov	r2, #0
	mov	r1, #1
	mov	r0, #1
	bl	socket
	str	r0, [fp, #-240]
	ldr	r3, [fp, #-240]
	cmp	r3, #0
	bge	.L18
	ldr	r0, .L24+16
	bl	error
.L18:
	sub	r3, fp, #232
	mov	r2, #110
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #1
	strh	r3, [fp, #-232]	@ movhi
	ldr	r3, [fp, #-260]
	add	r3, r3, #4
	ldr	r2, [r3]
	sub	r3, fp, #232
	add	r3, r3, #2
	ldr	r1, .L24+20
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #232
	add	r3, r3, #2
	mov	r0, r3
	bl	unlink
	sub	r3, fp, #232
	mov	r2, #110
	mov	r1, r3
	ldr	r0, [fp, #-240]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L19
	ldr	r0, [fp, #-240]
	bl	close
	ldr	r0, .L24+24
	bl	error
.L19:
	mov	r1, #5
	ldr	r0, [fp, #-240]
	bl	listen
	mov	r3, r0
	cmp	r3, #0
	bge	.L20
	ldr	r0, [fp, #-240]
	bl	close
	sub	r3, fp, #232
	add	r3, r3, #2
	mov	r0, r3
	bl	unlink
	ldr	r0, .L24+28
	bl	error
.L20:
	ldr	r0, .L24+32
	bl	puts
.L22:
	mov	r3, #110
	str	r3, [fp, #-248]
	sub	r2, fp, #248
	sub	r3, fp, #120
	mov	r1, r3
	ldr	r0, [fp, #-240]
	bl	accept
	str	r0, [fp, #-236]
	ldr	r3, [fp, #-236]
	cmp	r3, #0
	bge	.L21
	ldr	r0, [fp, #-240]
	bl	close
	sub	r3, fp, #232
	add	r3, r3, #2
	mov	r0, r3
	bl	unlink
	ldr	r0, .L24+36
	bl	error
.L21:
	ldr	r0, .L24+40
	bl	puts
	ldr	r3, [fp, #-236]
	sub	r0, fp, #244
	ldr	r2, .L24+44
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-244]
	mov	r0, r3
	bl	pthread_detach
	b	.L22
.L25:
	.align	2
.L24:
	.word	.LC16
	.word	stderr
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	process_connection
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
