	.file	"extr_asm9260_wdt.c_asm9260_wdt_get_dt_clks.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"mod"
.LC1:
	.string	"Failed to get \"mod\" clk\n"
.LC2:
	.string	"ahb"
.LC3:
	.string	"Failed to get \"ahb\" clk\n"
.LC4:
	.string	"Failed to enable ahb_clk!\n"
.LC5:
	.string	"Failed to set rate!\n"
.LC6:
	.string	"Failed to enable clk!\n"
.LC7:
	.string	"Failed, clk is 0!\n"
	.text
	.p2align 4
	.type	asm9260_wdt_get_dt_clks, @function
asm9260_wdt_get_dt_clks:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	rsi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR 8[rdi]
	call	devm_clk_get@PLT
	mov	QWORD PTR 16[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	mov	edi, DWORD PTR 8[rbx]
	test	rax, rax
	jne	.L11
	lea	rsi, .LC2[rip]
	call	devm_clk_get@PLT
	mov	QWORD PTR 24[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L12
	mov	rdi, QWORD PTR 24[rbx]
	call	clk_prepare_enable@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L13
	mov	rdx, QWORD PTR 24[rbx]
	mov	edi, DWORD PTR 8[rbx]
	mov	esi, DWORD PTR asm9260_clk_disable_unprepare[rip]
	call	devm_add_action_or_reset@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L14
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	edi, DWORD PTR 8[rbx]
	lea	rsi, .LC3[rip]
	call	dev_err@PLT
	mov	rdi, QWORD PTR 24[rbx]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	PTR_ERR@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	mov	rdi, QWORD PTR 16[rbx]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	PTR_ERR@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rdi, QWORD PTR 16[rbx]
	mov	esi, DWORD PTR CLOCK_FREQ[rip]
	call	clk_set_rate@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L15
	mov	rdi, QWORD PTR 16[rbx]
	call	clk_prepare_enable@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L16
	mov	rdx, QWORD PTR 16[rbx]
	mov	edi, DWORD PTR 8[rbx]
	mov	esi, DWORD PTR asm9260_clk_disable_unprepare[rip]
	call	devm_add_action_or_reset@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	rdi, QWORD PTR 16[rbx]
	call	clk_get_rate@PLT
	test	rax, rax
	je	.L17
	shr	rax
	mov	QWORD PTR [rbx], rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edi, DWORD PTR 8[rbx]
	lea	rsi, .LC4[rip]
	call	dev_err@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	edi, DWORD PTR 8[rbx]
	lea	rsi, .LC5[rip]
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	mov	edi, DWORD PTR 8[rbx]
	lea	rsi, .LC6[rip]
	call	dev_err@PLT
	jmp	.L1
.L17:
	mov	edi, DWORD PTR 8[rbx]
	lea	rsi, .LC7[rip]
	call	dev_err@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	asm9260_wdt_get_dt_clks, .-asm9260_wdt_get_dt_clks
	.comm	asm9260_clk_disable_unprepare,4,4
	.comm	EINVAL,4,4
	.comm	CLOCK_FREQ,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_asm9260_wdt.c_asm9260_wdt_get_dt_clks.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"mod\000"
	.align	2
.LC1:
	.ascii	"Failed to get \"mod\" clk\012\000"
	.align	2
.LC2:
	.ascii	"ahb\000"
	.align	2
.LC3:
	.ascii	"Failed to get \"ahb\" clk\012\000"
	.align	2
.LC4:
	.ascii	"Failed to enable ahb_clk!\012\000"
	.align	2
.LC5:
	.ascii	"Failed to set rate!\012\000"
	.align	2
.LC6:
	.ascii	"Failed to enable clk!\012\000"
	.align	2
.LC7:
	.ascii	"Failed, clk is 0!\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	asm9260_wdt_get_dt_clks, %function
asm9260_wdt_get_dt_clks:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r1, .L17
	mov	r4, r0
	ldr	r0, [r0, #4]
	bl	devm_clk_get
	str	r0, [r4, #8]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L11
	ldr	r1, .L17+4
	ldr	r0, [r4, #4]
	bl	devm_clk_get
	str	r0, [r4, #12]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L12
	ldr	r0, [r4, #12]
	bl	clk_prepare_enable
	subs	r5, r0, #0
	bne	.L13
	ldr	r6, .L17+8
	ldr	r2, [r4, #12]
	ldr	r1, [r6]
	ldr	r0, [r4, #4]
	bl	devm_add_action_or_reset
	subs	r5, r0, #0
	beq	.L14
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L12:
	ldr	r0, [r4, #4]
	ldr	r1, .L17+12
	bl	dev_err
	ldr	r0, [r4, #12]
	pop	{r4, r5, r6, lr}
	b	PTR_ERR
.L11:
	ldr	r0, [r4, #4]
	ldr	r1, .L17+16
	bl	dev_err
	ldr	r0, [r4, #8]
	pop	{r4, r5, r6, lr}
	b	PTR_ERR
.L14:
	ldr	r3, .L17+20
	ldr	r0, [r4, #8]
	ldr	r1, [r3]
	bl	clk_set_rate
	subs	r5, r0, #0
	bne	.L15
	ldr	r0, [r4, #8]
	bl	clk_prepare_enable
	subs	r5, r0, #0
	bne	.L16
	ldmib	r4, {r0, r2}
	ldr	r1, [r6]
	bl	devm_add_action_or_reset
	subs	r5, r0, #0
	bne	.L1
	ldr	r0, [r4, #8]
	bl	clk_get_rate
	cmp	r0, #0
	lsrne	r0, r0, #1
	strne	r0, [r4]
	bne	.L1
	ldr	r0, [r4, #4]
	ldr	r1, .L17+24
	bl	dev_err
	ldr	r3, .L17+28
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L13:
	ldr	r0, [r4, #4]
	ldr	r1, .L17+32
	bl	dev_err
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L15:
	ldr	r0, [r4, #4]
	ldr	r1, .L17+36
	bl	dev_err
	b	.L1
.L16:
	ldr	r0, [r4, #4]
	ldr	r1, .L17+40
	bl	dev_err
	b	.L1
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	.LC2
	.word	asm9260_clk_disable_unprepare
	.word	.LC3
	.word	.LC1
	.word	CLOCK_FREQ
	.word	.LC7
	.word	EINVAL
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	asm9260_wdt_get_dt_clks, .-asm9260_wdt_get_dt_clks
	.comm	asm9260_clk_disable_unprepare,4,4
	.comm	EINVAL,4,4
	.comm	CLOCK_FREQ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
