	.file	"extr_f71808e_wdt.c_watchdog_is_running.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	watchdog_is_running, @function
watchdog_is_running:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	rdi, watchdog[rip]
	mov	r12d, 1
	call	mutex_lock@PLT
	mov	edi, DWORD PTR watchdog[rip+4]
	call	superio_enter@PLT
	test	rax, rax
	je	.L11
.L2:
	lea	rdi, watchdog[rip]
	call	mutex_unlock@PLT
	mov	eax, r12d
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	esi, DWORD PTR SIO_F71808FG_LD_WDT[rip]
	mov	edi, DWORD PTR watchdog[rip+4]
	call	superio_select@PLT
	mov	edi, DWORD PTR watchdog[rip+4]
	mov	esi, DWORD PTR SIO_REG_ENABLE[rip]
	call	superio_inb@PLT
	xor	edi, edi
	mov	r12d, eax
	call	BIT@PLT
	and	r12d, eax
	jne	.L12
.L3:
	mov	edi, DWORD PTR watchdog[rip+4]
	call	superio_exit@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L12:
	mov	esi, DWORD PTR F71808FG_REG_WDT_CONF[rip]
	mov	edi, DWORD PTR watchdog[rip+4]
	call	superio_inb@PLT
	mov	edi, DWORD PTR F71808FG_FLAG_WD_EN[rip]
	mov	r12d, eax
	call	BIT@PLT
	test	r12d, eax
	setne	r12b
	movzx	r12d, r12b
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	watchdog_is_running, .-watchdog_is_running
	.comm	watchdog,8,8
	.comm	SIO_REG_ENABLE,4,4
	.comm	SIO_F71808FG_LD_WDT,4,4
	.comm	F71808FG_REG_WDT_CONF,4,4
	.comm	F71808FG_FLAG_WD_EN,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_f71808e_wdt.c_watchdog_is_running.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	watchdog_is_running, %function
watchdog_is_running:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r4, .L12
	mov	r0, r4
	bl	mutex_lock
	ldr	r0, [r4, #4]
	bl	superio_enter
	subs	r6, r0, #0
	movne	r5, #1
	beq	.L10
.L2:
	ldr	r0, .L12
	bl	mutex_unlock
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L10:
	ldr	r3, .L12+4
	ldr	r0, [r4, #4]
	ldr	r1, [r3]
	bl	superio_select
	ldr	r3, .L12+8
	ldr	r0, [r4, #4]
	ldr	r1, [r3]
	bl	superio_inb
	mov	r5, r0
	mov	r0, r6
	bl	BIT
	ands	r5, r5, r0
	bne	.L11
.L3:
	ldr	r0, [r4, #4]
	bl	superio_exit
	b	.L2
.L11:
	ldr	r3, .L12+12
	ldr	r0, [r4, #4]
	ldr	r1, [r3]
	bl	superio_inb
	ldr	r3, .L12+16
	mov	r5, r0
	ldr	r0, [r3]
	bl	BIT
	tst	r5, r0
	movne	r5, #1
	moveq	r5, #0
	b	.L3
.L13:
	.align	2
.L12:
	.word	watchdog
	.word	SIO_F71808FG_LD_WDT
	.word	SIO_REG_ENABLE
	.word	F71808FG_REG_WDT_CONF
	.word	F71808FG_FLAG_WD_EN
	.size	watchdog_is_running, .-watchdog_is_running
	.comm	watchdog,8,4
	.comm	SIO_REG_ENABLE,4,4
	.comm	SIO_F71808FG_LD_WDT,4,4
	.comm	F71808FG_REG_WDT_CONF,4,4
	.comm	F71808FG_FLAG_WD_EN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
