	.file	"extr_wdt.c_mv_wdt_enable_armada_xp.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mv_wdt_enable_armada_xp, @function
mv_wdt_enable_armada_xp:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	edi, DWORD PTR BRIDGE_IRQ_CAUSE_ARMADAXP[rip]
	call	read_cpu_ctrl@PLT
	mov	edi, DWORD PTR BRIDGE_IRQ_CAUSE_ARMADAXP[rip]
	and	eax, DWORD PTR IRQ_TIMER_WD_CLR_ARMADAXP[rip]
	mov	esi, eax
	call	write_cpu_ctrl@PLT
	xor	eax, eax
	call	mv_wdt_enable_armada_38x_xp_helper@PLT
	xor	eax, eax
	call	mv_get_timer_control@PLT
	mov	edi, DWORD PTR CPU_TIMER2_EN[rip]
	or	edi, DWORD PTR CPU_TIMER2_AUTO[rip]
	or	edi, DWORD PTR CPU_TIMER_WD_25MHZ_EN[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 8
	or	edi, eax
	jmp	mv_set_timer_control@PLT
	.cfi_endproc
.LFE0:
	.size	mv_wdt_enable_armada_xp, .-mv_wdt_enable_armada_xp
	.comm	IRQ_TIMER_WD_CLR_ARMADAXP,4,4
	.comm	CPU_TIMER_WD_25MHZ_EN,4,4
	.comm	CPU_TIMER2_EN,4,4
	.comm	CPU_TIMER2_AUTO,4,4
	.comm	BRIDGE_IRQ_CAUSE_ARMADAXP,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_wdt.c_mv_wdt_enable_armada_xp.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mv_wdt_enable_armada_xp, %function
mv_wdt_enable_armada_xp:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r4, .L4
	ldr	r0, [r4]
	bl	read_cpu_ctrl
	mov	r1, r0
	ldr	r3, .L4+4
	ldr	r0, [r4]
	ldr	r3, [r3]
	and	r1, r1, r3
	bl	write_cpu_ctrl
	bl	mv_wdt_enable_armada_38x_xp_helper
	bl	mv_get_timer_control
	pop	{r4, lr}
	ldr	r3, .L4+8
	ldr	r1, .L4+12
	ldr	r2, .L4+16
	ldr	r3, [r3]
	ldr	r1, [r1]
	ldr	r2, [r2]
	orr	r3, r3, r1
	orr	r3, r3, r2
	orr	r0, r3, r0
	b	mv_set_timer_control
.L5:
	.align	2
.L4:
	.word	BRIDGE_IRQ_CAUSE_ARMADAXP
	.word	IRQ_TIMER_WD_CLR_ARMADAXP
	.word	CPU_TIMER2_EN
	.word	CPU_TIMER2_AUTO
	.word	CPU_TIMER_WD_25MHZ_EN
	.size	mv_wdt_enable_armada_xp, .-mv_wdt_enable_armada_xp
	.comm	IRQ_TIMER_WD_CLR_ARMADAXP,4,4
	.comm	CPU_TIMER_WD_25MHZ_EN,4,4
	.comm	CPU_TIMER2_EN,4,4
	.comm	CPU_TIMER2_AUTO,4,4
	.comm	BRIDGE_IRQ_CAUSE_ARMADAXP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
