	.file	"812101.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"usage %s UM's pid.\n"
	.align 8
.LC1:
	.string	"Input pid: %s is not effective.\n"
.LC2:
	.string	"admin> "
.LC3:
	.string	"terminate"
.LC4:
	.string	"sleep"
.LC5:
	.string	"infor"
.LC6:
	.string	"listuser"
	.align 8
.LC7:
	.string	"The Admin can only use commands [terminate|sleep|infor|listuser]."
	.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, 2096
	mov	DWORD PTR -2084[rbp], edi
	mov	QWORD PTR -2096[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -2084[rbp], 1
	jg	.L2
	mov	rax, QWORD PTR -2096[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 0
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -2096[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -2068[rbp], eax
	cmp	DWORD PTR -2068[rbp], 0
	jne	.L3
	mov	rax, QWORD PTR -2096[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 0
	call	exit@PLT
.L3:
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -2064[rbp]
	mov	esi, 1024
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L4
	mov	edi, 0
	call	exit@PLT
.L4:
	lea	rax, -2064[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	movzx	eax, BYTE PTR -2064[rbp+rax]
	cmp	al, 10
	jne	.L5
	lea	rax, -2064[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	mov	BYTE PTR -2064[rbp+rax], 0
.L5:
	mov	DWORD PTR -2076[rbp], 0
	mov	DWORD PTR -2072[rbp], 0
	jmp	.L6
.L8:
	add	DWORD PTR -2072[rbp], 1
.L6:
	mov	eax, DWORD PTR -2072[rbp]
	cdqe
	movzx	eax, BYTE PTR -2064[rbp+rax]
	test	al, al
	je	.L9
	mov	eax, DWORD PTR -2072[rbp]
	cdqe
	movzx	eax, BYTE PTR -2064[rbp+rax]
	cmp	al, 32
	je	.L8
	jmp	.L9
.L10:
	add	DWORD PTR -2076[rbp], 1
	add	DWORD PTR -2072[rbp], 1
.L9:
	mov	eax, DWORD PTR -2072[rbp]
	cdqe
	movzx	edx, BYTE PTR -2064[rbp+rax]
	mov	eax, DWORD PTR -2076[rbp]
	cdqe
	mov	BYTE PTR -1040[rbp+rax], dl
	mov	eax, DWORD PTR -2076[rbp]
	cdqe
	movzx	eax, BYTE PTR -1040[rbp+rax]
	test	al, al
	jne	.L10
	mov	eax, DWORD PTR -2076[rbp]
	cdqe
	mov	BYTE PTR -1040[rbp+rax], 0
	sub	DWORD PTR -2076[rbp], 1
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -2076[rbp]
	cdqe
	mov	BYTE PTR -1040[rbp+rax], 0
	sub	DWORD PTR -2076[rbp], 1
.L11:
	mov	eax, DWORD PTR -2076[rbp]
	cdqe
	movzx	eax, BYTE PTR -1040[rbp+rax]
	cmp	al, 32
	je	.L12
	lea	rax, -1040[rbp]
	mov	edx, 9
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	je	.L13
	lea	rax, -1040[rbp]
	mov	edx, 5
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	je	.L13
	lea	rax, -1040[rbp]
	mov	edx, 5
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	je	.L13
	lea	rax, -1040[rbp]
	mov	edx, 8
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	je	.L13
	lea	rdi, .LC7[rip]
	call	puts@PLT
	jmp	.L14
.L13:
	lea	rax, -1040[rbp]
	mov	edx, 9
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L15
	mov	eax, DWORD PTR -2068[rbp]
	mov	esi, 3
	mov	edi, eax
	call	kill@PLT
	mov	edi, 5
	call	sleep@PLT
	mov	edi, 0
	call	exit@PLT
.L15:
	lea	rax, -1040[rbp]
	mov	edx, 5
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L16
	mov	eax, DWORD PTR -2068[rbp]
	mov	esi, 2
	mov	edi, eax
	call	kill@PLT
	jmp	.L3
.L16:
	lea	rax, -1040[rbp]
	mov	edx, 5
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L17
	call	__libc_current_sigrtmax@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -2068[rbp]
	mov	esi, edx
	mov	edi, eax
	call	kill@PLT
	mov	edi, 1
	call	sleep@PLT
	jmp	.L3
.L17:
	lea	rax, -1040[rbp]
	mov	edx, 8
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L3
	call	__libc_current_sigrtmin@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -2068[rbp]
	mov	esi, edx
	mov	edi, eax
	call	kill@PLT
	mov	edi, 1
	call	sleep@PLT
.L14:
	jmp	.L3
	.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	"812101.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"usage %s UM's pid.\012\000"
	.align	2
.LC1:
	.ascii	"Input pid: %s is not effective.\012\000"
	.align	2
.LC2:
	.ascii	"admin> \000"
	.align	2
.LC3:
	.ascii	"terminate\000"
	.align	2
.LC4:
	.ascii	"sleep\000"
	.align	2
.LC5:
	.ascii	"infor\000"
	.align	2
.LC6:
	.ascii	"listuser\000"
	.align	2
.LC7:
	.ascii	"The Admin can only use commands [terminate|sleep|in"
	.ascii	"for|listuser].\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 2072
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2064
	sub	sp, sp, #8
	str	r0, [fp, #-2072]
	str	r1, [fp, #-2076]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-2072]
	cmp	r3, #1
	bgt	.L2
	ldr	r3, .L19+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-2076]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L19+8
	bl	fprintf
	mov	r0, #0
	bl	exit
.L2:
	ldr	r3, [fp, #-2076]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-2060]
	ldr	r3, [fp, #-2060]
	cmp	r3, #0
	bne	.L3
	ldr	r3, .L19+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-2076]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L19+12
	bl	fprintf
	mov	r0, #0
	bl	exit
.L3:
	ldr	r0, .L19+16
	bl	printf
	ldr	r3, .L19+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, .L19+24
	ldr	r2, [r3]
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, #1024
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L4
	mov	r0, #0
	bl	exit
.L4:
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-2052]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L5
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-2052]
.L5:
	mov	r3, #0
	str	r3, [fp, #-2068]
	mov	r3, #0
	str	r3, [fp, #-2064]
	b	.L6
.L8:
	ldr	r3, [fp, #-2064]
	add	r3, r3, #1
	str	r3, [fp, #-2064]
.L6:
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-2064]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L9
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-2064]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L8
	b	.L9
.L10:
	ldr	r3, [fp, #-2068]
	add	r3, r3, #1
	str	r3, [fp, #-2068]
	ldr	r3, [fp, #-2064]
	add	r3, r3, #1
	str	r3, [fp, #-2064]
.L9:
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-2064]
	add	r3, r3, r2
	ldrb	r1, [r3]	@ zero_extendqisi2
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-2068]
	add	r3, r3, r2
	mov	r2, r1
	strb	r2, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-2068]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L10
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-2068]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-2068]
	sub	r3, r3, #1
	str	r3, [fp, #-2068]
	b	.L11
.L12:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-2068]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-2068]
	sub	r3, r3, #1
	str	r3, [fp, #-2068]
.L11:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-2068]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L12
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #9
	ldr	r1, .L19+28
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L13
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #5
	ldr	r1, .L19+32
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L13
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #5
	ldr	r1, .L19+36
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L13
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #8
	ldr	r1, .L19+40
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L13
	ldr	r0, .L19+44
	bl	puts
	b	.L14
.L13:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #9
	ldr	r1, .L19+28
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L15
	mov	r1, #3
	ldr	r0, [fp, #-2060]
	bl	kill
	mov	r0, #5
	bl	sleep
	mov	r0, #0
	bl	exit
.L15:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #5
	ldr	r1, .L19+32
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L16
	mov	r1, #2
	ldr	r0, [fp, #-2060]
	bl	kill
	b	.L3
.L16:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #5
	ldr	r1, .L19+36
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L17
	bl	__libc_current_sigrtmax
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-2060]
	bl	kill
	mov	r0, #1
	bl	sleep
	b	.L3
.L17:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #8
	ldr	r1, .L19+40
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L3
	bl	__libc_current_sigrtmin
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-2060]
	bl	kill
	mov	r0, #1
	bl	sleep
.L14:
	b	.L3
.L20:
	.align	2
.L19:
	.word	.LC8
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	stdout
	.word	stdin
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
