	.file	"376506.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Usage : ./server [port]"
.LC1:
	.string	"Example  : ./server 8080"
.LC2:
	.string	"socket error : "
.LC3:
	.string	"bind error : "
.LC4:
	.string	"listen error : "
	.align 8
.LC5:
	.string	"Now, We are just listening %s ports (Ctrl+c will stop server)...\n"
.LC6:
	.string	"author: 201122037 Taehwan Kim"
.LC7:
	.string	"Accept error : "
.LC8:
	.string	"Hello This is "
	.align 8
.LC9:
	.string	"200 Welcome %s. What can I do for you?\n 1) add  2) sub 3) mult 4) div ex) add 100 200"
	.align 8
.LC10:
	.string	"400 I'm sorry. Greeting is required."
.LC11:
	.string	" "
.LC12:
	.string	"QUIT"
.LC13:
	.string	"402 Too few Parameters"
.LC14:
	.string	"200 bye"
.LC15:
	.string	"Client is disconnected."
.LC16:
	.string	"403 Parameter error"
.LC17:
	.string	"500 Server overflow"
.LC18:
	.string	"ADD"
.LC19:
	.string	"200 Result %ld"
.LC20:
	.string	"MULT"
.LC21:
	.string	"SUB"
.LC22:
	.string	"DIV"
	.align 8
.LC23:
	.string	"403 Parameter error: you divided by zero!"
.LC24:
	.string	"401 Unknown command"
	.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
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 232
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	DWORD PTR -244[rbp], edi
	mov	QWORD PTR -256[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -224[rbp], 255
	mov	DWORD PTR -228[rbp], 50
	mov	DWORD PTR -232[rbp], 20
	mov	DWORD PTR -216[rbp], 0
	mov	DWORD PTR -220[rbp], 0
	mov	eax, DWORD PTR -224[rbp]
	cdqe
	sub	rax, 1
	mov	QWORD PTR -176[rbp], rax
	mov	eax, DWORD PTR -224[rbp]
	cdqe
	mov	QWORD PTR -272[rbp], rax
	mov	QWORD PTR -264[rbp], 0
	mov	eax, DWORD PTR -224[rbp]
	cdqe
	mov	rcx, rax
	mov	ebx, 0
	mov	eax, DWORD PTR -224[rbp]
	cdqe
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L2:
	cmp	rsp, rdx
	je	.L3
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L2
.L3:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L4
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L4:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -168[rbp], rax
	mov	eax, DWORD PTR -224[rbp]
	cdqe
	sub	rax, 1
	mov	QWORD PTR -160[rbp], rax
	mov	eax, DWORD PTR -224[rbp]
	cdqe
	mov	r14, rax
	mov	r15d, 0
	mov	eax, DWORD PTR -224[rbp]
	cdqe
	mov	r12, rax
	mov	r13d, 0
	mov	eax, DWORD PTR -224[rbp]
	cdqe
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L5:
	cmp	rsp, rdx
	je	.L6
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L5
.L6:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L7
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L7:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -152[rbp], rax
	mov	eax, DWORD PTR -232[rbp]
	cdqe
	sub	rax, 1
	mov	QWORD PTR -144[rbp], rax
	mov	eax, DWORD PTR -232[rbp]
	cdqe
	mov	r10, rax
	mov	r11d, 0
	mov	eax, DWORD PTR -232[rbp]
	cdqe
	mov	r8, rax
	mov	r9d, 0
	mov	eax, DWORD PTR -232[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L8:
	cmp	rsp, rdx
	je	.L9
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L8
.L9:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L10
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L10:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -136[rbp], rax
	mov	QWORD PTR -128[rbp], 0
	mov	QWORD PTR -120[rbp], 0
	mov	QWORD PTR -200[rbp], 0
	mov	QWORD PTR -192[rbp], 0
	cmp	DWORD PTR -244[rbp], 2
	je	.L11
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L11:
	mov	DWORD PTR -212[rbp], 0
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -208[rbp], eax
	cmp	DWORD PTR -208[rbp], 0
	jns	.L12
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 0
	call	exit@PLT
.L12:
	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	rax, QWORD PTR -256[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -78[rbp], ax
	lea	rcx, -80[rbp]
	mov	eax, DWORD PTR -208[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	mov	DWORD PTR -212[rbp], eax
	cmp	DWORD PTR -212[rbp], -1
	jne	.L13
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 0
	call	exit@PLT
.L13:
	mov	eax, DWORD PTR -208[rbp]
	mov	esi, 5
	mov	edi, eax
	call	listen@PLT
	mov	DWORD PTR -212[rbp], eax
	cmp	DWORD PTR -212[rbp], -1
	jne	.L14
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 0
	call	exit@PLT
.L14:
	mov	rax, QWORD PTR -256[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
.L35:
	lea	rdx, -236[rbp]
	lea	rcx, -96[rbp]
	mov	eax, DWORD PTR -208[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -204[rbp], eax
	cmp	DWORD PTR -204[rbp], -1
	jne	.L15
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	edi, 0
	call	exit@PLT
.L15:
	mov	DWORD PTR -216[rbp], 0
	mov	eax, DWORD PTR -224[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -168[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR -224[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -152[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR -224[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -168[rbp]
	mov	eax, DWORD PTR -204[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	test	rax, rax
	jg	.L16
	mov	eax, DWORD PTR -204[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L37
.L16:
	cmp	DWORD PTR -220[rbp], 0
	jne	.L18
	mov	rax, QWORD PTR -168[rbp]
	mov	edx, 13
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L19
	mov	DWORD PTR -220[rbp], 1
	mov	rax, QWORD PTR -168[rbp]
	add	rax, 14
	mov	QWORD PTR -104[rbp], rax
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	rdx, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR -152[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	jmp	.L20
.L19:
	mov	rax, QWORD PTR -152[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	jmp	.L20
.L18:
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	rax, QWORD PTR -168[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -184[rbp], rax
	jmp	.L21
.L23:
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	to_upp
	mov	rax, QWORD PTR -136[rbp]
	mov	edx, DWORD PTR -216[rbp]
	movsx	rdx, edx
	mov	rcx, QWORD PTR -184[rbp]
	mov	QWORD PTR [rax+rdx*8], rcx
	add	DWORD PTR -216[rbp], 1
	lea	rsi, .LC11[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -184[rbp], rax
.L21:
	cmp	QWORD PTR -184[rbp], 0
	je	.L22
	mov	eax, DWORD PTR -216[rbp]
	cmp	eax, DWORD PTR -232[rbp]
	jl	.L23
.L22:
	cmp	DWORD PTR -216[rbp], 2
	jg	.L24
	mov	rax, QWORD PTR -136[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, 4
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	je	.L24
	mov	rax, QWORD PTR -152[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	jmp	.L20
.L24:
	mov	rax, QWORD PTR -136[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, 4
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L25
	mov	rax, QWORD PTR -152[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rdi, .LC15[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -224[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR -204[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -204[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 0
	call	exit@PLT
.L25:
	mov	rax, QWORD PTR -136[rbp]
	mov	rax, QWORD PTR 8[rax]
	lea	rcx, -200[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	rdi, rax
	call	strtol@PLT
	mov	QWORD PTR -128[rbp], rax
	mov	rax, QWORD PTR -136[rbp]
	mov	rax, QWORD PTR 16[rax]
	lea	rcx, -192[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	rdi, rax
	call	strtol@PLT
	mov	QWORD PTR -120[rbp], rax
	mov	rax, QWORD PTR -136[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -112[rbp], rax
	mov	rax, QWORD PTR -200[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L26
	mov	rax, QWORD PTR -192[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L27
.L26:
	mov	rax, QWORD PTR -152[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	jmp	.L20
.L27:
	movabs	rax, 9223372036854775807
	cmp	QWORD PTR -128[rbp], rax
	je	.L28
	movabs	rax, -9223372036854775808
	cmp	QWORD PTR -128[rbp], rax
	je	.L28
	movabs	rax, -9223372036854775808
	cmp	QWORD PTR -120[rbp], rax
	je	.L28
	movabs	rax, 9223372036854775807
	cmp	QWORD PTR -120[rbp], rax
	jne	.L29
.L28:
	mov	rax, QWORD PTR -152[rbp]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	jmp	.L20
.L29:
	mov	rax, QWORD PTR -112[rbp]
	mov	edx, 3
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L30
	mov	rdx, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR -120[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -152[rbp]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	jmp	.L20
.L30:
	mov	rax, QWORD PTR -112[rbp]
	mov	edx, 3
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L31
	mov	rax, QWORD PTR -128[rbp]
	imul	rax, QWORD PTR -120[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -152[rbp]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	jmp	.L20
.L31:
	mov	rax, QWORD PTR -112[rbp]
	mov	edx, 3
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L32
	mov	rax, QWORD PTR -128[rbp]
	sub	rax, QWORD PTR -120[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -152[rbp]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	jmp	.L20
.L32:
	mov	rax, QWORD PTR -112[rbp]
	mov	edx, 3
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L33
	cmp	QWORD PTR -120[rbp], 0
	jne	.L34
	mov	rax, QWORD PTR -152[rbp]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	jmp	.L20
.L34:
	mov	rax, QWORD PTR -128[rbp]
	cqo
	idiv	QWORD PTR -120[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -152[rbp]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	jmp	.L20
.L33:
	mov	rax, QWORD PTR -152[rbp]
	lea	rsi, .LC24[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
.L20:
	mov	eax, DWORD PTR -224[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR -204[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	jmp	.L15
.L37:
	jmp	.L35
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	to_upp
	.type	to_upp, @function
to_upp:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	jmp	.L39
.L40:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	toupper@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], dl
	add	QWORD PTR -8[rbp], 1
.L39:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L40
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	to_upp, .-to_upp
	.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	"376506.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage : ./server [port]\000"
	.align	2
.LC1:
	.ascii	"Example  : ./server 8080\000"
	.align	2
.LC2:
	.ascii	"socket error : \000"
	.align	2
.LC3:
	.ascii	"bind error : \000"
	.align	2
.LC4:
	.ascii	"listen error : \000"
	.align	2
.LC5:
	.ascii	"Now, We are just listening %s ports (Ctrl+c will st"
	.ascii	"op server)...\012\000"
	.align	2
.LC6:
	.ascii	"author: 201122037 Taehwan Kim\000"
	.align	2
.LC7:
	.ascii	"Accept error : \000"
	.align	2
.LC8:
	.ascii	"Hello This is \000"
	.align	2
.LC9:
	.ascii	"200 Welcome %s. What can I do for you?\012 1) add  "
	.ascii	"2) sub 3) mult 4) div ex) add 100 200\000"
	.align	2
.LC10:
	.ascii	"400 I'm sorry. Greeting is required.\000"
	.align	2
.LC11:
	.ascii	" \000"
	.align	2
.LC12:
	.ascii	"QUIT\000"
	.align	2
.LC13:
	.ascii	"402 Too few Parameters\000"
	.align	2
.LC14:
	.ascii	"200 bye\000"
	.align	2
.LC15:
	.ascii	"Client is disconnected.\000"
	.align	2
.LC16:
	.ascii	"403 Parameter error\000"
	.align	2
.LC17:
	.ascii	"500 Server overflow\000"
	.align	2
.LC18:
	.ascii	"ADD\000"
	.align	2
.LC19:
	.ascii	"200 Result %ld\000"
	.align	2
.LC20:
	.ascii	"MULT\000"
	.align	2
.LC21:
	.ascii	"SUB\000"
	.align	2
.LC22:
	.ascii	"DIV\000"
	.align	2
.LC23:
	.ascii	"403 Parameter error: you divided by zero!\000"
	.global	__aeabi_idiv
	.align	2
.LC24:
	.ascii	"401 Unknown command\000"
	.align	2
.LC25:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #136
	str	r0, [fp, #-136]
	str	r1, [fp, #-140]
	ldr	r3, .L29
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #255
	str	r3, [fp, #-108]
	mov	r3, #50
	str	r3, [fp, #-112]
	mov	r3, #20
	str	r3, [fp, #-116]
	mov	r3, #0
	str	r3, [fp, #-96]
	mov	r3, #0
	str	r3, [fp, #-100]
	ldr	r3, [fp, #-108]
	sub	r3, r3, #1
	str	r3, [fp, #-92]
	ldr	r3, [fp, #-108]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	ldr	r3, [fp, #-108]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	ldr	r3, [fp, #-108]
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-108]
	sub	r3, r3, #1
	str	r3, [fp, #-84]
	ldr	r3, [fp, #-108]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	ldr	r3, [fp, #-108]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	ldr	r3, [fp, #-108]
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-116]
	sub	r3, r3, #1
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-116]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	ldr	r3, [fp, #-116]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	ldr	r3, [fp, #-116]
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-72]
	mov	r3, #0
	str	r3, [fp, #-68]
	mov	r3, #0
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-124]
	mov	r3, #0
	str	r3, [fp, #-120]
	ldr	r3, [fp, #-136]
	cmp	r3, #2
	beq	.L2
	ldr	r0, .L29+4
	bl	puts
	ldr	r0, .L29+8
	bl	puts
	mov	r0, #0
	bl	exit
.L2:
	mov	r3, #0
	str	r3, [fp, #-60]
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bge	.L3
	ldr	r0, .L29+12
	bl	perror
	mov	r0, #0
	bl	exit
.L3:
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	mov	r0, #0
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-140]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-56]
	bl	bind
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmn	r3, #1
	bne	.L4
	ldr	r0, .L29+16
	bl	perror
	mov	r0, #0
	bl	exit
.L4:
	mov	r1, #5
	ldr	r0, [fp, #-56]
	bl	listen
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmn	r3, #1
	bne	.L5
	ldr	r0, .L29+20
	bl	perror
	mov	r0, #0
	bl	exit
.L5:
	ldr	r3, [fp, #-140]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L29+24
	bl	printf
	ldr	r0, .L29+28
	bl	puts
.L26:
	sub	r2, fp, #128
	sub	r3, fp, #40
	mov	r1, r3
	ldr	r0, [fp, #-56]
	bl	accept
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmn	r3, #1
	bne	.L6
	ldr	r0, .L29+32
	bl	perror
	mov	r0, #0
	bl	exit
.L6:
	mov	r3, #0
	str	r3, [fp, #-96]
	ldr	r3, [fp, #-108]
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-88]
	bl	memset
	ldr	r3, [fp, #-108]
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-80]
	bl	memset
	ldr	r3, [fp, #-108]
	mov	r2, r3
	ldr	r1, [fp, #-88]
	ldr	r0, [fp, #-52]
	bl	read
	mov	r3, r0
	cmp	r3, #0
	bgt	.L7
	ldr	r0, [fp, #-52]
	bl	close
	b	.L28
.L7:
	ldr	r3, [fp, #-100]
	cmp	r3, #0
	bne	.L9
	mov	r2, #13
	ldr	r1, .L29+36
	ldr	r0, [fp, #-88]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L10
	mov	r3, #1
	str	r3, [fp, #-100]
	ldr	r3, [fp, #-88]
	add	r3, r3, #14
	str	r3, [fp, #-44]
	ldr	r0, [fp, #-88]
	bl	puts
	ldr	r2, [fp, #-44]
	ldr	r1, .L29+40
	ldr	r0, [fp, #-80]
	bl	sprintf
	b	.L11
.L10:
	ldr	r1, .L29+44
	ldr	r0, [fp, #-80]
	bl	sprintf
	b	.L11
.L9:
	ldr	r0, [fp, #-88]
	bl	puts
	ldr	r1, .L29+48
	ldr	r0, [fp, #-88]
	bl	strtok
	str	r0, [fp, #-104]
	b	.L12
.L14:
	ldr	r0, [fp, #-104]
	bl	to_upp
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-96]
	ldr	r1, [fp, #-104]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-96]
	add	r3, r3, #1
	str	r3, [fp, #-96]
	ldr	r1, .L29+48
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-104]
.L12:
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	beq	.L13
	ldr	r2, [fp, #-96]
	ldr	r3, [fp, #-116]
	cmp	r2, r3
	blt	.L14
.L13:
	ldr	r3, [fp, #-96]
	cmp	r3, #2
	bgt	.L15
	ldr	r3, [fp, #-72]
	ldr	r3, [r3]
	mov	r2, #4
	ldr	r1, .L29+52
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	ldr	r1, .L29+56
	ldr	r0, [fp, #-80]
	bl	sprintf
	b	.L11
.L15:
	ldr	r3, [fp, #-72]
	ldr	r3, [r3]
	mov	r2, #4
	ldr	r1, .L29+52
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L16
	ldr	r1, .L29+60
	ldr	r0, [fp, #-80]
	bl	sprintf
	ldr	r0, .L29+64
	bl	puts
	ldr	r3, [fp, #-108]
	mov	r2, r3
	ldr	r1, [fp, #-80]
	ldr	r0, [fp, #-52]
	bl	write
	ldr	r0, [fp, #-52]
	bl	close
	mov	r0, #0
	bl	exit
.L16:
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #4]
	sub	r1, fp, #124
	mov	r2, #10
	mov	r0, r3
	bl	strtol
	str	r0, [fp, #-68]
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #8]
	sub	r1, fp, #120
	mov	r2, #10
	mov	r0, r3
	bl	strtol
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-72]
	ldr	r3, [r3]
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-124]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L17
	ldr	r3, [fp, #-120]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L18
.L17:
	ldr	r1, .L29+68
	ldr	r0, [fp, #-80]
	bl	sprintf
	b	.L11
.L18:
	ldr	r3, [fp, #-68]
	cmn	r3, #-2147483647
	beq	.L19
	ldr	r3, [fp, #-68]
	cmp	r3, #-2147483648
	beq	.L19
	ldr	r3, [fp, #-64]
	cmp	r3, #-2147483648
	beq	.L19
	ldr	r3, [fp, #-64]
	cmn	r3, #-2147483647
	bne	.L20
.L19:
	ldr	r1, .L29+72
	ldr	r0, [fp, #-80]
	bl	sprintf
	b	.L11
.L20:
	mov	r2, #3
	ldr	r1, .L29+76
	ldr	r0, [fp, #-48]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L21
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-64]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r1, .L29+80
	ldr	r0, [fp, #-80]
	bl	sprintf
	b	.L11
.L21:
	mov	r2, #3
	ldr	r1, .L29+84
	ldr	r0, [fp, #-48]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L22
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-64]
	mul	r3, r2, r3
	mov	r2, r3
	ldr	r1, .L29+80
	ldr	r0, [fp, #-80]
	bl	sprintf
	b	.L11
.L22:
	mov	r2, #3
	ldr	r1, .L29+88
	ldr	r0, [fp, #-48]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L23
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-64]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r1, .L29+80
	ldr	r0, [fp, #-80]
	bl	sprintf
	b	.L11
.L23:
	mov	r2, #3
	ldr	r1, .L29+92
	ldr	r0, [fp, #-48]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L24
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bne	.L25
	ldr	r1, .L29+96
	ldr	r0, [fp, #-80]
	bl	sprintf
	b	.L11
.L25:
	ldr	r1, [fp, #-64]
	ldr	r0, [fp, #-68]
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L29+80
	ldr	r0, [fp, #-80]
	bl	sprintf
	b	.L11
.L24:
	ldr	r1, .L29+100
	ldr	r0, [fp, #-80]
	bl	sprintf
.L11:
	ldr	r3, [fp, #-108]
	mov	r2, r3
	ldr	r1, [fp, #-80]
	ldr	r0, [fp, #-52]
	bl	write
	b	.L6
.L28:
	b	.L26
.L30:
	.align	2
.L29:
	.word	.LC25
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.size	main, .-main
	.align	2
	.global	to_upp
	.syntax unified
	.arm
	.fpu softvfp
	.type	to_upp, %function
to_upp:
	@ 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]
	b	.L32
.L33:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	toupper
	mov	r3, r0
	and	r2, r3, #255
	ldr	r3, [fp, #-8]
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L32:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L33
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	to_upp, .-to_upp
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
