	.file	"extr_pxa-ssp.c_pxa_ssp_set_dai_sysclk.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"pxa_ssp_set_dai_sysclk id: %d, clk_id %d, freq %u\n"
	.text
	.p2align 4
	.type	pxa_ssp_set_dai_sysclk, @function
pxa_ssp_set_dai_sysclk:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	snd_soc_dai_get_drvdata@PLT
	mov	esi, DWORD PTR SSCR0[rip]
	mov	r14, QWORD PTR 16[rax]
	mov	rbp, rax
	mov	rdi, r14
	call	pxa_ssp_read_reg@PLT
	mov	r12d, DWORD PTR SSCR0_ECS[rip]
	mov	rdi, QWORD PTR 8[rbp]
	or	r12d, DWORD PTR SSCR0_NCS[rip]
	or	r12d, DWORD PTR SSCR0_MOD[rip]
	or	r12d, DWORD PTR SSCR0_ACS[rip]
	not	r12d
	and	r12d, eax
	test	rdi, rdi
	je	.L2
	mov	esi, r13d
	call	clk_set_rate@PLT
	mov	ebx, eax
	test	eax, eax
	js	.L1
	mov	rdi, QWORD PTR 16[r14]
	mov	edx, DWORD PTR [r15]
	mov	r8d, r13d
	mov	ecx, 131
	lea	rsi, .LC0[rip]
	call	dev_dbg@PLT
.L8:
	mov	rax, QWORD PTR [r14]
	or	r12d, DWORD PTR SSCR0_ECS[rip]
	mov	DWORD PTR 0[rbp], r13d
.L12:
	cmp	QWORD PTR PXA3xx_SSP[rip], rax
	je	.L14
	mov	edi, DWORD PTR 8[r14]
	call	clk_disable_unprepare@PLT
.L14:
	mov	esi, DWORD PTR SSCR0[rip]
	mov	edx, r12d
	mov	rdi, r14
	xor	ebx, ebx
	call	pxa_ssp_write_reg@PLT
	mov	rax, QWORD PTR PXA3xx_SSP[rip]
	cmp	QWORD PTR [r14], rax
	je	.L1
	mov	edi, DWORD PTR 8[r14]
	call	clk_prepare_enable@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, ebx
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, QWORD PTR 16[r14]
	mov	edx, DWORD PTR [r15]
	mov	ecx, ebx
	mov	r8d, r13d
	lea	rsi, .LC0[rip]
	add	ebx, -128
	call	dev_dbg@PLT
	cmp	ebx, 4
	ja	.L5
	lea	rdx, .L7[rip]
	movsx	rax, DWORD PTR [rdx+rbx*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L7:
	.long	.L11-.L7
	.long	.L10-.L7
	.long	.L9-.L7
	.long	.L8-.L7
	.long	.L6-.L7
	.text
	.p2align 4,,10
	.p2align 3
.L6:
	mov	DWORD PTR 0[rbp], 0
	mov	esi, 1
	mov	rdi, r14
	call	pxa_ssp_set_scr@PLT
	mov	rax, QWORD PTR [r14]
	or	r12d, DWORD PTR SSCR0_ACS[rip]
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rax, QWORD PTR [r14]
	cmp	rax, QWORD PTR PXA25x_SSP[rip]
	je	.L19
	mov	DWORD PTR 0[rbp], 13000000
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L9:
	mov	eax, DWORD PTR SSCR0_NCS[rip]
	or	eax, DWORD PTR SSCR0_MOD[rip]
	mov	DWORD PTR 0[rbp], r13d
	or	r12d, eax
	mov	rax, QWORD PTR [r14]
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rax, QWORD PTR [r14]
	or	r12d, DWORD PTR SSCR0_MOD[rip]
	jmp	.L12
.L5:
	mov	ebx, DWORD PTR ENODEV[rip]
	neg	ebx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	mov	DWORD PTR 0[rbp], 1843200
	jmp	.L12
	.cfi_endproc
.LFE0:
	.size	pxa_ssp_set_dai_sysclk, .-pxa_ssp_set_dai_sysclk
	.comm	SSCR0_NCS,4,4
	.comm	SSCR0_MOD,4,4
	.comm	SSCR0_ECS,4,4
	.comm	SSCR0_ACS,4,4
	.comm	SSCR0,4,4
	.comm	PXA3xx_SSP,8,8
	.comm	PXA25x_SSP,8,8
	.comm	ENODEV,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_pxa-ssp.c_pxa_ssp_set_dai_sysclk.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"pxa_ssp_set_dai_sysclk id: %d, clk_id %d, freq %u\012"
	.ascii	"\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pxa_ssp_set_dai_sysclk, %function
pxa_ssp_set_dai_sysclk:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #20
	mov	r7, r2
	str	r1, [sp, #8]
	str	r0, [sp, #12]
	bl	snd_soc_dai_get_drvdata
	ldr	r3, .L19
	mov	r5, r0
	ldr	r4, [r0, #8]
	ldr	r1, [r3]
	mov	r0, r4
	bl	pxa_ssp_read_reg
	ldr	r9, .L19+4
	ldr	fp, .L19+8
	ldr	r8, .L19+12
	ldr	r6, [fp]
	ldr	r3, [r9]
	ldr	r2, [r8]
	ldr	r10, .L19+16
	orr	r3, r3, r6
	orr	r3, r3, r2
	ldr	r6, [r10]
	ldr	r2, [r5, #4]
	orr	r3, r3, r6
	cmp	r2, #0
	bic	r6, r0, r3
	beq	.L2
	mov	r0, r2
	mov	r1, r7
	bl	clk_set_rate
	cmp	r0, #0
	blt	.L1
	ldr	r3, [sp, #12]
	ldr	r0, [r4, #8]
	ldr	r2, [r3]
	ldr	r1, .L19+20
	mov	r3, #131
	str	r7, [sp]
	bl	dev_dbg
.L8:
	ldr	r3, [r9]
	str	r7, [r5]
	orr	r6, r6, r3
	ldr	r3, [r4]
.L12:
	ldr	r5, .L19+24
	ldr	r2, [r5]
	cmp	r2, r3
	beq	.L14
	ldr	r0, [r4, #4]
	bl	clk_disable_unprepare
.L14:
	ldr	r3, .L19
	mov	r2, r6
	ldr	r1, [r3]
	mov	r0, r4
	bl	pxa_ssp_write_reg
	ldr	r3, [r5]
	ldr	r2, [r4]
	cmp	r2, r3
	moveq	r0, #0
	beq	.L1
	ldr	r0, [r4, #4]
	bl	clk_prepare_enable
	mov	r0, #0
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r3, [sp, #12]
	ldr	r0, [r4, #8]
	ldr	r2, [r3]
	ldr	r1, .L19+20
	ldr	r3, [sp, #8]
	str	r7, [sp]
	bl	dev_dbg
	ldr	r3, [sp, #8]
	sub	r1, r3, #128
	cmp	r1, #4
	ldrls	pc, [pc, r1, asl #2]
	b	.L5
.L7:
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L6
.L6:
	mov	r3, #0
	mov	r1, #1
	str	r3, [r5]
	mov	r0, r4
	bl	pxa_ssp_set_scr
	ldr	r2, [r10]
	ldr	r3, [r4]
	orr	r6, r6, r2
	b	.L12
.L10:
	ldr	r2, [r8]
	ldr	r3, [r4]
	orr	r6, r6, r2
	b	.L12
.L9:
	ldr	r3, [fp]
	ldr	r2, [r8]
	str	r7, [r5]
	orr	r3, r3, r2
	orr	r6, r6, r3
	ldr	r3, [r4]
	b	.L12
.L11:
	ldr	r2, .L19+28
	ldr	r3, [r4]
	ldr	r2, [r2]
	cmp	r3, r2
	ldreq	r2, .L19+32
	ldrne	r2, .L19+36
	str	r2, [r5]
	b	.L12
.L5:
	ldr	r3, .L19+40
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L20:
	.align	2
.L19:
	.word	SSCR0
	.word	SSCR0_ECS
	.word	SSCR0_NCS
	.word	SSCR0_MOD
	.word	SSCR0_ACS
	.word	.LC0
	.word	PXA3xx_SSP
	.word	PXA25x_SSP
	.word	1843200
	.word	13000000
	.word	ENODEV
	.size	pxa_ssp_set_dai_sysclk, .-pxa_ssp_set_dai_sysclk
	.comm	SSCR0_NCS,4,4
	.comm	SSCR0_MOD,4,4
	.comm	SSCR0_ECS,4,4
	.comm	SSCR0_ACS,4,4
	.comm	SSCR0,4,4
	.comm	PXA3xx_SSP,4,4
	.comm	PXA25x_SSP,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
