	.file	"extr_clk-cpu.c_clk_cpu_off_set_rate.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	clk_cpu_off_set_rate, @function
clk_cpu_off_set_rate:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	to_cpu_clk@PLT
	mov	rdi, QWORD PTR SYS_CTRL_CLK_DIVIDER_VALUE_OFFSET[rip]
	mov	rbx, rax
	add	rdi, QWORD PTR 8[rax]
	call	readl@PLT
	mov	edx, DWORD PTR [rbx]
	mov	edi, DWORD PTR SYS_CTRL_CLK_DIVIDER_MASK[rip]
	mov	rsi, QWORD PTR SYS_CTRL_CLK_DIVIDER_VALUE_OFFSET[rip]
	add	rsi, QWORD PTR 8[rbx]
	lea	ecx, 0[0+rdx*8]
	xor	edx, edx
	sal	edi, cl
	not	edi
	and	edi, eax
	mov	rax, rbp
	mov	ebp, 1
	div	r12
	sal	eax, cl
	or	edi, eax
	call	writel@PLT
	mov	eax, DWORD PTR [rbx]
	mov	rdi, QWORD PTR SYS_CTRL_CLK_DIVIDER_CTRL_OFFSET[rip]
	add	rdi, QWORD PTR 8[rbx]
	lea	ecx, 20[rax]
	sal	ebp, cl
	call	readl@PLT
	mov	rsi, QWORD PTR SYS_CTRL_CLK_DIVIDER_CTRL_OFFSET[rip]
	add	rsi, QWORD PTR 8[rbx]
	or	eax, ebp
	mov	edi, eax
	call	writel@PLT
	mov	rdi, QWORD PTR SYS_CTRL_CLK_DIVIDER_CTRL_OFFSET[rip]
	add	rdi, QWORD PTR 8[rbx]
	call	readl@PLT
	mov	rsi, QWORD PTR SYS_CTRL_CLK_DIVIDER_CTRL_OFFSET[rip]
	add	rsi, QWORD PTR 8[rbx]
	or	eax, 16777216
	mov	edi, eax
	mov	r12d, eax
	call	writel@PLT
	mov	edi, 1000
	call	udelay@PLT
	mov	edi, ebp
	mov	rsi, QWORD PTR SYS_CTRL_CLK_DIVIDER_CTRL_OFFSET[rip]
	add	rsi, QWORD PTR 8[rbx]
	or	edi, 16777216
	not	edi
	and	edi, r12d
	call	writel@PLT
	mov	edi, 1000
	call	udelay@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	clk_cpu_off_set_rate, .-clk_cpu_off_set_rate
	.comm	SYS_CTRL_CLK_DIVIDER_VALUE_OFFSET,8,8
	.comm	SYS_CTRL_CLK_DIVIDER_MASK,4,4
	.comm	SYS_CTRL_CLK_DIVIDER_CTRL_OFFSET,8,8
	.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_clk-cpu.c_clk_cpu_off_set_rate.c"
	.text
	.global	__aeabi_uidiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	clk_cpu_off_set_rate, %function
clk_cpu_off_set_rate:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r2
	mov	r9, r1
	bl	to_cpu_clk
	ldr	r8, .L4
	mov	r4, r0
	ldr	r3, [r8]
	ldr	r0, [r0, #4]
	ldr	r7, .L4+4
	add	r0, r0, r3
	bl	readl
	mov	r6, r0
	ldr	r3, .L4+8
	mov	r0, r5
	ldr	r5, [r4]
	ldr	r2, [r8]
	ldr	r3, [r3]
	ldr	r8, [r4, #4]
	mov	r1, r9
	lsl	r5, r5, #3
	bic	r6, r6, r3, lsl r5
	add	r8, r8, r2
	bl	__aeabi_uidiv
	orr	r0, r6, r0, lsl r5
	mov	r5, #1
	mov	r1, r8
	bl	writel
	ldr	r2, [r7]
	ldr	r3, [r4]
	ldr	r0, [r4, #4]
	add	r3, r3, #20
	add	r0, r0, r2
	lsl	r5, r5, r3
	bl	readl
	ldr	r3, [r7]
	ldr	r1, [r4, #4]
	orr	r0, r0, r5
	add	r1, r1, r3
	bl	writel
	ldr	r3, [r7]
	ldr	r0, [r4, #4]
	add	r0, r0, r3
	bl	readl
	ldr	r3, [r7]
	ldr	r1, [r4, #4]
	orr	r6, r0, #16777216
	add	r1, r1, r3
	mov	r0, r6
	bl	writel
	mov	r0, #1000
	bl	udelay
	ldr	r3, [r7]
	ldr	r1, [r4, #4]
	orr	r0, r5, #16777216
	add	r1, r1, r3
	bic	r0, r6, r0
	bl	writel
	mov	r0, #1000
	bl	udelay
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L5:
	.align	2
.L4:
	.word	SYS_CTRL_CLK_DIVIDER_VALUE_OFFSET
	.word	SYS_CTRL_CLK_DIVIDER_CTRL_OFFSET
	.word	SYS_CTRL_CLK_DIVIDER_MASK
	.size	clk_cpu_off_set_rate, .-clk_cpu_off_set_rate
	.comm	SYS_CTRL_CLK_DIVIDER_VALUE_OFFSET,4,4
	.comm	SYS_CTRL_CLK_DIVIDER_MASK,4,4
	.comm	SYS_CTRL_CLK_DIVIDER_CTRL_OFFSET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
