	.file	"271074.c"
	.intel_syntax noprefix
	.text
	.globl	version
	.section	.rodata
.LC0:
	.string	"1.2"
	.section	.data.rel.local,"aw"
	.align 8
	.type	version, @object
	.size	version, 8
version:
	.quad	.LC0
	.section	.rodata
	.align 8
.LC1:
	.string	"WavToRaw %s - Stephane Dallongeville - copyright 2016\n"
	.align 8
.LC2:
	.string	"Usage: wav2raw sourceFile destFile <outRate>"
.LC3:
	.string	"Output rate is given in Hz."
	.align 8
.LC4:
	.string	"Success returns errorlevel 0. Error return greater than zero."
	.align 8
.LC5:
	.string	"Ex: wav2raw input.wav output.raw 11025"
.LC6:
	.string	"rb"
	.align 8
.LC7:
	.string	"The source file %s was not opened\n"
.LC8:
	.string	"%4s"
.LC9:
	.string	"Failed to read prefix"
.LC10:
	.string	"%4c"
.LC11:
	.string	"Failed to read &nChunkSize"
.LC12:
	.string	"Failed to read fileFormat"
.LC13:
	.string	"Failed to read ckID"
.LC14:
	.string	"%2c"
.LC15:
	.string	"Failed to read &wFormatTag"
.LC16:
	.string	"Failed to read &nChannels"
	.align 8
.LC17:
	.string	"Failed to read &nSamplesPerSecond"
	.align 8
.LC18:
	.string	"Failed to read &nBytesPerSecond"
.LC19:
	.string	"Failed to read &nBlockAlign"
	.align 8
.LC20:
	.string	"Failed to read &nBitsPerSample"
.LC21:
	.string	"%1c"
.LC22:
	.string	"Failed to read &j"
.LC23:
	.string	"wb"
	.align 8
.LC24:
	.string	"The output file %s was not opened\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 160
	mov	DWORD PTR -148[rbp], edi
	mov	QWORD PTR -160[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -148[rbp], 2
	jg	.L2
	mov	rax, QWORD PTR version[rip]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	edi, 10
	call	putchar@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -160[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	jne	.L3
	mov	rax, QWORD PTR -160[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 2
	call	exit@PLT
.L3:
	cmp	DWORD PTR -148[rbp], 3
	jle	.L4
	mov	rax, QWORD PTR -160[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -108[rbp], eax
	jmp	.L5
.L4:
	mov	DWORD PTR -108[rbp], 0
.L5:
	lea	rdx, -20[rbp]
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, 1
	je	.L6
	lea	rdi, .LC9[rip]
	call	puts@PLT
.L6:
	lea	rdx, -124[rbp]
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, 1
	je	.L7
	lea	rdi, .LC11[rip]
	call	puts@PLT
.L7:
	lea	rdx, -16[rbp]
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, 1
	je	.L8
	lea	rdi, .LC12[rip]
	call	puts@PLT
.L8:
	lea	rdx, -12[rbp]
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, 1
	je	.L9
	lea	rdi, .LC13[rip]
	call	puts@PLT
.L9:
	lea	rdx, -124[rbp]
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, 1
	je	.L10
	lea	rdi, .LC11[rip]
	call	puts@PLT
.L10:
	lea	rdx, -132[rbp]
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, 1
	je	.L11
	lea	rdi, .LC15[rip]
	call	puts@PLT
.L11:
	lea	rdx, -130[rbp]
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, 1
	je	.L12
	lea	rdi, .LC16[rip]
	call	puts@PLT
.L12:
	lea	rdx, -120[rbp]
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, 1
	je	.L13
	lea	rdi, .LC17[rip]
	call	puts@PLT
.L13:
	lea	rdx, -116[rbp]
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, 1
	je	.L14
	lea	rdi, .LC18[rip]
	call	puts@PLT
.L14:
	lea	rdx, -128[rbp]
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, 1
	je	.L15
	lea	rdi, .LC19[rip]
	call	puts@PLT
.L15:
	lea	rdx, -126[rbp]
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, 1
	je	.L16
	lea	rdi, .LC20[rip]
	call	puts@PLT
.L16:
	mov	DWORD PTR -104[rbp], 0
	jmp	.L17
.L19:
	lea	rdx, -112[rbp]
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, 1
	je	.L18
	lea	rdi, .LC22[rip]
	call	puts@PLT
.L18:
	add	DWORD PTR -104[rbp], 1
.L17:
	mov	eax, DWORD PTR -124[rbp]
	lea	edx, -16[rax]
	mov	eax, DWORD PTR -104[rbp]
	cmp	edx, eax
	ja	.L19
	lea	rdx, -12[rbp]
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, 1
	je	.L20
	lea	rdi, .LC13[rip]
	call	puts@PLT
.L20:
	lea	rdx, -124[rbp]
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, 1
	je	.L21
	lea	rdi, .LC11[rip]
	call	puts@PLT
.L21:
	cmp	DWORD PTR -108[rbp], 0
	jne	.L22
	mov	eax, DWORD PTR -120[rbp]
	mov	DWORD PTR -108[rbp], eax
.L22:
	mov	rax, QWORD PTR -160[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -48[rbp], 0
	jne	.L23
	mov	rax, QWORD PTR -160[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC24[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 3
	call	exit@PLT
.L23:
	movzx	eax, WORD PTR -126[rbp]
	lea	edx, 7[rax]
	test	ax, ax
	cmovs	eax, edx
	sar	ax, 3
	cwde
	mov	DWORD PTR -96[rbp], eax
	mov	eax, DWORD PTR -124[rbp]
	movzx	edx, WORD PTR -130[rbp]
	movsx	edx, dx
	imul	edx, DWORD PTR -96[rbp]
	mov	ecx, edx
	mov	edx, 0
	div	ecx
	mov	DWORD PTR -92[rbp], eax
	movzx	eax, WORD PTR -130[rbp]
	movsx	ecx, ax
	mov	eax, DWORD PTR -124[rbp]
	mov	esi, eax
	mov	edx, DWORD PTR -96[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	readSample
	mov	QWORD PTR -40[rbp], rax
	mov	eax, DWORD PTR -120[rbp]
	mov	eax, eax
	test	rax, rax
	js	.L24
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L25
.L24:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L25:
	movsd	QWORD PTR -32[rbp], xmm0
	mov	eax, DWORD PTR -108[rbp]
	test	rax, rax
	js	.L26
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L27
.L26:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L27:
	movsd	xmm1, QWORD PTR -32[rbp]
	divsd	xmm1, xmm0
	movsd	QWORD PTR -32[rbp], xmm1
	pxor	xmm0, xmm0
	movsd	QWORD PTR -80[rbp], xmm0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -72[rbp], xmm0
	mov	DWORD PTR -100[rbp], 0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -88[rbp], xmm0
	jmp	.L28
.L39:
	pxor	xmm0, xmm0
	movsd	QWORD PTR -64[rbp], xmm0
	movsd	xmm0, QWORD PTR -32[rbp]
	movsd	xmm1, QWORD PTR .LC26[rip]
	comisd	xmm0, xmm1
	jbe	.L45
	pxor	xmm0, xmm0
	comisd	xmm0, QWORD PTR -80[rbp]
	jbe	.L31
	movsd	xmm0, QWORD PTR -80[rbp]
	movq	xmm1, QWORD PTR .LC27[rip]
	xorpd	xmm0, xmm1
	mulsd	xmm0, QWORD PTR -72[rbp]
	movsd	xmm1, QWORD PTR -64[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -64[rbp], xmm0
.L31:
	movsd	xmm0, QWORD PTR -80[rbp]
	addsd	xmm0, QWORD PTR -32[rbp]
	movsd	QWORD PTR -80[rbp], xmm0
	jmp	.L33
.L37:
	mov	eax, DWORD PTR -100[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -100[rbp], edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	movsd	QWORD PTR -72[rbp], xmm0
	movsd	xmm0, QWORD PTR -80[rbp]
	movsd	xmm1, QWORD PTR .LC26[rip]
	comisd	xmm0, xmm1
	jb	.L46
	movsd	xmm0, QWORD PTR -64[rbp]
	addsd	xmm0, QWORD PTR -72[rbp]
	movsd	QWORD PTR -64[rbp], xmm0
	jmp	.L36
.L46:
	movsd	xmm0, QWORD PTR -72[rbp]
	mulsd	xmm0, QWORD PTR -80[rbp]
	movsd	xmm1, QWORD PTR -64[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -64[rbp], xmm0
.L36:
	movsd	xmm0, QWORD PTR -80[rbp]
	movsd	xmm1, QWORD PTR .LC26[rip]
	subsd	xmm0, xmm1
	movsd	QWORD PTR -80[rbp], xmm0
.L33:
	movsd	xmm0, QWORD PTR -80[rbp]
	pxor	xmm1, xmm1
	comisd	xmm0, xmm1
	ja	.L37
	movsd	xmm0, QWORD PTR -64[rbp]
	divsd	xmm0, QWORD PTR -32[rbp]
	movsd	QWORD PTR -64[rbp], xmm0
	jmp	.L38
.L45:
	movsd	xmm0, QWORD PTR -88[rbp]
	cvttsd2si	eax, xmm0
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	movsd	QWORD PTR -64[rbp], xmm0
.L38:
	mov	rax, QWORD PTR -64[rbp]
	movq	xmm0, rax
	call	round@PLT
	cvttsd2si	eax, xmm0
	mov	BYTE PTR -133[rbp], al
	mov	rdx, QWORD PTR -48[rbp]
	lea	rax, -133[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	movsd	xmm0, QWORD PTR -88[rbp]
	addsd	xmm0, QWORD PTR -32[rbp]
	movsd	QWORD PTR -88[rbp], xmm0
.L28:
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -92[rbp]
	comisd	xmm0, QWORD PTR -88[rbp]
	ja	.L39
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L41
	call	__stack_chk_fail@PLT
.L41:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC28:
	.string	"%3c"
	.text
	.globl	nextSample
	.type	nextSample, @function
nextSample:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	DWORD PTR -48[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	pxor	xmm0, xmm0
	movsd	QWORD PTR -16[rbp], xmm0
	mov	DWORD PTR -28[rbp], 0
	jmp	.L48
.L54:
	cmp	DWORD PTR -44[rbp], 4
	je	.L49
	cmp	DWORD PTR -44[rbp], 4
	jg	.L50
	cmp	DWORD PTR -44[rbp], 3
	je	.L51
	cmp	DWORD PTR -44[rbp], 3
	jg	.L50
	cmp	DWORD PTR -44[rbp], 1
	je	.L52
	cmp	DWORD PTR -44[rbp], 2
	je	.L53
	jmp	.L50
.L52:
	lea	rdx, -31[rbp]
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	movzx	eax, BYTE PTR -31[rbp]
	movzx	eax, al
	add	eax, -128
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR -16[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -16[rbp], xmm0
	jmp	.L50
.L53:
	lea	rdx, -30[rbp]
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	movzx	eax, WORD PTR -30[rbp]
	sar	ax, 8
	cwde
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR -16[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -16[rbp], xmm0
	jmp	.L50
.L51:
	lea	rdx, -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC28[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	movzx	eax, WORD PTR -30[rbp]
	cwde
	sar	eax, 16
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR -16[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -16[rbp], xmm0
	jmp	.L50
.L49:
	lea	rdx, -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	movzx	eax, WORD PTR -30[rbp]
	cwde
	sar	eax, 24
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR -16[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -16[rbp], xmm0
	nop
.L50:
	add	DWORD PTR -28[rbp], 1
.L48:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -48[rbp]
	jl	.L54
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -48[rbp]
	movsd	xmm0, QWORD PTR -16[rbp]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L56
	call	__stack_chk_fail@PLT
.L56:
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	nextSample, .-nextSample
	.globl	readSample
	.type	readSample, @function
readSample:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 72
	.cfi_offset 3, -24
	mov	QWORD PTR -56[rbp], rdi
	mov	DWORD PTR -60[rbp], esi
	mov	DWORD PTR -64[rbp], edx
	mov	DWORD PTR -68[rbp], ecx
	mov	eax, DWORD PTR -68[rbp]
	imul	eax, DWORD PTR -64[rbp]
	mov	esi, eax
	mov	eax, DWORD PTR -60[rbp]
	cdq
	idiv	esi
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	DWORD PTR -40[rbp], 0
	jmp	.L58
.L59:
	mov	rbx, QWORD PTR -32[rbp]
	lea	rax, 8[rbx]
	mov	QWORD PTR -32[rbp], rax
	mov	edx, DWORD PTR -68[rbp]
	mov	ecx, DWORD PTR -64[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	nextSample
	movq	rax, xmm0
	mov	QWORD PTR [rbx], rax
	add	DWORD PTR -40[rbp], 1
.L58:
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L59
	mov	rax, QWORD PTR -24[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	readSample, .-readSample
	.section	.rodata
	.align 8
.LC26:
	.long	0
	.long	1072693248
	.align 16
.LC27:
	.long	0
	.long	-2147483648
	.long	0
	.long	0
	.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	"271074.c"
	.text
	.global	version
	.section	.rodata
	.align	2
.LC0:
	.ascii	"1.2\000"
	.data
	.align	2
	.type	version, %object
	.size	version, 4
version:
	.word	.LC0
	.section	.rodata
	.align	2
.LC1:
	.ascii	"WavToRaw %s - Stephane Dallongeville - copyright 20"
	.ascii	"16\012\000"
	.align	2
.LC2:
	.ascii	"Usage: wav2raw sourceFile destFile <outRate>\000"
	.align	2
.LC3:
	.ascii	"Output rate is given in Hz.\000"
	.align	2
.LC4:
	.ascii	"Success returns errorlevel 0. Error return greater "
	.ascii	"than zero.\000"
	.align	2
.LC5:
	.ascii	"Ex: wav2raw input.wav output.raw 11025\000"
	.align	2
.LC6:
	.ascii	"rb\000"
	.align	2
.LC7:
	.ascii	"The source file %s was not opened\012\000"
	.align	2
.LC8:
	.ascii	"%4s\000"
	.align	2
.LC9:
	.ascii	"Failed to read prefix\000"
	.align	2
.LC10:
	.ascii	"%4c\000"
	.align	2
.LC11:
	.ascii	"Failed to read &nChunkSize\000"
	.align	2
.LC12:
	.ascii	"Failed to read fileFormat\000"
	.align	2
.LC13:
	.ascii	"Failed to read ckID\000"
	.align	2
.LC14:
	.ascii	"%2c\000"
	.align	2
.LC15:
	.ascii	"Failed to read &wFormatTag\000"
	.align	2
.LC16:
	.ascii	"Failed to read &nChannels\000"
	.align	2
.LC17:
	.ascii	"Failed to read &nSamplesPerSecond\000"
	.align	2
.LC18:
	.ascii	"Failed to read &nBytesPerSecond\000"
	.align	2
.LC19:
	.ascii	"Failed to read &nBlockAlign\000"
	.align	2
.LC20:
	.ascii	"Failed to read &nBitsPerSample\000"
	.align	2
.LC21:
	.ascii	"%1c\000"
	.align	2
.LC22:
	.ascii	"Failed to read &j\000"
	.align	2
.LC23:
	.ascii	"wb\000"
	.align	2
.LC24:
	.ascii	"The output file %s was not opened\012\000"
	.global	__aeabi_uidiv
	.global	__aeabi_ui2d
	.global	__aeabi_ddiv
	.global	__aeabi_dcmpgt
	.global	__aeabi_dcmplt
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.global	__aeabi_dcmpge
	.global	__aeabi_dsub
	.global	__aeabi_d2iz
	.global	__aeabi_d2uiz
	.global	__aeabi_i2d
	.align	2
.LC25:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #128
	str	r0, [fp, #-136]
	str	r1, [fp, #-140]
	ldr	r3, .L43
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-136]
	cmp	r3, #2
	bgt	.L2
	ldr	r3, .L43+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L43+8
	bl	printf
	mov	r0, #10
	bl	putchar
	ldr	r0, .L43+12
	bl	puts
	ldr	r0, .L43+16
	bl	puts
	ldr	r0, .L43+20
	bl	puts
	mov	r0, #10
	bl	putchar
	ldr	r0, .L43+24
	bl	puts
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-140]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L43+28
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-88]
	ldr	r3, [fp, #-88]
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-140]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L43+32
	bl	printf
	mov	r0, #2
	bl	exit
.L3:
	ldr	r3, [fp, #-136]
	cmp	r3, #3
	ble	.L4
	ldr	r3, [fp, #-140]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-100]
	b	.L5
.L4:
	mov	r3, #0
	str	r3, [fp, #-100]
.L5:
	sub	r3, fp, #28
	mov	r2, r3
	ldr	r1, .L43+36
	ldr	r0, [fp, #-88]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L6
	ldr	r0, .L43+40
	bl	puts
.L6:
	sub	r3, fp, #116
	mov	r2, r3
	ldr	r1, .L43+44
	ldr	r0, [fp, #-88]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L7
	ldr	r0, .L43+48
	bl	puts
.L7:
	sub	r3, fp, #24
	mov	r2, r3
	ldr	r1, .L43+44
	ldr	r0, [fp, #-88]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L8
	ldr	r0, .L43+52
	bl	puts
.L8:
	sub	r3, fp, #20
	mov	r2, r3
	ldr	r1, .L43+44
	ldr	r0, [fp, #-88]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L9
	ldr	r0, .L43+56
	bl	puts
.L9:
	sub	r3, fp, #116
	mov	r2, r3
	ldr	r1, .L43+44
	ldr	r0, [fp, #-88]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L10
	ldr	r0, .L43+48
	bl	puts
.L10:
	sub	r3, fp, #124
	mov	r2, r3
	ldr	r1, .L43+60
	ldr	r0, [fp, #-88]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L11
	ldr	r0, .L43+64
	bl	puts
.L11:
	sub	r3, fp, #122
	mov	r2, r3
	ldr	r1, .L43+60
	ldr	r0, [fp, #-88]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L12
	ldr	r0, .L43+68
	bl	puts
.L12:
	sub	r3, fp, #112
	mov	r2, r3
	ldr	r1, .L43+44
	ldr	r0, [fp, #-88]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L13
	ldr	r0, .L43+72
	bl	puts
.L13:
	sub	r3, fp, #108
	mov	r2, r3
	ldr	r1, .L43+44
	ldr	r0, [fp, #-88]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L14
	ldr	r0, .L43+76
	bl	puts
.L14:
	sub	r3, fp, #120
	mov	r2, r3
	ldr	r1, .L43+60
	ldr	r0, [fp, #-88]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L15
	ldr	r0, .L43+80
	bl	puts
.L15:
	sub	r3, fp, #118
	mov	r2, r3
	ldr	r1, .L43+60
	ldr	r0, [fp, #-88]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L16
	ldr	r0, .L43+84
	bl	puts
.L16:
	mov	r3, #0
	str	r3, [fp, #-96]
	b	.L17
.L19:
	sub	r3, fp, #104
	mov	r2, r3
	ldr	r1, .L43+88
	ldr	r0, [fp, #-88]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L18
	ldr	r0, .L43+92
	bl	puts
.L18:
	ldr	r3, [fp, #-96]
	add	r3, r3, #1
	str	r3, [fp, #-96]
.L17:
	ldr	r3, [fp, #-116]
	sub	r2, r3, #16
	ldr	r3, [fp, #-96]
	cmp	r2, r3
	bhi	.L19
	sub	r3, fp, #20
	mov	r2, r3
	ldr	r1, .L43+44
	ldr	r0, [fp, #-88]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L20
	ldr	r0, .L43+56
	bl	puts
.L20:
	sub	r3, fp, #116
	mov	r2, r3
	ldr	r1, .L43+44
	ldr	r0, [fp, #-88]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L21
	ldr	r0, .L43+48
	bl	puts
.L21:
	ldr	r3, [fp, #-100]
	cmp	r3, #0
	bne	.L22
	ldr	r3, [fp, #-112]
	str	r3, [fp, #-100]
.L22:
	ldr	r3, [fp, #-140]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L43+96
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-84]
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	bne	.L23
	ldr	r3, [fp, #-140]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L43+100
	bl	printf
	mov	r0, #3
	bl	exit
.L23:
	ldrsh	r3, [fp, #-118]
	add	r2, r3, #7
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	str	r3, [fp, #-80]
	ldr	r2, [fp, #-116]
	ldrsh	r3, [fp, #-122]
	mov	r1, r3
	ldr	r3, [fp, #-80]
	mul	r3, r1, r3
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_uidiv
	mov	r3, r0
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-116]
	mov	r1, r3
	ldrsh	r3, [fp, #-122]
	ldr	r2, [fp, #-80]
	ldr	r0, [fp, #-88]
	bl	readSample
	str	r0, [fp, #-72]
	ldr	r3, [fp, #-112]
	mov	r0, r3
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r0, [fp, #-100]
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-92]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	b	.L24
.L35:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	mov	r2, #0
	ldr	r3, .L43+104
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L41
	mov	r2, #0
	mov	r3, #0
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L27
	ldr	r4, [fp, #-60]
	ldr	r3, [fp, #-56]
	eor	r5, r3, #-2147483648
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
.L27:
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	b	.L29
.L33:
	ldr	r3, [fp, #-92]
	add	r2, r3, #1
	str	r2, [fp, #-92]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	mov	r2, #0
	ldr	r3, .L43+104
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpge
	mov	r3, r0
	cmp	r3, #0
	beq	.L42
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	b	.L32
.L42:
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
.L32:
	mov	r2, #0
	ldr	r3, .L43+104
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
.L29:
	mov	r2, #0
	mov	r3, #0
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	bne	.L33
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	b	.L34
.L41:
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	bl	__aeabi_d2iz
	mov	r3, r0
	lsl	r3, r3, #3
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
.L34:
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	round
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2uiz
	mov	r3, r0
	and	r3, r3, #255
	strb	r3, [fp, #-125]
	sub	r0, fp, #125
	ldr	r3, [fp, #-84]
	mov	r2, #1
	mov	r1, #1
	bl	fwrite
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
.L24:
	ldr	r0, [fp, #-76]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	bne	.L35
	ldr	r0, [fp, #-88]
	bl	fclose
	ldr	r0, [fp, #-84]
	bl	fclose
	mov	r3, #0
	ldr	r2, .L43
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L37
	bl	__stack_chk_fail
.L37:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L44:
	.align	2
.L43:
	.word	.LC25
	.word	version
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	1072693248
	.size	main, .-main
	.section	.rodata
	.align	2
.LC26:
	.ascii	"%3c\000"
	.align	2
.LC27:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	nextSample
	.syntax unified
	.arm
	.fpu softvfp
	.type	nextSample, %function
nextSample:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	ldr	r3, .L56
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L46
.L53:
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L47
.L49:
	.word	.L52
	.word	.L51
	.word	.L50
	.word	.L48
.L52:
	sub	r3, fp, #31
	mov	r2, r3
	ldr	r1, .L56+4
	ldr	r0, [fp, #-40]
	bl	__isoc99_fscanf
	ldrb	r3, [fp, #-31]	@ zero_extendqisi2
	sub	r3, r3, #128
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	b	.L47
.L51:
	sub	r3, fp, #30
	mov	r2, r3
	ldr	r1, .L56+8
	ldr	r0, [fp, #-40]
	bl	__isoc99_fscanf
	ldrsh	r3, [fp, #-30]
	asr	r3, r3, #8
	lsl	r3, r3, #16
	asr	r3, r3, #16
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	b	.L47
.L50:
	sub	r3, fp, #28
	mov	r2, r3
	ldr	r1, .L56+12
	ldr	r0, [fp, #-40]
	bl	__isoc99_fscanf
	ldrsh	r3, [fp, #-30]
	asr	r3, r3, #16
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	b	.L47
.L48:
	sub	r3, fp, #28
	mov	r2, r3
	ldr	r1, .L56+16
	ldr	r0, [fp, #-40]
	bl	__isoc99_fscanf
	ldrsh	r3, [fp, #-30]
	asr	r3, r3, #24
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	nop
.L47:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L46:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	blt	.L53
	ldr	r0, [fp, #-48]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L56
	ldr	r0, [r1]
	ldr	r1, [fp, #-8]
	eors	r0, r1, r0
	mov	r1, #0
	beq	.L55
	bl	__stack_chk_fail
.L55:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L57:
	.align	2
.L56:
	.word	.LC27
	.word	.LC21
	.word	.LC14
	.word	.LC26
	.word	.LC10
	.size	nextSample, .-nextSample
	.global	__aeabi_idiv
	.align	2
	.global	readSample
	.syntax unified
	.arm
	.fpu softvfp
	.type	readSample, %function
readSample:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-40]
	mul	r3, r2, r3
	mov	r1, r3
	ldr	r0, [fp, #-36]
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L59
.L60:
	ldr	r4, [fp, #-28]
	add	r3, r4, #8
	str	r3, [fp, #-28]
	ldr	r2, [fp, #-44]
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-32]
	bl	nextSample
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L59:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L60
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	readSample, .-readSample
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
