	.file	"955751.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"you are now connected \r\n"
.LC1:
	.string	"socket failed"
.LC2:
	.string	"setsockopt"
.LC3:
	.string	"bind failed"
.LC4:
	.string	"Listener on port %d \n"
.LC5:
	.string	"listen"
.LC6:
	.string	"Waiting for connections ..."
.LC7:
	.string	"select error"
.LC8:
	.string	"accept"
	.align 8
.LC9:
	.string	"\nNew connection , socket fd is %d , ip is : %s , port : %d \n"
	.align 8
.LC10:
	.string	"Adding to list of socket_fd %d as CLIENT_%d\n"
	.align 8
.LC11:
	.string	"Host disconnected , ip %s , port %d \n"
	.align 8
.LC12:
	.string	"\n CLIENT_%d Close Request \n total is %lld\n"
.LC13:
	.string	"%lld"
.LC14:
	.string	" Response= %s\n"
	.align 8
.LC15:
	.string	"\n CLIENT_%d Request\n upc : %d\n number %d \n"
.LC16:
	.string	"r"
.LC17:
	.string	"database.txt"
	.align 8
.LC18:
	.string	" Response : %s \n Total is %lld\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
	push	rbx
	sub	rsp, 2280
	.cfi_offset 3, -24
	mov	DWORD PTR -2276[rbp], edi
	mov	QWORD PTR -2288[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -2288[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -2236[rbp], eax
	mov	DWORD PTR -2264[rbp], 1
	mov	DWORD PTR -2232[rbp], 30
	lea	rax, .LC0[rip]
	mov	QWORD PTR -2176[rbp], rax
	mov	DWORD PTR -2256[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -2256[rbp]
	cdqe
	mov	DWORD PTR -2144[rbp+rax*4], 0
	add	DWORD PTR -2256[rbp], 1
.L2:
	mov	eax, DWORD PTR -2256[rbp]
	cmp	eax, DWORD PTR -2232[rbp]
	jl	.L3
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -2228[rbp], eax
	cmp	DWORD PTR -2228[rbp], 0
	jne	.L4
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	lea	rdx, -2264[rbp]
	mov	eax, DWORD PTR -2228[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	test	eax, eax
	jns	.L5
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	WORD PTR -2160[rbp], 2
	mov	DWORD PTR -2156[rbp], 0
	mov	eax, DWORD PTR -2236[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -2158[rbp], ax
	lea	rcx, -2160[rbp]
	mov	eax, DWORD PTR -2228[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L6
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	eax, DWORD PTR -2236[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -2228[rbp]
	mov	esi, 10
	mov	edi, eax
	call	listen@PLT
	test	eax, eax
	jns	.L7
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	mov	DWORD PTR -2260[rbp], 16
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rdx, -1888[rbp]
	mov	eax, 0
	mov	ecx, 30
	mov	rdi, rdx
	rep stosq
.L34:
	mov	DWORD PTR -2248[rbp], 0
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -2016[rbp]
	mov	rdi, rdx
#APP
# 74 "the_stack_data/955751.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -2224[rbp], edx
	mov	DWORD PTR -2220[rbp], eax
	mov	eax, DWORD PTR -2228[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -2016[rbp+rax*8]
	mov	eax, DWORD PTR -2228[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -2016[rbp+rax*8], rdx
	mov	eax, DWORD PTR -2228[rbp]
	mov	DWORD PTR -2252[rbp], eax
	mov	DWORD PTR -2256[rbp], 0
	jmp	.L8
.L11:
	mov	eax, DWORD PTR -2256[rbp]
	cdqe
	mov	eax, DWORD PTR -2144[rbp+rax*4]
	mov	DWORD PTR -2208[rbp], eax
	cmp	DWORD PTR -2208[rbp], 0
	jle	.L9
	mov	eax, DWORD PTR -2208[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -2016[rbp+rax*8]
	mov	eax, DWORD PTR -2208[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -2016[rbp+rax*8], rdx
.L9:
	mov	eax, DWORD PTR -2208[rbp]
	cmp	eax, DWORD PTR -2252[rbp]
	jle	.L10
	mov	eax, DWORD PTR -2208[rbp]
	mov	DWORD PTR -2252[rbp], eax
.L10:
	add	DWORD PTR -2256[rbp], 1
.L8:
	mov	eax, DWORD PTR -2256[rbp]
	cmp	eax, DWORD PTR -2232[rbp]
	jl	.L11
	mov	eax, DWORD PTR -2252[rbp]
	lea	edi, 1[rax]
	lea	rax, -2016[rbp]
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 0
	mov	rsi, rax
	call	select@PLT
	mov	DWORD PTR -2216[rbp], eax
	cmp	DWORD PTR -2216[rbp], 0
	jns	.L12
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L12
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
.L12:
	mov	eax, DWORD PTR -2228[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -2016[rbp+rax*8]
	mov	eax, DWORD PTR -2228[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	and	rax, rsi
	test	rax, rax
	je	.L13
	mov	DWORD PTR -2248[rbp], 1
	lea	rdx, -2260[rbp]
	lea	rcx, -2160[rbp]
	mov	eax, DWORD PTR -2228[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -2212[rbp], eax
	cmp	DWORD PTR -2212[rbp], 0
	jns	.L14
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L14:
	movzx	eax, WORD PTR -2158[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	ebx, ax
	mov	eax, DWORD PTR -2156[rbp]
	mov	edi, eax
	call	inet_ntoa@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR -2212[rbp]
	mov	ecx, ebx
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -2256[rbp], 0
	jmp	.L15
.L17:
	mov	eax, DWORD PTR -2256[rbp]
	cdqe
	mov	eax, DWORD PTR -2144[rbp+rax*4]
	test	eax, eax
	jne	.L16
	mov	eax, DWORD PTR -2256[rbp]
	cdqe
	mov	edx, DWORD PTR -2212[rbp]
	mov	DWORD PTR -2144[rbp+rax*4], edx
	mov	edx, DWORD PTR -2256[rbp]
	mov	eax, DWORD PTR -2212[rbp]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -2256[rbp]
	cdqe
	mov	QWORD PTR -1888[rbp+rax*8], 0
	jmp	.L13
.L16:
	add	DWORD PTR -2256[rbp], 1
.L15:
	mov	eax, DWORD PTR -2256[rbp]
	cmp	eax, DWORD PTR -2232[rbp]
	jl	.L17
.L13:
	cmp	DWORD PTR -2248[rbp], 0
	jne	.L34
	mov	DWORD PTR -2256[rbp], 0
	jmp	.L19
.L33:
	mov	eax, DWORD PTR -2256[rbp]
	cdqe
	mov	eax, DWORD PTR -2144[rbp+rax*4]
	mov	DWORD PTR -2208[rbp], eax
	mov	eax, DWORD PTR -2208[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -2016[rbp+rax*8]
	mov	eax, DWORD PTR -2208[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	and	rax, rsi
	test	rax, rax
	je	.L20
	lea	rcx, -1056[rbp]
	mov	eax, DWORD PTR -2208[rbp]
	mov	edx, 1024
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -2204[rbp], eax
	cmp	DWORD PTR -2204[rbp], 0
	jne	.L21
	mov	eax, DWORD PTR -2256[rbp]
	cdqe
	mov	QWORD PTR -1888[rbp+rax*8], 0
	movzx	eax, WORD PTR -2158[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	ebx, ax
	mov	eax, DWORD PTR -2156[rbp]
	mov	edi, eax
	call	inet_ntoa@PLT
	mov	edx, ebx
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -2208[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -2256[rbp]
	cdqe
	mov	DWORD PTR -2144[rbp+rax*4], 0
	jmp	.L18
.L21:
	movzx	eax, BYTE PTR -1056[rbp]
	cmp	al, 49
	jne	.L22
	mov	eax, DWORD PTR -2256[rbp]
	cdqe
	mov	rdx, QWORD PTR -1888[rbp+rax*8]
	mov	eax, DWORD PTR -2256[rbp]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -2256[rbp]
	cdqe
	mov	rdx, QWORD PTR -1888[rbp+rax*8]
	lea	rax, -1632[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -1168[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -1168[rbp]
	add	rax, rdx
	movabs	rbx, 8026294610767933268
	movabs	rsi, 9071466614125683
	mov	QWORD PTR [rax], rbx
	mov	QWORD PTR 8[rax], rsi
	lea	rdx, -1632[rbp]
	lea	rax, -1168[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -1168[rbp]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -1168[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rsi, -1168[rbp]
	mov	eax, DWORD PTR -2208[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	mov	eax, DWORD PTR -2208[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -2256[rbp]
	cdqe
	mov	DWORD PTR -2144[rbp+rax*4], 0
	lea	rax, -1168[rbp]
	mov	edx, 100
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	jmp	.L18
.L22:
	movzx	eax, BYTE PTR -1055[rbp]
	movsx	eax, al
	sub	eax, 48
	imul	ecx, eax, 100
	movzx	eax, BYTE PTR -1054[rbp]
	movsx	eax, al
	lea	edx, -48[rax]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	lea	edx, [rcx+rax]
	movzx	eax, BYTE PTR -1053[rbp]
	movsx	eax, al
	sub	eax, 48
	add	eax, edx
	mov	DWORD PTR -2200[rbp], eax
	movzx	eax, BYTE PTR -1052[rbp]
	movsx	eax, al
	sub	eax, 48
	imul	ecx, eax, 100
	movzx	eax, BYTE PTR -1051[rbp]
	movsx	eax, al
	lea	edx, -48[rax]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	lea	edx, [rcx+rax]
	movzx	eax, BYTE PTR -1050[rbp]
	movsx	eax, al
	sub	eax, 48
	add	eax, edx
	mov	DWORD PTR -2196[rbp], eax
	mov	ecx, DWORD PTR -2196[rbp]
	mov	edx, DWORD PTR -2200[rbp]
	mov	eax, DWORD PTR -2256[rbp]
	mov	esi, eax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, .LC16[rip]
	lea	rdi, .LC17[rip]
	call	fopen@PLT
	mov	QWORD PTR -2168[rbp], rax
	jmp	.L24
.L31:
	mov	WORD PTR -1634[rbp], 44
	lea	rdx, -1634[rbp]
	lea	rax, -1616[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -2184[rbp], rax
	mov	rdx, QWORD PTR -2184[rbp]
	lea	rax, -1280[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -2184[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -2244[rbp], eax
	mov	DWORD PTR -2240[rbp], 0
	jmp	.L25
.L28:
	cmp	DWORD PTR -2240[rbp], 1
	jne	.L26
	mov	rdx, QWORD PTR -2184[rbp]
	lea	rax, -1504[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
.L26:
	cmp	DWORD PTR -2240[rbp], 2
	jne	.L27
	mov	rdx, QWORD PTR -2184[rbp]
	lea	rax, -1392[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
.L27:
	lea	rax, -1634[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -2184[rbp], rax
	add	DWORD PTR -2240[rbp], 1
.L25:
	cmp	QWORD PTR -2184[rbp], 0
	jne	.L28
	mov	eax, DWORD PTR -2200[rbp]
	cmp	eax, DWORD PTR -2244[rbp]
	jne	.L24
	mov	QWORD PTR -1168[rbp], 42
	mov	QWORD PTR -1160[rbp], 0
	mov	QWORD PTR -1152[rbp], 0
	mov	QWORD PTR -1144[rbp], 0
	mov	QWORD PTR -1136[rbp], 0
	mov	QWORD PTR -1128[rbp], 0
	mov	QWORD PTR -1120[rbp], 0
	mov	QWORD PTR -1112[rbp], 0
	mov	QWORD PTR -1104[rbp], 0
	mov	QWORD PTR -1096[rbp], 0
	mov	QWORD PTR -1088[rbp], 0
	mov	QWORD PTR -1080[rbp], 0
	mov	DWORD PTR -1072[rbp], 0
	mov	BYTE PTR -1168[rbp], 48
	lea	rax, -1392[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	eax, 1
	mov	DWORD PTR -2192[rbp], eax
	mov	eax, DWORD PTR -2192[rbp]
	movsx	rdx, eax
	lea	rcx, -1392[rbp]
	lea	rax, -1168[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncat@PLT
	lea	rdx, -1504[rbp]
	lea	rax, -1168[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -1392[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -2188[rbp], eax
	mov	eax, DWORD PTR -2256[rbp]
	cdqe
	mov	rdx, QWORD PTR -1888[rbp+rax*8]
	mov	eax, DWORD PTR -2188[rbp]
	imul	eax, DWORD PTR -2196[rbp]
	cdqe
	add	rdx, rax
	mov	eax, DWORD PTR -2256[rbp]
	cdqe
	mov	QWORD PTR -1888[rbp+rax*8], rdx
	mov	eax, DWORD PTR -2256[rbp]
	cdqe
	mov	rdx, QWORD PTR -1888[rbp+rax*8]
	lea	rax, -1168[rbp]
	mov	rsi, rax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -1168[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rsi, -1168[rbp]
	mov	eax, DWORD PTR -2208[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	lea	rax, -1168[rbp]
	mov	edx, 100
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	jmp	.L30
.L24:
	mov	rdx, QWORD PTR -2168[rbp]
	lea	rax, -1616[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	fgets@PLT
	cmp	rax, -1
	jne	.L31
.L30:
	mov	eax, DWORD PTR -2200[rbp]
	cmp	eax, DWORD PTR -2244[rbp]
	je	.L36
	lea	rax, -1168[rbp]
	movabs	rbx, 2338616625290498133
	movabs	rsi, 7955925832448700262
	mov	QWORD PTR [rax], rbx
	mov	QWORD PTR 8[rax], rsi
	movabs	rbx, 8386094071443649568
	mov	QWORD PTR 16[rax], rbx
	mov	DWORD PTR 24[rax], 1935762017
	mov	WORD PTR 28[rax], 101
	lea	rax, -1168[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rsi, -1168[rbp]
	mov	eax, DWORD PTR -2208[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	lea	rax, -1168[rbp]
	mov	edx, 100
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	jmp	.L36
.L20:
	add	DWORD PTR -2256[rbp], 1
.L19:
	mov	eax, DWORD PTR -2256[rbp]
	cmp	eax, DWORD PTR -2232[rbp]
	jl	.L33
	jmp	.L34
.L36:
	nop
.L18:
	jmp	.L34
	.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	"955751.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"you are now connected \015\012\000"
	.align	2
.LC1:
	.ascii	"socket failed\000"
	.align	2
.LC2:
	.ascii	"setsockopt\000"
	.align	2
.LC3:
	.ascii	"bind failed\000"
	.align	2
.LC4:
	.ascii	"Listener on port %d \012\000"
	.align	2
.LC5:
	.ascii	"listen\000"
	.align	2
.LC6:
	.ascii	"Waiting for connections ...\000"
	.align	2
.LC7:
	.ascii	"select error\000"
	.align	2
.LC8:
	.ascii	"accept\000"
	.align	2
.LC9:
	.ascii	"\012New connection , socket fd is %d , ip is : %s ,"
	.ascii	" port : %d \012\000"
	.align	2
.LC10:
	.ascii	"Adding to list of socket_fd %d as CLIENT_%d\012\000"
	.align	2
.LC11:
	.ascii	"Host disconnected , ip %s , port %d \012\000"
	.align	2
.LC12:
	.ascii	"\012 CLIENT_%d Close Request \012 total is %lld\012"
	.ascii	"\000"
	.align	2
.LC13:
	.ascii	"%lld\000"
	.align	2
.LC14:
	.ascii	"Total cost is: \000"
	.align	2
.LC15:
	.ascii	" Response= %s\012\000"
	.align	2
.LC16:
	.ascii	"\012 CLIENT_%d Request\012 upc : %d\012 number %d \012"
	.ascii	"\000"
	.align	2
.LC17:
	.ascii	"r\000"
	.align	2
.LC18:
	.ascii	"database.txt\000"
	.align	2
.LC19:
	.ascii	" Response : %s \012 Total is %lld\012\000"
	.align	2
.LC20:
	.ascii	"UPC not found in the database\000"
	.align	2
.LC21:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 2160
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #2160
	sub	sp, sp, #12
	str	r0, [fp, #-2176]
	str	r1, [fp, #-2180]
	ldr	r3, .L39
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	ldr	r3, [fp, #-2180]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-2132]
	mov	r3, #1
	str	r3, [fp, #-2168]
	mov	r3, #30
	str	r3, [fp, #-2128]
	ldr	r3, .L39+4
	str	r3, [fp, #-2124]
	mov	r3, #0
	str	r3, [fp, #-2160]
	b	.L2
.L3:
	ldr	r3, [fp, #-2160]
	lsl	r3, r3, #2
	sub	r2, fp, #20
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-2040]
	ldr	r3, [fp, #-2160]
	add	r3, r3, #1
	str	r3, [fp, #-2160]
.L2:
	ldr	r2, [fp, #-2160]
	ldr	r3, [fp, #-2128]
	cmp	r2, r3
	blt	.L3
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-2120]
	ldr	r3, [fp, #-2120]
	cmp	r3, #0
	bne	.L4
	ldr	r0, .L39+8
	bl	perror
	mov	r0, #1
	bl	exit
.L4:
	sub	r3, fp, #2160
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, [fp, #-2120]
	bl	setsockopt
	mov	r3, r0
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L39+12
	bl	perror
	mov	r0, #1
	bl	exit
.L5:
	sub	r3, fp, #20
	sub	r3, r3, #2048
	sub	r3, r3, #8
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-2072]
	ldr	r3, [fp, #-2132]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #20
	sub	r3, r3, #2048
	sub	r3, r3, #8
	strh	r2, [r3, #2]	@ movhi
	sub	r3, fp, #2064
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-2120]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L6
	ldr	r0, .L39+16
	bl	perror
	mov	r0, #1
	bl	exit
.L6:
	ldr	r1, [fp, #-2132]
	ldr	r0, .L39+20
	bl	printf
	mov	r1, #10
	ldr	r0, [fp, #-2120]
	bl	listen
	mov	r3, r0
	cmp	r3, #0
	bge	.L7
	ldr	r0, .L39+24
	bl	perror
	mov	r0, #1
	bl	exit
.L7:
	mov	r3, #16
	str	r3, [fp, #-2164]
	ldr	r0, .L39+28
	bl	puts
	sub	r3, fp, #1808
	sub	r3, r3, #4
	mov	r2, #240
	mov	r1, #0
	mov	r0, r3
	bl	memset
.L36:
	mov	r3, #0
	str	r3, [fp, #-2152]
	sub	r3, fp, #1936
	sub	r3, r3, #4
	str	r3, [fp, #-2116]
	mov	r3, #0
	str	r3, [fp, #-2148]
	b	.L8
.L9:
	ldr	r3, [fp, #-2116]
	ldr	r2, [fp, #-2148]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-2148]
	add	r3, r3, #1
	str	r3, [fp, #-2148]
.L8:
	ldr	r3, [fp, #-2148]
	cmp	r3, #31
	bls	.L9
	ldr	r3, [fp, #-2120]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #20
	add	r3, r1, r3
	ldr	r1, [r3, #-1920]
	ldr	r3, [fp, #-2120]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	lsl	r3, r2, #2
	sub	r2, fp, #20
	add	r3, r2, r3
	str	r1, [r3, #-1920]
	ldr	r3, [fp, #-2120]
	str	r3, [fp, #-2156]
	mov	r3, #0
	str	r3, [fp, #-2160]
	b	.L10
.L13:
	ldr	r3, [fp, #-2160]
	lsl	r3, r3, #2
	sub	r2, fp, #20
	add	r3, r2, r3
	ldr	r3, [r3, #-2040]
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	cmp	r3, #0
	ble	.L11
	ldr	r3, [fp, #-2104]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #20
	add	r3, r1, r3
	ldr	r1, [r3, #-1920]
	ldr	r3, [fp, #-2104]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	lsl	r3, r2, #2
	sub	r2, fp, #20
	add	r3, r2, r3
	str	r1, [r3, #-1920]
.L11:
	ldr	r2, [fp, #-2104]
	ldr	r3, [fp, #-2156]
	cmp	r2, r3
	ble	.L12
	ldr	r3, [fp, #-2104]
	str	r3, [fp, #-2156]
.L12:
	ldr	r3, [fp, #-2160]
	add	r3, r3, #1
	str	r3, [fp, #-2160]
.L10:
	ldr	r2, [fp, #-2160]
	ldr	r3, [fp, #-2128]
	cmp	r2, r3
	blt	.L13
	ldr	r3, [fp, #-2156]
	add	r0, r3, #1
	sub	r1, fp, #1936
	sub	r1, r1, #4
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	bl	select
	str	r0, [fp, #-2112]
	ldr	r3, [fp, #-2112]
	cmp	r3, #0
	bge	.L14
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L14
	ldr	r0, .L39+32
	bl	printf
.L14:
	ldr	r3, [fp, #-2120]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	lsl	r3, r3, #2
	sub	r2, fp, #20
	add	r3, r2, r3
	ldr	r2, [r3, #-1920]
	ldr	r3, [fp, #-2120]
	rsbs	r1, r3, #0
	and	r3, r3, #31
	and	r1, r1, #31
	rsbpl	r3, r1, #0
	mov	r1, #1
	lsl	r3, r1, r3
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L15
	mov	r3, #1
	str	r3, [fp, #-2152]
	sub	r2, fp, #2160
	sub	r2, r2, #4
	sub	r3, fp, #2064
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r1, r3
	ldr	r0, [fp, #-2120]
	bl	accept
	str	r0, [fp, #-2108]
	ldr	r3, [fp, #-2108]
	cmp	r3, #0
	bge	.L16
	ldr	r0, .L39+36
	bl	perror
	mov	r0, #1
	bl	exit
.L16:
	ldr	r0, [fp, #-2072]
	bl	inet_ntoa
	mov	r6, r0
	sub	r3, fp, #20
	sub	r3, r3, #2048
	sub	r3, r3, #8
	ldrh	r3, [r3, #2]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	mov	r2, r6
	ldr	r1, [fp, #-2108]
	ldr	r0, .L39+40
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-2160]
	b	.L17
.L19:
	ldr	r3, [fp, #-2160]
	lsl	r3, r3, #2
	sub	r2, fp, #20
	add	r3, r2, r3
	ldr	r3, [r3, #-2040]
	cmp	r3, #0
	bne	.L18
	ldr	r3, [fp, #-2160]
	lsl	r3, r3, #2
	sub	r2, fp, #20
	add	r3, r2, r3
	ldr	r2, [fp, #-2108]
	str	r2, [r3, #-2040]
	ldr	r2, [fp, #-2160]
	ldr	r1, [fp, #-2108]
	ldr	r0, .L39+44
	bl	printf
	ldr	r3, [fp, #-2160]
	lsl	r3, r3, #3
	sub	r2, fp, #20
	add	r3, r2, r3
	sub	r1, r3, #1792
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	b	.L15
.L18:
	ldr	r3, [fp, #-2160]
	add	r3, r3, #1
	str	r3, [fp, #-2160]
.L17:
	ldr	r2, [fp, #-2160]
	ldr	r3, [fp, #-2128]
	cmp	r2, r3
	blt	.L19
.L15:
	ldr	r3, [fp, #-2152]
	cmp	r3, #0
	bne	.L36
	mov	r3, #0
	str	r3, [fp, #-2160]
	b	.L21
.L35:
	ldr	r3, [fp, #-2160]
	lsl	r3, r3, #2
	sub	r2, fp, #20
	add	r3, r2, r3
	ldr	r3, [r3, #-2040]
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	lsl	r3, r3, #2
	sub	r2, fp, #20
	add	r3, r2, r3
	ldr	r2, [r3, #-1920]
	ldr	r3, [fp, #-2104]
	rsbs	r1, r3, #0
	and	r3, r3, #31
	and	r1, r1, #31
	rsbpl	r3, r1, #0
	mov	r1, #1
	lsl	r3, r1, r3
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L22
	sub	r3, fp, #1040
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r2, #1024
	mov	r1, r3
	ldr	r0, [fp, #-2104]
	bl	read
	str	r0, [fp, #-2100]
	ldr	r3, [fp, #-2100]
	cmp	r3, #0
	bne	.L23
	ldr	r3, [fp, #-2160]
	lsl	r3, r3, #3
	sub	r2, fp, #20
	add	r3, r2, r3
	sub	r1, r3, #1792
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r0, [fp, #-2072]
	bl	inet_ntoa
	mov	r6, r0
	sub	r3, fp, #20
	sub	r3, r3, #2048
	sub	r3, r3, #8
	ldrh	r3, [r3, #2]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	mov	r2, r3
	mov	r1, r6
	ldr	r0, .L39+48
	bl	printf
	ldr	r0, [fp, #-2104]
	bl	close
	ldr	r3, [fp, #-2160]
	lsl	r3, r3, #2
	sub	r2, fp, #20
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-2040]
	b	.L20
.L23:
	ldrb	r3, [fp, #-1052]	@ zero_extendqisi2
	cmp	r3, #49
	bne	.L24
	ldr	r3, [fp, #-2160]
	lsl	r3, r3, #3
	sub	r2, fp, #20
	add	r3, r2, r3
	sub	r3, r3, #1792
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-2160]
	ldr	r0, .L39+52
	bl	printf
	ldr	r3, [fp, #-2160]
	lsl	r3, r3, #3
	sub	r2, fp, #20
	add	r3, r2, r3
	sub	r3, r3, #1792
	ldmia	r3, {r2-r3}
	sub	r0, fp, #1552
	sub	r0, r0, #4
	sub	r0, r0, #12
	ldr	r1, .L39+56
	bl	sprintf
	sub	r3, fp, #1136
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #1136
	sub	r3, r3, #4
	sub	r3, r3, #12
	add	r3, r3, r2
	ldr	r2, .L39+60
	mov	r0, r3
	mov	r1, r2
	mov	r3, #16
	mov	r2, r3
	bl	memcpy
	sub	r2, fp, #1552
	sub	r2, r2, #4
	sub	r2, r2, #12
	sub	r3, fp, #1136
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r3, fp, #1136
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r1, r3
	ldr	r0, .L39+64
	bl	printf
	sub	r3, fp, #1136
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r1, fp, #1136
	sub	r1, r1, #4
	sub	r1, r1, #12
	mov	r3, #0
	ldr	r0, [fp, #-2104]
	bl	send
	ldr	r0, [fp, #-2104]
	bl	close
	ldr	r3, [fp, #-2160]
	lsl	r3, r3, #2
	sub	r2, fp, #20
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-2040]
	sub	r3, fp, #1136
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r2, #100
	mov	r1, #0
	mov	r0, r3
	bl	memset
	b	.L20
.L24:
	ldrb	r3, [fp, #-1051]	@ zero_extendqisi2
	sub	r2, r3, #48
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r1, r3
	ldrb	r3, [fp, #-1050]	@ zero_extendqisi2
	sub	r2, r3, #48
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldrb	r3, [fp, #-1049]	@ zero_extendqisi2
	sub	r3, r3, #48
	add	r3, r2, r3
	str	r3, [fp, #-2096]
	ldrb	r3, [fp, #-1048]	@ zero_extendqisi2
	sub	r2, r3, #48
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r1, r3
	ldrb	r3, [fp, #-1047]	@ zero_extendqisi2
	sub	r2, r3, #48
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldrb	r3, [fp, #-1046]	@ zero_extendqisi2
	sub	r3, r3, #48
	add	r3, r2, r3
	str	r3, [fp, #-2092]
	ldr	r3, [fp, #-2092]
	ldr	r2, [fp, #-2096]
	ldr	r1, [fp, #-2160]
	ldr	r0, .L39+68
	bl	printf
	ldr	r1, .L39+72
	ldr	r0, .L39+76
	bl	fopen
	str	r0, [fp, #-2088]
	b	.L26
.L33:
	sub	r3, fp, #20
	sub	r3, r3, #1552
	mov	r2, #44
	strh	r2, [r3]	@ movhi
	sub	r2, fp, #1568
	sub	r2, r2, #4
	sub	r3, fp, #1536
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r1, r2
	mov	r0, r3
	bl	strtok
	str	r0, [fp, #-2140]
	sub	r3, fp, #1248
	sub	r3, r3, #4
	ldr	r1, [fp, #-2140]
	mov	r0, r3
	bl	strcpy
	ldr	r0, [fp, #-2140]
	bl	atoi
	str	r0, [fp, #-2144]
	mov	r3, #0
	str	r3, [fp, #-2136]
	b	.L27
.L30:
	ldr	r3, [fp, #-2136]
	cmp	r3, #1
	bne	.L28
	sub	r3, fp, #1440
	sub	r3, r3, #4
	sub	r3, r3, #8
	ldr	r1, [fp, #-2140]
	mov	r0, r3
	bl	strcpy
.L28:
	ldr	r3, [fp, #-2136]
	cmp	r3, #2
	bne	.L29
	sub	r3, fp, #1344
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, [fp, #-2140]
	mov	r0, r3
	bl	strcpy
.L29:
	sub	r3, fp, #1568
	sub	r3, r3, #4
	mov	r1, r3
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-2140]
	ldr	r3, [fp, #-2136]
	add	r3, r3, #1
	str	r3, [fp, #-2136]
.L27:
	ldr	r3, [fp, #-2140]
	cmp	r3, #0
	bne	.L30
	ldr	r2, [fp, #-2096]
	ldr	r3, [fp, #-2144]
	cmp	r2, r3
	bne	.L26
	mov	r3, #42
	str	r3, [fp, #-1152]
	sub	r3, fp, #1136
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r2, #96
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #48
	strb	r3, [fp, #-1152]
	sub	r3, fp, #1344
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	str	r3, [fp, #-2084]
	ldr	r2, [fp, #-2084]
	sub	r1, fp, #1344
	sub	r1, r1, #4
	sub	r1, r1, #4
	sub	r3, fp, #1136
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r0, r3
	bl	strncat
	sub	r2, fp, #1440
	sub	r2, r2, #4
	sub	r2, r2, #8
	sub	r3, fp, #1136
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r3, fp, #1344
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-2080]
	ldr	r3, [fp, #-2160]
	lsl	r3, r3, #3
	sub	r2, fp, #20
	add	r3, r2, r3
	sub	r3, r3, #1792
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-2080]
	ldr	r2, [fp, #-2092]
	mul	r3, r2, r3
	mov	r2, r3
	asr	r3, r2, #31
	adds	r4, r0, r2
	adc	r5, r1, r3
	ldr	r3, [fp, #-2160]
	lsl	r3, r3, #3
	sub	r2, fp, #20
	add	r3, r2, r3
	sub	r3, r3, #1792
	stm	r3, {r4-r5}
	ldr	r3, [fp, #-2160]
	lsl	r3, r3, #3
	sub	r2, fp, #20
	add	r3, r2, r3
	sub	r3, r3, #1792
	ldmia	r3, {r2-r3}
	sub	r1, fp, #1136
	sub	r1, r1, #4
	sub	r1, r1, #12
	ldr	r0, .L39+80
	bl	printf
	sub	r3, fp, #1136
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r1, fp, #1136
	sub	r1, r1, #4
	sub	r1, r1, #12
	mov	r3, #0
	ldr	r0, [fp, #-2104]
	bl	send
	sub	r3, fp, #1136
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r2, #100
	mov	r1, #0
	mov	r0, r3
	bl	memset
	b	.L32
.L26:
	sub	r3, fp, #1536
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r2, [fp, #-2088]
	mov	r1, #100
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmn	r3, #1
	bne	.L33
.L32:
	ldr	r2, [fp, #-2096]
	ldr	r3, [fp, #-2144]
	cmp	r2, r3
	beq	.L38
	sub	r3, fp, #1136
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r2, .L39+84
	mov	ip, r3
	mov	lr, r2
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2}
	strh	r3, [ip]	@ movhi
	sub	r3, fp, #1136
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r1, fp, #1136
	sub	r1, r1, #4
	sub	r1, r1, #12
	mov	r3, #0
	ldr	r0, [fp, #-2104]
	bl	send
	sub	r3, fp, #1136
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r2, #100
	mov	r1, #0
	mov	r0, r3
	bl	memset
	b	.L38
.L22:
	ldr	r3, [fp, #-2160]
	add	r3, r3, #1
	str	r3, [fp, #-2160]
.L21:
	ldr	r2, [fp, #-2160]
	ldr	r3, [fp, #-2128]
	cmp	r2, r3
	blt	.L35
	b	.L36
.L38:
	nop
.L20:
	b	.L36
.L40:
	.align	2
.L39:
	.word	.LC21
	.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
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
