	.file	"extr_clk-mtk.c_mtk_clk_register_factors.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Failed to register clk %s: %ld\n"
	.text
	.p2align 4
	.globl	mtk_clk_register_factors
	.type	mtk_clk_register_factors, @function
mtk_clk_register_factors:
.LFB0:
	.cfi_startproc
	endbr64
	test	esi, esi
	jle	.L13
	lea	eax, -1[rsi]
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdx
	lea	rax, [rax+rax*2]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	lea	r13, .LC0[rip]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	lea	r12, 24[rdi+rax*8]
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rdx, QWORD PTR [rbx]
	mov	rax, QWORD PTR [r14]
	mov	rdi, QWORD PTR [rax+rdx*8]
	call	IS_ERR_OR_NULL@PLT
	test	eax, eax
	je	.L5
	mov	edx, DWORD PTR 20[rbx]
	mov	esi, DWORD PTR 8[rbx]
	xor	edi, edi
	mov	r9d, DWORD PTR 12[rbx]
	mov	r8d, DWORD PTR 16[rbx]
	mov	ecx, DWORD PTR CLK_SET_RATE_PARENT[rip]
	call	clk_register_fixed_factor@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L7
	mov	rdx, QWORD PTR [rbx]
	mov	rax, QWORD PTR [r14]
	mov	QWORD PTR [rax+rdx*8], rbp
.L5:
	add	rbx, 24
	cmp	r12, rbx
	je	.L17
.L6:
	test	r14, r14
	jne	.L18
	mov	edx, DWORD PTR 20[rbx]
	mov	esi, DWORD PTR 8[rbx]
	xor	edi, edi
	mov	r9d, DWORD PTR 12[rbx]
	mov	r8d, DWORD PTR 16[rbx]
	mov	ecx, DWORD PTR CLK_SET_RATE_PARENT[rip]
	call	clk_register_fixed_factor@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	IS_ERR@PLT
	test	rax, rax
	je	.L5
.L7:
	mov	rdi, rbp
	add	rbx, 24
	call	PTR_ERR@PLT
	mov	esi, DWORD PTR -16[rbx]
	mov	rdi, r13
	mov	edx, eax
	call	pr_err@PLT
	cmp	r12, rbx
	jne	.L6
.L17:
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	ret
	.cfi_endproc
.LFE0:
	.size	mtk_clk_register_factors, .-mtk_clk_register_factors
	.comm	CLK_SET_RATE_PARENT,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_clk-mtk.c_mtk_clk_register_factors.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to register clk %s: %ld\012\000"
	.text
	.align	2
	.global	mtk_clk_register_factors
	.syntax unified
	.arm
	.fpu softvfp
	.type	mtk_clk_register_factors, %function
mtk_clk_register_factors:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #0
	bxle	lr
	push	{r4, r5, r6, r7, r8, r9, lr}
	add	r1, r1, r1, lsl #2
	mov	r6, r2
	mov	r4, r0
	ldr	r8, .L19
	ldr	r9, .L19+4
	sub	sp, sp, #12
	add	r7, r0, r1, lsl #2
	b	.L6
.L18:
	ldr	r2, [r4]
	ldr	r3, [r6]
	ldr	r0, [r3, r2, lsl #2]
	bl	IS_ERR_OR_NULL
	cmp	r0, #0
	beq	.L5
	ldr	r3, [r4, #8]
	ldr	r2, [r4, #16]
	ldr	r1, [r4, #4]
	str	r3, [sp, #4]
	ldr	r3, [r4, #12]
	mov	r0, #0
	str	r3, [sp]
	ldr	r3, [r8]
	bl	clk_register_fixed_factor
	mov	r5, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L7
	ldr	r2, [r4]
	ldr	r3, [r6]
	str	r5, [r3, r2, lsl #2]
.L5:
	add	r4, r4, #20
	cmp	r7, r4
	beq	.L17
.L6:
	cmp	r6, #0
	bne	.L18
	ldr	r3, [r4, #8]
	ldr	r2, [r4, #16]
	ldr	r1, [r4, #4]
	str	r3, [sp, #4]
	ldr	r3, [r4, #12]
	mov	r0, r6
	str	r3, [sp]
	ldr	r3, [r8]
	bl	clk_register_fixed_factor
	mov	r5, r0
	bl	IS_ERR
	cmp	r0, #0
	beq	.L5
.L7:
	mov	r0, r5
	ldr	r5, [r4, #4]
	bl	PTR_ERR
	add	r4, r4, #20
	mov	r2, r0
	mov	r1, r5
	mov	r0, r9
	bl	pr_err
	cmp	r7, r4
	bne	.L6
.L17:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L20:
	.align	2
.L19:
	.word	CLK_SET_RATE_PARENT
	.word	.LC0
	.size	mtk_clk_register_factors, .-mtk_clk_register_factors
	.comm	CLK_SET_RATE_PARENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
