	.file	"extr_skl-messages.c_skl_bind_modules.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"src queue = %d dst queue =%d\n"
	.text
	.p2align 4
	.globl	skl_bind_modules
	.type	skl_bind_modules, @function
skl_bind_modules:
.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
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 48[rdx]
	mov	r15d, DWORD PTR [rax]
	mov	rax, QWORD PTR 48[rsi]
	mov	r14d, DWORD PTR 4[rax]
	call	skl_dump_bind_info@PLT
	mov	rax, QWORD PTR SKL_MODULE_INIT_DONE[rip]
	cmp	QWORD PTR [rbx], rax
	jl	.L1
	cmp	rax, QWORD PTR 0[rbp]
	jle	.L19
.L1:
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L20
	add	rsp, 88
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	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
.L19:
	.cfi_restore_state
	mov	rdi, QWORD PTR 32[rbx]
	mov	edx, r14d
	mov	rsi, rbp
	call	skl_alloc_queue@PLT
	mov	r14d, eax
	test	eax, eax
	js	.L17
	mov	rdi, QWORD PTR 24[rbp]
	mov	edx, r15d
	mov	rsi, rbx
	mov	DWORD PTR 32[rsp], eax
	call	skl_alloc_queue@PLT
	mov	r15d, eax
	test	eax, eax
	js	.L21
	mov	rax, QWORD PTR SKL_MODULE_TYPE_COPIER[rip]
	cmp	QWORD PTR 8[rbx], rax
	jne	.L9
	test	r14d, r14d
	jne	.L5
.L9:
	mov	edi, DWORD PTR 4[r12]
	mov	edx, DWORD PTR 32[rsp]
	mov	ecx, r15d
	lea	rsi, .LC0[rip]
	mov	DWORD PTR 36[rsp], r15d
	call	dev_dbg@PLT
	mov	rax, QWORD PTR 40[rbx]
	mov	rdi, r12
	lea	rsi, 32[rsp]
	mov	DWORD PTR 40[rsp], 1
	mov	QWORD PTR 52[rsp], rax
	mov	rax, QWORD PTR 40[rbp]
	mov	QWORD PTR 44[rsp], rax
	call	skl_ipc_bind_unbind@PLT
	mov	r13d, eax
	test	eax, eax
	je	.L22
.L8:
	mov	rdi, QWORD PTR 32[rbx]
	mov	esi, r14d
	call	skl_free_queue@PLT
	mov	rdi, QWORD PTR 24[rbp]
	mov	esi, r15d
	call	skl_free_queue@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rdi, QWORD PTR 32[rbx]
	mov	esi, r14d
	call	skl_free_queue@PLT
	.p2align 4,,10
	.p2align 3
.L17:
	mov	r13d, DWORD PTR EINVAL[rip]
	neg	r13d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rax, QWORD PTR SKL_MODULE_BIND_DONE[rip]
	mov	rdx, QWORD PTR 32[rbx]
	mov	rcx, QWORD PTR SKL_PIN_BIND_DONE[rip]
	mov	QWORD PTR [rbx], rax
	movsx	rax, r14d
	mov	QWORD PTR [rdx+rax*8], rcx
	mov	rdx, QWORD PTR 24[rbp]
	movsx	rax, r15d
	mov	rcx, QWORD PTR SKL_PIN_BIND_DONE[rip]
	mov	QWORD PTR [rdx+rax*8], rcx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR 48[rbx]
	mov	r13, QWORD PTR 16[rbx]
	lea	r9, 20[rsp]
	lea	rdi, 28[rsp]
	mov	QWORD PTR 8[rsp], r9
	sal	r13, 4
	add	r13, QWORD PTR 8[rax]
	mov	DWORD PTR 20[rsp], r14d
	mov	rsi, QWORD PTR 8[r13]
	call	fill_pin_params@PLT
	mov	rdx, QWORD PTR 0[r13]
	movsx	rax, r14d
	lea	rdi, 24[rsp]
	lea	rsi, [rdx+rax*4]
	call	fill_pin_params@PLT
	mov	r9, QWORD PTR 8[rsp]
	mov	r8, rbx
	mov	rdi, r12
	mov	ecx, DWORD PTR CPR_SINK_FMT_PARAM_ID[rip]
	mov	edx, 12
	mov	rsi, r9
	call	skl_set_module_params@PLT
	mov	r13d, eax
	test	eax, eax
	jns	.L9
	jmp	.L8
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	skl_bind_modules, .-skl_bind_modules
	.comm	SKL_PIN_BIND_DONE,8,8
	.comm	SKL_MODULE_TYPE_COPIER,8,8
	.comm	SKL_MODULE_INIT_DONE,8,8
	.comm	SKL_MODULE_BIND_DONE,8,8
	.comm	EINVAL,4,4
	.comm	CPR_SINK_FMT_PARAM_ID,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_skl-messages.c_skl_bind_modules.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"src queue = %d dst queue =%d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	skl_bind_modules
	.syntax unified
	.arm
	.fpu softvfp
	.type	skl_bind_modules, %function
skl_bind_modules:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r1
	ldr	r3, [r2, #28]
	ldr	ip, [r1, #28]
	ldr	lr, .L19
	sub	sp, sp, #56
	mov	r5, r2
	ldr	r8, [r3]
	ldr	lr, [lr]
	str	lr, [sp, #52]
	mov	lr,#0
	mov	r6, r0
	ldr	r7, [ip, #4]
	bl	skl_dump_bind_info
	ldr	r3, .L19+4
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L11
	ldr	r2, [r5]
	cmp	r3, r2
	ble	.L15
.L11:
	mov	r7, #0
.L1:
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	mov	r0, r7
	add	sp, sp, #56
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L15:
	mov	r2, r7
	mov	r1, r5
	ldr	r0, [r4, #16]
	bl	skl_alloc_queue
	subs	r9, r0, #0
	blt	.L13
	mov	r2, r8
	mov	r1, r4
	ldr	r0, [r5, #12]
	str	r9, [sp, #24]
	bl	skl_alloc_queue
	subs	r8, r0, #0
	blt	.L17
	ldr	r2, .L19+8
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	cmp	r9, #0
	sub	r3, r3, r2
	clz	r3, r3
	lsr	r3, r3, #5
	moveq	r3, #0
	cmp	r3, #0
	bne	.L5
.L8:
	mov	r3, r8
	ldr	r2, [sp, #24]
	ldr	r1, .L19+12
	ldr	r0, [r6, #4]
	str	r8, [sp, #28]
	bl	dev_dbg
	mov	r1, #1
	ldr	lr, [r4, #24]
	ldr	ip, [r4, #20]
	ldr	r2, [r5, #24]
	ldr	r3, [r5, #20]
	str	r1, [sp, #32]
	mov	r0, r6
	add	r1, sp, #24
	str	lr, [sp, #48]
	str	ip, [sp, #44]
	str	r2, [sp, #40]
	str	r3, [sp, #36]
	bl	skl_ipc_bind_unbind
	subs	r7, r0, #0
	beq	.L18
.L7:
	mov	r1, r9
	ldr	r0, [r4, #16]
	bl	skl_free_queue
	mov	r1, r8
	ldr	r0, [r5, #12]
	bl	skl_free_queue
	b	.L1
.L17:
	mov	r1, r9
	ldr	r0, [r4, #16]
	bl	skl_free_queue
.L13:
	ldr	r3, .L19+16
	ldr	r7, [r3]
	rsb	r7, r7, #0
	b	.L1
.L18:
	ldr	r3, .L19+20
	ldr	r2, .L19+24
	ldr	r0, [r3]
	ldr	r2, [r2]
	ldr	r1, [r4, #16]
	str	r2, [r4]
	ldr	r2, [r5, #12]
	str	r0, [r1, r9, lsl #2]
	ldr	r3, [r3]
	str	r3, [r2, r8, lsl #2]
	b	.L1
.L5:
	ldr	r3, [r4, #28]
	ldr	r10, [r4, #8]
	ldr	r7, [r3, #8]
	add	r0, sp, #20
	add	r3, r7, r10, lsl #3
	ldr	r1, [r3, #4]
	str	r9, [sp, #12]
	bl	fill_pin_params
	ldr	r1, [r7, r10, lsl #3]
	add	r0, sp, #16
	add	r1, r1, r9, lsl #2
	bl	fill_pin_params
	ldr	r3, .L19+28
	str	r4, [sp]
	mov	r2, #12
	mov	r0, r6
	ldr	r3, [r3]
	add	r1, sp, #12
	bl	skl_set_module_params
	subs	r7, r0, #0
	bge	.L8
	b	.L7
.L16:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	.LC1
	.word	SKL_MODULE_INIT_DONE
	.word	SKL_MODULE_TYPE_COPIER
	.word	.LC0
	.word	EINVAL
	.word	SKL_PIN_BIND_DONE
	.word	SKL_MODULE_BIND_DONE
	.word	CPR_SINK_FMT_PARAM_ID
	.size	skl_bind_modules, .-skl_bind_modules
	.comm	SKL_PIN_BIND_DONE,4,4
	.comm	SKL_MODULE_TYPE_COPIER,4,4
	.comm	SKL_MODULE_INIT_DONE,4,4
	.comm	SKL_MODULE_BIND_DONE,4,4
	.comm	EINVAL,4,4
	.comm	CPR_SINK_FMT_PARAM_ID,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
