	.file	"352211.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Can't allocate sockfd"
.LC1:
	.string	"%s \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
	sub	rsp, 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -108[rbp], eax
	cmp	DWORD PTR -108[rbp], -1
	jne	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	lea	rax, -80[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -80[rbp], 2
	mov	edi, 0
	call	htonl@PLT
	mov	DWORD PTR -76[rbp], eax
	mov	edi, 8080
	call	htons@PLT
	mov	WORD PTR -78[rbp], ax
	lea	rcx, -80[rbp]
	mov	eax, DWORD PTR -108[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	mov	eax, DWORD PTR -108[rbp]
	mov	esi, 7878
	mov	edi, eax
	call	listen@PLT
	mov	DWORD PTR -112[rbp], 16
	mov	DWORD PTR -104[rbp], 1
	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	WORD PTR -16[rbp], 0
.L3:
	lea	rdx, -112[rbp]
	lea	rcx, -96[rbp]
	mov	eax, DWORD PTR -108[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -100[rbp], eax
	lea	rsi, -64[rbp]
	mov	eax, DWORD PTR -100[rbp]
	mov	ecx, 0
	mov	edx, 50
	mov	edi, eax
	call	recv@PLT
	lea	rax, -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -100[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L3
	.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	"352211.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Can't allocate sockfd\000"
	.align	2
.LC1:
	.ascii	"%s \012\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #104
	ldr	r3, .L5
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-104]
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L5+4
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	sub	r3, fp, #76
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	strh	r3, [fp, #-76]	@ movhi
	mov	r0, #0
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-72]
	ldr	r0, .L5+8
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-74]	@ movhi
	sub	r3, fp, #76
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-104]
	bl	bind
	ldr	r1, .L5+12
	ldr	r0, [fp, #-104]
	bl	listen
	mov	r3, #16
	str	r3, [fp, #-108]
	mov	r3, #1
	str	r3, [fp, #-100]
	mov	r3, #0
	str	r3, [fp, #-60]
	sub	r3, fp, #56
	mov	r2, #46
	mov	r1, #0
	mov	r0, r3
	bl	memset
.L3:
	sub	r2, fp, #108
	sub	r3, fp, #92
	mov	r1, r3
	ldr	r0, [fp, #-104]
	bl	accept
	str	r0, [fp, #-96]
	sub	r1, fp, #60
	mov	r3, #0
	mov	r2, #50
	ldr	r0, [fp, #-96]
	bl	recv
	sub	r3, fp, #60
	mov	r1, r3
	ldr	r0, .L5+16
	bl	printf
	ldr	r0, [fp, #-96]
	bl	close
	b	.L3
.L6:
	.align	2
.L5:
	.word	.LC2
	.word	.LC0
	.word	8080
	.word	7878
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
