	.file	"extr_ixp2000_wdt.c_ixp2000_wdt_write.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ixp2000_wdt_write, @function
ixp2000_wdt_write:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	test	rdx, rdx
	je	.L2
	mov	eax, DWORD PTR nowayout[rip]
	test	eax, eax
	jne	.L3
	mov	edi, DWORD PTR WDT_OK_TO_CLOSE[rip]
	mov	rbx, rsi
	lea	rsi, wdt_status[rip]
	xor	ebp, ebp
	lea	r13, [rbx+r12]
	call	clear_bit@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rsi, rbx
	mov	edi, ebp
	call	get_user@PLT
	test	rax, rax
	jne	.L13
	add	rbx, 1
	cmp	rbx, r13
	jne	.L6
.L3:
	xor	eax, eax
	call	wdt_keepalive@PLT
.L2:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	r12, QWORD PTR EFAULT[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	r12
	mov	rax, r12
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ixp2000_wdt_write, .-ixp2000_wdt_write
	.comm	wdt_status,4,4
	.comm	nowayout,4,4
	.comm	WDT_OK_TO_CLOSE,4,4
	.comm	EFAULT,8,8
	.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_ixp2000_wdt.c_ixp2000_wdt_write.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ixp2000_wdt_write, %function
ixp2000_wdt_write:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r5, r2, #0
	beq	.L2
	ldr	r3, .L15
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L3
	ldr	r3, .L15+4
	mov	r4, r1
	ldr	r0, [r3]
	ldr	r1, .L15+8
	bl	clear_bit
	add	r6, r4, r5
.L6:
	mov	r1, r4
	mov	r0, #0
	bl	get_user
	cmp	r0, #0
	add	r4, r4, #1
	bne	.L14
	cmp	r4, r6
	bne	.L6
.L3:
	bl	wdt_keepalive
.L2:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L14:
	ldr	r3, .L15+12
	ldr	r2, [r3]
	rsb	r5, r2, #0
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L16:
	.align	2
.L15:
	.word	nowayout
	.word	WDT_OK_TO_CLOSE
	.word	wdt_status
	.word	EFAULT
	.size	ixp2000_wdt_write, .-ixp2000_wdt_write
	.comm	wdt_status,4,4
	.comm	nowayout,4,4
	.comm	WDT_OK_TO_CLOSE,4,4
	.comm	EFAULT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
