	.file	"extr_it87_wdt.c_wdt_open.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	wdt_open, @function
wdt_open:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	cmp	QWORD PTR exclusive[rip], 0
	je	.L2
	mov	edi, DWORD PTR WDTS_DEV_OPEN[rip]
	lea	rsi, wdt_status[rip]
	call	test_and_set_bit@PLT
	test	rax, rax
	jne	.L14
.L2:
	mov	edi, DWORD PTR WDTS_TIMER_RUN[rip]
	lea	rsi, wdt_status[rip]
	call	test_and_set_bit@PLT
	test	rax, rax
	jne	.L4
	cmp	QWORD PTR nowayout[rip], 0
	jne	.L15
.L6:
	xor	eax, eax
	call	wdt_start@PLT
.L4:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rsi, r12
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	nonseekable_open@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	eax, DWORD PTR EBUSY[rip]
	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
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	edi, DWORD PTR WDTS_LOCKED[rip]
	lea	rsi, wdt_status[rip]
	call	test_and_set_bit@PLT
	test	rax, rax
	jne	.L6
	mov	edi, DWORD PTR THIS_MODULE[rip]
	call	__module_get@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	wdt_open, .-wdt_open
	.comm	wdt_status,4,4
	.comm	nowayout,8,8
	.comm	exclusive,8,8
	.comm	WDTS_TIMER_RUN,4,4
	.comm	WDTS_LOCKED,4,4
	.comm	WDTS_DEV_OPEN,4,4
	.comm	THIS_MODULE,4,4
	.comm	EBUSY,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_it87_wdt.c_wdt_open.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wdt_open, %function
wdt_open:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L19
	push	{r4, r5, r6, lr}
	ldr	r3, [r3]
	mov	r5, r0
	cmp	r3, #0
	mov	r4, r1
	beq	.L2
	ldr	r3, .L19+4
	ldr	r1, .L19+8
	ldr	r0, [r3]
	bl	test_and_set_bit
	cmp	r0, #0
	bne	.L17
.L2:
	ldr	r3, .L19+12
	ldr	r1, .L19+8
	ldr	r0, [r3]
	bl	test_and_set_bit
	cmp	r0, #0
	bne	.L4
	ldr	r3, .L19+16
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L18
.L6:
	bl	wdt_start
.L4:
	mov	r1, r4
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	nonseekable_open
.L17:
	ldr	r3, .L19+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L18:
	ldr	r3, .L19+24
	ldr	r1, .L19+8
	ldr	r0, [r3]
	bl	test_and_set_bit
	cmp	r0, #0
	bne	.L6
	ldr	r3, .L19+28
	ldr	r0, [r3]
	bl	__module_get
	b	.L6
.L20:
	.align	2
.L19:
	.word	exclusive
	.word	WDTS_DEV_OPEN
	.word	wdt_status
	.word	WDTS_TIMER_RUN
	.word	nowayout
	.word	EBUSY
	.word	WDTS_LOCKED
	.word	THIS_MODULE
	.size	wdt_open, .-wdt_open
	.comm	wdt_status,4,4
	.comm	nowayout,4,4
	.comm	exclusive,4,4
	.comm	WDTS_TIMER_RUN,4,4
	.comm	WDTS_LOCKED,4,4
	.comm	WDTS_DEV_OPEN,4,4
	.comm	THIS_MODULE,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
