	.file	"750150.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"\033[33m------------------------------------------------\n"
.LC1:
	.string	"- usage:\n"
.LC2:
	.string	"-\t reboot -n now\n"
.LC3:
	.string	"-\t reboot -t <time>\n"
.LC4:
	.string	"-\t ex: reboot -t 2\n"
	.align 8
.LC5:
	.string	"---------------------------------------------------\033[0m"
	.text
	.globl	help
	.type	help, @function
help:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	help, .-help
	.section	.rodata
.LC6:
	.string	"\033[31m!!!Need add options:\033[0m"
.LC7:
	.string	"\t./reboot -h for help"
.LC8:
	.string	"value of cmd_send is %s\n"
.LC9:
	.string	"hn:t:"
.LC10:
	.string	"value of val_send is %d"
.LC11:
	.string	"/dev/reboot"
.LC12:
	.string	"open\n"
.LC13:
	.string	"send val_send to kernel"
.LC14:
	.string	"send cmd_send to kernel"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -16[rbp], 0
	mov	DWORD PTR -28[rbp], 0
	cmp	DWORD PTR -36[rbp], 1
	jne	.L4
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
.L9:
	cmp	DWORD PTR -24[rbp], 116
	je	.L5
	cmp	DWORD PTR -24[rbp], 116
	jg	.L6
	cmp	DWORD PTR -24[rbp], 104
	je	.L7
	cmp	DWORD PTR -24[rbp], 110
	je	.L8
	jmp	.L6
.L7:
	call	help
	mov	edi, -1
	call	exit@PLT
.L8:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L4
.L5:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -28[rbp], eax
	jmp	.L4
.L6:
	call	help
	mov	edi, -1
	call	exit@PLT
.L4:
	mov	rcx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -36[rbp]
	lea	rdx, .LC9[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], -1
	jne	.L9
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	esi, 2
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jns	.L10
	lea	rdi, .LC12[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L10:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L11
	mov	eax, DWORD PTR -28[rbp]
	test	eax, eax
	je	.L11
	lea	rdi, .LC13[rip]
	call	puts@PLT
	lea	rdx, -28[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, 1074029569
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	jmp	.L12
.L11:
	lea	rdi, .LC14[rip]
	call	puts@PLT
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, 1074291712
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
.L12:
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"750150.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\033[33m-------------------------------------------"
	.ascii	"-----\012\000"
	.align	2
.LC1:
	.ascii	"- usage:\012\000"
	.align	2
.LC2:
	.ascii	"-\011 reboot -n now\012\000"
	.align	2
.LC3:
	.ascii	"-\011 reboot -t <time>\012\000"
	.align	2
.LC4:
	.ascii	"-\011 ex: reboot -t 2\012\000"
	.align	2
.LC5:
	.ascii	"---------------------------------------------------"
	.ascii	"\033[0m\000"
	.text
	.align	2
	.global	help
	.syntax unified
	.arm
	.fpu softvfp
	.type	help, %function
help:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L2
	bl	puts
	ldr	r0, .L2+4
	bl	puts
	ldr	r0, .L2+8
	bl	puts
	ldr	r0, .L2+12
	bl	puts
	ldr	r0, .L2+16
	bl	puts
	ldr	r0, .L2+20
	bl	puts
	nop
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	help, .-help
	.section	.rodata
	.align	2
.LC6:
	.ascii	"\033[31m!!!Need add options:\033[0m\000"
	.align	2
.LC7:
	.ascii	"\011./reboot -h for help\000"
	.align	2
.LC8:
	.ascii	"value of cmd_send is %s\012\000"
	.align	2
.LC9:
	.ascii	"hn:t:\000"
	.align	2
.LC10:
	.ascii	"value of val_send is %d\000"
	.align	2
.LC11:
	.ascii	"/dev/reboot\000"
	.align	2
.LC12:
	.ascii	"open\012\000"
	.align	2
.LC13:
	.ascii	"send val_send to kernel\000"
	.align	2
.LC14:
	.ascii	"send cmd_send to kernel\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	bne	.L6
	ldr	r0, .L17+4
	bl	puts
	ldr	r0, .L17+8
	bl	puts
	mvn	r0, #0
	bl	exit
.L11:
	ldr	r3, [fp, #-16]
	cmp	r3, #116
	beq	.L7
	ldr	r3, [fp, #-16]
	cmp	r3, #116
	bgt	.L8
	ldr	r3, [fp, #-16]
	cmp	r3, #104
	beq	.L9
	ldr	r3, [fp, #-16]
	cmp	r3, #110
	beq	.L10
	b	.L8
.L9:
	bl	help
	mvn	r0, #0
	bl	exit
.L10:
	ldr	r3, .L17+12
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	ldr	r1, [fp, #-20]
	ldr	r0, .L17+16
	bl	printf
	b	.L6
.L7:
	ldr	r3, .L17+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-24]
	b	.L6
.L8:
	bl	help
	mvn	r0, #0
	bl	exit
.L6:
	ldr	r2, .L17+20
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	getopt
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L11
	ldr	r3, [fp, #-24]
	mov	r1, r3
	ldr	r0, .L17+24
	bl	printf
	mov	r1, #2
	ldr	r0, .L17+28
	bl	open
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L12
	ldr	r0, .L17+32
	bl	perror
	mvn	r0, #0
	bl	exit
.L12:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L13
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L13
	ldr	r0, .L17+36
	bl	puts
	sub	r3, fp, #24
	mov	r2, r3
	ldr	r1, .L17+40
	ldr	r0, [fp, #-12]
	bl	ioctl
	b	.L14
.L13:
	ldr	r0, .L17+44
	bl	puts
	ldr	r2, [fp, #-20]
	ldr	r1, .L17+48
	ldr	r0, [fp, #-12]
	bl	ioctl
.L14:
	ldr	r0, [fp, #-12]
	bl	close
	mov	r3, #0
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC15
	.word	.LC6
	.word	.LC7
	.word	optarg
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	1074029569
	.word	.LC14
	.word	1074029568
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
