	.file	"extr_mtk_clock.c_mtk_clock_set.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mtk_clock_set, @function
mtk_clock_set:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	esi, 31
	ja	.L9
	mov	ecx, esi
	mov	esi, 1
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	edi, DWORD PTR SYSCTL_CLKCFG1[rip]
	sal	esi, cl
	cmp	DWORD PTR CLOCK_ENABLE[rip], edx
	je	.L10
	xor	edx, edx
	call	mtk_sysctl_clr_set@PLT
	xor	eax, eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	edx, esi
	xor	esi, esi
	call	mtk_sysctl_clr_set@PLT
	xor	eax, eax
	add	rsp, 8
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	mov	eax, DWORD PTR EINVAL[rip]
	ret
	.cfi_endproc
.LFE0:
	.size	mtk_clock_set, .-mtk_clock_set
	.comm	SYSCTL_CLKCFG1,4,4
	.comm	EINVAL,4,4
	.comm	CLOCK_ENABLE,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_mtk_clock.c_mtk_clock_set.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mtk_clock_set, %function
mtk_clock_set:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #31
	bhi	.L9
	mov	r3, #1
	ldr	ip, .L10
	ldr	r0, .L10+4
	ldr	ip, [ip]
	lsl	r1, r3, r1
	cmp	ip, r2
	moveq	r2, r1
	movne	r2, #0
	moveq	r1, #0
	push	{r4, lr}
	ldr	r0, [r0]
	bl	mtk_sysctl_clr_set
	mov	r0, #0
	pop	{r4, pc}
.L9:
	ldr	r3, .L10+8
	ldr	r0, [r3]
	bx	lr
.L11:
	.align	2
.L10:
	.word	CLOCK_ENABLE
	.word	SYSCTL_CLKCFG1
	.word	EINVAL
	.size	mtk_clock_set, .-mtk_clock_set
	.comm	SYSCTL_CLKCFG1,4,4
	.comm	EINVAL,4,4
	.comm	CLOCK_ENABLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
