	.file	"513170.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Failed to execute command 0x%02x (%c)"
	.align 8
.LC1:
	.string	"Failed to execute command 0x%02x (%c): %zd"
.LC2:
	.string	"Failed to reboot BMC"
.LC3:
	.string	"Failed to reboot BMC: %zd"
	.align 8
.LC4:
	.string	"Unexpected command: 0x%02x (%c)"
.LC5:
	.string	"Failed to read from source"
	.text
	.type	process, @function
process:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	jmp	.L2
.L11:
	movzx	eax, BYTE PTR -25[rbp]
	movsx	eax, al
	cmp	eax, 68
	je	.L3
	cmp	eax, 82
	je	.L4
	jmp	.L15
.L3:
	call	sync@PLT
	mov	eax, DWORD PTR -40[rbp]
	mov	edx, 1
	lea	rsi, action.1[rip]
	mov	edi, eax
	call	write@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 1
	jne	.L6
	jmp	.L2
.L6:
	cmp	QWORD PTR -16[rbp], -1
	jne	.L7
	movzx	eax, BYTE PTR -25[rbp]
	movsx	edx, al
	movzx	eax, BYTE PTR -25[rbp]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	warn@PLT
	jmp	.L2
.L7:
	movzx	eax, BYTE PTR -25[rbp]
	movsx	edx, al
	movzx	eax, BYTE PTR -25[rbp]
	movsx	eax, al
	mov	rcx, QWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	warnx@PLT
	jmp	.L2
.L4:
	call	sync@PLT
	mov	edi, 19088743
	call	reboot@PLT
	cdqe
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L2
	cmp	QWORD PTR -16[rbp], -1
	jne	.L10
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	warn@PLT
	jmp	.L2
.L10:
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	warnx@PLT
	jmp	.L2
.L15:
	movzx	eax, BYTE PTR -25[rbp]
	movsx	edx, al
	movzx	eax, BYTE PTR -25[rbp]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	warnx@PLT
.L2:
	lea	rcx, -25[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 1
	je	.L11
	cmp	QWORD PTR -24[rbp], -1
	jne	.L12
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	warn@PLT
.L12:
	mov	rax, QWORD PTR -24[rbp]
	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
.LFE6:
	.size	process, .-process
	.section	.rodata
.LC6:
	.string	""
.LC7:
	.string	"/dev/"
.LC8:
	.string	"Failed to open %s"
.LC9:
	.string	"Found %d unexpected arguments"
	.align 8
.LC10:
	.string	"Failure while processing command stream"
	.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 64
	mov	DWORD PTR -8244[rbp], edi
	mov	QWORD PTR -8256[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L19:
	mov	rsi, QWORD PTR -8256[rbp]
	mov	eax, DWORD PTR -8244[rbp]
	mov	r8d, 0
	lea	rcx, long_options.0[rip]
	lea	rdx, .LC6[rip]
	mov	edi, eax
	call	getopt_long@PLT
	mov	DWORD PTR -8220[rbp], eax
	cmp	DWORD PTR -8220[rbp], -1
	je	.L29
	jmp	.L19
.L29:
	nop
	mov	DWORD PTR -8228[rbp], 0
	mov	DWORD PTR -8224[rbp], 1
	mov	eax, DWORD PTR optind[rip]
	cmp	DWORD PTR -8244[rbp], eax
	jle	.L20
	mov	eax, DWORD PTR optind[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -8256[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	lea	rax, -4112[rbp]
	mov	edx, 4096
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	BYTE PTR -17[rbp], 0
	lea	rax, -4112[rbp]
	mov	rdi, rax
	call	__xpg_basename@PLT
	mov	QWORD PTR -8216[rbp], rax
	lea	rax, -8208[rbp]
	mov	edx, 4096
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strncpy@PLT
	mov	rcx, QWORD PTR -8216[rbp]
	lea	rax, -8208[rbp]
	mov	edx, 4096
	mov	rsi, rcx
	mov	rdi, rax
	call	strncat@PLT
	mov	BYTE PTR -4113[rbp], 0
	lea	rax, -8208[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -8228[rbp], eax
	cmp	DWORD PTR -8228[rbp], -1
	jne	.L21
	lea	rax, -8208[rbp]
	mov	rdx, rax
	lea	rsi, .LC8[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L21:
	mov	eax, DWORD PTR optind[rip]
	add	eax, 1
	mov	DWORD PTR optind[rip], eax
.L20:
	mov	eax, DWORD PTR optind[rip]
	cmp	DWORD PTR -8244[rbp], eax
	jle	.L22
	mov	eax, DWORD PTR optind[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -8256[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	esi, 1
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -8224[rbp], eax
	cmp	DWORD PTR -8224[rbp], -1
	jne	.L23
	mov	eax, DWORD PTR optind[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -8256[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, rax
	lea	rsi, .LC8[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L23:
	mov	eax, DWORD PTR optind[rip]
	add	eax, 1
	mov	DWORD PTR optind[rip], eax
.L22:
	mov	eax, DWORD PTR optind[rip]
	cmp	DWORD PTR -8244[rbp], eax
	jle	.L24
	mov	edx, DWORD PTR optind[rip]
	mov	eax, DWORD PTR -8244[rbp]
	sub	eax, edx
	mov	edx, eax
	lea	rsi, .LC9[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L24:
	mov	edx, DWORD PTR -8224[rbp]
	mov	eax, DWORD PTR -8228[rbp]
	mov	esi, edx
	mov	edi, eax
	call	process
	test	eax, eax
	jns	.L25
	lea	rsi, .LC10[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L25:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.type	action.1, @object
	.size	action.1, 1
action.1:
	.byte	99
	.local	long_options.0
	.comm	long_options.0,32,32
	.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	"513170.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Failed to execute command 0x%02x (%c)\000"
	.align	2
.LC1:
	.ascii	"Failed to execute command 0x%02x (%c): %zd\000"
	.align	2
.LC2:
	.ascii	"Failed to reboot BMC\000"
	.align	2
.LC3:
	.ascii	"Failed to reboot BMC: %zd\000"
	.align	2
.LC4:
	.ascii	"Unexpected command: 0x%02x (%c)\000"
	.align	2
.LC5:
	.ascii	"Failed to read from source\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	process, %function
process:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	b	.L2
.L11:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #68
	beq	.L3
	cmp	r3, #82
	beq	.L4
	b	.L15
.L3:
	bl	sync
	mov	r2, #1
	ldr	r1, .L16+4
	ldr	r0, [fp, #-28]
	bl	write
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	bne	.L6
	b	.L2
.L6:
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L7
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	mov	r1, r3
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r0, .L16+8
	bl	warn
	b	.L2
.L7:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	mov	r1, r3
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-12]
	ldr	r0, .L16+12
	bl	warnx
	b	.L2
.L4:
	bl	sync
	ldr	r0, .L16+16
	bl	reboot
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L10
	ldr	r0, .L16+20
	bl	warn
	b	.L2
.L10:
	ldr	r1, [fp, #-12]
	ldr	r0, .L16+24
	bl	warnx
	b	.L2
.L15:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	mov	r1, r3
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r0, .L16+28
	bl	warnx
.L2:
	sub	r3, fp, #17
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	read
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	beq	.L11
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L12
	ldr	r0, .L16+32
	bl	warn
.L12:
	ldr	r3, [fp, #-16]
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC6
	.word	action.5755
	.word	.LC0
	.word	.LC1
	.word	19088743
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	process, .-process
	.section	.rodata
	.align	2
.LC7:
	.ascii	"\000"
	.align	2
.LC8:
	.ascii	"/dev/\000"
	.align	2
.LC9:
	.ascii	"Failed to open %s\000"
	.align	2
.LC10:
	.ascii	"Found %d unexpected arguments\000"
	.align	2
.LC11:
	.ascii	"Failure while processing command stream\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8224
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #8192
	sub	sp, sp, #44
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r0, [r3, #-28]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r1, [r3, #-32]
	ldr	r3, .L32
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
.L21:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, #0
	str	r3, [sp]
	ldr	r3, .L32+4
	ldr	r2, .L32+8
	ldr	r1, [r1, #-32]
	ldr	r0, [r0, #-28]
	bl	getopt_long
	str	r0, [r4, #-12]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	cmn	r3, #1
	beq	.L31
	b	.L21
.L31:
	nop
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-20]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-16]
	ldr	r3, .L32+12
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-28]
	cmp	r2, r3
	ble	.L22
	ldr	r3, .L32+12
	ldr	r3, [r3]
	lsl	r3, r3, #2
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-32]
	add	r3, r2, r3
	ldr	r1, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #4096
	mov	r0, r3
	bl	strncpy
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #0
	strb	r2, [r3, #4091]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	__xpg_basename
	str	r0, [r4, #-8]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #4096
	ldr	r1, .L32+16
	mov	r0, r3
	bl	strncpy
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #4096
	ldr	r1, [r1, #-8]
	mov	r0, r3
	bl	strncat
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, #0
	strb	r2, [r3, #4091]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [r4, #-20]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	cmn	r3, #1
	bne	.L23
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, r3
	ldr	r1, .L32+20
	mov	r0, #1
	bl	err
.L23:
	ldr	r3, .L32+12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L32+12
	str	r3, [r2]
.L22:
	ldr	r3, .L32+12
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-28]
	cmp	r2, r3
	ble	.L24
	ldr	r3, .L32+12
	ldr	r3, [r3]
	lsl	r3, r3, #2
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-32]
	add	r3, r2, r3
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r4, r2
	mov	r1, #1
	mov	r0, r3
	bl	open
	str	r0, [r4, #-16]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	cmn	r3, #1
	bne	.L25
	ldr	r3, .L32+12
	ldr	r3, [r3]
	lsl	r3, r3, #2
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-32]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L32+20
	mov	r0, #1
	bl	err
.L25:
	ldr	r3, .L32+12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L32+12
	str	r3, [r2]
.L24:
	ldr	r3, .L32+12
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-28]
	cmp	r2, r3
	ble	.L26
	ldr	r3, .L32+12
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-28]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r1, .L32+24
	mov	r0, #1
	bl	err
.L26:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, [r2, #-16]
	ldr	r0, [r3, #-20]
	bl	process
	mov	r3, r0
	cmp	r3, #0
	bge	.L27
	ldr	r1, .L32+28
	mov	r0, #1
	bl	errx
.L27:
	mov	r3, #0
	ldr	r2, .L32
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L29
	bl	__stack_chk_fail
.L29:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC12
	.word	long_options.5772
	.word	.LC7
	.word	optind
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.section	.rodata
	.type	action.5755, %object
	.size	action.5755, 1
action.5755:
	.byte	99
	.local	long_options.5772
	.comm	long_options.5772,16,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
