	.file	"extr_watchdog_pretimeout.c_watchdog_register_pretimeout.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	watchdog_register_pretimeout
	.type	watchdog_register_pretimeout, @function
watchdog_register_pretimeout:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR 8[rdi]
	mov	eax, DWORD PTR [rax]
	and	eax, DWORD PTR WDIOF_PRETIMEOUT[rip]
	jne	.L12
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	mov	edi, 16
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	call	kzalloc@PLT
	mov	rbp, rax
	mov	eax, DWORD PTR ENOMEM[rip]
	neg	eax
	test	rbp, rbp
	je	.L1
	lea	rdi, pretimeout_lock[rip]
	call	spin_lock_irq@PLT
	lea	rdi, 8[rbp]
	lea	rsi, pretimeout_list[rip]
	call	list_add@PLT
	mov	eax, DWORD PTR default_gov[rip]
	mov	QWORD PTR 0[rbp], rbx
	lea	rdi, pretimeout_lock[rip]
	mov	DWORD PTR [rbx], eax
	call	spin_unlock_irq@PLT
	xor	eax, eax
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	watchdog_register_pretimeout, .-watchdog_register_pretimeout
	.comm	pretimeout_lock,4,4
	.comm	pretimeout_list,4,4
	.comm	default_gov,4,4
	.comm	WDIOF_PRETIMEOUT,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_watchdog_pretimeout.c_watchdog_register_pretimeout.c"
	.text
	.align	2
	.global	watchdog_register_pretimeout
	.syntax unified
	.arm
	.fpu softvfp
	.type	watchdog_register_pretimeout, %function
watchdog_register_pretimeout:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #4]
	ldr	r2, .L10
	push	{r4, r5, r6, lr}
	ldr	r3, [r3]
	mov	r4, r0
	ldr	r0, [r2]
	ands	r0, r3, r0
	popeq	{r4, r5, r6, pc}
	ldr	r3, .L10+4
	mov	r0, #8
	ldr	r1, [r3]
	bl	kzalloc
	subs	r5, r0, #0
	beq	.L9
	ldr	r0, .L10+8
	bl	spin_lock_irq
	ldr	r1, .L10+12
	add	r0, r5, #4
	bl	list_add
	ldr	r3, .L10+16
	str	r4, [r5]
	ldr	r3, [r3]
	ldr	r0, .L10+8
	str	r3, [r4]
	bl	spin_unlock_irq
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L9:
	ldr	r3, .L10+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L11:
	.align	2
.L10:
	.word	WDIOF_PRETIMEOUT
	.word	GFP_KERNEL
	.word	pretimeout_lock
	.word	pretimeout_list
	.word	default_gov
	.word	ENOMEM
	.size	watchdog_register_pretimeout, .-watchdog_register_pretimeout
	.comm	pretimeout_lock,4,4
	.comm	pretimeout_list,4,4
	.comm	default_gov,4,4
	.comm	WDIOF_PRETIMEOUT,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
