	.file	"extr_littlemill.c_bbclk_ev.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Failed to start FLL: %d\n"
.LC1:
	.string	"Failed to set SYSCLK: %d\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"Failed to switch away from FLL2: %d\n"
	.section	.rodata.str1.1
.LC3:
	.string	"Failed to stop FLL2: %d\n"
	.text
	.p2align 4
	.type	bbclk_ev, @function
bbclk_ev:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR [rdi]
	mov	rdi, QWORD PTR [rax]
	mov	rax, QWORD PTR [rdi]
	mov	esi, DWORD PTR 4[rax]
	call	snd_soc_get_pcm_runtime@PLT
	mov	rbp, QWORD PTR [rax]
	cmp	r12d, 128
	je	.L2
	cmp	r12d, 129
	je	.L3
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edx, DWORD PTR WM8994_FLL_SRC_BCLK[rip]
	mov	esi, DWORD PTR WM8994_FLL2[rip]
	mov	ecx, 512000
	mov	rdi, rbp
	mov	r8d, 2048000
	call	snd_soc_dai_set_pll@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L13
	mov	ecx, DWORD PTR SND_SOC_CLOCK_IN[rip]
	mov	esi, DWORD PTR WM8994_SYSCLK_FLL2[rip]
	mov	edx, 2048000
	mov	rdi, rbp
	call	snd_soc_dai_set_sysclk@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L7
.L9:
	xor	r12d, r12d
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	ecx, DWORD PTR SND_SOC_CLOCK_IN[rip]
	mov	esi, DWORD PTR WM8994_SYSCLK_MCLK2[rip]
	mov	edx, 32768
	mov	rdi, rbp
	call	snd_soc_dai_set_sysclk@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L14
	mov	esi, DWORD PTR WM8994_FLL2[rip]
	xor	r8d, r8d
	xor	ecx, ecx
	xor	edx, edx
	mov	rdi, rbp
	call	snd_soc_dai_set_pll@PLT
	mov	r12d, eax
	test	eax, eax
	jns	.L9
	mov	esi, eax
	lea	rdi, .LC3[rip]
	call	pr_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	esi, eax
	lea	rdi, .LC2[rip]
	call	pr_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	esi, eax
	lea	rdi, .LC0[rip]
	call	pr_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	esi, eax
	lea	rdi, .LC1[rip]
	call	pr_err@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	bbclk_ev, .-bbclk_ev
	.comm	WM8994_SYSCLK_MCLK2,4,4
	.comm	WM8994_SYSCLK_FLL2,4,4
	.comm	WM8994_FLL_SRC_BCLK,4,4
	.comm	WM8994_FLL2,4,4
	.comm	SND_SOC_CLOCK_IN,4,4
	.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_littlemill.c_bbclk_ev.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to start FLL: %d\012\000"
	.align	2
.LC1:
	.ascii	"Failed to set SYSCLK: %d\012\000"
	.align	2
.LC2:
	.ascii	"Failed to switch away from FLL2: %d\012\000"
	.align	2
.LC3:
	.ascii	"Failed to stop FLL2: %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bbclk_ev, %function
bbclk_ev:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, lr}
	ldr	r0, [r3]
	mov	r4, r2
	ldr	r3, [r0]
	sub	sp, sp, #8
	ldr	r1, [r3, #4]
	bl	snd_soc_get_pcm_runtime
	cmp	r4, #128
	ldr	r5, [r0]
	beq	.L2
	cmp	r4, #129
	beq	.L3
	ldr	r3, .L15
	ldr	r0, [r3]
	rsb	r4, r0, #0
.L1:
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L2:
	mov	r6, #2048000
	ldr	r3, .L15+4
	ldr	r2, .L15+8
	str	r6, [sp]
	ldr	r1, [r3]
	mov	r0, r5
	mov	r3, #512000
	ldr	r2, [r2]
	bl	snd_soc_dai_set_pll
	subs	r4, r0, #0
	blt	.L13
	ldr	r3, .L15+12
	ldr	r1, .L15+16
	mov	r2, r6
	mov	r0, r5
	ldr	r3, [r3]
	ldr	r1, [r1]
	bl	snd_soc_dai_set_sysclk
	subs	r4, r0, #0
	blt	.L7
.L9:
	mov	r4, #0
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L3:
	ldr	r2, .L15+20
	ldr	r3, .L15+12
	ldr	r1, [r2]
	mov	r0, r5
	mov	r2, #32768
	ldr	r3, [r3]
	bl	snd_soc_dai_set_sysclk
	subs	r4, r0, #0
	blt	.L14
	mov	r3, #0
	ldr	r1, .L15+4
	str	r3, [sp]
	mov	r0, r5
	mov	r2, r3
	ldr	r1, [r1]
	bl	snd_soc_dai_set_pll
	subs	r4, r0, #0
	bge	.L9
	mov	r1, r4
	ldr	r0, .L15+24
	bl	pr_err
	b	.L1
.L14:
	mov	r1, r4
	ldr	r0, .L15+28
	bl	pr_err
	b	.L1
.L13:
	mov	r1, r4
	ldr	r0, .L15+32
	bl	pr_err
	b	.L1
.L7:
	mov	r1, r4
	ldr	r0, .L15+36
	bl	pr_err
	b	.L1
.L16:
	.align	2
.L15:
	.word	EINVAL
	.word	WM8994_FLL2
	.word	WM8994_FLL_SRC_BCLK
	.word	SND_SOC_CLOCK_IN
	.word	WM8994_SYSCLK_FLL2
	.word	WM8994_SYSCLK_MCLK2
	.word	.LC3
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	bbclk_ev, .-bbclk_ev
	.comm	WM8994_SYSCLK_MCLK2,4,4
	.comm	WM8994_SYSCLK_FLL2,4,4
	.comm	WM8994_FLL_SRC_BCLK,4,4
	.comm	WM8994_FLL2,4,4
	.comm	SND_SOC_CLOCK_IN,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
