	.file	"extr_neomagic.c_nm_loadcoeff.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nm_loadcoeff, @function
nm_loadcoeff:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	ecx, edx
	mov	eax, 544
	mov	edx, 32
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r15d, 28
	mov	r14, rdi
	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
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	cmp	DWORD PTR PCMDIR_PLAY[rip], esi
	cmove	eax, edx
	mov	DWORD PTR 12[rsp], eax
	mov	eax, 540
	cmove	eax, r15d
	cmp	DWORD PTR PCMDIR_REC[rip], esi
	mov	DWORD PTR 8[rsp], eax
	jne	.L3
	add	ecx, 8
.L3:
	mov	rdx, QWORD PTR coefficientSizes[rip]
	movsx	rax, ecx
	lea	rsi, 0[0+rax*4]
	mov	ebp, DWORD PTR [rdx+rax*4]
	test	ecx, ecx
	jle	.L12
	sub	ecx, 1
	lea	rax, -4[rdx+rsi]
	lea	rdx, -8[rdx+rsi]
	xor	ebx, ebx
	sal	rcx, 2
	sub	rdx, rcx
	.p2align 4,,10
	.p2align 3
.L5:
	add	ebx, DWORD PTR [rax]
	sub	rax, 4
	cmp	rdx, rax
	jne	.L5
.L4:
	test	ebp, ebp
	jle	.L10
	movsx	rbx, ebx
	lea	r12d, -1[rbp]
	xor	r15d, r15d
	sal	rbx, 2
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rax, QWORD PTR coefficients[rip]
	mov	rsi, QWORD PTR [r14]
	mov	ecx, 1
	mov	rdi, r14
	mov	edx, DWORD PTR [rax+rbx]
	add	rsi, r15
	add	rbx, 4
	call	nm_wrbuf@PLT
	mov	rax, r15
	add	r15, 1
	cmp	r12, rax
	jne	.L9
.L10:
	mov	rdx, QWORD PTR [r14]
	mov	esi, DWORD PTR 8[rsp]
	mov	rdi, r14
	mov	ecx, 4
	call	nm_wr@PLT
	xor	eax, eax
	mov	esi, DWORD PTR 12[rsp]
	mov	rdi, r14
	cmp	DWORD PTR PCMDIR_PLAY[rip], r13d
	mov	ecx, 4
	sete	al
	sub	ebp, eax
	movsx	rdx, ebp
	add	rdx, QWORD PTR [r14]
	call	nm_wr@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
.L12:
	.cfi_restore_state
	xor	ebx, ebx
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	nm_loadcoeff, .-nm_loadcoeff
	.comm	coefficients,8,8
	.comm	coefficientSizes,8,8
	.comm	PCMDIR_REC,4,4
	.comm	PCMDIR_PLAY,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_neomagic.c_nm_loadcoeff.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nm_loadcoeff, %function
nm_loadcoeff:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r9, r1
	ldr	r10, .L17
	ldr	r3, .L17+4
	ldr	r1, [r10]
	ldr	r3, [r3]
	cmp	r1, r9
	moveq	r1, #28
	movne	r1, #540
	moveq	fp, #32
	movne	fp, #544
	cmp	r3, r9
	ldr	r3, .L17+8
	sub	sp, sp, #12
	addeq	r2, r2, #8
	str	r1, [sp, #4]
	ldr	r1, [r3]
	cmp	r2, #0
	mov	r6, r0
	mov	r4, #0
	ldr	r7, [r1, r2, lsl #2]
	add	r3, r1, r2, lsl #2
	ble	.L4
.L5:
	ldr	r2, [r3, #-4]!
	cmp	r1, r3
	add	r4, r4, r2
	bne	.L5
.L4:
	cmp	r7, #0
	ble	.L10
	mov	r5, #0
	ldr	r8, .L17+12
	lsl	r4, r4, #2
.L9:
	ldr	r3, [r8]
	ldr	r1, [r6]
	ldr	r2, [r3, r4]
	mov	r3, #1
	add	r1, r5, r1
	mov	r0, r6
	add	r5, r5, r3
	bl	nm_wrbuf
	cmp	r7, r5
	add	r4, r4, #4
	bne	.L9
.L10:
	mov	r3, #4
	mov	r0, r6
	ldr	r1, [sp, #4]
	ldr	r2, [r6]
	bl	nm_wr
	ldr	r3, [r10]
	cmp	r3, r9
	subeq	r7, r7, #1
.L8:
	ldr	r2, [r6]
	mov	r1, fp
	mov	r0, r6
	mov	r3, #4
	add	r2, r7, r2
	bl	nm_wr
	mov	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	.align	2
.L17:
	.word	PCMDIR_PLAY
	.word	PCMDIR_REC
	.word	coefficientSizes
	.word	coefficients
	.size	nm_loadcoeff, .-nm_loadcoeff
	.comm	coefficients,4,4
	.comm	coefficientSizes,4,4
	.comm	PCMDIR_REC,4,4
	.comm	PCMDIR_PLAY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
