	.file	"extr_if_bfe.c_bfe_watchdog.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"watchdog timeout -- resetting\n"
	.text
	.p2align 4
	.type	bfe_watchdog, @function
bfe_watchdog:
.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
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	BFE_LOCK_ASSERT@PLT
	mov	rax, QWORD PTR 0[rbp]
	test	rax, rax
	je	.L1
	sub	rax, 1
	mov	QWORD PTR 0[rbp], rax
	je	.L7
.L1:
	add	rsp, 8
	.cfi_remember_state
	.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
.L7:
	.cfi_restore_state
	mov	edi, DWORD PTR 8[rbp]
	mov	r12, QWORD PTR 16[rbp]
	lea	rsi, .LC0[rip]
	call	device_printf@PLT
	mov	esi, DWORD PTR IFCOUNTER_OERRORS[rip]
	mov	edx, 1
	mov	rdi, r12
	call	if_inc_counter@PLT
	mov	eax, DWORD PTR IFF_DRV_RUNNING[rip]
	mov	rdi, rbp
	not	eax
	and	DWORD PTR 4[r12], eax
	call	bfe_init_locked@PLT
	mov	rdi, r12
	call	IFQ_DRV_IS_EMPTY@PLT
	test	eax, eax
	jne	.L1
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	bfe_start_locked@PLT
	.cfi_endproc
.LFE0:
	.size	bfe_watchdog, .-bfe_watchdog
	.comm	IFF_DRV_RUNNING,4,4
	.comm	IFCOUNTER_OERRORS,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_if_bfe.c_bfe_watchdog.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"watchdog timeout -- resetting\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bfe_watchdog, %function
bfe_watchdog:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	bl	BFE_LOCK_ASSERT
	ldr	r3, [r4]
	cmp	r3, #0
	popeq	{r4, r5, r6, pc}
	sub	r3, r3, #1
	cmp	r3, #0
	str	r3, [r4]
	popne	{r4, r5, r6, pc}
	ldmib	r4, {r0, r5}
	ldr	r1, .L7
	bl	device_printf
	ldr	r3, .L7+4
	mov	r2, #1
	ldr	r1, [r3]
	mov	r0, r5
	bl	if_inc_counter
	ldr	r2, .L7+8
	ldr	r3, [r5, #4]
	ldr	r2, [r2]
	mov	r0, r4
	bic	r3, r3, r2
	str	r3, [r5, #4]
	bl	bfe_init_locked
	mov	r0, r5
	bl	IFQ_DRV_IS_EMPTY
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	bfe_start_locked
.L8:
	.align	2
.L7:
	.word	.LC0
	.word	IFCOUNTER_OERRORS
	.word	IFF_DRV_RUNNING
	.size	bfe_watchdog, .-bfe_watchdog
	.comm	IFF_DRV_RUNNING,4,4
	.comm	IFCOUNTER_OERRORS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
