	.file	"extr_snd_wavelet.c_encodeWavelet.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	encodeWavelet
	.type	encodeWavelet, @function
encodeWavelet:
.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
	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
	lea	r11, -16384[rsp]
	.cfi_def_cfa 11, 16440
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	sub	rsp, 56
	.cfi_def_cfa_offset 16496
	mov	QWORD PTR 24[rsp], rdi
	mov	r13, rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 16424[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR madeTable[rip], 0
	jne	.L2
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, ebx
	call	MuLawDecode@PLT
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rax
	mov	rax, QWORD PTR mulawToShort[rip]
	movss	DWORD PTR [rax+rbx*4], xmm0
	add	rbx, 1
	cmp	rbx, 256
	jne	.L3
	mov	rax, QWORD PTR qtrue[rip]
	mov	QWORD PTR madeTable[rip], rax
.L2:
	mov	rax, QWORD PTR 24[rsp]
	lea	rbx, 32[rsp]
	mov	QWORD PTR 8[rsp], 0
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 20[rsp], eax
	test	eax, eax
	jle	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, DWORD PTR SND_CHUNK_SIZE[rip]
	mov	r12, QWORD PTR 8[rsp]
	lea	ebp, [rax+rax]
	mov	eax, DWORD PTR 20[rsp]
	cmp	ebp, eax
	cmovg	ebp, eax
	mov	eax, 4
	cmp	ebp, 4
	cmovl	ebp, eax
	xor	eax, eax
	call	SND_malloc@PLT
	mov	QWORD PTR 8[rsp], rax
	mov	rax, QWORD PTR 24[rsp]
	cmp	QWORD PTR 8[rax], 0
	je	.L22
	mov	rax, QWORD PTR 8[rsp]
	mov	QWORD PTR 16[r12], rax
.L6:
	lea	r14d, -1[rbp]
	xor	eax, eax
	lea	rcx, 1[r14]
	.p2align 4,,10
	.p2align 3
.L7:
	movsx	edx, WORD PTR 0[r13+rax*2]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, edx
	mov	rdx, rax
	movss	DWORD PTR [rbx+rax*4], xmm0
	add	rax, 1
	cmp	r14, rdx
	jne	.L7
	mov	edx, 1
	mov	esi, ebp
	lea	r13, 0[r13+rcx*2]
	mov	rdi, rbx
	call	wt1@PLT
	mov	rax, QWORD PTR 8[rsp]
	mov	r12, QWORD PTR 8[rax]
	lea	r14, 4[r12+r14*4]
	mov	r15, r12
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rax, rbx
	mov	edi, 32767
	sub	rax, r12
	movss	xmm0, DWORD PTR [rax+r15]
	comiss	xmm0, DWORD PTR .LC0[rip]
	ja	.L8
	movss	xmm1, DWORD PTR .LC1[rip]
	mov	edi, -32768
	comiss	xmm1, xmm0
	ja	.L8
	cvttss2si	edi, xmm0
	movsx	edi, di
.L8:
	call	MuLawEncode@PLT
	add	r15, 4
	mov	DWORD PTR -4[r15], eax
	cmp	r15, r14
	jne	.L9
	mov	rax, QWORD PTR 8[rsp]
	sub	DWORD PTR 20[rsp], ebp
	mov	DWORD PTR [rax], ebp
	mov	eax, DWORD PTR 20[rsp]
	test	eax, eax
	jg	.L4
.L1:
	mov	rax, QWORD PTR 16424[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L23
	add	rsp, 16440
	.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
.L22:
	.cfi_restore_state
	mov	rsi, QWORD PTR 8[rsp]
	mov	QWORD PTR 8[rax], rsi
	jmp	.L6
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	encodeWavelet, .-encodeWavelet
	.comm	qtrue,8,8
	.comm	mulawToShort,8,8
	.comm	madeTable,8,8
	.comm	SND_CHUNK_SIZE,4,4
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC0:
	.long	1191181824
	.align 4
.LC1:
	.long	3338665984
	.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_snd_wavelet.c_encodeWavelet.c"
	.text
	.global	__aeabi_i2f
	.global	__aeabi_fcmpgt
	.global	__aeabi_fcmplt
	.global	__aeabi_f2iz
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	encodeWavelet
	.syntax unified
	.arm
	.fpu softvfp
	.type	encodeWavelet, %function
encodeWavelet:
	@ args = 0, pretend = 0, frame = 16408
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r6, .L22
	sub	sp, sp, #16384
	sub	sp, sp, #28
	ldr	r4, [r6]
	add	r3, sp, #16384
	ldr	r2, .L22+4
	str	r0, [sp, #12]
	str	r1, [sp, #4]
	cmp	r4, #0
	add	r3, r3, #20
	ldr	r2, [r2]
	str	r2, [r3]
	mov	r2,#0
	bne	.L2
	ldr	r5, .L22+8
.L3:
	mov	r0, r4
	bl	MuLawDecode
	bl	__aeabi_i2f
	ldr	r3, [r5]
	str	r0, [r3, r4, lsl #2]	@ float
	add	r4, r4, #1
	cmp	r4, #256
	bne	.L3
	ldr	r3, .L22+12
	ldr	r3, [r3]
	str	r3, [r6]
.L2:
	ldr	r3, [sp, #12]
	ldr	r10, [r3]
	cmp	r10, #0
	ble	.L1
	mov	r3, #0
	mov	fp, #-956301312
	ldr	r8, .L22+16
	str	r3, [sp]
.L4:
	ldr	r3, .L22+20
	ldr	r4, [sp]
	ldr	r6, [r3]
	add	r5, sp, #12
	lsl	r6, r6, #1
	cmp	r6, r10
	movge	r6, r10
	cmp	r6, #4
	movlt	r6, #4
	bl	SND_malloc
	ldr	r3, [sp, #12]
	mov	r9, r5
	ldr	r3, [r3, #4]
	str	r0, [sp]
	cmp	r3, #0
	moveq	r2, r0
	ldreq	r3, [sp, #12]
	ldrne	r3, [sp]
	streq	r2, [r3, #4]
	strne	r3, [r4, #8]
	ldr	r3, [sp, #4]
	sub	r7, r3, #2
	lsl	r3, r6, #1
	add	r4, r7, r6, lsl #1
	str	r3, [sp, #8]
.L7:
	ldrsh	r0, [r7, #2]!
	bl	__aeabi_i2f
	cmp	r7, r4
	str	r0, [r9, #4]!	@ float
	bne	.L7
	mov	r2, #1
	mov	r1, r6
	add	r0, sp, #16
	bl	wt1
	ldr	r3, [sp]
	ldr	r4, [r3, #4]
	ldmib	sp, {r2, r3}
	add	r3, r3, r2
	str	r3, [sp, #4]
	add	r7, r4, r6, lsl #2
.L9:
	ldr	r9, [r5, #4]!	@ float
	mov	r1, r8
	mov	r0, r9
	bl	__aeabi_fcmpgt
	cmp	r0, #0
	ldrne	r0, .L22+24
	bne	.L8
	mov	r1, fp
	mov	r0, r9
	bl	__aeabi_fcmplt
	cmp	r0, #0
	ldrne	r0, .L22+28
	bne	.L8
	mov	r0, r9
	bl	__aeabi_f2iz
	lsl	r0, r0, #16
	asr	r0, r0, #16
.L8:
	bl	MuLawEncode
	str	r0, [r4], #4
	cmp	r4, r7
	bne	.L9
	ldr	r3, [sp]
	sub	r10, r10, r6
	cmp	r10, #0
	str	r6, [r3]
	bgt	.L4
.L1:
	add	r3, sp, #16384
	ldr	r2, .L22+4
	add	r3, r3, #20
	ldr	r1, [r2]
	ldr	r2, [r3]
	eors	r1, r2, r1
	mov	r2, #0
	bne	.L21
	add	sp, sp, #16384
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L21:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	madeTable
	.word	.LC0
	.word	mulawToShort
	.word	qtrue
	.word	1191181824
	.word	SND_CHUNK_SIZE
	.word	32767
	.word	-32768
	.size	encodeWavelet, .-encodeWavelet
	.comm	qtrue,4,4
	.comm	mulawToShort,4,4
	.comm	madeTable,4,4
	.comm	SND_CHUNK_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
