	.file	"extr_dsp_spos_scb_lib.c_cs46xx_add_record_source.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	cs46xx_add_record_source
	.type	cs46xx_add_record_source, @function
cs46xx_add_record_source:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, QWORD PTR [rdi]
	xor	edi, edi
	cmp	QWORD PTR 8[rbx], 0
	sete	dil
	call	snd_BUG_ON@PLT
	test	rax, rax
	jne	.L2
	mov	r8, QWORD PTR 8[rbx]
	mov	r9d, DWORD PTR SCB_ON_PARENT_SUBLIST_SCB[rip]
	mov	rsi, QWORD PTR [r8]
	cmp	rsi, QWORD PTR [rbx]
	jne	.L7
.L4:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rcx, r14
	mov	edx, r13d
	mov	rsi, r12
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	cs46xx_dsp_create_pcm_serial_input_scb@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rdi, rbp
	call	find_next_free_scb@PLT
	mov	r9d, DWORD PTR SCB_ON_PARENT_NEXT_SCB[rip]
	mov	r8, rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	pop	rbx
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	cs46xx_add_record_source, .-cs46xx_add_record_source
	.comm	SCB_ON_PARENT_SUBLIST_SCB,4,4
	.comm	SCB_ON_PARENT_NEXT_SCB,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_dsp_spos_scb_lib.c_cs46xx_add_record_source.c"
	.text
	.align	2
	.global	cs46xx_add_record_source
	.syntax unified
	.arm
	.fpu softvfp
	.type	cs46xx_add_record_source, %function
cs46xx_add_record_source:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r8, [r0]
	mov	r4, r0
	ldr	r0, [r8, #4]
	sub	sp, sp, #8
	clz	r0, r0
	lsr	r0, r0, #5
	mov	r7, r1
	mov	r6, r2
	mov	r5, r3
	bl	snd_BUG_ON
	cmp	r0, #0
	movne	r0, #0
	bne	.L1
	ldr	r0, [r8, #4]
	ldr	r3, [r8]
	ldr	r1, [r0]
	cmp	r1, r3
	bne	.L8
	ldr	r3, .L9
	ldr	r3, [r3]
.L4:
	stm	sp, {r0, r3}
	mov	r2, r6
	mov	r3, r7
	mov	r1, r5
	mov	r0, r4
	bl	cs46xx_dsp_create_pcm_serial_input_scb
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	mov	r0, r4
	bl	find_next_free_scb
	ldr	r3, .L9+4
	ldr	r3, [r3]
	b	.L4
.L10:
	.align	2
.L9:
	.word	SCB_ON_PARENT_SUBLIST_SCB
	.word	SCB_ON_PARENT_NEXT_SCB
	.size	cs46xx_add_record_source, .-cs46xx_add_record_source
	.comm	SCB_ON_PARENT_SUBLIST_SCB,4,4
	.comm	SCB_ON_PARENT_NEXT_SCB,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
