	.file	"86076159.c"
	.intel_syntax noprefix
	.text
	.globl	fd
	.bss
	.align 4
	.type	fd, @object
	.size	fd, 4
fd:
	.zero	4
	.text
	.type	keep_alive, @function
keep_alive:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR fd[rip]
	lea	rdx, -12[rbp]
	mov	esi, 2147768069
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L2
	call	__stack_chk_fail@PLT
.L2:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	keep_alive, .-keep_alive
	.section	.rodata
.LC0:
	.string	"Stopping watchdog ticks...\n"
	.text
	.type	term, @function
term:
.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	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR fd[rip]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 27
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	term, .-term
	.section	.rodata
.LC1:
	.string	"/dev/watchdog"
.LC2:
	.string	"Watchdog device not enabled.\n"
.LC3:
	.string	"-d"
.LC4:
	.string	"Watchdog card disabled.\n"
.LC5:
	.string	"-e"
	.align 8
.LC6:
	.string	"Current watchdog interval is %d\n"
.LC7:
	.string	"Watchdog card enabled.\n"
.LC8:
	.string	"-d to disable, -e to enable.\n"
	.align 8
.LC9:
	.string	"run by itself to tick the card.\n"
.LC10:
	.string	"Watchdog Ticking Away!\n"
	.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
	mov	DWORD PTR -12[rbp], 30
	mov	esi, 1
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR fd[rip], eax
	mov	eax, DWORD PTR fd[rip]
	cmp	eax, -1
	jne	.L5
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 29
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	edi, -1
	call	exit@PLT
.L5:
	cmp	DWORD PTR -20[rbp], 1
	jle	.L6
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	edx, 2
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strncasecmp@PLT
	test	eax, eax
	jne	.L7
	mov	DWORD PTR -16[rbp], 1
	mov	eax, DWORD PTR fd[rip]
	lea	rdx, -16[rbp]
	mov	esi, 2147768068
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 24
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rdi, rax
	call	fflush@PLT
	jmp	.L8
.L7:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	edx, 2
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strncasecmp@PLT
	test	eax, eax
	jne	.L9
	mov	DWORD PTR -16[rbp], 2
	mov	eax, DWORD PTR fd[rip]
	lea	rdx, -12[rbp]
	mov	esi, 3221509894
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	eax, DWORD PTR fd[rip]
	lea	rdx, -12[rbp]
	mov	esi, 2147768071
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR fd[rip]
	lea	rdx, -16[rbp]
	mov	esi, 2147768068
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 23
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rdi, rax
	call	fflush@PLT
	jmp	.L8
.L9:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 29
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 32
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rdi, rax
	call	fflush@PLT
	jmp	.L8
.L6:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 23
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rsi, term[rip]
	mov	edi, 2
	call	signal@PLT
.L10:
	call	keep_alive
	mov	edi, 1
	call	sleep@PLT
	jmp	.L10
.L8:
	mov	eax, DWORD PTR fd[rip]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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	"86076159.c"
	.text
	.comm	fd,4,4
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	keep_alive, %function
keep_alive:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L3+4
	ldr	r3, [r3]
	sub	r2, fp, #12
	ldr	r1, .L3+8
	mov	r0, r3
	bl	ioctl
	nop
	ldr	r3, .L3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L2
	bl	__stack_chk_fail
.L2:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC0
	.word	fd
	.word	-2147199227
	.size	keep_alive, .-keep_alive
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Stopping watchdog ticks...\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	term, %function
term:
	@ 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, .L6
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, .L6+4
	ldr	r3, [r3]
	mov	r2, #27
	mov	r1, #1
	ldr	r0, .L6+8
	bl	fwrite
	mov	r0, #0
	bl	exit
.L7:
	.align	2
.L6:
	.word	fd
	.word	stderr
	.word	.LC1
	.size	term, .-term
	.section	.rodata
	.align	2
.LC2:
	.ascii	"/dev/watchdog\000"
	.align	2
.LC3:
	.ascii	"Watchdog device not enabled.\012\000"
	.align	2
.LC4:
	.ascii	"-d\000"
	.align	2
.LC5:
	.ascii	"Watchdog card disabled.\012\000"
	.align	2
.LC6:
	.ascii	"-e\000"
	.align	2
.LC7:
	.ascii	"Current watchdog interval is %d\012\000"
	.align	2
.LC8:
	.ascii	"Watchdog card enabled.\012\000"
	.align	2
.LC9:
	.ascii	"-d to disable, -e to enable.\012\000"
	.align	2
.LC10:
	.ascii	"run by itself to tick the card.\012\000"
	.align	2
.LC11:
	.ascii	"Watchdog Ticking Away!\012\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 = 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, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #30
	str	r3, [fp, #-12]
	mov	r1, #1
	ldr	r0, .L17+4
	bl	open
	mov	r3, r0
	ldr	r2, .L17+8
	str	r3, [r2]
	ldr	r3, .L17+8
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L9
	ldr	r3, .L17+12
	ldr	r3, [r3]
	mov	r2, #29
	mov	r1, #1
	ldr	r0, .L17+16
	bl	fwrite
	ldr	r3, .L17+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mvn	r0, #0
	bl	exit
.L9:
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	ble	.L10
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, #2
	ldr	r1, .L17+20
	mov	r0, r3
	bl	strncasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
	mov	r3, #1
	str	r3, [fp, #-16]
	ldr	r3, .L17+8
	ldr	r3, [r3]
	sub	r2, fp, #16
	ldr	r1, .L17+24
	mov	r0, r3
	bl	ioctl
	ldr	r3, .L17+12
	ldr	r3, [r3]
	mov	r2, #24
	mov	r1, #1
	ldr	r0, .L17+28
	bl	fwrite
	ldr	r3, .L17+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	b	.L12
.L11:
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, #2
	ldr	r1, .L17+32
	mov	r0, r3
	bl	strncasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L13
	mov	r3, #2
	str	r3, [fp, #-16]
	ldr	r3, .L17+8
	ldr	r3, [r3]
	sub	r2, fp, #12
	ldr	r1, .L17+36
	mov	r0, r3
	bl	ioctl
	ldr	r3, .L17+8
	ldr	r3, [r3]
	sub	r2, fp, #12
	ldr	r1, .L17+40
	mov	r0, r3
	bl	ioctl
	ldr	r3, .L17+44
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	ldr	r1, .L17+48
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L17+8
	ldr	r3, [r3]
	sub	r2, fp, #16
	ldr	r1, .L17+24
	mov	r0, r3
	bl	ioctl
	ldr	r3, .L17+12
	ldr	r3, [r3]
	mov	r2, #23
	mov	r1, #1
	ldr	r0, .L17+52
	bl	fwrite
	ldr	r3, .L17+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	b	.L12
.L13:
	ldr	r3, .L17+12
	ldr	r3, [r3]
	mov	r2, #29
	mov	r1, #1
	ldr	r0, .L17+56
	bl	fwrite
	ldr	r3, .L17+12
	ldr	r3, [r3]
	mov	r2, #32
	mov	r1, #1
	ldr	r0, .L17+60
	bl	fwrite
	ldr	r3, .L17+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	b	.L12
.L10:
	ldr	r3, .L17+12
	ldr	r3, [r3]
	mov	r2, #23
	mov	r1, #1
	ldr	r0, .L17+64
	bl	fwrite
	ldr	r3, .L17+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r1, .L17+68
	mov	r0, #2
	bl	signal
.L14:
	bl	keep_alive
	mov	r0, #1
	bl	sleep
	b	.L14
.L12:
	ldr	r3, .L17+8
	ldr	r3, [r3]
	mov	r0, r3
	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	.LC12
	.word	.LC2
	.word	fd
	.word	stderr
	.word	.LC3
	.word	.LC4
	.word	-2147199228
	.word	.LC5
	.word	.LC6
	.word	-1073457402
	.word	-2147199225
	.word	stdout
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	term
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
