	.file	"114638.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"socket error"
.LC1:
	.string	"bind error"
.LC2:
	.string	"listen error"
.LC3:
	.string	"Wait connect"
.LC4:
	.string	"accept error"
	.align 8
.LC5:
	.string	"server: got connection from %s \n"
.LC6:
	.string	"Hello, World\n"
.LC7:
	.string	"write error"
.LC8:
	.string	"read error"
.LC9:
	.string	"read: %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, 1104
	mov	DWORD PTR -1092[rbp], edi
	mov	QWORD PTR -1104[rbp], rsi
	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 -1084[rbp], eax
	cmp	DWORD PTR -1084[rbp], -1
	jne	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	lea	rax, -1072[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	WORD PTR -1072[rbp], 2
	mov	edi, 3491
	call	htons@PLT
	mov	WORD PTR -1070[rbp], ax
	lea	rcx, -1072[rbp]
	mov	eax, DWORD PTR -1084[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	cmp	eax, -1
	jne	.L3
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	eax, DWORD PTR -1084[rbp]
	mov	esi, 5
	mov	edi, eax
	call	listen@PLT
	cmp	eax, -1
	jne	.L4
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	lea	rdi, .LC3[rip]
	call	puts@PLT
.L9:
	mov	DWORD PTR -1088[rbp], 16
	lea	rdx, -1088[rbp]
	lea	rcx, -1056[rbp]
	mov	eax, DWORD PTR -1084[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -1080[rbp], eax
	cmp	DWORD PTR -1080[rbp], -1
	jne	.L5
	lea	rdi, .LC4[rip]
	call	perror@PLT
	jmp	.L6
.L5:
	mov	eax, DWORD PTR -1052[rbp]
	mov	edi, eax
	call	inet_ntoa@PLT
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -1080[rbp]
	mov	edx, 12
	lea	rsi, .LC6[rip]
	mov	edi, eax
	call	write@PLT
	cmp	rax, -1
	jne	.L7
	lea	rdi, .LC7[rip]
	call	perror@PLT
.L7:
	lea	rcx, -1040[rbp]
	mov	eax, DWORD PTR -1080[rbp]
	mov	edx, 500
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -1076[rbp], eax
	cmp	DWORD PTR -1076[rbp], -1
	jne	.L8
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L8:
	mov	eax, DWORD PTR -1076[rbp]
	cdqe
	mov	BYTE PTR -1040[rbp+rax], 0
	lea	rax, -1040[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -1080[rbp]
	mov	edi, eax
	call	close@PLT
.L6:
	jmp	.L9
	.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	"114638.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"socket error\000"
	.align	2
.LC1:
	.ascii	"bind error\000"
	.align	2
.LC2:
	.ascii	"listen error\000"
	.align	2
.LC3:
	.ascii	"Wait connect\000"
	.align	2
.LC4:
	.ascii	"accept error\000"
	.align	2
.LC5:
	.ascii	"server: got connection from %s \012\000"
	.align	2
.LC6:
	.ascii	"Hello, World\012\000"
	.align	2
.LC7:
	.ascii	"write error\000"
	.align	2
.LC8:
	.ascii	"read error\000"
	.align	2
.LC9:
	.ascii	"read: %s\012\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1088
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1088
	str	r0, [fp, #-1088]
	str	r1, [fp, #-1092]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-1076]
	ldr	r3, [fp, #-1076]
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L11+4
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	sub	r3, fp, #1056
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	str	r3, [r2, #12]
	sub	r3, fp, #4
	sub	r3, r3, #1056
	sub	r3, r3, #4
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r0, .L11+8
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4
	sub	r3, r3, #1056
	sub	r3, r3, #4
	strh	r2, [r3, #2]	@ movhi
	sub	r3, fp, #1056
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-1076]
	bl	bind
	mov	r3, r0
	cmn	r3, #1
	bne	.L3
	ldr	r0, .L11+12
	bl	perror
	mov	r0, #1
	bl	exit
.L3:
	mov	r1, #5
	ldr	r0, [fp, #-1076]
	bl	listen
	mov	r3, r0
	cmn	r3, #1
	bne	.L4
	ldr	r0, .L11+16
	bl	perror
	mov	r0, #1
	bl	exit
.L4:
	ldr	r0, .L11+20
	bl	puts
.L9:
	mov	r3, #16
	str	r3, [fp, #-1080]
	sub	r2, fp, #1072
	sub	r2, r2, #4
	sub	r2, r2, #4
	sub	r3, fp, #1040
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-1076]
	bl	accept
	str	r0, [fp, #-1072]
	ldr	r3, [fp, #-1072]
	cmn	r3, #1
	bne	.L5
	ldr	r0, .L11+24
	bl	perror
	b	.L6
.L5:
	ldr	r0, [fp, #-1044]
	bl	inet_ntoa
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L11+28
	bl	printf
	mov	r2, #12
	ldr	r1, .L11+32
	ldr	r0, [fp, #-1072]
	bl	write
	mov	r3, r0
	cmn	r3, #1
	bne	.L7
	ldr	r0, .L11+36
	bl	perror
.L7:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #500
	mov	r1, r3
	ldr	r0, [fp, #-1072]
	bl	read
	str	r0, [fp, #-1068]
	ldr	r3, [fp, #-1068]
	cmn	r3, #1
	bne	.L8
	ldr	r0, .L11+40
	bl	perror
	mov	r0, #1
	bl	exit
.L8:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1068]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L11+44
	bl	printf
	ldr	r0, [fp, #-1072]
	bl	close
.L6:
	b	.L9
.L12:
	.align	2
.L11:
	.word	.LC10
	.word	.LC0
	.word	3491
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
