	.file	"extr_wm8983.c_wm8983_set_pll.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	wm8983_set_pll, @function
wm8983_set_pll:
.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, 40
	.cfi_def_cfa_offset 64
	mov	rbp, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	test	ecx, ecx
	je	.L6
	test	r8d, r8d
	je	.L6
	mov	edx, ecx
	lea	esi, 0[0+r8*8]
	lea	rdi, 12[rsp]
	call	pll_factors@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L9
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 40
	.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
.L9:
	.cfi_restore_state
	mov	edx, DWORD PTR WM8983_PLLEN_MASK[rip]
	mov	esi, DWORD PTR WM8983_POWER_MANAGEMENT_1[rip]
	xor	ecx, ecx
	mov	rdi, rbp
	call	snd_soc_component_update_bits@PLT
	mov	ecx, DWORD PTR WM8983_PLL_PRESCALE_SHIFT[rip]
	mov	edx, DWORD PTR 12[rsp]
	mov	rdi, rbp
	mov	esi, DWORD PTR WM8983_PLL_N[rip]
	sal	edx, cl
	or	edx, DWORD PTR 16[rsp]
	call	snd_soc_component_write@PLT
	mov	edx, DWORD PTR 20[rsp]
	mov	esi, DWORD PTR WM8983_PLL_K_3[rip]
	mov	rdi, rbp
	and	edx, 511
	call	snd_soc_component_write@PLT
	mov	edx, DWORD PTR 20[rsp]
	mov	esi, DWORD PTR WM8983_PLL_K_2[rip]
	mov	rdi, rbp
	sar	edx, 9
	and	edx, 511
	call	snd_soc_component_write@PLT
	mov	edx, DWORD PTR 20[rsp]
	mov	esi, DWORD PTR WM8983_PLL_K_1[rip]
	mov	rdi, rbp
	sar	edx, 18
	call	snd_soc_component_write@PLT
	mov	ecx, DWORD PTR WM8983_PLLEN[rip]
	mov	edx, DWORD PTR WM8983_PLLEN_MASK[rip]
	mov	rdi, rbp
	mov	esi, DWORD PTR WM8983_POWER_MANAGEMENT_1[rip]
	call	snd_soc_component_update_bits@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edx, DWORD PTR WM8983_PLLEN_MASK[rip]
	xor	ecx, ecx
	mov	rdi, rbp
	xor	r12d, r12d
	mov	esi, DWORD PTR WM8983_POWER_MANAGEMENT_1[rip]
	call	snd_soc_component_update_bits@PLT
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	wm8983_set_pll, .-wm8983_set_pll
	.comm	WM8983_POWER_MANAGEMENT_1,4,4
	.comm	WM8983_PLL_PRESCALE_SHIFT,4,4
	.comm	WM8983_PLL_N,4,4
	.comm	WM8983_PLL_K_3,4,4
	.comm	WM8983_PLL_K_2,4,4
	.comm	WM8983_PLL_K_1,4,4
	.comm	WM8983_PLLEN_MASK,4,4
	.comm	WM8983_PLLEN,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_wm8983.c_wm8983_set_pll.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wm8983_set_pll, %function
wm8983_set_pll:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	sub	sp, sp, #16
	ldr	r1, [sp, #40]
	ldr	r2, .L10
	cmp	r1, #0
	cmpne	r3, #0
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	ldr	r5, [r0]
	beq	.L7
	mov	r2, r3
	mov	r0, sp
	lsl	r1, r1, #3
	bl	pll_factors
	subs	r4, r0, #0
	beq	.L8
.L1:
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r7, .L10+4
	ldr	r6, .L10+8
	mov	r3, r4
	ldr	r2, [r7]
	ldr	r1, [r6]
	mov	r0, r5
	bl	snd_soc_component_update_bits
	ldr	r3, .L10+12
	ldr	r0, [sp]
	ldr	r1, [sp, #4]
	ldr	r2, [r3]
	ldr	r3, .L10+16
	orr	r2, r1, r0, lsl r2
	ldr	r1, [r3]
	mov	r0, r5
	bl	snd_soc_component_write
	ldr	r8, .L10+20
	ldr	r2, [sp, #8]
	ldr	r3, .L10+24
	and	r2, r2, r8
	ldr	r1, [r3]
	mov	r0, r5
	bl	snd_soc_component_write
	ldr	r2, [sp, #8]
	ldr	r3, .L10+28
	and	r2, r8, r2, asr #9
	ldr	r1, [r3]
	mov	r0, r5
	bl	snd_soc_component_write
	ldr	r2, [sp, #8]
	ldr	r3, .L10+32
	mov	r0, r5
	ldr	r1, [r3]
	asr	r2, r2, #18
	bl	snd_soc_component_write
	ldr	r3, .L10+36
	mov	r0, r5
	ldr	r2, [r7]
	ldr	r1, [r6]
	ldr	r3, [r3]
	bl	snd_soc_component_update_bits
	b	.L1
.L7:
	ldr	r3, .L10+8
	ldr	r2, .L10+4
	ldr	r1, [r3]
	mov	r0, r5
	mov	r3, #0
	ldr	r2, [r2]
	bl	snd_soc_component_update_bits
	mov	r4, #0
	b	.L1
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	WM8983_PLLEN_MASK
	.word	WM8983_POWER_MANAGEMENT_1
	.word	WM8983_PLL_PRESCALE_SHIFT
	.word	WM8983_PLL_N
	.word	511
	.word	WM8983_PLL_K_3
	.word	WM8983_PLL_K_2
	.word	WM8983_PLL_K_1
	.word	WM8983_PLLEN
	.size	wm8983_set_pll, .-wm8983_set_pll
	.comm	WM8983_POWER_MANAGEMENT_1,4,4
	.comm	WM8983_PLL_PRESCALE_SHIFT,4,4
	.comm	WM8983_PLL_N,4,4
	.comm	WM8983_PLL_K_3,4,4
	.comm	WM8983_PLL_K_2,4,4
	.comm	WM8983_PLL_K_1,4,4
	.comm	WM8983_PLLEN_MASK,4,4
	.comm	WM8983_PLLEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
