	.file	"extr_tobermory.c_tobermory_set_bias_level_post.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Failed to switch away from FLL: %d\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Failed to stop FLL: %d\n"
	.text
	.p2align 4
	.type	tobermory_set_bias_level_post, @function
tobermory_set_bias_level_post:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR [rdi]
	mov	esi, DWORD PTR [rax]
	call	snd_soc_get_pcm_runtime@PLT
	mov	r13, QWORD PTR [rax]
	mov	rax, QWORD PTR 0[r13]
	cmp	QWORD PTR [rbx], rax
	jne	.L1
	cmp	ebp, 128
	je	.L8
.L3:
	mov	DWORD PTR 8[rbx], ebp
	xor	r12d, r12d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	ecx, DWORD PTR SND_SOC_CLOCK_IN[rip]
	mov	esi, DWORD PTR WM8962_SYSCLK_MCLK[rip]
	mov	edx, 32768
	mov	rdi, r13
	call	snd_soc_dai_set_sysclk@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L9
	mov	esi, DWORD PTR WM8962_FLL[rip]
	xor	r8d, r8d
	xor	ecx, ecx
	xor	edx, edx
	mov	rdi, r13
	call	snd_soc_dai_set_pll@PLT
	mov	r12d, eax
	test	eax, eax
	jns	.L3
	mov	esi, eax
	lea	rdi, .LC1[rip]
	call	pr_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	esi, eax
	lea	rdi, .LC0[rip]
	call	pr_err@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	tobermory_set_bias_level_post, .-tobermory_set_bias_level_post
	.comm	WM8962_SYSCLK_MCLK,4,4
	.comm	WM8962_FLL,4,4
	.comm	SND_SOC_CLOCK_IN,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_tobermory.c_tobermory_set_bias_level_post.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to switch away from FLL: %d\012\000"
	.align	2
.LC1:
	.ascii	"Failed to stop FLL: %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tobermory_set_bias_level_post, %function
tobermory_set_bias_level_post:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, [r0]
	mov	r4, r1
	sub	sp, sp, #12
	ldr	r1, [r3]
	mov	r5, r2
	bl	snd_soc_get_pcm_runtime
	ldr	r7, [r0]
	ldr	r2, [r4]
	ldr	r3, [r7]
	cmp	r2, r3
	movne	r6, #0
	bne	.L1
	cmp	r5, #128
	beq	.L8
.L3:
	mov	r6, #0
	str	r5, [r4, #4]
.L1:
	mov	r0, r6
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L8:
	ldr	r2, .L10
	ldr	r3, .L10+4
	ldr	r1, [r2]
	mov	r0, r7
	mov	r2, #32768
	ldr	r3, [r3]
	bl	snd_soc_dai_set_sysclk
	subs	r6, r0, #0
	blt	.L9
	mov	r3, #0
	ldr	r1, .L10+8
	str	r3, [sp]
	mov	r0, r7
	mov	r2, r3
	ldr	r1, [r1]
	bl	snd_soc_dai_set_pll
	subs	r6, r0, #0
	bge	.L3
	mov	r1, r6
	ldr	r0, .L10+12
	bl	pr_err
	b	.L1
.L9:
	mov	r1, r6
	ldr	r0, .L10+16
	bl	pr_err
	b	.L1
.L11:
	.align	2
.L10:
	.word	WM8962_SYSCLK_MCLK
	.word	SND_SOC_CLOCK_IN
	.word	WM8962_FLL
	.word	.LC1
	.word	.LC0
	.size	tobermory_set_bias_level_post, .-tobermory_set_bias_level_post
	.comm	WM8962_SYSCLK_MCLK,4,4
	.comm	WM8962_FLL,4,4
	.comm	SND_SOC_CLOCK_IN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
