	.file	"extr_emu10k1x.c_snd_emu10k1x_pcm.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"emu10k1x"
.LC1:
	.string	"EMU10K1X Front"
.LC2:
	.string	"EMU10K1X Rear"
.LC3:
	.string	"EMU10K1X Center/LFE"
	.text
	.p2align 4
	.type	snd_emu10k1x_pcm, @function
snd_emu10k1x_pcm:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	edx, esi
	mov	ecx, 1
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, esi
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR 16[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	test	esi, esi
	mov	r9, rsp
	lea	rsi, .LC0[rip]
	sete	r8b
	movzx	r8d, r8b
	call	snd_pcm_new@PLT
	test	eax, eax
	js	.L1
	mov	rdi, QWORD PTR [rsp]
	mov	QWORD PTR 16[rdi], rbp
	test	ebx, ebx
	je	.L3
	lea	eax, -1[rbx]
	cmp	eax, 1
	ja	.L4
	mov	esi, DWORD PTR SNDRV_PCM_STREAM_PLAYBACK[rip]
	lea	rdx, snd_emu10k1x_playback_ops[rip]
	call	snd_pcm_set_ops@PLT
	mov	rdi, QWORD PTR [rsp]
	mov	QWORD PTR 8[rdi], 0
	cmp	ebx, 1
	jne	.L14
	mov	edi, DWORD PTR [rdi]
	lea	rsi, .LC2[rip]
	call	strcpy@PLT
	mov	r12, QWORD PTR surround_map[rip]
	mov	rdi, QWORD PTR [rsp]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	mov	esi, DWORD PTR SNDRV_PCM_STREAM_PLAYBACK[rip]
	lea	rdx, snd_emu10k1x_playback_ops[rip]
	call	snd_pcm_set_ops@PLT
	mov	esi, DWORD PTR SNDRV_PCM_STREAM_CAPTURE[rip]
	mov	rdi, QWORD PTR [rsp]
	lea	rdx, snd_emu10k1x_capture_ops[rip]
	call	snd_pcm_set_ops@PLT
	mov	rax, QWORD PTR [rsp]
	lea	rsi, .LC1[rip]
	mov	QWORD PTR 8[rax], 0
	mov	edi, DWORD PTR [rax]
	call	strcpy@PLT
	mov	r12, QWORD PTR snd_pcm_std_chmaps[rip]
	mov	rdi, QWORD PTR [rsp]
.L7:
	mov	QWORD PTR 8[rbp], rdi
	mov	edi, DWORD PTR 0[rbp]
	call	snd_dma_pci_data@PLT
	mov	esi, DWORD PTR SNDRV_DMA_TYPE_DEV[rip]
	mov	rdi, QWORD PTR [rsp]
	mov	r8d, 32768
	mov	edx, eax
	mov	ecx, 32768
	call	snd_pcm_lib_preallocate_pages_for_all@PLT
	mov	rdi, QWORD PTR [rsp]
	xor	r9d, r9d
	mov	rdx, r12
	mov	esi, DWORD PTR SNDRV_PCM_STREAM_PLAYBACK[rip]
	mov	r8d, 4
	mov	ecx, 2
	call	snd_pcm_add_chmap_ctls@PLT
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L15
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	cmp	ebx, 2
	jne	.L12
	mov	edi, DWORD PTR [rdi]
	lea	rsi, .LC3[rip]
	call	strcpy@PLT
	mov	r12, QWORD PTR clfe_map[rip]
	mov	rdi, QWORD PTR [rsp]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	mov	QWORD PTR 8[rdi], 0
.L12:
	xor	r12d, r12d
	jmp	.L7
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	snd_emu10k1x_pcm, .-snd_emu10k1x_pcm
	.comm	surround_map,8,8
	.comm	snd_pcm_std_chmaps,8,8
	.comm	snd_emu10k1x_playback_ops,4,4
	.comm	snd_emu10k1x_capture_ops,4,4
	.comm	clfe_map,8,8
	.comm	SNDRV_PCM_STREAM_PLAYBACK,4,4
	.comm	SNDRV_PCM_STREAM_CAPTURE,4,4
	.comm	SNDRV_DMA_TYPE_DEV,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_emu10k1x.c_snd_emu10k1x_pcm.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"emu10k1x\000"
	.align	2
.LC1:
	.ascii	"EMU10K1X Front\000"
	.align	2
.LC2:
	.ascii	"EMU10K1X Rear\000"
	.align	2
.LC3:
	.ascii	"EMU10K1X Center/LFE\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_emu10k1x_pcm, %function
snd_emu10k1x_pcm:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	clz	r3, r1
	push	{r4, r5, r6, r7, lr}
	mov	r4, r1
	sub	sp, sp, #20
	lsr	r3, r3, #5
	str	r3, [sp]
	ldr	ip, .L15
	add	r1, sp, #8
	mov	r6, r0
	mov	r2, r4
	ldr	r0, [r0, #8]
	mov	r3, #1
	str	r1, [sp, #4]
	ldr	r1, .L15+4
	ldr	ip, [ip]
	str	ip, [sp, #12]
	mov	ip,#0
	bl	snd_pcm_new
	cmp	r0, #0
	blt	.L1
	ldr	r5, [sp, #8]
	cmp	r4, #0
	str	r6, [r5, #8]
	beq	.L3
	sub	r3, r4, #1
	cmp	r3, #1
	bhi	.L4
	ldr	r7, .L15+8
	mov	r0, r5
	ldr	r1, [r7]
	ldr	r2, .L15+12
	bl	snd_pcm_set_ops
	mov	r3, #0
	ldr	r5, [sp, #8]
	cmp	r4, #1
	str	r3, [r5, #4]
	bne	.L13
	ldr	r0, [r5]
	ldr	r1, .L15+16
	bl	strcpy
	ldr	r3, .L15+20
	ldr	r5, [sp, #8]
	ldr	r4, [r3]
	b	.L7
.L3:
	ldr	r7, .L15+8
	mov	r0, r5
	ldr	r1, [r7]
	ldr	r2, .L15+12
	bl	snd_pcm_set_ops
	ldr	r3, .L15+24
	ldr	r2, .L15+28
	ldr	r1, [r3]
	ldr	r0, [sp, #8]
	bl	snd_pcm_set_ops
	ldr	r3, [sp, #8]
	ldr	r1, .L15+32
	str	r4, [r3, #4]
	ldr	r0, [r3]
	bl	strcpy
	ldr	r3, .L15+36
	ldr	r5, [sp, #8]
	ldr	r4, [r3]
.L7:
	ldr	r3, .L15+40
	ldr	r0, [r6]
	str	r5, [r6, #4]
	ldr	r6, [r3]
	bl	snd_dma_pci_data
	mov	r3, #32768
	mov	r2, r0
	mov	r1, r6
	str	r3, [sp]
	mov	r0, r5
	bl	snd_pcm_lib_preallocate_pages_for_all
	mov	r0, #0
	mov	r3, #4
	str	r0, [sp, #4]
	str	r3, [sp]
	mov	r2, r4
	mov	r3, #2
	ldr	r1, [r7]
	ldr	r0, [sp, #8]
	bl	snd_pcm_add_chmap_ctls
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L13:
	cmp	r4, #2
	movne	r4, r3
	bne	.L7
	ldr	r0, [r5]
	ldr	r1, .L15+44
	bl	strcpy
	ldr	r3, .L15+48
	ldr	r5, [sp, #8]
	ldr	r4, [r3]
	b	.L7
.L4:
	mov	r4, #0
	ldr	r7, .L15+8
	str	r4, [r5, #4]
	b	.L7
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC4
	.word	.LC0
	.word	SNDRV_PCM_STREAM_PLAYBACK
	.word	snd_emu10k1x_playback_ops
	.word	.LC2
	.word	surround_map
	.word	SNDRV_PCM_STREAM_CAPTURE
	.word	snd_emu10k1x_capture_ops
	.word	.LC1
	.word	snd_pcm_std_chmaps
	.word	SNDRV_DMA_TYPE_DEV
	.word	.LC3
	.word	clfe_map
	.size	snd_emu10k1x_pcm, .-snd_emu10k1x_pcm
	.comm	surround_map,4,4
	.comm	snd_pcm_std_chmaps,4,4
	.comm	snd_emu10k1x_playback_ops,4,4
	.comm	snd_emu10k1x_capture_ops,4,4
	.comm	clfe_map,4,4
	.comm	SNDRV_PCM_STREAM_PLAYBACK,4,4
	.comm	SNDRV_PCM_STREAM_CAPTURE,4,4
	.comm	SNDRV_DMA_TYPE_DEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
