	.file	"168893102.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"HTTP/1.1 200 OK\r\n\r\n<html>Hello from server</html>"
.LC1:
	.string	"Socket error"
.LC2:
	.string	"Bind error"
.LC3:
	.string	"Listen error"
	.align 8
.LC4:
	.string	"\033[0mServer running on \033[4;32mhttp://127.0.0.1:%d\033[0m \033[5;31m\342\254\244\033[0m\n"
.LC5:
	.string	"Accept error"
.LC6:
	.string	" \t\r\n"
.LC7:
	.string	" \t"
	.align 8
.LC8:
	.string	"\033[0m\033[35m%s\033[0m \033[4;33m%s\033[0m\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, 1072
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1068[rbp], 16
	lea	rax, .LC0[rip]
	mov	QWORD PTR -1056[rbp], rax
	mov	QWORD PTR -1008[rbp], 0
	mov	QWORD PTR -1000[rbp], 0
	lea	rdx, -992[rbp]
	mov	eax, 0
	mov	ecx, 123
	mov	rdi, rdx
	rep stosq
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -1064[rbp], eax
	cmp	DWORD PTR -1064[rbp], 0
	jne	.L2
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	WORD PTR -1024[rbp], 2
	mov	DWORD PTR -1020[rbp], 0
	mov	edi, 8080
	call	htons@PLT
	mov	WORD PTR -1022[rbp], ax
	lea	rax, -1024[rbp]
	add	rax, 8
	mov	edx, 8
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rcx, -1024[rbp]
	mov	eax, DWORD PTR -1064[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 -1064[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:
	mov	esi, 8080
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L6:
	lea	rdx, -1068[rbp]
	lea	rcx, -1024[rbp]
	mov	eax, DWORD PTR -1064[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -1060[rbp], eax
	cmp	DWORD PTR -1060[rbp], 0
	jns	.L5
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	lea	rcx, -1008[rbp]
	mov	eax, DWORD PTR -1060[rbp]
	mov	edx, 1000
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -1048[rbp], rax
	lea	rax, -1008[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -1040[rbp], rax
	lea	rsi, .LC7[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -1032[rbp], rax
	mov	rdx, QWORD PTR -1032[rbp]
	mov	rax, QWORD PTR -1040[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -1056[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rcx, QWORD PTR -1056[rbp]
	mov	eax, DWORD PTR -1060[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -1060[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L6
	.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	"168893102.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"HTTP/1.1 200 OK\015\012\015\012<html>Hello from ser"
	.ascii	"ver</html>\000"
	.align	2
.LC1:
	.ascii	"Socket error\000"
	.align	2
.LC2:
	.ascii	"Bind error\000"
	.align	2
.LC3:
	.ascii	"Listen error\000"
	.align	2
.LC4:
	.ascii	"\033[0mServer running on \033[4;32mhttp://127.0.0.1"
	.ascii	":%d\033[0m \033[5;31m\342\254\244\033[0m\012\000"
	.align	2
.LC5:
	.ascii	"Accept error\000"
	.align	2
.LC6:
	.ascii	" \011\015\012\000"
	.align	2
.LC7:
	.ascii	" \011\000"
	.align	2
.LC8:
	.ascii	"\033[0m\033[35m%s\033[0m \033[4;33m%s\033[0m\012\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #16
	str	r3, [fp, #-1052]
	ldr	r3, .L8+4
	str	r3, [fp, #-1048]
	mov	r3, #0
	str	r3, [fp, #-1008]
	sub	r3, fp, #1004
	mov	r2, #996
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-1044]
	ldr	r3, [fp, #-1044]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L8+8
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	sub	r3, fp, #4
	sub	r3, r3, #1020
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-1020]
	ldr	r0, .L8+12
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4
	sub	r3, r3, #1020
	strh	r2, [r3, #2]	@ movhi
	sub	r3, fp, #1024
	add	r3, r3, #8
	mov	r2, #8
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #1024
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-1044]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L3
	ldr	r0, .L8+16
	bl	perror
	mov	r0, #1
	bl	exit
.L3:
	mov	r1, #10
	ldr	r0, [fp, #-1044]
	bl	listen
	mov	r3, r0
	cmp	r3, #0
	bge	.L4
	ldr	r0, .L8+20
	bl	perror
	mov	r0, #1
	bl	exit
.L4:
	ldr	r1, .L8+12
	ldr	r0, .L8+24
	bl	printf
.L6:
	sub	r3, fp, #1040
	sub	r3, r3, #4
	sub	r3, r3, #8
	sub	r1, fp, #1024
	mov	r2, r3
	ldr	r0, [fp, #-1044]
	bl	accept
	str	r0, [fp, #-1040]
	ldr	r3, [fp, #-1040]
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L8+28
	bl	perror
	mov	r0, #1
	bl	exit
.L5:
	sub	r3, fp, #1008
	mov	r2, #1000
	mov	r1, r3
	ldr	r0, [fp, #-1040]
	bl	read
	str	r0, [fp, #-1036]
	sub	r3, fp, #1008
	ldr	r1, .L8+32
	mov	r0, r3
	bl	strtok
	str	r0, [fp, #-1032]
	ldr	r1, .L8+36
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-1028]
	ldr	r2, [fp, #-1028]
	ldr	r1, [fp, #-1032]
	ldr	r0, .L8+40
	bl	printf
	ldr	r0, [fp, #-1048]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-1048]
	ldr	r0, [fp, #-1040]
	bl	write
	ldr	r0, [fp, #-1040]
	bl	close
	b	.L6
.L9:
	.align	2
.L8:
	.word	.LC9
	.word	.LC0
	.word	.LC1
	.word	8080
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
