	.file	"extr_ymfpci_main.c_snd_ymfpci_pcm_init_voice.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	snd_ymfpci_pcm_init_voice, @function
snd_ymfpci_pcm_init_voice:
.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
	mov	r13d, esi
	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	ebp, ecx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	mov	edx, esi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR 48[rdi]
	mov	edi, DWORD PTR [rbx]
	mov	r15, QWORD PTR [rax+rdx*8]
	call	snd_ymfpci_calc_delta@PLT
	mov	edi, DWORD PTR [rbx]
	mov	DWORD PTR 8[rsp], eax
	call	snd_ymfpci_calc_lpfQ@PLT
	mov	edi, DWORD PTR [rbx]
	mov	DWORD PTR 12[rsp], eax
	call	snd_ymfpci_calc_lpfK@PLT
	xor	edi, edi
	test	r15, r15
	sete	dil
	mov	r14d, eax
	call	snd_BUG_ON@PLT
	test	rax, rax
	jne	.L1
	mov	eax, DWORD PTR 4[rbx]
	mov	DWORD PTR 4[rsp], 1
	mov	DWORD PTR [rsp], eax
	cmp	eax, 1
	je	.L3
	mov	eax, r13d
	and	eax, 1
	mov	ecx, eax
	mov	DWORD PTR 4[rsp], eax
	xor	ecx, 1
	mov	DWORD PTR [rsp], ecx
.L3:
	test	ebp, ebp
	jne	.L60
	mov	edi, 1073741824
	call	cpu_to_le32@PLT
	mov	edi, 1073741824
	mov	DWORD PTR 24[rsp], eax
	call	cpu_to_le32@PLT
	mov	DWORD PTR 28[rsp], eax
.L5:
	mov	rax, QWORD PTR 32[r12]
	xor	esi, esi
	xor	ebp, ebp
	lea	rdi, 12[rax]
	call	spin_lock_irqsave@PLT
	cmp	DWORD PTR 4[rbx], 2
	mov	edi, DWORD PTR 12[rbx]
	sete	bpl
	sal	ebp, 16
	call	snd_pcm_format_width@PLT
	cmp	eax, 8
	je	.L61
	mov	rdi, QWORD PTR 32[r12]
	mov	edx, DWORD PTR 4[rbx]
	mov	rcx, QWORD PTR [r15]
	mov	rsi, QWORD PTR PCI_DEVICE_ID_YAMAHA_754[rip]
	movsx	rax, DWORD PTR 8[rdi]
	cmp	QWORD PTR [rdi], rsi
	je	.L62
.L8:
	cmp	rcx, rax
	je	.L63
.L23:
	cmp	edx, 2
	je	.L64
.L10:
	add	rdi, 12
	xor	esi, esi
	mov	r13, r12
	mov	r12, rbx
	call	spin_unlock_irqrestore@PLT
	mov	QWORD PTR 16[rsp], r15
	xor	r9d, r9d
	mov	rbx, r9
.L21:
	mov	rax, QWORD PTR 16[rsp]
	xor	esi, esi
	mov	edx, 112
	mov	r15, QWORD PTR 8[rax]
	add	r15, rbx
	mov	rdi, r15
	call	memset@PLT
	mov	edi, ebp
	call	cpu_to_le32@PLT
	mov	edi, DWORD PTR 8[r12]
	mov	QWORD PTR 104[r15], rax
	call	cpu_to_le32@PLT
	mov	edi, DWORD PTR 4[r13]
	mov	QWORD PTR 96[r15], rax
	call	cpu_to_le32@PLT
	mov	edi, DWORD PTR 12[rsp]
	mov	QWORD PTR 88[r15], rax
	call	cpu_to_le32@PLT
	mov	edi, DWORD PTR 8[rsp]
	mov	QWORD PTR 80[r15], rax
	call	cpu_to_le32@PLT
	mov	edi, r14d
	mov	QWORD PTR 64[r15], rax
	mov	QWORD PTR 72[r15], rax
	call	cpu_to_le32@PLT
	mov	edi, 1073741824
	mov	QWORD PTR 48[r15], rax
	mov	QWORD PTR 56[r15], rax
	call	cpu_to_le32@PLT
	cmp	QWORD PTR 24[r13], 0
	mov	QWORD PTR 32[r15], rax
	mov	QWORD PTR 40[r15], rax
	je	.L12
	mov	r9d, DWORD PTR [rsp]
	test	r9d, r9d
	je	.L13
	mov	eax, DWORD PTR 24[rsp]
	mov	DWORD PTR 4[r15], eax
	mov	DWORD PTR [r15], eax
.L13:
	mov	r8d, DWORD PTR 4[rsp]
	test	r8d, r8d
	je	.L12
	mov	eax, DWORD PTR 28[rsp]
	mov	DWORD PTR 12[r15], eax
	mov	DWORD PTR 8[r15], eax
.L12:
	cmp	QWORD PTR 16[r13], 0
	je	.L16
	mov	edi, DWORD PTR 8[r13]
	test	edi, edi
	jne	.L17
	mov	esi, DWORD PTR [rsp]
	test	esi, esi
	je	.L18
	mov	eax, DWORD PTR 24[rsp]
	mov	DWORD PTR 20[r15], eax
	mov	DWORD PTR 16[r15], eax
.L18:
	mov	ecx, DWORD PTR 4[rsp]
	test	ecx, ecx
	je	.L16
	mov	eax, DWORD PTR 28[rsp]
	mov	DWORD PTR 28[r15], eax
	mov	DWORD PTR 24[r15], eax
	.p2align 4,,10
	.p2align 3
.L16:
	add	rbx, 112
	cmp	rbx, 224
	jne	.L21
.L1:
	add	rsp, 40
	.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
.L60:
	.cfi_restore_state
	mov	rax, QWORD PTR 32[r12]
	mov	rdx, QWORD PTR 40[r12]
	mov	rax, QWORD PTR 16[rax]
	mov	rdx, QWORD PTR [rdx]
	mov	edi, DWORD PTR [rax+rdx*8]
	sal	edi, 15
	call	cpu_to_le32@PLT
	mov	rdx, QWORD PTR 40[r12]
	mov	DWORD PTR 24[rsp], eax
	mov	rax, QWORD PTR 32[r12]
	mov	rdx, QWORD PTR [rdx]
	mov	rax, QWORD PTR 16[rax]
	mov	edi, DWORD PTR 4[rax+rdx*8]
	sal	edi, 15
	call	cpu_to_le32@PLT
	mov	DWORD PTR 28[rsp], eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L17:
	mov	edx, DWORD PTR [rsp]
	test	edx, edx
	je	.L20
	mov	eax, DWORD PTR 24[rsp]
	mov	DWORD PTR 28[r15], eax
	mov	DWORD PTR 24[r15], eax
.L20:
	mov	eax, DWORD PTR 4[rsp]
	test	eax, eax
	je	.L16
	mov	eax, DWORD PTR 28[rsp]
	add	rbx, 112
	mov	DWORD PTR 20[r15], eax
	mov	DWORD PTR 16[r15], eax
	cmp	rbx, 224
	jne	.L21
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L61:
	mov	rdi, QWORD PTR 32[r12]
	mov	rcx, QWORD PTR [r15]
	or	ebp, -2147483648
	mov	edx, DWORD PTR 4[rbx]
	movsx	rax, DWORD PTR 8[rdi]
	cmp	rcx, rax
	jne	.L23
.L63:
	mov	DWORD PTR 8[rdi], -1
	mov	DWORD PTR [r12], 0
	cmp	edx, 2
	jne	.L10
	.p2align 4,,10
	.p2align 3
.L64:
	mov	eax, ebp
	mov	ecx, r13d
	or	eax, 1
	and	ecx, 1
	cmovne	ebp, eax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L62:
	cmp	DWORD PTR [rbx], 44100
	jne	.L8
	cmp	edx, 2
	jne	.L8
	test	r13d, r13d
	jne	.L8
	cmp	eax, -1
	je	.L9
	cmp	rax, rcx
	jne	.L10
.L9:
	mov	DWORD PTR 8[rdi], ecx
	or	ebp, 268435456
	mov	DWORD PTR [r12], 1
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	snd_ymfpci_pcm_init_voice, .-snd_ymfpci_pcm_init_voice
	.comm	PCI_DEVICE_ID_YAMAHA_754,8,8
	.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_ymfpci_main.c_snd_ymfpci_pcm_init_voice.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_ymfpci_pcm_init_voice, %function
snd_ymfpci_pcm_init_voice:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r2
	ldr	r2, [r0, #28]
	sub	sp, sp, #28
	mov	r4, r0
	ldr	r0, [r5]
	ldr	r10, [r2, r1, lsl #2]
	mov	r7, r1
	mov	fp, r3
	bl	snd_ymfpci_calc_delta
	mov	r3, r0
	ldr	r0, [r5]
	str	r3, [sp, #8]
	bl	snd_ymfpci_calc_lpfQ
	mov	r8, r0
	ldr	r0, [r5]
	bl	snd_ymfpci_calc_lpfK
	mov	r9, r0
	clz	r0, r10
	lsr	r0, r0, #5
	bl	snd_BUG_ON
	subs	r6, r0, #0
	bne	.L1
	ldr	r3, [r5, #4]
	cmp	r3, #1
	str	r3, [sp, #4]
	andne	r3, r7, #1
	ldreq	r3, [sp, #4]
	eorne	r2, r3, #1
	strne	r2, [sp, #4]
	cmp	fp, #0
	str	r3, [sp, #12]
	bne	.L57
	mov	r0, #1073741824
	bl	cpu_to_le32
	mov	r3, r0
	mov	r0, #1073741824
	str	r3, [sp, #16]
	bl	cpu_to_le32
	str	r0, [sp, #20]
.L5:
	ldr	r0, [r4, #20]
	mov	r1, #0
	add	r0, r0, #8
	bl	spin_lock_irqsave
	ldr	r3, [r5, #4]
	ldr	r0, [r5, #12]
	cmp	r3, #2
	moveq	r6, #65536
	bl	snd_pcm_format_width
	cmp	r0, #8
	ldr	r0, [r4, #20]
	beq	.L58
	ldr	r3, .L62
	ldr	r1, [r0]
	ldr	r3, [r3]
	ldr	r2, [r0, #4]
	cmp	r1, r3
	ldr	r3, [r5, #4]
	ldr	r1, [r10]
	beq	.L59
.L8:
	cmp	r2, r1
	beq	.L60
.L23:
	cmp	r3, #2
	beq	.L61
.L10:
	mov	r1, #0
	add	r0, r0, #8
	bl	spin_unlock_irqrestore
	mov	r3, r5
	mov	fp, #0
	mov	r5, r10
	mov	r10, r3
.L21:
	ldr	r7, [r5, #4]
	mov	r1, #0
	add	r7, r7, fp
	mov	r2, #72
	mov	r0, r7
	bl	memset
	mov	r0, r6
	bl	cpu_to_le32
	mov	r2, r0
	ldr	r0, [r10, #8]
	str	r2, [r7, #68]
	bl	cpu_to_le32
	mov	r2, r0
	ldr	r0, [r4, #4]
	str	r2, [r7, #64]
	bl	cpu_to_le32
	mov	r2, r0
	mov	r0, r8
	str	r2, [r7, #60]
	bl	cpu_to_le32
	mov	r2, r0
	ldr	r0, [sp, #8]
	str	r2, [r7, #56]
	bl	cpu_to_le32
	mov	r2, r0
	mov	r0, r9
	str	r2, [r7, #48]
	str	r2, [r7, #52]
	bl	cpu_to_le32
	mov	r2, r0
	mov	r0, #1073741824
	str	r2, [r7, #40]
	str	r2, [r7, #44]
	bl	cpu_to_le32
	ldr	r2, [r4, #16]
	str	r0, [r7, #32]
	cmp	r2, #0
	str	r0, [r7, #36]
	beq	.L12
	ldr	r3, [sp, #4]
	cmp	r3, #0
	ldrne	r3, [sp, #16]
	strne	r3, [r7, #4]
	strne	r3, [r7]
	ldr	r3, [sp, #12]
	cmp	r3, #0
	ldrne	r3, [sp, #20]
	strne	r3, [r7, #12]
	strne	r3, [r7, #8]
.L12:
	ldr	r2, [r4, #12]
	cmp	r2, #0
	beq	.L16
	ldr	r2, [r4, #8]
	ldr	r3, [sp, #4]
	cmp	r2, #0
	bne	.L17
	cmp	r3, #0
	ldrne	r3, [sp, #16]
	strne	r3, [r7, #20]
	strne	r3, [r7, #16]
	ldr	r3, [sp, #12]
	cmp	r3, #0
	ldrne	r3, [sp, #20]
	strne	r3, [r7, #28]
	strne	r3, [r7, #24]
.L16:
	add	fp, fp, #72
	cmp	fp, #144
	bne	.L21
.L1:
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L57:
	ldr	r3, [r4, #20]
	ldr	r2, [r4, #24]
	ldr	r3, [r3, #12]
	ldr	r2, [r2]
	ldr	r0, [r3, r2, lsl #3]
	lsl	r0, r0, #15
	bl	cpu_to_le32
	ldr	r3, [r4, #20]
	ldr	r2, [r4, #24]
	ldr	r3, [r3, #12]
	ldr	r2, [r2]
	str	r0, [sp, #16]
	add	r3, r3, r2, lsl #3
	ldr	r0, [r3, #4]
	lsl	r0, r0, #15
	bl	cpu_to_le32
	str	r0, [sp, #20]
	b	.L5
.L17:
	cmp	r3, #0
	ldrne	r3, [sp, #16]
	add	fp, fp, #72
	strne	r3, [r7, #28]
	strne	r3, [r7, #24]
	ldr	r3, [sp, #12]
	cmp	r3, #0
	ldrne	r3, [sp, #20]
	strne	r3, [r7, #20]
	strne	r3, [r7, #16]
	cmp	fp, #144
	bne	.L21
	b	.L1
.L58:
	ldr	r2, [r0, #4]
	ldr	r1, [r10]
	ldr	r3, [r5, #4]
	cmp	r2, r1
	orr	r6, r6, #-2147483648
	bne	.L23
.L60:
	mvn	r1, #0
	mov	r2, #0
	cmp	r3, #2
	str	r1, [r0, #4]
	str	r2, [r4]
	bne	.L10
.L61:
	tst	r7, #1
	orrne	r6, r6, #1
	b	.L10
.L59:
	ldr	ip, .L62+4
	ldr	lr, [r5]
	cmp	lr, ip
	bne	.L8
	cmp	r3, #2
	cmpeq	r7, #0
	bne	.L8
	cmn	r2, #1
	beq	.L9
	cmp	r2, r1
	bne	.L10
.L9:
	mov	r3, #1
	str	r1, [r0, #4]
	orr	r6, r6, #268435456
	str	r3, [r4]
	b	.L10
.L63:
	.align	2
.L62:
	.word	PCI_DEVICE_ID_YAMAHA_754
	.word	44100
	.size	snd_ymfpci_pcm_init_voice, .-snd_ymfpci_pcm_init_voice
	.comm	PCI_DEVICE_ID_YAMAHA_754,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
