	.file	"extr_sigmadsp.c_sigmadsp_alloc_control.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sigmadsp_alloc_control, @function
sigmadsp_alloc_control:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, edx
	mov	edx, 32
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	xor	esi, esi
	sub	rsp, 56
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	r13, rsp
	mov	rdi, r13
	call	memset@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	esi, r12d
	mov	QWORD PTR [rsp], rbx
	mov	eax, DWORD PTR SNDRV_CTL_ELEM_IFACE_MIXER[rip]
	mov	DWORD PTR 28[rsp], eax
	mov	eax, DWORD PTR 12[rbx]
	mov	DWORD PTR 24[rsp], eax
	mov	eax, DWORD PTR sigmadsp_ctrl_info[rip]
	mov	DWORD PTR 20[rsp], eax
	mov	eax, DWORD PTR sigmadsp_ctrl_get[rip]
	mov	DWORD PTR 16[rsp], eax
	mov	eax, DWORD PTR sigmadsp_ctrl_put[rip]
	mov	DWORD PTR 12[rsp], eax
	mov	eax, DWORD PTR SNDRV_CTL_ELEM_ACCESS_READWRITE[rip]
	mov	DWORD PTR 8[rsp], eax
	call	sigmadsp_samplerate_valid@PLT
	test	eax, eax
	jne	.L2
	mov	eax, DWORD PTR SNDRV_CTL_ELEM_ACCESS_INACTIVE[rip]
	or	DWORD PTR 8[rsp], eax
.L2:
	mov	rsi, rbp
	mov	rdi, r13
	call	snd_ctl_new1@PLT
	mov	rsi, rax
	mov	eax, DWORD PTR ENOMEM[rip]
	neg	eax
	test	rsi, rsi
	je	.L1
	mov	eax, DWORD PTR sigmadsp_control_free[rip]
	mov	DWORD PTR [rsi], eax
	mov	rax, QWORD PTR 0[rbp]
	mov	QWORD PTR [rbx], rsi
	mov	rax, QWORD PTR [rax]
	mov	edi, DWORD PTR [rax]
	call	snd_ctl_add@PLT
.L1:
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L8
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L8:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	sigmadsp_alloc_control, .-sigmadsp_alloc_control
	.comm	sigmadsp_ctrl_put,4,4
	.comm	sigmadsp_ctrl_info,4,4
	.comm	sigmadsp_ctrl_get,4,4
	.comm	sigmadsp_control_free,4,4
	.comm	SNDRV_CTL_ELEM_IFACE_MIXER,4,4
	.comm	SNDRV_CTL_ELEM_ACCESS_READWRITE,4,4
	.comm	SNDRV_CTL_ELEM_ACCESS_INACTIVE,4,4
	.comm	ENOMEM,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_sigmadsp.c_sigmadsp_alloc_control.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sigmadsp_alloc_control, %function
sigmadsp_alloc_control:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r1
	ldr	ip, .L10
	ldr	r1, .L10+4
	ldr	r5, .L10+8
	ldr	r3, .L10+12
	sub	sp, sp, #36
	ldr	lr, [ip]
	ldr	r3, [r3]
	ldr	ip, [r1]
	mov	r1, r2
	ldr	r2, [r5]
	mov	r5, r0
	ldr	r0, .L10+16
	str	r4, [sp]
	ldr	r0, [r0]
	str	r0, [sp, #28]
	mov	r0,#0
	str	r3, [sp, #24]
	ldr	r3, .L10+20
	ldr	r6, [r4, #8]
	ldr	r3, [r3]
	ldr	r0, [r4, #4]
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	str	lr, [sp, #16]
	str	ip, [sp, #12]
	str	r6, [sp, #20]
	bl	sigmadsp_samplerate_valid
	cmp	r0, #0
	ldreq	r2, .L10+24
	ldreq	r3, [sp, #4]
	ldreq	r2, [r2]
	mov	r1, r5
	orreq	r3, r3, r2
	mov	r0, sp
	streq	r3, [sp, #4]
	bl	snd_ctl_new1
	subs	r1, r0, #0
	beq	.L8
	ldr	r2, [r5]
	ldr	r3, .L10+28
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r0, [r2]
	str	r3, [r1]
	str	r1, [r4]
	bl	snd_ctl_add
.L1:
	ldr	r3, .L10+16
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L8:
	ldr	r3, .L10+32
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	sigmadsp_ctrl_info
	.word	sigmadsp_ctrl_get
	.word	sigmadsp_ctrl_put
	.word	SNDRV_CTL_ELEM_IFACE_MIXER
	.word	.LC0
	.word	SNDRV_CTL_ELEM_ACCESS_READWRITE
	.word	SNDRV_CTL_ELEM_ACCESS_INACTIVE
	.word	sigmadsp_control_free
	.word	ENOMEM
	.size	sigmadsp_alloc_control, .-sigmadsp_alloc_control
	.comm	sigmadsp_ctrl_put,4,4
	.comm	sigmadsp_ctrl_info,4,4
	.comm	sigmadsp_ctrl_get,4,4
	.comm	sigmadsp_control_free,4,4
	.comm	SNDRV_CTL_ELEM_IFACE_MIXER,4,4
	.comm	SNDRV_CTL_ELEM_ACCESS_READWRITE,4,4
	.comm	SNDRV_CTL_ELEM_ACCESS_INACTIVE,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
