	.file	"extr_mediatek-cpufreq.c_mtk_cpufreq_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"dvfs info for cpu%d is not initialized.\n"
	.align 8
.LC1:
	.string	"failed to init cpufreq table for cpu%d: %d\n"
	.text
	.p2align 4
	.type	mtk_cpufreq_init, @function
mtk_cpufreq_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR 24[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	mtk_cpu_dvfs_info_lookup@PLT
	test	rax, rax
	je	.L8
	mov	edi, DWORD PTR 8[rax]
	mov	rsi, rsp
	mov	rbp, rax
	call	dev_pm_opp_init_cpufreq_table@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L9
	mov	edi, DWORD PTR [rbx]
	lea	rsi, 4[rbp]
	call	cpumask_copy@PLT
	mov	rax, QWORD PTR [rsp]
	mov	edi, DWORD PTR [rbx]
	mov	QWORD PTR 8[rbx], rbp
	mov	QWORD PTR 16[rbx], rax
	mov	eax, DWORD PTR 0[rbp]
	mov	DWORD PTR 4[rbx], eax
	call	dev_pm_opp_of_register_em@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	esi, DWORD PTR 24[rbx]
	mov	edx, eax
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	pr_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	esi, DWORD PTR 24[rbx]
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	pr_err@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mtk_cpufreq_init, .-mtk_cpufreq_init
	.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_mediatek-cpufreq.c_mtk_cpufreq_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"dvfs info for cpu%d is not initialized.\012\000"
	.align	2
.LC1:
	.ascii	"failed to init cpufreq table for cpu%d: %d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mtk_cpufreq_init, %function
mtk_cpufreq_init:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L11
	sub	sp, sp, #8
	mov	r4, r0
	ldr	r0, [r0, #16]
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	mtk_cpu_dvfs_info_lookup
	subs	r5, r0, #0
	beq	.L8
	mov	r1, sp
	ldr	r0, [r5, #8]
	bl	dev_pm_opp_init_cpufreq_table
	subs	r6, r0, #0
	bne	.L9
	ldr	r0, [r4]
	add	r1, r5, #4
	bl	cpumask_copy
	ldr	r2, [r5]
	ldr	r3, [sp]
	stmib	r4, {r2, r5}
	ldr	r0, [r4]
	str	r3, [r4, #12]
	bl	dev_pm_opp_of_register_em
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	mov	r0, r6
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L9:
	mov	r2, r6
	ldr	r1, [r4, #16]
	ldr	r0, .L11+4
	bl	pr_err
	b	.L1
.L8:
	ldr	r1, [r4, #16]
	ldr	r0, .L11+8
	bl	pr_err
	ldr	r3, .L11+12
	ldr	r0, [r3]
	rsb	r6, r0, #0
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC2
	.word	.LC1
	.word	.LC0
	.word	EINVAL
	.size	mtk_cpufreq_init, .-mtk_cpufreq_init
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
