	.file	"848637.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%s (Dec  6 2024 03:29:28)\n"
	.text
	.type	print_version, @function
print_version:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	print_version, .-print_version
	.section	.rodata
.LC1:
	.string	"Usage: upgrade-reboot\n"
	.text
	.type	usage, @function
usage:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 22
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	usage, .-usage
	.section	.rodata
.LC2:
	.string	""
	.section	.data.rel.local,"aw"
	.align 8
	.type	short_options, @object
	.size	short_options, 8
short_options:
	.quad	.LC2
	.section	.rodata
.LC3:
	.string	"version"
.LC4:
	.string	"help"
	.section	.data.rel.local
	.align 32
	.type	long_options, @object
	.size	long_options, 96
long_options:
	.quad	.LC3
	.long	0
	.zero	4
	.quad	0
	.long	128
	.zero	4
	.quad	.LC4
	.long	0
	.zero	4
	.quad	0
	.long	129
	.zero	4
	.quad	0
	.long	0
	.zero	4
	.quad	0
	.long	0
	.zero	4
	.section	.rodata
.LC5:
	.string	"upgrade-reboot"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	jmp	.L4
.L9:
	cmp	DWORD PTR -12[rbp], 129
	je	.L5
	cmp	DWORD PTR -12[rbp], 129
	jg	.L6
	cmp	DWORD PTR -12[rbp], 0
	je	.L4
	cmp	DWORD PTR -12[rbp], 128
	je	.L8
	jmp	.L6
.L8:
	lea	rdi, .LC5[rip]
	call	print_version
	mov	edi, 0
	call	exit@PLT
.L5:
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	usage
	mov	edi, 0
	call	exit@PLT
.L6:
	mov	rax, QWORD PTR stderr[rip]
	mov	rdi, rax
	call	usage
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	rdx, QWORD PTR short_options[rip]
	lea	rcx, -16[rbp]
	mov	rsi, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	r8, rcx
	lea	rcx, long_options[rip]
	mov	edi, eax
	call	getopt_long@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jns	.L9
	call	sync@PLT
	mov	edi, 2
	call	sleep@PLT
	mov	edi, 19088743
	call	reboot@PLT
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"848637.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s (Dec  6 2024 03:29:28)\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_version, %function
print_version:
	@ 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	r1, [fp, #-8]
	ldr	r0, .L2
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	.LC0
	.size	print_version, .-print_version
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Usage: upgrade-reboot\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ 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	r3, [fp, #-8]
	mov	r2, #22
	mov	r1, #1
	ldr	r0, .L5
	bl	fwrite
	ldr	r1, [fp, #-8]
	mov	r0, #10
	bl	fputc
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	.LC1
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC2:
	.ascii	"\000"
	.data
	.align	2
	.type	short_options, %object
	.size	short_options, 4
short_options:
	.word	.LC2
	.section	.rodata
	.align	2
.LC3:
	.ascii	"version\000"
	.align	2
.LC4:
	.ascii	"help\000"
	.data
	.align	2
	.type	long_options, %object
	.size	long_options, 48
long_options:
	.word	.LC3
	.word	0
	.word	0
	.word	128
	.word	.LC4
	.word	0
	.word	0
	.word	129
	.word	0
	.word	0
	.word	0
	.word	0
	.section	.rodata
	.align	2
.LC5:
	.ascii	"upgrade-reboot\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	b	.L8
.L13:
	ldr	r3, [fp, #-12]
	cmp	r3, #129
	beq	.L9
	ldr	r3, [fp, #-12]
	cmp	r3, #129
	bgt	.L10
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-12]
	cmp	r3, #128
	beq	.L12
	b	.L10
.L12:
	ldr	r0, .L16+4
	bl	print_version
	mov	r0, #0
	bl	exit
.L9:
	ldr	r3, .L16+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	usage
	mov	r0, #0
	bl	exit
.L10:
	ldr	r3, .L16+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	usage
	mov	r0, #1
	bl	exit
.L8:
	ldr	r3, .L16+16
	ldr	r2, [r3]
	sub	r3, fp, #16
	str	r3, [sp]
	ldr	r3, .L16+20
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	getopt_long
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L13
	bl	sync
	mov	r0, #2
	bl	sleep
	ldr	r0, .L16+24
	bl	reboot
	mov	r3, #0
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC6
	.word	.LC5
	.word	stdout
	.word	stderr
	.word	short_options
	.word	long_options
	.word	19088743
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
