	.file	"904873.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Hello from server"
.LC1:
	.string	"In socket"
.LC2:
	.string	"In bind"
.LC3:
	.string	"In listen"
	.align 8
.LC4:
	.string	"\n+++++++ Waiting for new connection ++++++++\n"
.LC5:
	.string	"In accept"
	.align 8
.LC6:
	.string	"------------------Hello message sent-------------------"
	.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
	lea	r11, -28672[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 1408
	mov	DWORD PTR -30068[rbp], edi
	mov	QWORD PTR -30080[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -30060[rbp], 16
	lea	rax, .LC0[rip]
	mov	QWORD PTR -30048[rbp], rax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -30056[rbp], eax
	cmp	DWORD PTR -30056[rbp], 0
	jne	.L2
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	WORD PTR -30032[rbp], 2
	mov	DWORD PTR -30028[rbp], 0
	mov	edi, 8080
	call	htons@PLT
	mov	WORD PTR -30030[rbp], ax
	lea	rax, -30032[rbp]
	add	rax, 8
	mov	edx, 8
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rcx, -30032[rbp]
	mov	eax, DWORD PTR -30056[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L3
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	eax, DWORD PTR -30056[rbp]
	mov	esi, 10
	mov	edi, eax
	call	listen@PLT
	test	eax, eax
	jns	.L4
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdx, -30060[rbp]
	lea	rcx, -30032[rbp]
	mov	eax, DWORD PTR -30056[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -30052[rbp], eax
	cmp	DWORD PTR -30052[rbp], 0
	jns	.L5
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	QWORD PTR -30016[rbp], 0
	mov	QWORD PTR -30008[rbp], 0
	lea	rax, -30000[rbp]
	mov	edx, 29984
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rcx, -30016[rbp]
	mov	eax, DWORD PTR -30052[rbp]
	mov	edx, 30000
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -30040[rbp], rax
	lea	rax, -30016[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	rax, QWORD PTR -30048[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rcx, QWORD PTR -30048[rbp]
	mov	eax, DWORD PTR -30052[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -30052[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L4
	.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	"904873.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Hello from server\000"
	.align	2
.LC1:
	.ascii	"In socket\000"
	.align	2
.LC2:
	.ascii	"In bind\000"
	.align	2
.LC3:
	.ascii	"In listen\000"
	.align	2
.LC4:
	.ascii	"\012+++++++ Waiting for new connection ++++++++\012"
	.ascii	"\000"
	.align	2
.LC5:
	.ascii	"In accept\000"
	.align	2
.LC6:
	.ascii	"------------------Hello message sent---------------"
	.ascii	"----\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 30048
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #29952
	sub	sp, sp, #100
	sub	r3, fp, #28672
	sub	r3, r3, #12
	str	r0, [r3, #-1372]
	sub	r3, fp, #28672
	sub	r3, r3, #12
	str	r1, [r3, #-1376]
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #28672
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #16
	str	r3, [r2, #-1368]
	sub	r3, fp, #28672
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L7+4
	str	r3, [r2, #-1364]
	sub	r3, fp, #28672
	sub	r3, r3, #12
	mov	r4, r3
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [r4, #-1360]
	sub	r3, fp, #28672
	sub	r3, r3, #12
	ldr	r3, [r3, #-1360]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L7+8
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	sub	r3, fp, #28672
	sub	r3, r3, #12
	sub	r3, r3, #1344
	sub	r3, r3, #4
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #28672
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1344]
	ldr	r0, .L7+12
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #28672
	sub	r3, r3, #12
	sub	r3, r3, #1344
	sub	r3, r3, #4
	strh	r2, [r3, #2]	@ movhi
	sub	r3, fp, #29952
	sub	r3, r3, #12
	sub	r3, r3, #68
	add	r3, r3, #8
	mov	r2, #8
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #29952
	sub	r3, r3, #12
	sub	r3, r3, #68
	sub	r2, fp, #28672
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [r0, #-1360]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L3
	ldr	r0, .L7+16
	bl	perror
	mov	r0, #1
	bl	exit
.L3:
	sub	r3, fp, #28672
	sub	r3, r3, #12
	mov	r1, #10
	ldr	r0, [r3, #-1360]
	bl	listen
	mov	r3, r0
	cmp	r3, #0
	bge	.L4
	ldr	r0, .L7+20
	bl	perror
	mov	r0, #1
	bl	exit
.L4:
	ldr	r0, .L7+24
	bl	puts
	sub	r3, fp, #28672
	sub	r3, r3, #12
	mov	r4, r3
	sub	r2, fp, #29952
	sub	r2, r2, #12
	sub	r2, r2, #88
	sub	r3, fp, #29952
	sub	r3, r3, #12
	sub	r3, r3, #68
	sub	r1, fp, #28672
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-1360]
	bl	accept
	str	r0, [r4, #-1356]
	sub	r3, fp, #28672
	sub	r3, r3, #12
	ldr	r3, [r3, #-1356]
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L7+28
	bl	perror
	mov	r0, #1
	bl	exit
.L5:
	sub	r3, fp, #28672
	sub	r3, r3, #12
	mov	r2, #0
	str	r2, [r3, #-1332]
	sub	r3, r3, #1328
	ldr	r2, .L7+32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #28672
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #29952
	sub	r3, r3, #12
	sub	r3, r3, #52
	sub	r2, fp, #28672
	sub	r2, r2, #12
	mov	r0, r2
	ldr	r2, .L7+36
	mov	r1, r3
	ldr	r0, [r0, #-1356]
	bl	read
	str	r0, [r4, #-1352]
	sub	r3, fp, #29952
	sub	r3, r3, #12
	sub	r3, r3, #52
	mov	r0, r3
	bl	puts
	sub	r3, fp, #28672
	sub	r3, r3, #12
	ldr	r0, [r3, #-1364]
	bl	strlen
	mov	r3, r0
	sub	r2, fp, #28672
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #28672
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, [r1, #-1364]
	ldr	r0, [r0, #-1356]
	bl	write
	ldr	r0, .L7+40
	bl	puts
	sub	r3, fp, #28672
	sub	r3, r3, #12
	ldr	r0, [r3, #-1356]
	bl	close
	b	.L4
.L8:
	.align	2
.L7:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	8080
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	29996
	.word	30000
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
