	.file	"extr_vfdcmd.c_Shell.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"/on"
.LC2:
	.string	"/off"
	.text
	.p2align 4
	.globl	Shell
	.type	Shell, @function
Shell:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xor	eax, eax
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	VfdCheckHandlers@PLT
	cmp	QWORD PTR ERROR_SUCCESS[rip], rax
	mov	rbp, rax
	je	.L2
	cmp	QWORD PTR ERROR_PATH_NOT_FOUND[rip], rax
	je	.L3
	cmp	QWORD PTR ERROR_FILE_NOT_FOUND[rip], rax
	jne	.L13
	test	rbx, rbx
	je	.L12
	mov	rdi, QWORD PTR [rbx]
	test	rdi, rdi
	je	.L10
.L15:
	lea	rsi, .LC1[rip]
	call	_stricmp@PLT
	test	rax, rax
	jne	.L7
	cmp	QWORD PTR ERROR_SUCCESS[rip], rbp
	jne	.L29
.L8:
	xor	eax, eax
	call	VfdCheckHandlers@PLT
	mov	rbp, rax
.L6:
	cmp	QWORD PTR ERROR_PATH_NOT_FOUND[rip], rbp
	je	.L12
.L10:
	cmp	rbp, QWORD PTR ERROR_FILE_NOT_FOUND[rip]
	je	.L12
	cmp	QWORD PTR ERROR_SUCCESS[rip], rbp
	jne	.L13
	mov	edi, DWORD PTR MSG_SHELLEXT_ENABLED[rip]
	xor	eax, eax
	call	PrintMessage@PLT
.L11:
	mov	eax, DWORD PTR VFD_OK[rip]
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	test	rbx, rbx
	je	.L12
	mov	rdi, QWORD PTR [rbx]
	test	rdi, rdi
	jne	.L15
	.p2align 4,,10
	.p2align 3
.L12:
	mov	edi, DWORD PTR MSG_SHELLEXT_DISABLED[rip]
	xor	eax, eax
	call	PrintMessage@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edi, DWORD PTR MSG_GET_SHELLEXT_NG[rip]
.L26:
	xor	eax, eax
	call	PrintMessage@PLT
	mov	rdi, rbp
	call	SystemError@PLT
	lea	rdi, .LC0[rip]
	mov	rsi, rax
	call	printf@PLT
	mov	eax, DWORD PTR VFD_NG[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	test	rbx, rbx
	je	.L6
	mov	rdi, QWORD PTR [rbx]
	test	rdi, rdi
	jne	.L15
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L29:
	call	VfdRegisterHandlers@PLT
	cmp	QWORD PTR ERROR_SUCCESS[rip], rax
	mov	rbp, rax
	je	.L8
.L27:
	mov	edi, DWORD PTR MSG_SET_SHELLEXT_NG[rip]
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, QWORD PTR [rbx]
	lea	rsi, .LC2[rip]
	call	_stricmp@PLT
	test	rax, rax
	jne	.L9
	cmp	QWORD PTR ERROR_SUCCESS[rip], rbp
	jne	.L8
	call	VfdUnregisterHandlers@PLT
	cmp	QWORD PTR ERROR_SUCCESS[rip], rax
	mov	rbp, rax
	je	.L8
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rsi, QWORD PTR [rbx]
	mov	edi, DWORD PTR MSG_UNKNOWN_OPTION[rip]
	xor	eax, eax
	call	PrintMessage@PLT
	mov	esi, DWORD PTR help_progname[rip]
	mov	edi, DWORD PTR MSG_HINT_SHELL[rip]
	xor	eax, eax
	call	PrintMessage@PLT
	mov	eax, DWORD PTR VFD_NG[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	Shell, .-Shell
	.comm	help_progname,4,4
	.comm	VFD_OK,4,4
	.comm	VFD_NG,4,4
	.comm	MSG_UNKNOWN_OPTION,4,4
	.comm	MSG_SHELLEXT_ENABLED,4,4
	.comm	MSG_SHELLEXT_DISABLED,4,4
	.comm	MSG_SET_SHELLEXT_NG,4,4
	.comm	MSG_HINT_SHELL,4,4
	.comm	MSG_GET_SHELLEXT_NG,4,4
	.comm	ERROR_SUCCESS,8,8
	.comm	ERROR_PATH_NOT_FOUND,8,8
	.comm	ERROR_FILE_NOT_FOUND,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_vfdcmd.c_Shell.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s\000"
	.align	2
.LC1:
	.ascii	"/on\000"
	.align	2
.LC2:
	.ascii	"/off\000"
	.text
	.align	2
	.global	Shell
	.syntax unified
	.arm
	.fpu softvfp
	.type	Shell, %function
Shell:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	bl	VfdCheckHandlers
	ldr	r6, .L32
	mov	r4, r0
	ldr	r3, [r6]
	cmp	r3, r0
	beq	.L2
	ldr	r3, .L32+4
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L3
	ldr	r3, .L32+8
	ldr	r2, [r3]
	cmp	r2, r0
	bne	.L13
	cmp	r5, #0
	beq	.L12
	ldr	r0, [r5]
	cmp	r0, #0
	beq	.L10
.L15:
	ldr	r1, .L32+12
	bl	_stricmp
	cmp	r0, #0
	bne	.L7
.L31:
	ldr	r3, [r6]
	cmp	r3, r4
	bne	.L30
.L8:
	bl	VfdCheckHandlers
	mov	r4, r0
.L6:
	ldr	r3, .L32+4
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L12
	ldr	r3, .L32+8
.L10:
	ldr	r3, [r3]
	cmp	r4, r3
	beq	.L12
	ldr	r3, [r6]
	cmp	r3, r4
	bne	.L13
	ldr	r3, .L32+16
	ldr	r0, [r3]
	bl	PrintMessage
.L11:
	ldr	r3, .L32+20
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L3:
	cmp	r5, #0
	beq	.L12
	ldr	r0, [r5]
	cmp	r0, #0
	bne	.L15
.L12:
	ldr	r3, .L32+24
	ldr	r0, [r3]
	bl	PrintMessage
	b	.L11
.L13:
	ldr	r3, .L32+28
.L27:
	ldr	r0, [r3]
	bl	PrintMessage
	mov	r0, r4
	bl	SystemError
	mov	r1, r0
	ldr	r0, .L32+32
	bl	printf
	ldr	r3, .L32+36
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L2:
	cmp	r5, #0
	beq	.L6
	ldr	r0, [r5]
	cmp	r0, #0
	beq	.L6
	ldr	r1, .L32+12
	bl	_stricmp
	cmp	r0, #0
	beq	.L31
.L7:
	ldr	r1, .L32+40
	ldr	r0, [r5]
	bl	_stricmp
	cmp	r0, #0
	bne	.L9
	ldr	r3, [r6]
	cmp	r3, r4
	bne	.L8
	bl	VfdUnregisterHandlers
	ldr	r3, [r6]
	mov	r4, r0
	cmp	r3, r0
	beq	.L8
.L28:
	ldr	r3, .L32+44
	b	.L27
.L30:
	bl	VfdRegisterHandlers
	ldr	r3, [r6]
	mov	r4, r0
	cmp	r3, r0
	beq	.L8
	b	.L28
.L9:
	ldr	r3, .L32+48
	ldr	r1, [r5]
	ldr	r0, [r3]
	bl	PrintMessage
	ldr	r2, .L32+52
	ldr	r3, .L32+56
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	PrintMessage
	ldr	r3, .L32+36
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L33:
	.align	2
.L32:
	.word	ERROR_SUCCESS
	.word	ERROR_PATH_NOT_FOUND
	.word	ERROR_FILE_NOT_FOUND
	.word	.LC1
	.word	MSG_SHELLEXT_ENABLED
	.word	VFD_OK
	.word	MSG_SHELLEXT_DISABLED
	.word	MSG_GET_SHELLEXT_NG
	.word	.LC0
	.word	VFD_NG
	.word	.LC2
	.word	MSG_SET_SHELLEXT_NG
	.word	MSG_UNKNOWN_OPTION
	.word	help_progname
	.word	MSG_HINT_SHELL
	.size	Shell, .-Shell
	.comm	help_progname,4,4
	.comm	VFD_OK,4,4
	.comm	VFD_NG,4,4
	.comm	MSG_UNKNOWN_OPTION,4,4
	.comm	MSG_SHELLEXT_ENABLED,4,4
	.comm	MSG_SHELLEXT_DISABLED,4,4
	.comm	MSG_SET_SHELLEXT_NG,4,4
	.comm	MSG_HINT_SHELL,4,4
	.comm	MSG_GET_SHELLEXT_NG,4,4
	.comm	ERROR_SUCCESS,4,4
	.comm	ERROR_PATH_NOT_FOUND,4,4
	.comm	ERROR_FILE_NOT_FOUND,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
