	.file	"extr_ftwdt010_wdt.c_ftwdt010_wdt_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"watchdog bark"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"FTWDT010 watchdog driver enabled\n"
	.text
	.p2align 4
	.type	ftwdt010_wdt_probe, @function
ftwdt010_wdt_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	esi, 64
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	call	devm_kzalloc@PLT
	mov	r13d, DWORD PTR ENOMEM[rip]
	neg	r13d
	test	rax, rax
	je	.L1
	xor	esi, esi
	mov	rdi, r12
	mov	rbp, rax
	call	devm_platform_ioremap_resource@PLT
	mov	QWORD PTR 48[rbp], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L15
	lea	rax, ftwdt010_wdt_info[rip]
	xor	edx, edx
	mov	QWORD PTR 56[rbp], r12
	xor	esi, esi
	mov	QWORD PTR 40[rbp], rax
	lea	rax, ftwdt010_wdt_ops[rip]
	lea	r14, 8[rbp]
	mov	QWORD PTR 32[rbp], rax
	mov	eax, -1
	mov	rdi, r14
	div	DWORD PTR WDT_CLOCK[rip]
	mov	DWORD PTR 8[rbp], 1
	mov	QWORD PTR 24[rbp], r12
	mov	DWORD PTR 16[rbp], 13
	mov	rdx, r12
	mov	DWORD PTR 12[rbp], eax
	call	watchdog_init_timeout@PLT
	mov	rdi, QWORD PTR FTWDT010_WDCR[rip]
	add	rdi, QWORD PTR 48[rbp]
	call	readw@PLT
	mov	edi, DWORD PTR WDCR_ENABLE[rip]
	test	edi, eax
	jne	.L16
.L5:
	xor	esi, esi
	mov	rdi, r12
	call	platform_get_irq@PLT
	mov	esi, eax
	test	eax, eax
	je	.L6
	mov	edx, DWORD PTR ftwdt010_wdt_interrupt[rip]
	mov	r9, rbp
	xor	ecx, ecx
	mov	rdi, r12
	lea	r8, .LC0[rip]
	call	devm_request_irq@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L1
	mov	DWORD PTR 0[rbp], 1
.L6:
	mov	rsi, r14
	mov	rdi, r12
	call	devm_watchdog_register_device@PLT
	mov	r13d, eax
	test	eax, eax
	je	.L17
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	rdi, QWORD PTR 48[rbp]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	PTR_ERR@PLT
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	rsi, rbp
	mov	rdi, r12
	call	platform_set_drvdata@PLT
	mov	rdi, r12
	lea	rsi, .LC1[rip]
	call	dev_info@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	not	edi
	mov	rsi, QWORD PTR FTWDT010_WDCR[rip]
	add	rsi, QWORD PTR 48[rbp]
	and	edi, eax
	call	writel@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	ftwdt010_wdt_probe, .-ftwdt010_wdt_probe
	.comm	ftwdt010_wdt_ops,4,4
	.comm	ftwdt010_wdt_interrupt,4,4
	.comm	ftwdt010_wdt_info,4,4
	.comm	WDT_CLOCK,4,4
	.comm	WDCR_ENABLE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	FTWDT010_WDCR,8,8
	.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_ftwdt010_wdt.c_ftwdt010_wdt_probe.c"
	.text
	.global	__aeabi_uidiv
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"watchdog bark\000"
	.align	2
.LC1:
	.ascii	"FTWDT010 watchdog driver enabled\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ftwdt010_wdt_probe, %function
ftwdt010_wdt_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L19
	mov	r1, #36
	ldr	r2, [r3]
	sub	sp, sp, #8
	mov	r6, r0
	bl	devm_kzalloc
	subs	r4, r0, #0
	beq	.L15
	mov	r1, #0
	mov	r0, r6
	bl	devm_platform_ioremap_resource
	str	r0, [r4, #28]
	bl	IS_ERR
	subs	r5, r0, #0
	bne	.L16
	mov	r0, #1
	ldr	r2, .L19+4
	ldr	r3, .L19+8
	ldr	r1, .L19+12
	str	r0, [r4, #4]
	str	r1, [r4, #24]
	str	r2, [r4, #20]
	ldr	r1, [r3]
	mvn	r0, #0
	str	r6, [r4, #32]
	bl	__aeabi_uidiv
	mov	r3, #13
	ldr	r8, .L19+16
	add	r7, r4, #4
	mov	r1, r5
	mov	r2, r6
	str	r0, [r4, #8]
	str	r3, [r4, #12]
	mov	r0, r7
	str	r6, [r4, #16]
	bl	watchdog_init_timeout
	ldr	r3, [r8]
	ldr	r0, [r4, #28]
	add	r0, r0, r3
	bl	readw
	ldr	r3, .L19+20
	ldr	r3, [r3]
	tst	r3, r0
	bne	.L17
.L5:
	mov	r1, #0
	mov	r0, r6
	bl	platform_get_irq
	subs	r1, r0, #0
	beq	.L6
	ldr	r3, .L19+24
	ldr	r2, .L19+28
	str	r4, [sp, #4]
	ldr	r2, [r2]
	mov	r0, r6
	str	r3, [sp]
	mov	r3, #0
	bl	devm_request_irq
	subs	r5, r0, #0
	bne	.L1
	mov	r3, #1
	str	r3, [r4]
.L6:
	mov	r1, r7
	mov	r0, r6
	bl	devm_watchdog_register_device
	subs	r5, r0, #0
	beq	.L18
.L1:
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	ldr	r0, [r4, #28]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, lr}
	b	PTR_ERR
.L15:
	ldr	r3, .L19+32
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	mov	r1, r4
	mov	r0, r6
	bl	platform_set_drvdata
	mov	r0, r6
	ldr	r1, .L19+36
	bl	dev_info
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	ldr	r2, [r8]
	ldr	r1, [r4, #28]
	bic	r0, r0, r3
	add	r1, r1, r2
	bl	writel
	b	.L5
.L20:
	.align	2
.L19:
	.word	GFP_KERNEL
	.word	ftwdt010_wdt_ops
	.word	WDT_CLOCK
	.word	ftwdt010_wdt_info
	.word	FTWDT010_WDCR
	.word	WDCR_ENABLE
	.word	.LC0
	.word	ftwdt010_wdt_interrupt
	.word	ENOMEM
	.word	.LC1
	.size	ftwdt010_wdt_probe, .-ftwdt010_wdt_probe
	.comm	ftwdt010_wdt_ops,4,4
	.comm	ftwdt010_wdt_interrupt,4,4
	.comm	ftwdt010_wdt_info,4,4
	.comm	WDT_CLOCK,4,4
	.comm	WDCR_ENABLE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	FTWDT010_WDCR,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
