	.file	"extr_loongson1_wdt.c_ls1x_wdt_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"clk enable failed\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Loongson1 Watchdog driver registered\n"
	.text
	.p2align 4
	.type	ls1x_wdt_probe, @function
ls1x_wdt_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	lea	r14, 4[rdi]
	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
	mov	rdi, r14
	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	DWORD PTR 60[rbp], eax
	mov	edi, eax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L11
	mov	esi, DWORD PTR [r12]
	mov	rdi, r14
	call	devm_clk_get@PLT
	mov	DWORD PTR 56[rbp], eax
	mov	edi, eax
	call	IS_ERR@PLT
	mov	edi, DWORD PTR 56[rbp]
	test	rax, rax
	jne	.L9
	call	clk_prepare_enable@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L12
	mov	edx, DWORD PTR 56[rbp]
	mov	esi, DWORD PTR ls1x_clk_disable_unprepare[rip]
	mov	rdi, r14
	call	devm_add_action_or_reset@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L1
	mov	edi, DWORD PTR 56[rbp]
	call	clk_get_rate@PLT
	mov	rcx, rax
	test	rax, rax
	jne	.L7
	mov	r13d, DWORD PTR EINVAL[rip]
	neg	r13d
.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
.L11:
	.cfi_restore_state
	mov	edi, DWORD PTR 60[rbp]
.L9:
	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
.L12:
	.cfi_restore_state
	mov	rdi, r14
	lea	rsi, .LC0[rip]
	call	dev_err@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
.L7:
	.cfi_restore_state
	mov	QWORD PTR 0[rbp], rax
	xor	edx, edx
	lea	r13, 8[rbp]
	mov	esi, DWORD PTR heartbeat[rip]
	lea	rax, ls1x_wdt_info[rip]
	mov	DWORD PTR 8[rbp], 1
	mov	rdi, r13
	mov	QWORD PTR 48[rbp], rax
	lea	rax, ls1x_wdt_ops[rip]
	mov	QWORD PTR 40[rbp], rax
	mov	eax, DWORD PTR DEFAULT_HEARTBEAT[rip]
	mov	QWORD PTR 24[rbp], r14
	mov	DWORD PTR 32[rbp], eax
	mov	rax, QWORD PTR U32_MAX[rip]
	div	rcx
	mov	rdx, r14
	imul	rax, rax, 1000
	mov	QWORD PTR 16[rbp], rax
	call	watchdog_init_timeout@PLT
	mov	esi, DWORD PTR nowayout[rip]
	mov	rdi, r13
	call	watchdog_set_nowayout@PLT
	mov	rdi, r13
	mov	rsi, rbp
	call	watchdog_set_drvdata@PLT
	mov	rsi, r13
	mov	rdi, r14
	call	devm_watchdog_register_device@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L1
	mov	rsi, rbp
	mov	rdi, r12
	call	platform_set_drvdata@PLT
	lea	rsi, .LC1[rip]
	mov	rdi, r14
	call	dev_info@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ls1x_wdt_probe, .-ls1x_wdt_probe
	.comm	nowayout,4,4
	.comm	ls1x_wdt_ops,4,4
	.comm	ls1x_wdt_info,4,4
	.comm	ls1x_clk_disable_unprepare,4,4
	.comm	heartbeat,4,4
	.comm	U32_MAX,8,8
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	DEFAULT_HEARTBEAT,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_loongson1_wdt.c_ls1x_wdt_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"clk enable failed\012\000"
	.global	__aeabi_uidiv
	.align	2
.LC1:
	.ascii	"Loongson1 Watchdog driver registered\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ls1x_wdt_probe, %function
ls1x_wdt_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L14
	push	{r4, r5, r6, r7, r8, lr}
	add	r7, r0, #4
	mov	r6, r0
	mov	r1, #36
	mov	r0, r7
	ldr	r2, [r3]
	bl	devm_kzalloc
	subs	r4, r0, #0
	beq	.L10
	mov	r1, #0
	mov	r0, r6
	bl	devm_platform_ioremap_resource
	str	r0, [r4, #32]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L11
	ldr	r1, [r6]
	mov	r0, r7
	bl	devm_clk_get
	str	r0, [r4, #28]
	bl	IS_ERR
	cmp	r0, #0
	ldr	r0, [r4, #28]
	bne	.L12
	bl	clk_prepare_enable
	subs	r5, r0, #0
	bne	.L13
	ldr	r3, .L14+4
	mov	r0, r7
	ldr	r2, [r4, #28]
	ldr	r1, [r3]
	bl	devm_add_action_or_reset
	subs	r5, r0, #0
	bne	.L1
	ldr	r0, [r4, #28]
	bl	clk_get_rate
	subs	r1, r0, #0
	bne	.L7
	ldr	r3, .L14+8
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L11:
	ldr	r0, [r4, #32]
	pop	{r4, r5, r6, r7, r8, lr}
	b	PTR_ERR
.L10:
	ldr	r3, .L14+12
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	mov	r0, r7
	ldr	r1, .L14+16
	bl	dev_err
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	pop	{r4, r5, r6, r7, r8, lr}
	b	PTR_ERR
.L7:
	mov	r5, r4
	mov	r3, #1
	ldr	r2, .L14+20
	ldr	r0, .L14+24
	ldr	ip, [r2]
	str	r1, [r5], #4
	ldr	r2, .L14+28
	str	r3, [r4, #4]
	ldr	r3, .L14+32
	str	ip, [r4, #16]
	str	r0, [r4, #24]
	str	r2, [r4, #20]
	ldr	r0, [r3]
	bl	__aeabi_uidiv
	rsb	r3, r0, r0, lsl #5
	add	r0, r0, r3, lsl #2
	ldr	r3, .L14+36
	lsl	r0, r0, #3
	mov	r2, r7
	ldr	r1, [r3]
	str	r0, [r4, #8]
	str	r7, [r4, #12]
	mov	r0, r5
	bl	watchdog_init_timeout
	ldr	r3, .L14+40
	mov	r0, r5
	ldr	r1, [r3]
	bl	watchdog_set_nowayout
	mov	r1, r4
	mov	r0, r5
	bl	watchdog_set_drvdata
	mov	r1, r5
	mov	r0, r7
	bl	devm_watchdog_register_device
	subs	r5, r0, #0
	bne	.L1
	mov	r1, r4
	mov	r0, r6
	bl	platform_set_drvdata
	mov	r0, r7
	ldr	r1, .L14+44
	bl	dev_info
	b	.L1
.L15:
	.align	2
.L14:
	.word	GFP_KERNEL
	.word	ls1x_clk_disable_unprepare
	.word	EINVAL
	.word	ENOMEM
	.word	.LC0
	.word	DEFAULT_HEARTBEAT
	.word	ls1x_wdt_info
	.word	ls1x_wdt_ops
	.word	U32_MAX
	.word	heartbeat
	.word	nowayout
	.word	.LC1
	.size	ls1x_wdt_probe, .-ls1x_wdt_probe
	.comm	nowayout,4,4
	.comm	ls1x_wdt_ops,4,4
	.comm	ls1x_wdt_info,4,4
	.comm	ls1x_clk_disable_unprepare,4,4
	.comm	heartbeat,4,4
	.comm	U32_MAX,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	DEFAULT_HEARTBEAT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
