	.file	"243894210.c"
	.intel_syntax noprefix
	.text
	.globl	studid
	.bss
	.align 16
	.type	studid, @object
	.size	studid, 20
studid:
	.zero	20
	.section	.rodata
.LC0:
	.string	"Socket Failed!"
.LC1:
	.string	"127.0.0.1"
	.align 8
.LC2:
	.string	"Invalid Address or Address is in use!"
.LC3:
	.string	"%Y-%m-%d %H:%M:%S"
.LC4:
	.string	"Connection Failed !"
.LC5:
	.string	"\nEnter id: "
	.align 8
.LC6:
	.string	"Terminate your connection with 'q'."
	.align 8
.LC7:
	.string	"Endeavour to terminate each command with semi colon ie [Command][Values][;]"
.LC8:
	.string	"\nEnter Task:"
.LC9:
	.string	"%d\n"
.LC10:
	.string	"%s \n"
.LC11:
	.string	"Connection lost."
	.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, 3200
	mov	DWORD PTR -3188[rbp], edi
	mov	QWORD PTR -3200[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -3164[rbp], 0
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -3160[rbp], eax
	cmp	DWORD PTR -3160[rbp], 0
	jns	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	lea	rax, -3136[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -3136[rbp], 2
	mov	edi, 8080
	call	htons@PLT
	mov	WORD PTR -3134[rbp], ax
	lea	rdi, .LC1[rip]
	call	inet_addr@PLT
	mov	DWORD PTR -3132[rbp], eax
	mov	rax, QWORD PTR -3200[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rdx, -3136[rbp]
	add	rdx, 4
	mov	rsi, rax
	mov	edi, 2
	call	inet_pton@PLT
	test	eax, eax
	jns	.L3
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	lea	rax, -3136[rbp]
	add	rax, 8
	mov	QWORD PTR [rax], 0
	lea	rax, -3152[rbp]
	mov	rdi, rax
	call	time@PLT
	lea	rax, -3152[rbp]
	mov	rdi, rax
	call	localtime@PLT
	mov	QWORD PTR -3144[rbp], rax
	mov	rdx, QWORD PTR -3144[rbp]
	lea	rax, -3120[rbp]
	mov	rcx, rdx
	lea	rdx, .LC3[rip]
	mov	esi, 26
	mov	rdi, rax
	call	strftime@PLT
	lea	rax, -3120[rbp]
	mov	rdi, rax
	call	puts@PLT
	lea	rcx, -3136[rbp]
	mov	eax, DWORD PTR -3160[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	jns	.L4
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -3088[rbp]
	mov	esi, 1024
	mov	rdi, rax
	call	fgets@PLT
	lea	rax, -3088[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rsi, -3088[rbp]
	mov	eax, DWORD PTR -3160[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
.L10:
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -2064[rbp]
	mov	esi, 1024
	mov	rdi, rax
	call	fgets@PLT
	lea	rax, -2064[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rsi, -2064[rbp]
	mov	eax, DWORD PTR -3160[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	movzx	eax, BYTE PTR -2064[rbp]
	cmp	al, 113
	je	.L5
	lea	rcx, -3172[rbp]
	mov	eax, DWORD PTR -3160[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	eax, DWORD PTR -3172[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -3168[rbp], 0
	jmp	.L6
.L7:
	lea	rax, -1040[rbp]
	mov	edx, 1024
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rcx, -1040[rbp]
	mov	eax, DWORD PTR -3160[rbp]
	mov	edx, 1024
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -3156[rbp], eax
	mov	eax, DWORD PTR -3156[rbp]
	cdqe
	mov	BYTE PTR -1040[rbp+rax], 0
	lea	rax, -1040[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -3168[rbp], 1
.L6:
	mov	eax, DWORD PTR -3172[rbp]
	cmp	DWORD PTR -3168[rbp], eax
	jl	.L7
.L5:
	movzx	eax, BYTE PTR -2064[rbp]
	cmp	al, 113
	jne	.L10
	mov	eax, DWORD PTR -3160[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.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	"243894210.c"
	.text
	.comm	studid,20,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Socket Failed!\000"
	.align	2
.LC1:
	.ascii	"127.0.0.1\000"
	.align	2
.LC2:
	.ascii	"Invalid Address or Address is in use!\000"
	.align	2
.LC3:
	.ascii	"%Y-%m-%d %H:%M:%S\000"
	.align	2
.LC4:
	.ascii	"Connection Failed !\000"
	.align	2
.LC5:
	.ascii	"\012Enter id: \000"
	.align	2
.LC6:
	.ascii	"Terminate your connection with 'q'.\000"
	.align	2
.LC7:
	.ascii	"Endeavour to terminate each command with semi colon"
	.ascii	" ie [Command][Values][;]\000"
	.align	2
.LC8:
	.ascii	"\012Enter Task:\000"
	.align	2
.LC9:
	.ascii	"%d\012\000"
	.align	2
.LC10:
	.ascii	"%s \012\000"
	.align	2
.LC11:
	.ascii	"Connection lost.\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 3160
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #3152
	sub	sp, sp, #8
	str	r0, [fp, #-3160]
	str	r1, [fp, #-3164]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-3140]
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-3136]
	ldr	r3, [fp, #-3136]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L13+4
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	sub	r3, fp, #3120
	sub	r3, r3, #4
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4
	sub	r3, r3, #3120
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r0, .L13+8
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4
	sub	r3, r3, #3120
	strh	r2, [r3, #2]	@ movhi
	ldr	r0, .L13+12
	bl	inet_addr
	mov	r3, r0
	str	r3, [fp, #-3120]
	ldr	r3, [fp, #-3164]
	add	r3, r3, #4
	ldr	r1, [r3]
	sub	r3, fp, #3120
	sub	r3, r3, #4
	add	r3, r3, #4
	mov	r2, r3
	mov	r0, #2
	bl	inet_pton
	mov	r3, r0
	cmp	r3, #0
	bge	.L3
	ldr	r0, .L13+16
	bl	perror
	mov	r0, #1
	bl	exit
.L3:
	sub	r3, fp, #3120
	sub	r3, r3, #4
	add	r3, r3, #8
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	sub	r3, fp, #3136
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r0, r3
	bl	time
	sub	r3, fp, #3136
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r0, r3
	bl	localtime
	str	r0, [fp, #-3132]
	sub	r0, fp, #3104
	sub	r0, r0, #4
	ldr	r3, [fp, #-3132]
	ldr	r2, .L13+20
	mov	r1, #26
	bl	strftime
	sub	r3, fp, #3104
	sub	r3, r3, #4
	mov	r0, r3
	bl	puts
	sub	r3, fp, #3120
	sub	r3, r3, #4
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-3136]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	bge	.L4
	ldr	r0, .L13+24
	bl	perror
	mov	r0, #1
	bl	exit
.L4:
	ldr	r0, .L13+28
	bl	puts
	ldr	r3, .L13+32
	ldr	r2, [r3]
	sub	r3, fp, #3072
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, #1024
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #3072
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r1, fp, #3072
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	ldr	r0, [fp, #-3136]
	bl	send
	ldr	r0, .L13+36
	bl	puts
	ldr	r0, .L13+40
	bl	puts
.L10:
	ldr	r0, .L13+44
	bl	printf
	ldr	r3, .L13+32
	ldr	r2, [r3]
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, #1024
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r1, fp, #2048
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	ldr	r0, [fp, #-3136]
	bl	send
	ldrb	r3, [fp, #-2056]	@ zero_extendqisi2
	cmp	r3, #113
	beq	.L5
	sub	r3, fp, #3136
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-3136]
	bl	read
	ldr	r3, [fp, #-3148]
	mov	r1, r3
	ldr	r0, .L13+48
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-3144]
	b	.L6
.L7:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, r3
	ldr	r0, [fp, #-3136]
	bl	read
	str	r0, [fp, #-3128]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-3128]
	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, .L13+52
	bl	printf
	ldr	r3, [fp, #-3144]
	add	r3, r3, #1
	str	r3, [fp, #-3144]
.L6:
	ldr	r3, [fp, #-3148]
	ldr	r2, [fp, #-3144]
	cmp	r2, r3
	blt	.L7
.L5:
	ldrb	r3, [fp, #-2056]	@ zero_extendqisi2
	cmp	r3, #113
	bne	.L10
	ldr	r0, [fp, #-3136]
	bl	close
	ldr	r0, .L13+56
	bl	puts
	mov	r3, #0
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC12
	.word	.LC0
	.word	8080
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	stdin
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
