	.file	"extr_ssi.c_rsnd_ssi_master_clk_start.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"SSI parent/child should use same rate\n"
	.align 8
.LC1:
	.string	"SSI parent/child should use same chan\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"unsupported clock rate\n"
.LC3:
	.string	"%s outputs %d chan %u Hz\n"
	.text
	.p2align 4
	.type	rsnd_ssi_master_clk_start, @function
rsnd_ssi_master_clk_start:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	mov	rdi, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	rsnd_io_to_priv@PLT
	mov	rdi, rax
	mov	r15, rax
	call	rsnd_priv_to_dev@PLT
	mov	rdi, rbp
	mov	QWORD PTR 8[rsp], rax
	call	rsnd_io_to_rdai@PLT
	mov	rdi, r12
	mov	r13, rax
	call	rsnd_mod_to_ssi@PLT
	mov	rdi, rbp
	mov	rbx, rax
	call	rsnd_runtime_channel_for_ssi@PLT
	mov	rdi, rbp
	mov	r14d, eax
	call	rsnd_io_is_play@PLT
	mov	rsi, rbp
	mov	rdi, r15
	test	rax, rax
	je	.L2
	call	rsnd_src_get_out_rate@PLT
	mov	rdi, r13
	mov	r15d, eax
	call	rsnd_rdai_is_clk_master@PLT
	test	eax, eax
	jne	.L4
.L19:
	xor	eax, eax
.L1:
	mov	rdx, QWORD PTR 24[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L21
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	call	rsnd_src_get_in_rate@PLT
	mov	rdi, r13
	mov	r15d, eax
	call	rsnd_rdai_is_clk_master@PLT
	test	eax, eax
	je	.L19
.L4:
	mov	rdi, r12
	call	rsnd_ssi_can_output_clk@PLT
	test	eax, eax
	je	.L19
	mov	rsi, rbp
	mov	rdi, r12
	call	rsnd_ssi_is_multi_slave@PLT
	test	rax, rax
	jne	.L19
	mov	rdi, rbp
	call	rsnd_runtime_is_tdm_split@PLT
	test	rax, rax
	jne	.L22
.L7:
	mov	edi, r14d
	call	rsnd_channel_normalization@PLT
	cmp	QWORD PTR [rbx], 0
	mov	r14d, eax
	jle	.L8
	cmp	DWORD PTR 8[rbx], r15d
	jne	.L23
	cmp	DWORD PTR 12[rbx], eax
	je	.L19
	mov	rdi, QWORD PTR 8[rsp]
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rdi, rbp
	call	rsnd_io_converted_chan@PLT
	mov	r14d, eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	mov	esi, r15d
	lea	rcx, 20[rsp]
	mov	edx, eax
	mov	rdi, r13
	call	rsnd_ssi_clk_query@PLT
	mov	esi, eax
	test	eax, eax
	je	.L24
	mov	rdi, r12
	call	rsnd_adg_ssi_clk_try_start@PLT
	test	eax, eax
	js	.L1
	mov	rdi, r13
	call	rsnd_rdai_width_to_swl@PLT
	mov	edi, DWORD PTR 20[rsp]
	mov	ebp, DWORD PTR FORCE[rip]
	or	ebp, DWORD PTR SCKD[rip]
	or	ebp, DWORD PTR SWSD[rip]
	or	ebp, eax
	call	CKDV@PLT
	mov	DWORD PTR 8[rbx], r15d
	mov	rdi, r12
	or	ebp, eax
	mov	eax, DWORD PTR CONT[rip]
	mov	DWORD PTR 12[rbx], r14d
	mov	DWORD PTR 16[rbx], ebp
	mov	DWORD PTR 20[rbx], eax
	call	rsnd_mod_name@PLT
	mov	rdi, QWORD PTR 8[rsp]
	mov	r8d, r15d
	mov	ecx, r14d
	mov	edx, eax
	lea	rsi, .LC3[rip]
	call	dev_dbg@PLT
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rdi, QWORD PTR 8[rsp]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L24:
	mov	rdi, QWORD PTR 8[rsp]
	lea	rsi, .LC2[rip]
	call	dev_err@PLT
	mov	eax, DWORD PTR EIO[rip]
	neg	eax
	jmp	.L1
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	rsnd_ssi_master_clk_start, .-rsnd_ssi_master_clk_start
	.comm	SWSD,4,4
	.comm	SCKD,4,4
	.comm	FORCE,4,4
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.comm	CONT,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_ssi.c_rsnd_ssi_master_clk_start.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"SSI parent/child should use same rate\012\000"
	.align	2
.LC1:
	.ascii	"SSI parent/child should use same chan\012\000"
	.align	2
.LC2:
	.ascii	"unsupported clock rate\012\000"
	.align	2
.LC3:
	.ascii	"%s outputs %d chan %u Hz\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rsnd_ssi_master_clk_start, %function
rsnd_ssi_master_clk_start:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L25
	sub	sp, sp, #16
	mov	r5, r0
	mov	r0, r1
	mov	r4, r1
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	rsnd_io_to_priv
	mov	r7, r0
	bl	rsnd_priv_to_dev
	mov	r10, r0
	mov	r0, r4
	bl	rsnd_io_to_rdai
	mov	r6, r0
	mov	r0, r5
	bl	rsnd_mod_to_ssi
	mov	r8, r0
	mov	r0, r4
	bl	rsnd_runtime_channel_for_ssi
	mov	r9, r0
	mov	r0, r4
	bl	rsnd_io_is_play
	cmp	r0, #0
	mov	r1, r4
	mov	r0, r7
	beq	.L2
	bl	rsnd_src_get_out_rate
	mov	r7, r0
	mov	r0, r6
	bl	rsnd_rdai_is_clk_master
	cmp	r0, #0
	bne	.L4
.L19:
	mov	r0, #0
.L1:
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	bl	rsnd_src_get_in_rate
	mov	r7, r0
	mov	r0, r6
	bl	rsnd_rdai_is_clk_master
	cmp	r0, #0
	beq	.L19
.L4:
	mov	r0, r5
	bl	rsnd_ssi_can_output_clk
	cmp	r0, #0
	beq	.L19
	mov	r1, r4
	mov	r0, r5
	bl	rsnd_ssi_is_multi_slave
	cmp	r0, #0
	bne	.L19
	mov	r0, r4
	bl	rsnd_runtime_is_tdm_split
	cmp	r0, #0
	bne	.L22
.L7:
	mov	r0, r9
	bl	rsnd_channel_normalization
	ldr	r3, [r8]
	mov	r4, r0
	cmp	r3, #0
	ble	.L8
	ldr	r3, [r8, #4]
	cmp	r3, r7
	bne	.L23
	ldr	r3, [r8, #8]
	cmp	r3, r0
	beq	.L19
	mov	r0, r10
	ldr	r1, .L25+4
	bl	dev_err
	ldr	r3, .L25+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L22:
	mov	r0, r4
	bl	rsnd_io_converted_chan
	mov	r9, r0
	b	.L7
.L8:
	mov	r2, r0
	mov	r1, r7
	mov	r0, r6
	add	r3, sp, #8
	bl	rsnd_ssi_clk_query
	subs	r1, r0, #0
	beq	.L24
	mov	r0, r5
	bl	rsnd_adg_ssi_clk_try_start
	cmp	r0, #0
	blt	.L1
	mov	r0, r6
	bl	rsnd_rdai_width_to_swl
	mov	r3, r0
	ldr	r1, .L25+12
	ldr	r0, .L25+16
	ldr	r2, .L25+20
	ldr	r1, [r1]
	ldr	r6, [r0]
	ldr	r2, [r2]
	orr	r6, r6, r1
	orr	r6, r6, r2
	ldr	r0, [sp, #8]
	orr	r6, r6, r3
	bl	CKDV
	ldr	r3, .L25+24
	orr	r6, r6, r0
	ldr	r3, [r3]
	mov	r0, r5
	str	r3, [r8, #16]
	str	r6, [r8, #12]
	str	r7, [r8, #4]
	str	r4, [r8, #8]
	bl	rsnd_mod_name
	mov	r3, r4
	mov	r2, r0
	ldr	r1, .L25+28
	mov	r0, r10
	str	r7, [sp]
	bl	dev_dbg
	b	.L19
.L23:
	mov	r0, r10
	ldr	r1, .L25+32
	bl	dev_err
	ldr	r3, .L25+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L24:
	mov	r0, r10
	ldr	r1, .L25+36
	bl	dev_err
	ldr	r3, .L25+40
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L21:
	bl	__stack_chk_fail
.L26:
	.align	2
.L25:
	.word	.LC4
	.word	.LC1
	.word	EINVAL
	.word	SCKD
	.word	FORCE
	.word	SWSD
	.word	CONT
	.word	.LC3
	.word	.LC0
	.word	.LC2
	.word	EIO
	.size	rsnd_ssi_master_clk_start, .-rsnd_ssi_master_clk_start
	.comm	SWSD,4,4
	.comm	SCKD,4,4
	.comm	FORCE,4,4
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.comm	CONT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
