	.file	"extr_pcxhr_hwdep.c_pcxhr_config_pipes.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pcxhr_config_pipes, @function
pcxhr_config_pipes:
.LFB0:
	.cfi_startproc
	endbr64
	mov	ecx, DWORD PTR [rdi]
	test	ecx, ecx
	jle	.L13
	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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	xor	ebp, ebp
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
.L8:
	mov	rax, QWORD PTR 8[r15]
	mov	r13, QWORD PTR [rax+r12*8]
	mov	edx, DWORD PTR 0[r13]
	test	edx, edx
	jne	.L18
.L3:
	mov	eax, DWORD PTR 4[r13]
	test	eax, eax
	jle	.L6
	xor	ebx, ebx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rax, QWORD PTR 8[r13]
	mov	QWORD PTR [rax+rbx*8], r14
	add	rbx, 1
	cmp	DWORD PTR 4[r13], ebx
	jle	.L6
.L7:
	mov	rax, QWORD PTR 16[r13]
	lea	ecx, 0[rbp+rbx]
	mov	edx, 1
	mov	rdi, r15
	lea	r14, [rax+rbx*4]
	mov	rsi, r14
	call	pcxhr_dsp_allocate_pipe@PLT
	test	eax, eax
	je	.L19
.L1:
	add	rsp, 8
	.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
.L6:
	.cfi_restore_state
	add	r12, 1
	add	ebp, 2
	cmp	DWORD PTR [r15], r12d
	jg	.L8
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	lea	rbx, 32[r13]
	xor	edx, edx
	lea	ecx, [r12+r12]
	mov	rdi, r15
	mov	rsi, rbx
	call	pcxhr_dsp_allocate_pipe@PLT
	test	eax, eax
	jne	.L1
	mov	eax, DWORD PTR 0[r13]
	test	eax, eax
	jle	.L3
	mov	rdx, QWORD PTR 24[r13]
	lea	ecx, -1[rax]
	lea	rax, 8[rdx]
	lea	rcx, [rax+rcx*8]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L20:
	add	rax, 8
.L5:
	mov	QWORD PTR [rdx], rbx
	mov	rdx, rax
	cmp	rax, rcx
	jne	.L20
	jmp	.L3
.L13:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	xor	eax, eax
	ret
	.cfi_endproc
.LFE0:
	.size	pcxhr_config_pipes, .-pcxhr_config_pipes
	.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_pcxhr_hwdep.c_pcxhr_config_pipes.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pcxhr_config_pipes, %function
pcxhr_config_pipes:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	cmp	r3, #0
	ble	.L16
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r8, #0
	mov	r7, r0
	mov	r9, r8
.L8:
	ldr	r3, [r7, #4]
	ldr	r6, [r3, r9, lsl #2]
	ldr	r3, [r6]
	cmp	r3, #0
	bne	.L21
.L3:
	ldr	r3, [r6, #4]
	cmp	r3, #0
	ble	.L6
	mov	r4, #0
.L7:
	ldr	r5, [r6, #12]
	mov	r2, #1
	add	r5, r5, r4, lsl #2
	mov	r1, r5
	mov	r0, r7
	add	r3, r4, r8
	bl	pcxhr_dsp_allocate_pipe
	cmp	r0, #0
	popne	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r2, [r6, #8]
	ldr	r3, [r6, #4]
	str	r5, [r2, r4, lsl #2]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L7
.L6:
	ldr	r3, [r7]
	add	r9, r9, #1
	cmp	r3, r9
	add	r8, r8, #2
	bgt	.L8
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L21:
	add	r4, r6, #20
	mov	r1, r4
	mov	r2, #0
	mov	r0, r7
	lsl	r3, r9, #1
	bl	pcxhr_dsp_allocate_pipe
	cmp	r0, #0
	popne	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r2, [r6]
	cmp	r2, #0
	ble	.L3
	ldr	r3, [r6, #16]
	sub	r3, r3, #4
	add	r2, r3, r2, lsl #2
.L5:
	str	r4, [r3, #4]!
	cmp	r3, r2
	bne	.L5
	b	.L3
.L16:
	mov	r0, #0
	bx	lr
	.size	pcxhr_config_pipes, .-pcxhr_config_pipes
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
