	.file	"extr_tc358767.c_tc_set_syspllparam.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Invalid refclk rate: %lu Hz\n"
	.text
	.p2align 4
	.type	tc_set_syspllparam, @function
tc_set_syspllparam:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edx, DWORD PTR SYSCLK_SEL_LSCLK[rip]
	mov	ebx, DWORD PTR LSCLK_DIV_2[rip]
	mov	edi, DWORD PTR 8[rdi]
	or	ebx, edx
	call	clk_get_rate@PLT
	cmp	rax, 26000000
	je	.L2
	ja	.L3
	cmp	rax, 13000000
	je	.L4
	cmp	rax, 19200000
	jne	.L6
	mov	edx, DWORD PTR REF_FREQ_19M2[rip]
	or	edx, ebx
.L7:
	mov	edi, DWORD PTR 0[rbp]
	mov	esi, DWORD PTR SYS_PLLPARAM[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	regmap_write@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	cmp	rax, 38400000
	jne	.L6
	mov	edx, DWORD PTR REF_FREQ_38M4[rip]
	or	edx, ebx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L2:
	or	ebx, DWORD PTR REF_FREQ_26M[rip]
	mov	edx, ebx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	or	ebx, DWORD PTR REF_FREQ_13M[rip]
	mov	edx, ebx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edi, DWORD PTR 4[rbp]
	mov	rdx, rax
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	tc_set_syspllparam, .-tc_set_syspllparam
	.comm	SYS_PLLPARAM,4,4
	.comm	SYSCLK_SEL_LSCLK,4,4
	.comm	REF_FREQ_38M4,4,4
	.comm	REF_FREQ_26M,4,4
	.comm	REF_FREQ_19M2,4,4
	.comm	REF_FREQ_13M,4,4
	.comm	LSCLK_DIV_2,4,4
	.comm	EINVAL,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_tc358767.c_tc_set_syspllparam.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Invalid refclk rate: %lu Hz\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tc_set_syspllparam, %function
tc_set_syspllparam:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L12
	ldr	r2, .L12+4
	ldr	r3, [r3]
	ldr	r2, [r2]
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r0, [r0, #8]
	orr	r5, r3, r2
	bl	clk_get_rate
	ldr	r3, .L12+8
	cmp	r0, r3
	beq	.L2
	bhi	.L3
	ldr	r3, .L12+12
	cmp	r0, r3
	beq	.L4
	ldr	r3, .L12+16
	cmp	r0, r3
	bne	.L6
	ldr	r3, .L12+20
	ldr	r2, [r3]
	orr	r2, r5, r2
.L7:
	ldr	r3, .L12+24
	ldr	r0, [r4]
	ldr	r1, [r3]
	pop	{r4, r5, r6, lr}
	b	regmap_write
.L3:
	ldr	r3, .L12+28
	cmp	r0, r3
	bne	.L6
	ldr	r3, .L12+32
	ldr	r2, [r3]
	orr	r2, r5, r2
	b	.L7
.L2:
	ldr	r3, .L12+36
	ldr	r2, [r3]
	orr	r2, r5, r2
	b	.L7
.L4:
	ldr	r3, .L12+40
	ldr	r2, [r3]
	orr	r2, r5, r2
	b	.L7
.L6:
	mov	r2, r0
	ldr	r1, .L12+44
	ldr	r0, [r4, #4]
	bl	dev_err
	ldr	r3, .L12+48
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L13:
	.align	2
.L12:
	.word	SYSCLK_SEL_LSCLK
	.word	LSCLK_DIV_2
	.word	26000000
	.word	13000000
	.word	19200000
	.word	REF_FREQ_19M2
	.word	SYS_PLLPARAM
	.word	38400000
	.word	REF_FREQ_38M4
	.word	REF_FREQ_26M
	.word	REF_FREQ_13M
	.word	.LC0
	.word	EINVAL
	.size	tc_set_syspllparam, .-tc_set_syspllparam
	.comm	SYS_PLLPARAM,4,4
	.comm	SYSCLK_SEL_LSCLK,4,4
	.comm	REF_FREQ_38M4,4,4
	.comm	REF_FREQ_26M,4,4
	.comm	REF_FREQ_19M2,4,4
	.comm	REF_FREQ_13M,4,4
	.comm	LSCLK_DIV_2,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
