	.file	"extr_clk-mix.c_mmp_clk_mix_get_parent.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mmp_clk_mix_get_parent, @function
mmp_clk_mix_get_parent:
.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
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	to_clk_mix@PLT
	mov	rdi, QWORD PTR 24[rax]
	mov	rbp, rax
	test	rdi, rdi
	jne	.L15
.L2:
	mov	rax, QWORD PTR 0[rbp]
	cmp	rax, QWORD PTR MMP_CLK_MIX_TYPE_V1[rip]
	je	.L3
	cmp	rax, QWORD PTR MMP_CLK_MIX_TYPE_V2[rip]
	jne	.L4
.L3:
	mov	edi, DWORD PTR 20[rbp]
	call	readl@PLT
	mov	rdi, QWORD PTR 24[rbp]
	mov	r12d, eax
	test	rdi, rdi
	jne	.L16
.L6:
	mov	esi, DWORD PTR 12[rbp]
	mov	edx, DWORD PTR 8[rbp]
	mov	edi, r12d
	call	MMP_CLK_BITS_GET_VAL@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	mov	esi, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	_get_mux@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	edi, DWORD PTR 16[rbp]
	call	readl@PLT
	mov	rdi, QWORD PTR 24[rbp]
	mov	r12d, eax
	test	rdi, rdi
	je	.L6
.L16:
	xor	esi, esi
	call	spin_unlock_irqrestore@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L15:
	xor	esi, esi
	call	spin_lock_irqsave@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	mmp_clk_mix_get_parent, .-mmp_clk_mix_get_parent
	.comm	MMP_CLK_MIX_TYPE_V2,8,8
	.comm	MMP_CLK_MIX_TYPE_V1,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_clk-mix.c_mmp_clk_mix_get_parent.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mmp_clk_mix_get_parent, %function
mmp_clk_mix_get_parent:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	bl	to_clk_mix
	mov	r4, r0
	ldr	r0, [r0, #20]
	cmp	r0, #0
	bne	.L15
.L2:
	ldr	r2, .L17
	ldr	r3, [r4]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L3
	ldr	r2, .L17+4
	ldr	r2, [r2]
	cmp	r3, r2
	bne	.L4
.L3:
	ldr	r0, [r4, #16]
	bl	readl
	mov	r5, r0
	ldr	r0, [r4, #20]
	cmp	r0, #0
	bne	.L16
.L6:
	ldr	r1, [r4, #8]
	mov	r0, r5
	ldr	r2, [r4, #4]
	bl	MMP_CLK_BITS_GET_VAL
	mov	r1, r0
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	_get_mux
.L4:
	ldr	r0, [r4, #12]
	bl	readl
	mov	r5, r0
	ldr	r0, [r4, #20]
	cmp	r0, #0
	beq	.L6
.L16:
	mov	r1, #0
	bl	spin_unlock_irqrestore
	b	.L6
.L15:
	mov	r1, #0
	bl	spin_lock_irqsave
	b	.L2
.L18:
	.align	2
.L17:
	.word	MMP_CLK_MIX_TYPE_V1
	.word	MMP_CLK_MIX_TYPE_V2
	.size	mmp_clk_mix_get_parent, .-mmp_clk_mix_get_parent
	.comm	MMP_CLK_MIX_TYPE_V2,4,4
	.comm	MMP_CLK_MIX_TYPE_V1,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
