	.file	"extr_mediatek-cpufreq.c_mtk_cpu_dvfs_info_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"failed to get cpu%d device\n"
.LC1:
	.string	"cpu"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"cpu clk for cpu%d not ready, retry.\n"
	.align 8
.LC3:
	.string	"failed to get cpu clk for cpu%d\n"
	.section	.rodata.str1.1
.LC4:
	.string	"intermediate"
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"intermediate clk for cpu%d not ready, retry.\n"
	.align 8
.LC6:
	.string	"failed to get intermediate clk for cpu%d\n"
	.section	.rodata.str1.1
.LC7:
	.string	"proc"
	.section	.rodata.str1.8
	.align 8
.LC8:
	.string	"proc regulator for cpu%d not ready, retry.\n"
	.align 8
.LC9:
	.string	"failed to get proc regulator for cpu%d\n"
	.section	.rodata.str1.1
.LC10:
	.string	"sram"
	.section	.rodata.str1.8
	.align 8
.LC11:
	.string	"failed to get OPP-sharing information for cpu%d\n"
	.section	.rodata.str1.1
.LC12:
	.string	"no OPP table for cpu%d\n"
	.section	.rodata.str1.8
	.align 8
.LC13:
	.string	"failed to get intermediate opp for cpu%d\n"
	.text
	.p2align 4
	.type	mtk_cpu_dvfs_info_init, @function
mtk_cpu_dvfs_info_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	QWORD PTR 8[rsp], rdi
	mov	edi, DWORD PTR ENODEV[rip]
	neg	edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	ERR_PTR@PLT
	mov	edi, DWORD PTR ENODEV[rip]
	mov	rbp, rax
	neg	edi
	call	ERR_PTR@PLT
	mov	edi, DWORD PTR ENODEV[rip]
	mov	QWORD PTR [rsp], rax
	neg	edi
	call	ERR_PTR@PLT
	mov	edi, DWORD PTR ENODEV[rip]
	neg	edi
	call	ERR_PTR@PLT
	mov	edi, r13d
	call	get_cpu_device@PLT
	test	rax, rax
	je	.L25
	mov	rdi, rax
	lea	rsi, .LC1[rip]
	mov	r14, rax
	call	clk_get@PLT
	mov	rdi, rax
	mov	r15, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L26
	mov	rdi, r14
	lea	rsi, .LC4[rip]
	call	clk_get@PLT
	mov	rdi, rax
	mov	rbx, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L27
	mov	rdi, r14
	lea	rsi, .LC7[rip]
	call	regulator_get_optional@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L28
	lea	rsi, .LC10[rip]
	mov	rdi, r14
	call	regulator_get_exclusive@PLT
	mov	rdi, r14
	mov	QWORD PTR [rsp], rax
	mov	rax, QWORD PTR 8[rsp]
	add	rax, 4
	mov	rsi, rax
	mov	QWORD PTR 16[rsp], rax
	call	dev_pm_opp_of_get_sharing_cpus@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L29
	mov	rdi, QWORD PTR 16[rsp]
	call	dev_pm_opp_of_cpumask_add_table@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L30
	mov	rdi, rbx
	call	clk_get_rate@PLT
	lea	rsi, 32[rsp]
	mov	rdi, r14
	mov	QWORD PTR 32[rsp], rax
	call	dev_pm_opp_find_freq_ceil@PLT
	mov	rdi, rax
	mov	QWORD PTR 24[rsp], rax
	call	IS_ERR@PLT
	mov	r8, QWORD PTR 24[rsp]
	test	rax, rax
	jne	.L31
	mov	rdi, r8
	mov	QWORD PTR 16[rsp], r8
	mov	QWORD PTR 24[rsp], rax
	call	dev_pm_opp_get_voltage@PLT
	mov	r13, QWORD PTR 8[rsp]
	mov	r8, QWORD PTR 16[rsp]
	mov	DWORD PTR 48[r13], eax
	mov	rdi, r8
	call	dev_pm_opp_put@PLT
	mov	QWORD PTR 32[r13], rbp
	mov	rbp, QWORD PTR [rsp]
	mov	QWORD PTR 40[r13], r14
	mov	rdi, rbp
	call	IS_ERR@PLT
	mov	rcx, QWORD PTR 24[rsp]
	mov	QWORD PTR 16[r13], r15
	mov	rdi, rbp
	test	rax, rax
	mov	QWORD PTR 8[r13], rbx
	cmove	rcx, rbp
	mov	QWORD PTR 24[r13], rcx
	call	IS_ERR@PLT
	test	rax, rax
	sete	al
	movzx	eax, al
	mov	DWORD PTR 0[r13], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L26:
	mov	rdi, r15
	call	PTR_ERR@PLT
	add	eax, DWORD PTR EPROBE_DEFER[rip]
	mov	esi, r13d
	je	.L32
	lea	rdi, .LC3[rip]
	call	pr_err@PLT
.L6:
	mov	rdi, r15
	call	PTR_ERR@PLT
	mov	r12d, eax
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L33
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore_state
	mov	rdi, rbx
	call	PTR_ERR@PLT
	add	eax, DWORD PTR EPROBE_DEFER[rip]
	mov	esi, r13d
	je	.L34
	lea	rdi, .LC6[rip]
	call	pr_err@PLT
.L9:
	mov	rdi, rbx
	call	PTR_ERR@PLT
	mov	r12d, eax
.L10:
	mov	rdi, rbp
	call	IS_ERR@PLT
	test	rax, rax
	je	.L35
.L18:
	mov	rdi, QWORD PTR [rsp]
	call	IS_ERR@PLT
	test	rax, rax
	je	.L36
.L19:
	mov	rdi, r15
	call	IS_ERR@PLT
	test	rax, rax
	je	.L37
.L20:
	mov	rdi, rbx
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L1
	mov	rdi, rbx
	call	clk_put@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L32:
	lea	rdi, .LC2[rip]
	call	pr_warn@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L29:
	mov	esi, r13d
	lea	rdi, .LC11[rip]
	call	pr_err@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L25:
	mov	esi, r13d
	lea	rdi, .LC0[rip]
	call	pr_err@PLT
	mov	r12d, DWORD PTR ENODEV[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L37:
	mov	rdi, r15
	call	clk_put@PLT
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L36:
	mov	rdi, QWORD PTR [rsp]
	call	regulator_put@PLT
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L35:
	mov	rdi, rbp
	call	regulator_put@PLT
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L28:
	mov	rdi, rbp
	call	PTR_ERR@PLT
	add	eax, DWORD PTR EPROBE_DEFER[rip]
	mov	esi, r13d
	je	.L38
	lea	rdi, .LC9[rip]
	call	pr_err@PLT
.L13:
	mov	rdi, rbp
	call	PTR_ERR@PLT
	mov	r12d, eax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L34:
	lea	rdi, .LC5[rip]
	call	pr_warn@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L30:
	mov	esi, r13d
	lea	rdi, .LC12[rip]
	call	pr_warn@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L38:
	lea	rdi, .LC8[rip]
	call	pr_warn@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L31:
	mov	esi, r13d
	lea	rdi, .LC13[rip]
	mov	QWORD PTR 8[rsp], r8
	call	pr_err@PLT
	mov	r8, QWORD PTR 8[rsp]
	mov	rdi, r8
	call	PTR_ERR@PLT
	mov	rdi, QWORD PTR 16[rsp]
	mov	r12d, eax
	call	dev_pm_opp_of_cpumask_remove_table@PLT
	jmp	.L10
.L33:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mtk_cpu_dvfs_info_init, .-mtk_cpu_dvfs_info_init
	.comm	EPROBE_DEFER,4,4
	.comm	ENODEV,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_cpu_dvfs_info_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to get cpu%d device\012\000"
	.align	2
.LC1:
	.ascii	"cpu\000"
	.align	2
.LC2:
	.ascii	"cpu clk for cpu%d not ready, retry.\012\000"
	.align	2
.LC3:
	.ascii	"failed to get cpu clk for cpu%d\012\000"
	.align	2
.LC4:
	.ascii	"intermediate\000"
	.align	2
.LC5:
	.ascii	"intermediate clk for cpu%d not ready, retry.\012\000"
	.align	2
.LC6:
	.ascii	"failed to get intermediate clk for cpu%d\012\000"
	.align	2
.LC7:
	.ascii	"proc\000"
	.align	2
.LC8:
	.ascii	"proc regulator for cpu%d not ready, retry.\012\000"
	.align	2
.LC9:
	.ascii	"failed to get proc regulator for cpu%d\012\000"
	.align	2
.LC10:
	.ascii	"sram\000"
	.align	2
.LC11:
	.ascii	"failed to get OPP-sharing information for cpu%d\012"
	.ascii	"\000"
	.align	2
.LC12:
	.ascii	"no OPP table for cpu%d\012\000"
	.align	2
.LC13:
	.ascii	"failed to get intermediate opp for cpu%d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mtk_cpu_dvfs_info_init, %function
mtk_cpu_dvfs_info_init:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r5, .L39
	mov	r10, r0
	ldr	r0, [r5]
	ldr	r3, .L39+4
	sub	sp, sp, #20
	rsb	r0, r0, #0
	mov	r7, r1
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	ERR_PTR
	ldr	r3, [r5]
	mov	r6, r0
	rsb	r0, r3, #0
	bl	ERR_PTR
	ldr	r3, [r5]
	mov	r8, r0
	rsb	r0, r3, #0
	bl	ERR_PTR
	ldr	r0, [r5]
	rsb	r0, r0, #0
	bl	ERR_PTR
	mov	r0, r7
	bl	get_cpu_device
	subs	r4, r0, #0
	beq	.L25
	ldr	r1, .L39+8
	bl	clk_get
	mov	r9, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L26
	ldr	r1, .L39+12
	mov	r0, r4
	bl	clk_get
	mov	fp, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L27
	ldr	r1, .L39+16
	mov	r0, r4
	bl	regulator_get_optional
	mov	r6, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L28
	ldr	r1, .L39+20
	mov	r0, r4
	bl	regulator_get_exclusive
	add	r3, r10, #4
	mov	r8, r0
	mov	r1, r3
	mov	r0, r4
	str	r3, [sp]
	bl	dev_pm_opp_of_get_sharing_cpus
	subs	r5, r0, #0
	bne	.L29
	ldr	r0, [sp]
	bl	dev_pm_opp_of_cpumask_add_table
	subs	r5, r0, #0
	bne	.L30
	mov	r0, fp
	bl	clk_get_rate
	mov	r3, r0
	add	r1, sp, #8
	mov	r0, r4
	str	r3, [sp, #8]
	bl	dev_pm_opp_find_freq_ceil
	str	r0, [sp, #4]
	bl	IS_ERR
	subs	r5, r0, #0
	bne	.L31
	ldr	r7, [sp, #4]
	mov	r0, r7
	bl	dev_pm_opp_get_voltage
	mov	r3, r0
	mov	r0, r7
	str	r3, [r10, #28]
	bl	dev_pm_opp_put
	mov	r0, r8
	str	r4, [r10, #24]
	str	r6, [r10, #20]
	bl	IS_ERR
	cmp	r0, #0
	moveq	r3, r8
	movne	r3, #0
	mov	r0, r8
	str	r9, [r10, #12]
	str	fp, [r10, #8]
	str	r3, [r10, #16]
	bl	IS_ERR
	clz	r0, r0
	lsr	r0, r0, #5
	str	r0, [r10]
	b	.L1
.L26:
	mov	r0, r9
	bl	PTR_ERR
	ldr	r3, .L39+24
	mov	r1, r7
	ldr	r3, [r3]
	cmn	r0, r3
	beq	.L32
	ldr	r0, .L39+28
	bl	pr_err
.L6:
	mov	r0, r9
	bl	PTR_ERR
	mov	r5, r0
.L1:
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L33
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L27:
	mov	r0, fp
	bl	PTR_ERR
	ldr	r3, .L39+24
	mov	r1, r7
	ldr	r3, [r3]
	cmn	r0, r3
	beq	.L34
	ldr	r0, .L39+32
	bl	pr_err
.L9:
	mov	r0, fp
	bl	PTR_ERR
	mov	r5, r0
.L10:
	mov	r0, r6
	bl	IS_ERR
	cmp	r0, #0
	beq	.L35
.L18:
	mov	r0, r8
	bl	IS_ERR
	cmp	r0, #0
	beq	.L36
.L19:
	mov	r0, r9
	bl	IS_ERR
	cmp	r0, #0
	beq	.L37
.L20:
	mov	r0, fp
	bl	IS_ERR
	cmp	r0, #0
	bne	.L1
	mov	r0, fp
	bl	clk_put
	b	.L1
.L32:
	ldr	r0, .L39+36
	bl	pr_warn
	b	.L6
.L29:
	mov	r1, r7
	ldr	r0, .L39+40
	bl	pr_err
	b	.L10
.L25:
	mov	r1, r7
	ldr	r0, .L39+44
	bl	pr_err
	ldr	r0, [r5]
	rsb	r5, r0, #0
	b	.L1
.L37:
	mov	r0, r9
	bl	clk_put
	b	.L20
.L36:
	mov	r0, r8
	bl	regulator_put
	b	.L19
.L35:
	mov	r0, r6
	bl	regulator_put
	b	.L18
.L28:
	mov	r0, r6
	bl	PTR_ERR
	ldr	r3, .L39+24
	mov	r1, r7
	ldr	r3, [r3]
	cmn	r0, r3
	beq	.L38
	ldr	r0, .L39+48
	bl	pr_err
.L13:
	mov	r0, r6
	bl	PTR_ERR
	mov	r5, r0
	b	.L10
.L34:
	ldr	r0, .L39+52
	bl	pr_warn
	b	.L9
.L30:
	mov	r1, r7
	ldr	r0, .L39+56
	bl	pr_warn
	b	.L10
.L38:
	ldr	r0, .L39+60
	bl	pr_warn
	b	.L13
.L31:
	mov	r1, r7
	ldr	r0, .L39+64
	bl	pr_err
	ldr	r0, [sp, #4]
	bl	PTR_ERR
	mov	r5, r0
	ldr	r0, [sp]
	bl	dev_pm_opp_of_cpumask_remove_table
	b	.L10
.L33:
	bl	__stack_chk_fail
.L40:
	.align	2
.L39:
	.word	ENODEV
	.word	.LC14
	.word	.LC1
	.word	.LC4
	.word	.LC7
	.word	.LC10
	.word	EPROBE_DEFER
	.word	.LC3
	.word	.LC6
	.word	.LC2
	.word	.LC11
	.word	.LC0
	.word	.LC9
	.word	.LC5
	.word	.LC12
	.word	.LC8
	.word	.LC13
	.size	mtk_cpu_dvfs_info_init, .-mtk_cpu_dvfs_info_init
	.comm	EPROBE_DEFER,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
