	.file	"extr_db8500-prcmu.c_prcmu_set_clock_rate.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	prcmu_set_clock_rate
	.type	prcmu_set_clock_rate, @function
prcmu_set_clock_rate:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	cmp	QWORD PTR PRCMU_NUM_REG_CLOCKS[rip], rdi
	jg	.L12
	cmp	QWORD PTR PRCMU_ARMSS[rip], rdi
	je	.L13
	cmp	QWORD PTR PRCMU_PLLDSI[rip], rdi
	je	.L14
	mov	rax, QWORD PTR PRCMU_DSI0CLK[rip]
	cmp	rax, rdi
	je	.L6
	cmp	QWORD PTR PRCMU_DSI1CLK[rip], rdi
	je	.L6
	mov	rax, QWORD PTR PRCMU_DSI0ESCCLK[rip]
	cmp	rax, rdi
	jg	.L1
	cmp	QWORD PTR PRCMU_DSI2ESCCLK[rip], rdi
	jge	.L15
.L1:
	xor	eax, eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	sub	rdi, rax
	call	set_dsiclk_rate@PLT
	xor	eax, eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	call	set_clock_rate@PLT
	xor	eax, eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	rdi, rsi
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	set_armss_rate@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rdi, rsi
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	set_plldsi_rate@PLT
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	sub	rdi, rax
	call	set_dsiescclk_rate@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	prcmu_set_clock_rate, .-prcmu_set_clock_rate
	.comm	PRCMU_PLLDSI,8,8
	.comm	PRCMU_NUM_REG_CLOCKS,8,8
	.comm	PRCMU_DSI2ESCCLK,8,8
	.comm	PRCMU_DSI1CLK,8,8
	.comm	PRCMU_DSI0ESCCLK,8,8
	.comm	PRCMU_DSI0CLK,8,8
	.comm	PRCMU_ARMSS,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_db8500-prcmu.c_prcmu_set_clock_rate.c"
	.text
	.align	2
	.global	prcmu_set_clock_rate
	.syntax unified
	.arm
	.fpu softvfp
	.type	prcmu_set_clock_rate, %function
prcmu_set_clock_rate:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, .L16
	push	{r4, lr}
	ldr	ip, [ip]
	cmp	ip, r0
	bgt	.L12
	mov	r3, r0
	ldr	r0, .L16+4
	mov	r2, r1
	ldr	r0, [r0]
	cmp	r0, r3
	beq	.L13
	ldr	r0, .L16+8
	ldr	r0, [r0]
	cmp	r0, r3
	beq	.L14
	ldr	r0, .L16+12
	ldr	r0, [r0]
	cmp	r0, r3
	beq	.L6
	ldr	ip, .L16+16
	ldr	ip, [ip]
	cmp	ip, r3
	beq	.L6
	ldr	r2, .L16+20
	ldr	r0, [r2]
	cmp	r0, r3
	bgt	.L1
	ldr	r2, .L16+24
	ldr	r2, [r2]
	cmp	r2, r3
	bge	.L15
.L1:
	mov	r0, #0
	pop	{r4, pc}
.L6:
	mov	r1, r2
	sub	r0, r3, r0
	bl	set_dsiclk_rate
	mov	r0, #0
	pop	{r4, pc}
.L12:
	bl	set_clock_rate
	mov	r0, #0
	pop	{r4, pc}
.L13:
	mov	r0, r1
	pop	{r4, lr}
	b	set_armss_rate
.L14:
	mov	r0, r1
	pop	{r4, lr}
	b	set_plldsi_rate
.L15:
	sub	r0, r3, r0
	bl	set_dsiescclk_rate
	b	.L1
.L17:
	.align	2
.L16:
	.word	PRCMU_NUM_REG_CLOCKS
	.word	PRCMU_ARMSS
	.word	PRCMU_PLLDSI
	.word	PRCMU_DSI0CLK
	.word	PRCMU_DSI1CLK
	.word	PRCMU_DSI0ESCCLK
	.word	PRCMU_DSI2ESCCLK
	.size	prcmu_set_clock_rate, .-prcmu_set_clock_rate
	.comm	PRCMU_PLLDSI,4,4
	.comm	PRCMU_NUM_REG_CLOCKS,4,4
	.comm	PRCMU_DSI2ESCCLK,4,4
	.comm	PRCMU_DSI1CLK,4,4
	.comm	PRCMU_DSI0ESCCLK,4,4
	.comm	PRCMU_DSI0CLK,4,4
	.comm	PRCMU_ARMSS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
