	.file	"extr_wm8960.c_wm8960_set_pll.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	wm8960_set_pll, @function
wm8960_set_pll:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	test	esi, esi
	je	.L2
	test	edx, edx
	je	.L2
	lea	rdx, pll_div.1952[rip]
	mov	esi, r13d
	mov	edi, r12d
	call	pll_factors@PLT
	test	eax, eax
	jne	.L1
	mov	esi, DWORD PTR WM8960_CLOCK1[rip]
	xor	ecx, ecx
	mov	edx, 1
	mov	rdi, rbp
	call	snd_soc_component_update_bits@PLT
	mov	esi, DWORD PTR WM8960_POWER2[rip]
	xor	ecx, ecx
	mov	rdi, rbp
	mov	edx, 1
	call	snd_soc_component_update_bits@PLT
.L6:
	mov	esi, DWORD PTR WM8960_PLL1[rip]
	mov	rdi, rbp
	call	snd_soc_component_read32@PLT
	mov	r12d, DWORD PTR pll_div.1952[rip]
	mov	edx, DWORD PTR pll_div.1952[rip+8]
	and	eax, -64
	sal	r12d, 4
	or	r12d, DWORD PTR pll_div.1952[rip+4]
	or	r12d, eax
	test	edx, edx
	jne	.L20
.L5:
	mov	esi, DWORD PTR WM8960_PLL1[rip]
	mov	edx, r12d
	mov	rdi, rbp
	call	snd_soc_component_write@PLT
	mov	esi, DWORD PTR WM8960_POWER2[rip]
	mov	ecx, 1
	mov	rdi, rbp
	mov	edx, 1
	call	snd_soc_component_update_bits@PLT
	mov	edi, 250
	call	msleep@PLT
	mov	esi, DWORD PTR WM8960_CLOCK1[rip]
	mov	ecx, 1
	mov	rdi, rbp
	mov	edx, 1
	call	snd_soc_component_update_bits@PLT
	xor	eax, eax
.L1:
	pop	rbp
	.cfi_remember_state
	.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
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR WM8960_CLOCK1[rip]
	xor	ecx, ecx
	mov	edx, 1
	mov	rdi, rbp
	call	snd_soc_component_update_bits@PLT
	mov	esi, DWORD PTR WM8960_POWER2[rip]
	xor	ecx, ecx
	mov	rdi, rbp
	mov	edx, 1
	call	snd_soc_component_update_bits@PLT
	test	r12d, r12d
	je	.L7
	test	r13d, r13d
	jne	.L6
.L7:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	esi, DWORD PTR WM8960_PLL2[rip]
	sar	edx, 16
	mov	rdi, rbp
	or	r12d, 32
	movzx	edx, dl
	call	snd_soc_component_write@PLT
	movzx	edx, BYTE PTR pll_div.1952[rip+9]
	mov	esi, DWORD PTR WM8960_PLL3[rip]
	mov	rdi, rbp
	call	snd_soc_component_write@PLT
	movzx	edx, BYTE PTR pll_div.1952[rip+8]
	mov	esi, DWORD PTR WM8960_PLL4[rip]
	mov	rdi, rbp
	call	snd_soc_component_write@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	wm8960_set_pll, .-wm8960_set_pll
	.local	pll_div.1952
	.comm	pll_div.1952,12,8
	.comm	WM8960_POWER2,4,4
	.comm	WM8960_PLL4,4,4
	.comm	WM8960_PLL3,4,4
	.comm	WM8960_PLL2,4,4
	.comm	WM8960_PLL1,4,4
	.comm	WM8960_CLOCK1,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_wm8960.c_wm8960_set_pll.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wm8960_set_pll, %function
wm8960_set_pll:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	subs	r4, r2, #0
	movne	r4, #1
	cmp	r1, #0
	moveq	r4, #0
	cmp	r4, #0
	mov	r7, r1
	mov	r6, r2
	mov	r5, r0
	beq	.L2
	mov	r1, r2
	mov	r0, r7
	ldr	r2, .L16
	bl	pll_factors
	subs	r4, r0, #0
	bne	.L1
	ldr	r9, .L16+4
	ldr	r8, .L16+8
	mov	r3, r4
	mov	r2, #1
	ldr	r1, [r9]
	mov	r0, r5
	bl	snd_soc_component_update_bits
	mov	r3, r4
	mov	r2, #1
	mov	r0, r5
	ldr	r1, [r8]
	bl	snd_soc_component_update_bits
.L6:
	ldr	r7, .L16+12
	mov	r0, r5
	ldr	r1, [r7]
	bl	snd_soc_component_read32
	ldr	r6, .L16
	bic	r0, r0, #63
	ldr	r2, [r6, #8]
	ldm	r6, {r3, r4}
	cmp	r2, #0
	orr	r4, r4, r3, lsl #4
	orr	r4, r4, r0
	bne	.L15
.L5:
	mov	r2, r4
	ldr	r1, [r7]
	mov	r0, r5
	bl	snd_soc_component_write
	mov	r3, #1
	ldr	r1, [r8]
	mov	r2, r3
	mov	r0, r5
	bl	snd_soc_component_update_bits
	mov	r0, #250
	bl	msleep
	mov	r3, #1
	mov	r0, r5
	mov	r2, r3
	ldr	r1, [r9]
	bl	snd_soc_component_update_bits
	mov	r4, #0
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	ldr	r9, .L16+4
	ldr	r8, .L16+8
	mov	r3, r4
	mov	r2, #1
	ldr	r1, [r9]
	bl	snd_soc_component_update_bits
	mov	r3, r4
	mov	r2, #1
	mov	r0, r5
	ldr	r1, [r8]
	bl	snd_soc_component_update_bits
	cmp	r6, #0
	cmpne	r7, #0
	bne	.L6
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L15:
	ldr	r3, .L16+16
	asr	r2, r2, #16
	ldr	r1, [r3]
	mov	r0, r5
	and	r2, r2, #255
	bl	snd_soc_component_write
	ldr	r3, .L16+20
	ldrb	r2, [r6, #9]	@ zero_extendqisi2
	ldr	r1, [r3]
	mov	r0, r5
	bl	snd_soc_component_write
	ldr	r3, .L16+24
	mov	r0, r5
	ldrb	r2, [r6, #8]	@ zero_extendqisi2
	ldr	r1, [r3]
	orr	r4, r4, #32
	bl	snd_soc_component_write
	b	.L5
.L17:
	.align	2
.L16:
	.word	.LANCHOR0
	.word	WM8960_CLOCK1
	.word	WM8960_POWER2
	.word	WM8960_PLL1
	.word	WM8960_PLL2
	.word	WM8960_PLL3
	.word	WM8960_PLL4
	.size	wm8960_set_pll, .-wm8960_set_pll
	.comm	WM8960_POWER2,4,4
	.comm	WM8960_PLL4,4,4
	.comm	WM8960_PLL3,4,4
	.comm	WM8960_PLL2,4,4
	.comm	WM8960_PLL1,4,4
	.comm	WM8960_CLOCK1,4,4
	.bss
	.align	2
	.set	.LANCHOR0,. + 0
	.type	pll_div.4236, %object
	.size	pll_div.4236, 12
pll_div.4236:
	.space	12
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
