	.file	"extr_sch56xx-common.c_watchdog_stop.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	watchdog_stop, @function
watchdog_stop:
.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
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	watchdog_get_drvdata@PLT
	mov	ebp, DWORD PTR SCH56XX_WDOG_OUTPUT_ENABLE[rip]
	mov	edi, DWORD PTR 4[rax]
	mov	rbx, rax
	not	ebp
	and	ebp, DWORD PTR [rax]
	call	mutex_lock@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	esi, DWORD PTR SCH56XX_REG_WDOG_OUTPUT_ENABLE[rip]
	mov	edx, ebp
	call	sch56xx_write_virtual_reg@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	r12d, eax
	call	mutex_unlock@PLT
	test	r12d, r12d
	jne	.L1
	mov	DWORD PTR [rbx], ebp
.L1:
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	watchdog_stop, .-watchdog_stop
	.comm	SCH56XX_WDOG_OUTPUT_ENABLE,4,4
	.comm	SCH56XX_REG_WDOG_OUTPUT_ENABLE,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_sch56xx-common.c_watchdog_stop.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	watchdog_stop, %function
watchdog_stop:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	bl	watchdog_get_drvdata
	mov	r4, r0
	ldr	r3, .L5
	ldr	r6, [r0]
	ldr	r3, [r3]
	ldr	r0, [r0, #4]
	bic	r6, r6, r3
	bl	mutex_lock
	ldr	r3, .L5+4
	mov	r2, r6
	ldr	r1, [r3]
	ldr	r0, [r4, #8]
	bl	sch56xx_write_virtual_reg
	mov	r5, r0
	ldr	r0, [r4, #4]
	bl	mutex_unlock
	cmp	r5, #0
	mov	r0, r5
	streq	r6, [r4]
	pop	{r4, r5, r6, pc}
.L6:
	.align	2
.L5:
	.word	SCH56XX_WDOG_OUTPUT_ENABLE
	.word	SCH56XX_REG_WDOG_OUTPUT_ENABLE
	.size	watchdog_stop, .-watchdog_stop
	.comm	SCH56XX_WDOG_OUTPUT_ENABLE,4,4
	.comm	SCH56XX_REG_WDOG_OUTPUT_ENABLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
