	.file	"3890.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"\033[0G"
.LC1:
	.string	"\033[33m"
.LC2:
	.string	"[%02d:%02d:%02d]"
	.align 8
.LC3:
	.string	"\354\261\204\355\214\205 \354\260\270\352\260\200\354\236\220 1\353\252\205 \355\203\210\355\207\264. \355\230\204\354\236\254 \354\260\270\352\260\200\354\236\220 \354\210\230 = %d\n"
.LC4:
	.string	"\033[32m"
.LC5:
	.string	"server>"
	.text
	.globl	removeClient
	.type	removeClient, @function
removeClient:
.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, 24
	.cfi_offset 3, -24
	mov	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, clisock_list[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR num_user[rip]
	sub	eax, 1
	cmp	DWORD PTR -20[rbp], eax
	je	.L2
	mov	eax, DWORD PTR num_user[rip]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, clisock_list[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, clisock_list[rip]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR num_user[rip]
	sub	eax, 1
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	lea	rdx, ip_list[rip]
	add	rdx, rax
	mov	eax, DWORD PTR -20[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	sal	rax, 2
	lea	rcx, ip_list[rip]
	add	rax, rcx
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
.L2:
	mov	eax, DWORD PTR num_user[rip]
	sub	eax, 1
	mov	DWORD PTR num_user[rip], eax
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR ct[rip], rax
	lea	rdi, ct[rip]
	call	localtime@PLT
	mov	rcx, QWORD PTR [rax]
	mov	rbx, QWORD PTR 8[rax]
	mov	QWORD PTR tm[rip], rcx
	mov	QWORD PTR tm[rip+8], rbx
	mov	rcx, QWORD PTR 16[rax]
	mov	rbx, QWORD PTR 24[rax]
	mov	QWORD PTR tm[rip+16], rcx
	mov	QWORD PTR tm[rip+24], rbx
	mov	rcx, QWORD PTR 32[rax]
	mov	rbx, QWORD PTR 40[rax]
	mov	QWORD PTR tm[rip+32], rcx
	mov	QWORD PTR tm[rip+40], rbx
	mov	rax, QWORD PTR 48[rax]
	mov	QWORD PTR tm[rip+48], rax
	mov	edx, 4
	lea	rsi, .LC0[rip]
	mov	edi, 1
	call	write@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 5
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	ecx, DWORD PTR tm[rip]
	mov	edx, DWORD PTR tm[rip+4]
	mov	eax, DWORD PTR tm[rip+8]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR num_user[rip]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 5
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 7
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	removeClient, .-removeClient
	.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	"3890.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\033[0G\000"
	.align	2
.LC1:
	.ascii	"\033[33m\000"
	.align	2
.LC2:
	.ascii	"[%02d:%02d:%02d]\000"
	.align	2
.LC3:
	.ascii	"\354\261\204\355\214\205 \354\260\270\352\260\200\354"
	.ascii	"\236\220 1\353\252\205 \355\203\210\355\207\264. \355"
	.ascii	"\230\204\354\236\254 \354\260\270\352\260\200\354\236"
	.ascii	"\220 \354\210\230 = %d\012\000"
	.align	2
.LC4:
	.ascii	"\033[32m\000"
	.align	2
.LC5:
	.ascii	"server>\000"
	.text
	.align	2
	.global	removeClient
	.syntax unified
	.arm
	.fpu softvfp
	.type	removeClient, %function
removeClient:
	@ 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]
	ldr	r2, .L3
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	close
	ldr	r3, .L3+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	beq	.L2
	ldr	r3, .L3+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L3
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L3
	ldr	r3, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L3+8
	add	r0, r3, r2
	ldr	r3, .L3+4
	ldr	r3, [r3]
	sub	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L3+8
	add	r3, r3, r2
	mov	r1, r3
	bl	strcpy
.L2:
	ldr	r3, .L3+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L3+4
	str	r3, [r2]
	mov	r0, #0
	bl	time
	mov	r3, r0
	ldr	r2, .L3+12
	str	r3, [r2]
	ldr	r0, .L3+12
	bl	localtime
	mov	r3, r0
	ldr	r2, .L3+16
	mov	ip, r2
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	mov	r2, #4
	ldr	r1, .L3+20
	mov	r0, #1
	bl	write
	ldr	r3, .L3+24
	ldr	r3, [r3]
	mov	r2, #5
	mov	r1, #1
	ldr	r0, .L3+28
	bl	fwrite
	ldr	r3, .L3+16
	ldr	r1, [r3, #8]
	ldr	r3, .L3+16
	ldr	r2, [r3, #4]
	ldr	r3, .L3+16
	ldr	r3, [r3]
	ldr	r0, .L3+32
	bl	printf
	ldr	r3, .L3+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L3+36
	bl	printf
	ldr	r3, .L3+24
	ldr	r3, [r3]
	mov	r2, #5
	mov	r1, #1
	ldr	r0, .L3+40
	bl	fwrite
	ldr	r3, .L3+24
	ldr	r3, [r3]
	mov	r2, #7
	mov	r1, #1
	ldr	r0, .L3+44
	bl	fwrite
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	clisock_list
	.word	num_user
	.word	ip_list
	.word	ct
	.word	tm
	.word	.LC0
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	removeClient, .-removeClient
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
