	.file	"extr_global2.c_mv88e6390_watchdog_action.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Watchdog event: 0x%04x"
.LC1:
	.string	"Watchdog history: 0x%04x"
	.text
	.p2align 4
	.type	mv88e6390_watchdog_action, @function
mv88e6390_watchdog_action:
.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
	mov	rbp, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	edx, DWORD PTR MV88E6390_G2_WDOG_CTL_PTR_EVENT[rip]
	mov	esi, DWORD PTR MV88E6390_G2_WDOG_CTL[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	r12, 4[rsp]
	call	mv88e6xxx_g2_write@PLT
	mov	esi, DWORD PTR MV88E6390_G2_WDOG_CTL[rip]
	mov	rdx, r12
	mov	rdi, rbp
	call	mv88e6xxx_g2_read@PLT
	mov	edi, DWORD PTR 8[rbp]
	mov	edx, DWORD PTR 4[rsp]
	lea	rsi, .LC0[rip]
	and	edx, DWORD PTR MV88E6390_G2_WDOG_CTL_DATA_MASK[rip]
	call	dev_info@PLT
	mov	edx, DWORD PTR MV88E6390_G2_WDOG_CTL_PTR_HISTORY[rip]
	mov	esi, DWORD PTR MV88E6390_G2_WDOG_CTL[rip]
	mov	rdi, rbp
	call	mv88e6xxx_g2_write@PLT
	mov	esi, DWORD PTR MV88E6390_G2_WDOG_CTL[rip]
	mov	rdx, r12
	mov	rdi, rbp
	call	mv88e6xxx_g2_read@PLT
	mov	edi, DWORD PTR 8[rbp]
	mov	edx, DWORD PTR 4[rsp]
	lea	rsi, .LC1[rip]
	and	edx, DWORD PTR MV88E6390_G2_WDOG_CTL_DATA_MASK[rip]
	call	dev_info@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L2
	mov	rdi, rbp
	call	rax
.L2:
	mov	rdi, rbp
	call	mv88e6390_watchdog_setup@PLT
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L9
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mv88e6390_watchdog_action, .-mv88e6390_watchdog_action
	.comm	MV88E6390_G2_WDOG_CTL_PTR_HISTORY,4,4
	.comm	MV88E6390_G2_WDOG_CTL_PTR_EVENT,4,4
	.comm	MV88E6390_G2_WDOG_CTL_DATA_MASK,4,4
	.comm	MV88E6390_G2_WDOG_CTL,4,4
	.comm	IRQ_HANDLED,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_global2.c_mv88e6390_watchdog_action.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Watchdog event: 0x%04x\000"
	.align	2
.LC1:
	.ascii	"Watchdog history: 0x%04x\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mv88e6390_watchdog_action, %function
mv88e6390_watchdog_action:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r3, .L10
	ldr	r5, .L10+4
	ldr	r2, [r3]
	ldr	r3, .L10+8
	sub	sp, sp, #8
	ldr	r1, [r5]
	ldr	r6, .L10+12
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	mv88e6xxx_g2_write
	mov	r2, sp
	ldr	r1, [r5]
	mov	r0, r4
	bl	mv88e6xxx_g2_read
	ldr	r3, [r6]
	ldr	r2, [sp]
	ldr	r1, .L10+16
	and	r2, r2, r3
	ldr	r0, [r4, #4]
	bl	dev_info
	ldr	r3, .L10+20
	ldr	r1, [r5]
	ldr	r2, [r3]
	mov	r0, r4
	bl	mv88e6xxx_g2_write
	mov	r2, sp
	ldr	r1, [r5]
	mov	r0, r4
	bl	mv88e6xxx_g2_read
	ldr	r3, [r6]
	ldr	r2, [sp]
	ldr	r0, [r4, #4]
	and	r2, r2, r3
	ldr	r1, .L10+24
	bl	dev_info
	ldr	r3, [r4]
	ldr	r3, [r3]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L2
	mov	r0, r4
	blx	r3
.L2:
	mov	r0, r4
	bl	mv88e6390_watchdog_setup
	ldr	r3, .L10+28
	ldr	r0, [r3]
	ldr	r3, .L10+8
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	MV88E6390_G2_WDOG_CTL_PTR_EVENT
	.word	MV88E6390_G2_WDOG_CTL
	.word	.LC2
	.word	MV88E6390_G2_WDOG_CTL_DATA_MASK
	.word	.LC0
	.word	MV88E6390_G2_WDOG_CTL_PTR_HISTORY
	.word	.LC1
	.word	IRQ_HANDLED
	.size	mv88e6390_watchdog_action, .-mv88e6390_watchdog_action
	.comm	MV88E6390_G2_WDOG_CTL_PTR_HISTORY,4,4
	.comm	MV88E6390_G2_WDOG_CTL_PTR_EVENT,4,4
	.comm	MV88E6390_G2_WDOG_CTL_DATA_MASK,4,4
	.comm	MV88E6390_G2_WDOG_CTL,4,4
	.comm	IRQ_HANDLED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
