	.file	"extr_test-watchdog.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Failed to open watchdog: %m"
.LC1:
	.string	"Pinging..."
.LC2:
	.string	"Failed to ping watchdog: %m"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR LOG_DEBUG[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	test_setup_logging@PLT
	xor	eax, eax
	call	slow_tests_enabled@PLT
	test	eax, eax
	je	.L2
	imul	eax, DWORD PTR USEC_PER_SEC[rip], 10
	mov	r12d, 5
.L3:
	lea	rdi, 4[rsp]
	mov	DWORD PTR 4[rsp], eax
	call	watchdog_set_timeout@PLT
	mov	ebx, eax
	test	eax, eax
	js	.L12
.L4:
	add	ebx, DWORD PTR EPERM[rip]
	jne	.L5
	mov	DWORD PTR 4[rsp], 0
.L5:
	xor	ebx, ebx
	lea	rbp, .LC1[rip]
.L7:
	mov	rdi, rbp
	call	log_info@PLT
	xor	eax, eax
	call	watchdog_ping@PLT
	test	eax, eax
	js	.L13
.L6:
	mov	eax, DWORD PTR 4[rsp]
	add	ebx, 1
	mov	edi, eax
	shr	edi, 31
	add	edi, eax
	sar	edi
	call	usleep@PLT
	cmp	r12d, ebx
	jne	.L7
	mov	edi, 1
	call	watchdog_close@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	lea	rsi, .LC2[rip]
	mov	edi, eax
	call	log_warning_errno@PLT
	jmp	.L6
.L2:
	mov	eax, DWORD PTR USEC_PER_SEC[rip]
	mov	r12d, 3
	jmp	.L3
.L12:
	lea	rsi, .LC0[rip]
	mov	edi, eax
	call	log_warning_errno@PLT
	jmp	.L4
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	USEC_PER_SEC,4,4
	.comm	LOG_DEBUG,4,4
	.comm	EPERM,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_test-watchdog.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to open watchdog: %m\000"
	.align	2
.LC1:
	.ascii	"Pinging...\000"
	.align	2
.LC2:
	.ascii	"Failed to ping watchdog: %m\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.section	.text.startup,"ax",%progbits
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L15
	ldr	r2, .L15+4
	ldr	r0, [r3]
	sub	sp, sp, #12
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	bl	test_setup_logging
	bl	slow_tests_enabled
	cmp	r0, #0
	movne	r2, #10
	ldrne	r3, .L15+8
	ldreq	r3, .L15+8
	ldrne	r3, [r3]
	ldreq	r3, [r3]
	mulne	r3, r2, r3
	mov	r0, sp
	movne	r6, #5
	moveq	r6, #3
	str	r3, [sp]
	bl	watchdog_set_timeout
	subs	r4, r0, #0
	blt	.L12
.L4:
	ldr	r3, .L15+12
	ldr	r5, .L15+16
	ldr	r3, [r3]
	ldr	r7, .L15+20
	cmn	r4, r3
	moveq	r3, #0
	mov	r4, #0
	streq	r3, [sp]
.L7:
	mov	r0, r5
	bl	log_info
	bl	watchdog_ping
	cmp	r0, #0
	blt	.L13
.L6:
	ldr	r0, [sp]
	add	r4, r4, #1
	add	r0, r0, r0, lsr #31
	asr	r0, r0, #1
	bl	usleep
	cmp	r6, r4
	bne	.L7
	mov	r0, #1
	bl	watchdog_close
	ldr	r3, .L15+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	mov	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L13:
	mov	r1, r7
	bl	log_warning_errno
	b	.L6
.L12:
	ldr	r1, .L15+24
	bl	log_warning_errno
	b	.L4
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	LOG_DEBUG
	.word	.LC3
	.word	USEC_PER_SEC
	.word	EPERM
	.word	.LC1
	.word	.LC2
	.word	.LC0
	.size	main, .-main
	.comm	USEC_PER_SEC,4,4
	.comm	LOG_DEBUG,4,4
	.comm	EPERM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
