	.file	"40762090.c"
	.intel_syntax noprefix
	.text
	.local	wave
	.comm	wave,7168,32
	.section	.rodata
	.align 8
.LC0:
	.string	"Error: Can't read SAMPLE DATA in WAVE-file."
	.text
	.globl	adpcm_encode
	.type	adpcm_encode, @function
adpcm_encode:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 384
	mov	QWORD PTR -360[rbp], rdi
	mov	QWORD PTR -368[rbp], rsi
	mov	DWORD PTR -372[rbp], edx
	mov	DWORD PTR -376[rbp], ecx
	mov	DWORD PTR -380[rbp], r8d
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -332[rbp], 0
	mov	DWORD PTR -336[rbp], 0
	mov	DWORD PTR -340[rbp], 0
	jmp	.L2
.L21:
	mov	eax, 3584
	cmp	DWORD PTR -376[rbp], 3584
	cmovle	eax, DWORD PTR -376[rbp]
	mov	DWORD PTR -316[rbp], eax
	cmp	DWORD PTR -372[rbp], 0
	je	.L3
	mov	DWORD PTR -328[rbp], 0
	jmp	.L4
.L8:
	mov	eax, DWORD PTR -328[rbp]
	cdqe
	lea	rdx, [rax+rax]
	lea	rax, wave[rip]
	lea	rdi, [rdx+rax]
	mov	rax, QWORD PTR -360[rbp]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 2
	call	fread@PLT
	cmp	rax, 1
	jne	.L5
	mov	eax, DWORD PTR -372[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -360[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	jmp	.L26
.L5:
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, 5
	jmp	.L24
.L26:
	add	DWORD PTR -328[rbp], 1
.L4:
	mov	eax, DWORD PTR -328[rbp]
	cmp	eax, DWORD PTR -316[rbp]
	jl	.L8
	jmp	.L9
.L3:
	mov	eax, DWORD PTR -316[rbp]
	cdqe
	mov	rdx, QWORD PTR -360[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	mov	esi, 2
	lea	rdi, wave[rip]
	call	fread@PLT
	mov	edx, DWORD PTR -316[rbp]
	movsx	rdx, edx
	cmp	rax, rdx
	je	.L9
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, 5
	jmp	.L24
.L9:
	mov	eax, DWORD PTR -316[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, -1840700269
	shr	rdx, 32
	add	edx, eax
	sar	edx, 4
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -328[rbp], eax
	mov	eax, DWORD PTR -316[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, -1840700269
	shr	rdx, 32
	add	edx, eax
	sar	edx, 4
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 28
	sub	eax, ecx
	mov	edx, eax
	test	edx, edx
	je	.L10
	mov	eax, DWORD PTR -316[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, -1840700269
	shr	rdx, 32
	add	edx, eax
	sar	edx, 4
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	edx, edx, 28
	sub	eax, edx
	mov	DWORD PTR -324[rbp], eax
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -328[rbp]
	imul	edx, eax, 28
	mov	eax, DWORD PTR -324[rbp]
	add	eax, edx
	cdqe
	lea	rdx, [rax+rax]
	lea	rax, wave[rip]
	mov	WORD PTR [rdx+rax], 0
	add	DWORD PTR -324[rbp], 1
.L11:
	cmp	DWORD PTR -324[rbp], 27
	jle	.L12
	add	DWORD PTR -328[rbp], 1
.L10:
	mov	DWORD PTR -324[rbp], 0
	jmp	.L13
.L20:
	mov	eax, DWORD PTR -324[rbp]
	imul	eax, eax, 28
	cdqe
	lea	rdx, [rax+rax]
	lea	rax, wave[rip]
	add	rax, rdx
	mov	QWORD PTR -312[rbp], rax
	lea	rcx, -336[rbp]
	lea	rdx, -340[rbp]
	lea	rsi, -240[rbp]
	mov	rax, QWORD PTR -312[rbp]
	mov	rdi, rax
	call	find_predict
	mov	ecx, DWORD PTR -336[rbp]
	mov	edx, DWORD PTR -340[rbp]
	lea	rsi, -304[rbp]
	lea	rax, -240[rbp]
	mov	rdi, rax
	call	pack
	mov	eax, DWORD PTR -340[rbp]
	sal	eax, 4
	mov	edx, eax
	mov	eax, DWORD PTR -336[rbp]
	or	eax, edx
	mov	BYTE PTR -341[rbp], al
	movzx	eax, BYTE PTR -341[rbp]
	mov	rdx, QWORD PTR -368[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
	cmp	DWORD PTR -380[rbp], 1
	jne	.L14
	mov	rax, QWORD PTR -368[rbp]
	mov	rsi, rax
	mov	edi, 6
	call	fputc@PLT
	mov	DWORD PTR -380[rbp], 2
	jmp	.L15
.L14:
	mov	rdx, QWORD PTR -368[rbp]
	mov	eax, DWORD PTR -332[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
.L15:
	mov	DWORD PTR -320[rbp], 0
	jmp	.L16
.L17:
	mov	eax, DWORD PTR -320[rbp]
	add	eax, 1
	cdqe
	movzx	eax, WORD PTR -304[rbp+rax*2]
	sar	ax, 8
	and	eax, -16
	mov	edx, eax
	mov	eax, DWORD PTR -320[rbp]
	cdqe
	movzx	eax, WORD PTR -304[rbp+rax*2]
	sar	ax, 12
	and	eax, 15
	or	eax, edx
	mov	BYTE PTR -341[rbp], al
	movzx	eax, BYTE PTR -341[rbp]
	mov	rdx, QWORD PTR -368[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
	add	DWORD PTR -320[rbp], 2
.L16:
	cmp	DWORD PTR -320[rbp], 27
	jle	.L17
	sub	DWORD PTR -376[rbp], 28
	cmp	DWORD PTR -376[rbp], 27
	jg	.L18
	cmp	DWORD PTR -380[rbp], 2
	jne	.L19
	mov	DWORD PTR -332[rbp], 3
	jmp	.L18
.L19:
	mov	DWORD PTR -332[rbp], 1
.L18:
	add	DWORD PTR -324[rbp], 1
.L13:
	mov	eax, DWORD PTR -324[rbp]
	cmp	eax, DWORD PTR -328[rbp]
	jl	.L20
.L2:
	cmp	DWORD PTR -376[rbp], 0
	jg	.L21
	mov	eax, DWORD PTR -340[rbp]
	sal	eax, 4
	mov	edx, eax
	mov	eax, DWORD PTR -336[rbp]
	or	edx, eax
	mov	rax, QWORD PTR -368[rbp]
	mov	rsi, rax
	mov	edi, edx
	call	fputc@PLT
	mov	rax, QWORD PTR -368[rbp]
	mov	rsi, rax
	mov	edi, 7
	call	fputc@PLT
	mov	DWORD PTR -328[rbp], 0
	jmp	.L22
.L23:
	mov	rax, QWORD PTR -368[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	fputc@PLT
	add	DWORD PTR -328[rbp], 1
.L22:
	cmp	DWORD PTR -328[rbp], 13
	jle	.L23
	mov	eax, 0
.L24:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	adpcm_encode, .-adpcm_encode
	.data
	.align 32
	.type	f, @object
	.size	f, 80
f:
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	-1074921472
	.long	0
	.long	0
	.long	0
	.long	-1073954816
	.long	0
	.long	1072300032
	.long	0
	.long	-1074233344
	.long	0
	.long	1072398336
	.long	0
	.long	-1073840128
	.long	0
	.long	1072562176
	.text
	.type	find_predict, @function
find_predict:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 1280
	mov	QWORD PTR -1256[rbp], rdi
	mov	QWORD PTR -1264[rbp], rsi
	mov	QWORD PTR -1272[rbp], rdx
	mov	QWORD PTR -1280[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movsd	xmm0, QWORD PTR .LC1[rip]
	movsd	QWORD PTR -1224[rbp], xmm0
	mov	DWORD PTR -1240[rbp], 0
	jmp	.L28
.L42:
	mov	eax, DWORD PTR -1240[rbp]
	cdqe
	pxor	xmm0, xmm0
	movsd	QWORD PTR -1184[rbp+rax*8], xmm0
	movsd	xmm0, QWORD PTR _s_1.3[rip]
	movsd	QWORD PTR -1208[rbp], xmm0
	movsd	xmm0, QWORD PTR _s_2.2[rip]
	movsd	QWORD PTR -1200[rbp], xmm0
	mov	DWORD PTR -1236[rbp], 0
	jmp	.L29
.L36:
	mov	eax, DWORD PTR -1236[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -1256[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	cwde
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	QWORD PTR -1216[rbp], xmm0
	movsd	xmm0, QWORD PTR -1216[rbp]
	comisd	xmm0, QWORD PTR .LC3[rip]
	jbe	.L30
	movsd	xmm0, QWORD PTR .LC3[rip]
	movsd	QWORD PTR -1216[rbp], xmm0
.L30:
	movsd	xmm0, QWORD PTR .LC4[rip]
	comisd	xmm0, QWORD PTR -1216[rbp]
	jbe	.L32
	movsd	xmm0, QWORD PTR .LC4[rip]
	movsd	QWORD PTR -1216[rbp], xmm0
.L32:
	mov	eax, DWORD PTR -1240[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, f[rip]
	movsd	xmm0, QWORD PTR [rdx+rax]
	mulsd	xmm0, QWORD PTR -1208[rbp]
	movapd	xmm1, xmm0
	addsd	xmm1, QWORD PTR -1216[rbp]
	mov	eax, DWORD PTR -1240[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, f[rip+8]
	movsd	xmm0, QWORD PTR [rdx+rax]
	mulsd	xmm0, QWORD PTR -1200[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -1192[rbp], xmm0
	mov	eax, DWORD PTR -1240[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -1236[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rcx
	movsd	xmm0, QWORD PTR -1192[rbp]
	movsd	QWORD PTR -1136[rbp+rax*8], xmm0
	movsd	xmm0, QWORD PTR -1192[rbp]
	movq	xmm1, QWORD PTR .LC5[rip]
	andpd	xmm0, xmm1
	mov	eax, DWORD PTR -1240[rbp]
	cdqe
	movsd	xmm1, QWORD PTR -1184[rbp+rax*8]
	comisd	xmm0, xmm1
	jbe	.L34
	movsd	xmm0, QWORD PTR -1192[rbp]
	movq	xmm1, QWORD PTR .LC5[rip]
	andpd	xmm0, xmm1
	mov	eax, DWORD PTR -1240[rbp]
	cdqe
	movsd	QWORD PTR -1184[rbp+rax*8], xmm0
.L34:
	movsd	xmm0, QWORD PTR -1208[rbp]
	movsd	QWORD PTR -1200[rbp], xmm0
	movsd	xmm0, QWORD PTR -1216[rbp]
	movsd	QWORD PTR -1208[rbp], xmm0
	add	DWORD PTR -1236[rbp], 1
.L29:
	cmp	DWORD PTR -1236[rbp], 27
	jle	.L36
	mov	eax, DWORD PTR -1240[rbp]
	cdqe
	movsd	xmm1, QWORD PTR -1184[rbp+rax*8]
	movsd	xmm0, QWORD PTR -1224[rbp]
	comisd	xmm0, xmm1
	jbe	.L37
	mov	eax, DWORD PTR -1240[rbp]
	cdqe
	movsd	xmm0, QWORD PTR -1184[rbp+rax*8]
	movsd	QWORD PTR -1224[rbp], xmm0
	mov	rax, QWORD PTR -1272[rbp]
	mov	edx, DWORD PTR -1240[rbp]
	mov	DWORD PTR [rax], edx
.L37:
	movsd	xmm0, QWORD PTR .LC6[rip]
	comisd	xmm0, QWORD PTR -1224[rbp]
	jb	.L55
	mov	rax, QWORD PTR -1272[rbp]
	mov	DWORD PTR [rax], 0
	jmp	.L41
.L55:
	add	DWORD PTR -1240[rbp], 1
.L28:
	cmp	DWORD PTR -1240[rbp], 4
	jle	.L42
.L41:
	movsd	xmm0, QWORD PTR -1208[rbp]
	movsd	QWORD PTR _s_1.3[rip], xmm0
	movsd	xmm0, QWORD PTR -1200[rbp]
	movsd	QWORD PTR _s_2.2[rip], xmm0
	mov	DWORD PTR -1240[rbp], 0
	jmp	.L43
.L44:
	mov	rax, QWORD PTR -1272[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edx, DWORD PTR -1240[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -1264[rbp]
	add	rcx, rdx
	movsx	rsi, eax
	mov	eax, DWORD PTR -1240[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rsi
	movsd	xmm0, QWORD PTR -1136[rbp+rax*8]
	movsd	QWORD PTR [rcx], xmm0
	add	DWORD PTR -1240[rbp], 1
.L43:
	cmp	DWORD PTR -1240[rbp], 27
	jle	.L44
	movsd	xmm0, QWORD PTR -1224[rbp]
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -1228[rbp], eax
	mov	DWORD PTR -1232[rbp], 16384
	mov	rax, QWORD PTR -1280[rbp]
	mov	DWORD PTR [rax], 0
	jmp	.L45
.L48:
	mov	eax, DWORD PTR -1232[rbp]
	sar	eax, 3
	mov	edx, eax
	mov	eax, DWORD PTR -1228[rbp]
	add	eax, edx
	and	eax, DWORD PTR -1232[rbp]
	test	eax, eax
	jne	.L56
	mov	rax, QWORD PTR -1280[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -1280[rbp]
	mov	DWORD PTR [rax], edx
	sar	DWORD PTR -1232[rbp]
.L45:
	mov	rax, QWORD PTR -1280[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	jle	.L48
	jmp	.L47
.L56:
	nop
.L47:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L49
	call	__stack_chk_fail@PLT
.L49:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	find_predict, .-find_predict
	.type	pack, @function
pack:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -52[rbp], edx
	mov	DWORD PTR -56[rbp], ecx
	mov	DWORD PTR -20[rbp], 0
	jmp	.L58
.L61:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, f[rip]
	movsd	xmm2, QWORD PTR [rdx+rax]
	movsd	xmm0, QWORD PTR s_1.1[rip]
	mulsd	xmm0, xmm2
	addsd	xmm1, xmm0
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, f[rip+8]
	movsd	xmm2, QWORD PTR [rdx+rax]
	movsd	xmm0, QWORD PTR s_2.0[rip]
	mulsd	xmm0, xmm2
	addsd	xmm0, xmm1
	movsd	QWORD PTR -16[rbp], xmm0
	mov	eax, DWORD PTR -56[rbp]
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR -16[rbp]
	mulsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	movsd	xmm0, QWORD PTR -8[rbp]
	cvttsd2si	eax, xmm0
	add	eax, 2048
	and	eax, -4096
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], 32767
	jle	.L59
	mov	DWORD PTR -24[rbp], 32767
.L59:
	cmp	DWORD PTR -24[rbp], -32768
	jge	.L60
	mov	DWORD PTR -24[rbp], -32768
.L60:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -24[rbp]
	mov	WORD PTR [rax], dx
	mov	eax, DWORD PTR -56[rbp]
	mov	ecx, eax
	sar	DWORD PTR -24[rbp], cl
	movsd	xmm0, QWORD PTR s_1.1[rip]
	movsd	QWORD PTR s_2.0[rip], xmm0
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -24[rbp]
	subsd	xmm0, QWORD PTR -16[rbp]
	movsd	QWORD PTR s_1.1[rip], xmm0
	add	DWORD PTR -20[rbp], 1
.L58:
	cmp	DWORD PTR -20[rbp], 27
	jle	.L61
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	pack, .-pack
	.local	_s_1.3
	.comm	_s_1.3,8,8
	.local	_s_2.2
	.comm	_s_2.2,8,8
	.local	s_1.1
	.comm	s_1.1,8,8
	.local	s_2.0
	.comm	s_2.0,8,8
	.section	.rodata
	.align 8
.LC1:
	.long	536870912
	.long	1107468383
	.align 8
.LC3:
	.long	0
	.long	1088290752
	.align 8
.LC4:
	.long	0
	.long	-1059192832
	.align 16
.LC5:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.align 8
.LC6:
	.long	0
	.long	1075576832
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"40762090.c"
	.text
	.local	wave
	.comm	wave,7168,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Error: Can't read SAMPLE DATA in WAVE-file.\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	adpcm_encode
	.syntax unified
	.arm
	.fpu softvfp
	.type	adpcm_encode, %function
adpcm_encode:
	@ args = 4, pretend = 0, frame = 344
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #344
	str	r0, [fp, #-336]
	str	r1, [fp, #-340]
	str	r2, [fp, #-344]
	str	r3, [fp, #-348]
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-316]
	mov	r3, #0
	str	r3, [fp, #-320]
	mov	r3, #0
	str	r3, [fp, #-324]
	b	.L2
.L21:
	ldr	r3, [fp, #-348]
	cmp	r3, #3584
	movlt	r3, r3
	movge	r3, #3584
	str	r3, [fp, #-300]
	ldr	r3, [fp, #-344]
	cmp	r3, #0
	beq	.L3
	mov	r3, #0
	str	r3, [fp, #-312]
	b	.L4
.L8:
	ldr	r3, [fp, #-312]
	lsl	r3, r3, #1
	ldr	r2, .L27+4
	add	r0, r3, r2
	ldr	r3, [fp, #-336]
	mov	r2, #1
	mov	r1, #2
	bl	fread
	mov	r3, r0
	cmp	r3, #1
	bne	.L5
	mov	r2, #1
	ldr	r1, [fp, #-344]
	ldr	r0, [fp, #-336]
	bl	fseek
	b	.L26
.L5:
	ldr	r0, .L27+8
	bl	puts
	mov	r3, #5
	b	.L24
.L26:
	ldr	r3, [fp, #-312]
	add	r3, r3, #1
	str	r3, [fp, #-312]
.L4:
	ldr	r2, [fp, #-312]
	ldr	r3, [fp, #-300]
	cmp	r2, r3
	blt	.L8
	b	.L9
.L3:
	ldr	r2, [fp, #-300]
	ldr	r3, [fp, #-336]
	mov	r1, #2
	ldr	r0, .L27+4
	bl	fread
	mov	r2, r0
	ldr	r3, [fp, #-300]
	cmp	r2, r3
	beq	.L9
	ldr	r0, .L27+8
	bl	puts
	mov	r3, #5
	b	.L24
.L9:
	ldr	r3, [fp, #-300]
	ldr	r2, .L27+12
	smull	r1, r2, r3, r2
	add	r2, r2, r3
	asr	r2, r2, #4
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-312]
	ldr	r2, [fp, #-300]
	ldr	r3, .L27+12
	smull	r1, r3, r2, r3
	add	r3, r3, r2
	asr	r1, r3, #4
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #3
	sub	r3, r3, r1
	lsl	r3, r3, #2
	sub	r1, r2, r3
	cmp	r1, #0
	beq	.L10
	ldr	r2, [fp, #-300]
	ldr	r3, .L27+12
	smull	r1, r3, r2, r3
	add	r3, r3, r2
	asr	r1, r3, #4
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #3
	sub	r3, r3, r1
	lsl	r3, r3, #2
	sub	r3, r2, r3
	str	r3, [fp, #-308]
	b	.L11
.L12:
	ldr	r2, [fp, #-312]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-308]
	add	r3, r2, r3
	ldr	r2, .L27+4
	lsl	r3, r3, #1
	add	r3, r2, r3
	mov	r2, #0
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-308]
	add	r3, r3, #1
	str	r3, [fp, #-308]
.L11:
	ldr	r3, [fp, #-308]
	cmp	r3, #27
	ble	.L12
	ldr	r3, [fp, #-312]
	add	r3, r3, #1
	str	r3, [fp, #-312]
.L10:
	mov	r3, #0
	str	r3, [fp, #-308]
	b	.L13
.L20:
	ldr	r2, [fp, #-308]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, .L27+4
	add	r3, r2, r3
	str	r3, [fp, #-296]
	sub	r3, fp, #320
	sub	r2, fp, #324
	sub	r1, fp, #236
	ldr	r0, [fp, #-296]
	bl	find_predict
	ldr	r2, [fp, #-324]
	ldr	r3, [fp, #-320]
	sub	r1, fp, #292
	sub	r0, fp, #236
	bl	pack
	ldr	r3, [fp, #-324]
	lsl	r3, r3, #4
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, [fp, #-320]
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r2, r3
	lsl	r3, r3, #24
	asr	r3, r3, #24
	strb	r3, [fp, #-325]
	ldrb	r3, [fp, #-325]	@ zero_extendqisi2
	ldr	r1, [fp, #-340]
	mov	r0, r3
	bl	fputc
	ldr	r3, [fp, #4]
	cmp	r3, #1
	bne	.L14
	ldr	r1, [fp, #-340]
	mov	r0, #6
	bl	fputc
	mov	r3, #2
	str	r3, [fp, #4]
	b	.L15
.L14:
	ldr	r1, [fp, #-340]
	ldr	r0, [fp, #-316]
	bl	fputc
.L15:
	mov	r3, #0
	str	r3, [fp, #-304]
	b	.L16
.L17:
	ldr	r3, [fp, #-304]
	add	r3, r3, #1
	sub	r2, fp, #4
	sub	r2, r2, #288
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrsh	r3, [r3]
	asr	r3, r3, #8
	lsl	r3, r3, #16
	asr	r3, r3, #16
	lsl	r3, r3, #24
	asr	r3, r3, #24
	bic	r3, r3, #15
	lsl	r3, r3, #24
	asr	r2, r3, #24
	sub	r3, fp, #4
	sub	r1, r3, #288
	ldr	r3, [fp, #-304]
	lsl	r3, r3, #1
	add	r3, r1, r3
	ldrsh	r3, [r3]
	asr	r3, r3, #12
	lsl	r3, r3, #16
	asr	r3, r3, #16
	lsl	r3, r3, #24
	asr	r3, r3, #24
	and	r3, r3, #15
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r2, r3
	lsl	r3, r3, #24
	asr	r3, r3, #24
	strb	r3, [fp, #-325]
	ldrb	r3, [fp, #-325]	@ zero_extendqisi2
	ldr	r1, [fp, #-340]
	mov	r0, r3
	bl	fputc
	ldr	r3, [fp, #-304]
	add	r3, r3, #2
	str	r3, [fp, #-304]
.L16:
	ldr	r3, [fp, #-304]
	cmp	r3, #27
	ble	.L17
	ldr	r3, [fp, #-348]
	sub	r3, r3, #28
	str	r3, [fp, #-348]
	ldr	r3, [fp, #-348]
	cmp	r3, #27
	bgt	.L18
	ldr	r3, [fp, #4]
	cmp	r3, #2
	bne	.L19
	mov	r3, #3
	str	r3, [fp, #-316]
	b	.L18
.L19:
	mov	r3, #1
	str	r3, [fp, #-316]
.L18:
	ldr	r3, [fp, #-308]
	add	r3, r3, #1
	str	r3, [fp, #-308]
.L13:
	ldr	r2, [fp, #-308]
	ldr	r3, [fp, #-312]
	cmp	r2, r3
	blt	.L20
.L2:
	ldr	r3, [fp, #-348]
	cmp	r3, #0
	bgt	.L21
	ldr	r3, [fp, #-324]
	lsl	r2, r3, #4
	ldr	r3, [fp, #-320]
	orr	r3, r2, r3
	ldr	r1, [fp, #-340]
	mov	r0, r3
	bl	fputc
	ldr	r1, [fp, #-340]
	mov	r0, #7
	bl	fputc
	mov	r3, #0
	str	r3, [fp, #-312]
	b	.L22
.L23:
	ldr	r1, [fp, #-340]
	mov	r0, #0
	bl	fputc
	ldr	r3, [fp, #-312]
	add	r3, r3, #1
	str	r3, [fp, #-312]
.L22:
	ldr	r3, [fp, #-312]
	cmp	r3, #13
	ble	.L23
	mov	r3, #0
.L24:
	ldr	r2, .L27
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC1
	.word	wave
	.word	.LC0
	.word	-1840700269
	.size	adpcm_encode, .-adpcm_encode
	.data
	.align	3
	.type	f, %object
	.size	f, 80
f:
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	-1074921472
	.word	0
	.word	0
	.word	0
	.word	-1073954816
	.word	0
	.word	1072300032
	.word	0
	.word	-1074233344
	.word	0
	.word	1072398336
	.word	0
	.word	-1073840128
	.word	0
	.word	1072562176
	.global	__aeabi_i2d
	.global	__aeabi_dcmpgt
	.global	__aeabi_dcmplt
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.global	__aeabi_dcmple
	.global	__aeabi_d2iz
	.section	.rodata
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_predict, %function
find_predict:
	@ args = 0, pretend = 0, frame = 1240
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #1232
	sub	sp, sp, #8
	str	r0, [fp, #-1256]
	str	r1, [fp, #-1260]
	str	r2, [fp, #-1264]
	str	r3, [fp, #-1268]
	ldr	r3, .L59
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r2, #536870912
	ldr	r3, .L59+4
	str	r2, [fp, #-1236]
	str	r3, [fp, #-1232]
	mov	r3, #0
	str	r3, [fp, #-1252]
	b	.L30
.L44:
	ldr	r3, [fp, #-1252]
	lsl	r3, r3, #3
	sub	r2, fp, #28
	add	r3, r2, r3
	sub	r1, r3, #1168
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r3, .L59+8
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-1220]
	str	r3, [fp, #-1216]
	ldr	r3, .L59+12
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-1212]
	str	r3, [fp, #-1208]
	mov	r3, #0
	str	r3, [fp, #-1248]
	b	.L31
.L38:
	ldr	r3, [fp, #-1248]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-1256]
	add	r3, r2, r3
	ldrsh	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-1228]
	str	r3, [fp, #-1224]
	mov	r2, #0
	ldr	r3, .L59+16
	ldr	r0, [fp, #-1228]
	ldr	r1, [fp, #-1224]
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L32
	mov	r2, #0
	ldr	r3, .L59+16
	str	r2, [fp, #-1228]
	str	r3, [fp, #-1224]
.L32:
	mov	r2, #0
	ldr	r3, .L59+20
	ldr	r0, [fp, #-1228]
	ldr	r1, [fp, #-1224]
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L34
	mov	r2, #0
	ldr	r3, .L59+20
	str	r2, [fp, #-1228]
	str	r3, [fp, #-1224]
.L34:
	ldr	r2, .L59+24
	ldr	r3, [fp, #-1252]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r2, [fp, #-1220]
	ldr	r3, [fp, #-1216]
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r2, [fp, #-1228]
	ldr	r3, [fp, #-1224]
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r8, r2
	mov	r9, r3
	ldr	r2, .L59+24
	ldr	r3, [fp, #-1252]
	lsl	r3, r3, #4
	add	r3, r2, r3
	add	r3, r3, #8
	ldmia	r3, {r0-r1}
	ldr	r2, [fp, #-1212]
	ldr	r3, [fp, #-1208]
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r8
	mov	r1, r9
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-1204]
	str	r3, [fp, #-1200]
	ldr	r2, [fp, #-1248]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-1252]
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r2, fp, #28
	add	r3, r2, r3
	sub	r3, r3, #1120
	sub	r3, r3, #8
	ldr	r0, [fp, #-1204]
	ldr	r1, [fp, #-1200]
	stm	r3, {r0-r1}
	ldr	r6, [fp, #-1204]
	ldr	r3, [fp, #-1200]
	bic	r7, r3, #-2147483648
	ldr	r3, [fp, #-1252]
	lsl	r3, r3, #3
	sub	r2, fp, #28
	add	r3, r2, r3
	sub	r3, r3, #1168
	ldmia	r3, {r2-r3}
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L36
	ldr	r4, [fp, #-1204]
	ldr	r3, [fp, #-1200]
	bic	r5, r3, #-2147483648
	ldr	r3, [fp, #-1252]
	lsl	r3, r3, #3
	sub	r2, fp, #28
	add	r3, r2, r3
	sub	r3, r3, #1168
	stm	r3, {r4-r5}
.L36:
	ldr	r2, [fp, #-1220]
	ldr	r3, [fp, #-1216]
	str	r2, [fp, #-1212]
	str	r3, [fp, #-1208]
	ldr	r2, [fp, #-1228]
	ldr	r3, [fp, #-1224]
	str	r2, [fp, #-1220]
	str	r3, [fp, #-1216]
	ldr	r3, [fp, #-1248]
	add	r3, r3, #1
	str	r3, [fp, #-1248]
.L31:
	ldr	r3, [fp, #-1248]
	cmp	r3, #27
	ble	.L38
	ldr	r3, [fp, #-1252]
	lsl	r3, r3, #3
	sub	r2, fp, #28
	add	r3, r2, r3
	sub	r3, r3, #1168
	ldmia	r3, {r2-r3}
	ldr	r0, [fp, #-1236]
	ldr	r1, [fp, #-1232]
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L39
	ldr	r3, [fp, #-1252]
	lsl	r3, r3, #3
	sub	r2, fp, #28
	add	r3, r2, r3
	sub	r3, r3, #1168
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-1236]
	str	r3, [fp, #-1232]
	ldr	r3, [fp, #-1264]
	ldr	r2, [fp, #-1252]
	str	r2, [r3]
.L39:
	mov	r2, #0
	ldr	r3, .L59+28
	ldr	r0, [fp, #-1236]
	ldr	r1, [fp, #-1232]
	bl	__aeabi_dcmple
	mov	r3, r0
	cmp	r3, #0
	beq	.L57
	ldr	r3, [fp, #-1264]
	mov	r2, #0
	str	r2, [r3]
	b	.L43
.L57:
	ldr	r3, [fp, #-1252]
	add	r3, r3, #1
	str	r3, [fp, #-1252]
.L30:
	ldr	r3, [fp, #-1252]
	cmp	r3, #4
	ble	.L44
.L43:
	ldr	r1, .L59+8
	ldr	r2, [fp, #-1220]
	ldr	r3, [fp, #-1216]
	stm	r1, {r2-r3}
	ldr	r1, .L59+12
	ldr	r2, [fp, #-1212]
	ldr	r3, [fp, #-1208]
	stm	r1, {r2-r3}
	mov	r3, #0
	str	r3, [fp, #-1252]
	b	.L45
.L46:
	ldr	r3, [fp, #-1264]
	ldr	r0, [r3]
	ldr	r3, [fp, #-1252]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-1260]
	add	r1, r2, r3
	ldr	r2, [fp, #-1252]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	add	r3, r3, r0
	lsl	r3, r3, #3
	sub	r2, fp, #28
	add	r3, r2, r3
	sub	r3, r3, #1120
	sub	r3, r3, #8
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-1252]
	add	r3, r3, #1
	str	r3, [fp, #-1252]
.L45:
	ldr	r3, [fp, #-1252]
	cmp	r3, #27
	ble	.L46
	ldr	r0, [fp, #-1236]
	ldr	r1, [fp, #-1232]
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-1240]
	mov	r3, #16384
	str	r3, [fp, #-1244]
	ldr	r3, [fp, #-1268]
	mov	r2, #0
	str	r2, [r3]
	b	.L47
.L50:
	ldr	r3, [fp, #-1244]
	asr	r2, r3, #3
	ldr	r3, [fp, #-1240]
	add	r2, r2, r3
	ldr	r3, [fp, #-1244]
	and	r3, r3, r2
	cmp	r3, #0
	bne	.L58
	ldr	r3, [fp, #-1268]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-1268]
	str	r2, [r3]
	ldr	r3, [fp, #-1244]
	asr	r3, r3, #1
	str	r3, [fp, #-1244]
.L47:
	ldr	r3, [fp, #-1268]
	ldr	r3, [r3]
	cmp	r3, #11
	ble	.L50
	b	.L49
.L58:
	nop
.L49:
	nop
	ldr	r3, .L59
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L51
	bl	__stack_chk_fail
.L51:
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L60:
	.align	2
.L59:
	.word	.LC2
	.word	1107468383
	.word	_s_1.5983
	.word	_s_2.5984
	.word	1088290752
	.word	-1059192832
	.word	f
	.word	1075576832
	.size	find_predict, .-find_predict
	.global	__aeabi_dsub
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pack, %function
pack:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L62
.L65:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldmia	r3, {r4-r5}
	ldr	r2, .L66
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r3, .L66+4
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r2, .L66
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #4
	add	r3, r2, r3
	add	r3, r3, #8
	ldmia	r3, {r0-r1}
	ldr	r3, .L66+8
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	mov	r2, #1
	ldr	r3, [fp, #-52]
	lsl	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_d2iz
	mov	r3, r0
	add	r3, r3, #2048
	bic	r3, r3, #4080
	bic	r3, r3, #15
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #32768
	blt	.L63
	ldr	r3, .L66+12
	str	r3, [fp, #-36]
.L63:
	ldr	r3, [fp, #-36]
	cmn	r3, #32768
	bge	.L64
	ldr	r3, .L66+16
	str	r3, [fp, #-36]
.L64:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r2, [fp, #-36]
	lsl	r2, r2, #16
	asr	r2, r2, #16
	strh	r2, [r3]	@ movhi
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-52]
	asr	r3, r2, r3
	str	r3, [fp, #-36]
	ldr	r3, .L66+4
	ldmia	r3, {r2-r3}
	ldr	r1, .L66+8
	stm	r1, {r2-r3}
	ldr	r0, [fp, #-36]
	bl	__aeabi_i2d
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L66+4
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L62:
	ldr	r3, [fp, #-32]
	cmp	r3, #27
	ble	.L65
	nop
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L67:
	.align	2
.L66:
	.word	f
	.word	s_1.6009
	.word	s_2.6010
	.word	32767
	.word	-32768
	.size	pack, .-pack
	.local	_s_1.5983
	.comm	_s_1.5983,8,8
	.local	_s_2.5984
	.comm	_s_2.5984,8,8
	.local	s_1.6009
	.comm	s_1.6009,8,8
	.local	s_2.6010
	.comm	s_2.6010,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
