	.file	"extr_watchdog-test.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"/dev/watchdog"
.LC1:
	.string	"Watchdog device not enabled.\n"
.LC2:
	.string	"-d"
.LC3:
	.string	"Watchdog card disabled.\n"
.LC4:
	.string	"-e"
.LC5:
	.string	"Watchdog card enabled.\n"
.LC6:
	.string	"-d to disable, -e to enable.\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC7:
	.string	"run by itself to tick the card.\n"
	.section	.rodata.str1.1
.LC8:
	.string	"Watchdog Ticking Away!\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	ebp, edi
	lea	rdi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	esi, DWORD PTR O_WRONLY[rip]
	call	open@PLT
	mov	DWORD PTR fd[rip], eax
	cmp	eax, -1
	je	.L11
.L2:
	cmp	ebp, 1
	jle	.L3
	mov	rdi, QWORD PTR 8[rbx]
	mov	edx, 2
	lea	rsi, .LC2[rip]
	call	strncasecmp@PLT
	test	eax, eax
	jne	.L4
	mov	esi, DWORD PTR WDIOC_SETOPTIONS[rip]
	mov	edx, DWORD PTR WDIOS_DISABLECARD[rip]
	mov	edi, DWORD PTR fd[rip]
	call	ioctl@PLT
	lea	rsi, .LC3[rip]
.L9:
	mov	edi, DWORD PTR stderr[rip]
	call	fprintf@PLT
	mov	edi, DWORD PTR stderr[rip]
	call	fflush@PLT
	xor	edi, edi
	call	exit@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	xor	eax, eax
	call	keep_alive@PLT
	mov	edi, 1
	call	sleep@PLT
	jmp	.L7
.L11:
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	call	fprintf@PLT
	mov	edi, DWORD PTR stderr[rip]
	call	fflush@PLT
	or	edi, -1
	call	exit@PLT
	jmp	.L2
.L4:
	mov	rdi, QWORD PTR 8[rbx]
	mov	edx, 2
	lea	rsi, .LC4[rip]
	call	strncasecmp@PLT
	test	eax, eax
	jne	.L6
	mov	esi, DWORD PTR WDIOC_SETOPTIONS[rip]
	mov	edx, DWORD PTR WDIOS_ENABLECARD[rip]
	mov	edi, DWORD PTR fd[rip]
	call	ioctl@PLT
	lea	rsi, .LC5[rip]
	jmp	.L9
.L3:
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC8[rip]
	call	fprintf@PLT
	mov	edi, DWORD PTR stderr[rip]
	call	fflush@PLT
	jmp	.L7
.L6:
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC6[rip]
	call	fprintf@PLT
	lea	rsi, .LC7[rip]
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	stderr,4,4
	.comm	fd,4,4
	.comm	WDIOS_ENABLECARD,4,4
	.comm	WDIOS_DISABLECARD,4,4
	.comm	WDIOC_SETOPTIONS,4,4
	.comm	O_WRONLY,4,4
	.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_watchdog-test.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"/dev/watchdog\000"
	.align	2
.LC1:
	.ascii	"Watchdog device not enabled.\012\000"
	.align	2
.LC2:
	.ascii	"-d\000"
	.align	2
.LC3:
	.ascii	"Watchdog card disabled.\012\000"
	.align	2
.LC4:
	.ascii	"-e\000"
	.align	2
.LC5:
	.ascii	"Watchdog card enabled.\012\000"
	.align	2
.LC6:
	.ascii	"-d to disable, -e to enable.\012\000"
	.align	2
.LC7:
	.ascii	"run by itself to tick the card.\012\000"
	.align	2
.LC8:
	.ascii	"Watchdog Ticking Away!\012\000"
	.section	.text.startup,"ax",%progbits
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ Volatile: function does not return.
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L14
	push	{r7, lr}
	mov	r8, r0
	mov	r7, r1
	ldr	r0, .L14+4
	ldr	r1, [r3]
	bl	open
	ldr	r6, .L14+8
	cmn	r0, #1
	str	r0, [r6]
	beq	.L9
	ldr	r4, .L14+12
.L2:
	cmp	r8, #1
	ble	.L3
	ldr	r7, [r7, #4]
	mov	r2, #2
	mov	r0, r7
	ldr	r1, .L14+16
	bl	strncasecmp
	subs	r5, r0, #0
	beq	.L13
	mov	r0, r7
	mov	r2, #2
	ldr	r1, .L14+20
	bl	strncasecmp
	subs	r5, r0, #0
	bne	.L6
	ldr	r3, .L14+24
	ldr	r2, .L14+28
	ldr	r1, [r3]
	ldr	r0, [r6]
	ldr	r2, [r2]
	bl	ioctl
	ldr	r1, .L14+32
.L11:
	ldr	r0, [r4]
	bl	fprintf
	ldr	r0, [r4]
	bl	fflush
	mov	r0, #0
	bl	exit
.L7:
	bl	keep_alive
	mov	r0, #1
	bl	sleep
	b	.L7
.L9:
	mov	r5, r0
	ldr	r4, .L14+12
	ldr	r1, .L14+36
	ldr	r0, [r4]
	bl	fprintf
	ldr	r0, [r4]
	bl	fflush
	mov	r0, r5
	bl	exit
	b	.L2
.L13:
	ldr	r3, .L14+24
	ldr	r2, .L14+40
	ldr	r1, [r3]
	ldr	r0, [r6]
	ldr	r2, [r2]
	bl	ioctl
	ldr	r1, .L14+44
	b	.L11
.L3:
	ldr	r1, .L14+48
	ldr	r0, [r4]
	bl	fprintf
	ldr	r0, [r4]
	bl	fflush
	b	.L7
.L6:
	ldr	r1, .L14+52
	ldr	r0, [r4]
	bl	fprintf
	ldr	r1, .L14+56
	b	.L11
.L15:
	.align	2
.L14:
	.word	O_WRONLY
	.word	.LC0
	.word	fd
	.word	stderr
	.word	.LC2
	.word	.LC4
	.word	WDIOC_SETOPTIONS
	.word	WDIOS_ENABLECARD
	.word	.LC5
	.word	.LC1
	.word	WDIOS_DISABLECARD
	.word	.LC3
	.word	.LC8
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.comm	stderr,4,4
	.comm	fd,4,4
	.comm	WDIOS_ENABLECARD,4,4
	.comm	WDIOS_DISABLECARD,4,4
	.comm	WDIOC_SETOPTIONS,4,4
	.comm	O_WRONLY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
