	.file	"168367.c"
	.intel_syntax noprefix
	.text
	.globl	SAMPLE_RATE
	.section	.rodata
	.align 4
	.type	SAMPLE_RATE, @object
	.size	SAMPLE_RATE, 4
SAMPLE_RATE:
	.long	9600
	.globl	ONE_FREQ
	.align 4
	.type	ONE_FREQ, @object
	.size	ONE_FREQ, 4
ONE_FREQ:
	.long	2400
	.globl	ZERO_FREQ
	.align 4
	.type	ZERO_FREQ, @object
	.size	ZERO_FREQ, 4
ZERO_FREQ:
	.long	1200
	.globl	ZERO_CYCLES_PER_BIT
	.align 4
	.type	ZERO_CYCLES_PER_BIT, @object
	.size	ZERO_CYCLES_PER_BIT, 4
ZERO_CYCLES_PER_BIT:
	.long	4
	.globl	ONE_CYCLES_PER_BIT
	.align 4
	.type	ONE_CYCLES_PER_BIT, @object
	.size	ONE_CYCLES_PER_BIT, 4
ONE_CYCLES_PER_BIT:
	.long	8
	.globl	SAMPLES_PER_BIT
	.align 4
	.type	SAMPLES_PER_BIT, @object
	.size	SAMPLES_PER_BIT, 4
SAMPLES_PER_BIT:
	.long	32
	.globl	BITS_PER_BYTE
	.align 4
	.type	BITS_PER_BYTE, @object
	.size	BITS_PER_BYTE, 4
BITS_PER_BYTE:
	.long	11
	.globl	AMPLITUDE
	.align 4
	.type	AMPLITUDE, @object
	.size	AMPLITUDE, 4
AMPLITUDE:
	.long	1056964608
	.globl	LEAD
	.align 4
	.type	LEAD, @object
	.size	LEAD, 4
LEAD:
	.long	5
	.globl	TAIL
	.align 4
	.type	TAIL, @object
	.size	TAIL, 4
TAIL:
	.long	5
	.text
	.globl	isBigEndian
	.type	isBigEndian, @function
isBigEndian:
.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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -20[rbp], 1
	lea	rax, -20[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	sete	al
	movzx	eax, al
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	isBigEndian, .-isBigEndian
	.globl	reverseEndianness
	.type	reverseEndianness, @function
reverseEndianness:
.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, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -52[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -72[rbp]
	sub	rax, rdx
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	mov	BYTE PTR -48[rbp+rax], dl
	add	DWORD PTR -52[rbp], 1
.L5:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	cmp	QWORD PTR -72[rbp], rax
	jg	.L6
	mov	DWORD PTR -52[rbp], 0
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -80[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	movzx	eax, BYTE PTR -48[rbp+rax]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -52[rbp], 1
.L7:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	cmp	QWORD PTR -72[rbp], rax
	jg	.L8
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	reverseEndianness, .-reverseEndianness
	.globl	toBigEndian
	.type	toBigEndian, @function
toBigEndian:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	eax, 0
	call	isBigEndian
	test	eax, eax
	jne	.L12
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	reverseEndianness
.L12:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	toBigEndian, .-toBigEndian
	.globl	toLittleEndian
	.type	toLittleEndian, @function
toLittleEndian:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	eax, 0
	call	isBigEndian
	test	eax, eax
	je	.L15
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	reverseEndianness
.L15:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	toLittleEndian, .-toLittleEndian
	.globl	makeWaveHeader
	.type	makeWaveHeader, @function
makeWaveHeader:
.LFB10:
	.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, 88
	.cfi_offset 3, -24
	mov	QWORD PTR -88[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -80[rbp], 82
	mov	BYTE PTR -79[rbp], 73
	mov	BYTE PTR -78[rbp], 70
	mov	BYTE PTR -77[rbp], 70
	mov	BYTE PTR -72[rbp], 87
	mov	BYTE PTR -71[rbp], 65
	mov	BYTE PTR -70[rbp], 86
	mov	BYTE PTR -69[rbp], 69
	mov	BYTE PTR -68[rbp], 102
	mov	BYTE PTR -67[rbp], 109
	mov	BYTE PTR -66[rbp], 116
	mov	BYTE PTR -65[rbp], 32
	mov	WORD PTR -60[rbp], 1
	mov	WORD PTR -58[rbp], 1
	mov	eax, 9600
	mov	DWORD PTR -56[rbp], eax
	mov	WORD PTR -46[rbp], 16
	mov	edx, DWORD PTR -56[rbp]
	movzx	eax, WORD PTR -46[rbp]
	cwde
	imul	eax, edx
	lea	edx, 7[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 3
	mov	DWORD PTR -52[rbp], eax
	movzx	eax, WORD PTR -46[rbp]
	lea	edx, 7[rax]
	test	ax, ax
	cmovs	eax, edx
	sar	ax, 3
	mov	WORD PTR -48[rbp], ax
	mov	BYTE PTR -44[rbp], 100
	mov	BYTE PTR -43[rbp], 97
	mov	BYTE PTR -42[rbp], 116
	mov	BYTE PTR -41[rbp], 97
	mov	DWORD PTR -64[rbp], 16
	mov	DWORD PTR -40[rbp], 0
	mov	eax, DWORD PTR -64[rbp]
	lea	edx, 20[rax]
	mov	eax, DWORD PTR -40[rbp]
	add	eax, edx
	mov	DWORD PTR -76[rbp], eax
	mov	rax, QWORD PTR -88[rbp]
	mov	rcx, QWORD PTR -80[rbp]
	mov	rbx, QWORD PTR -72[rbp]
	mov	QWORD PTR [rax], rcx
	mov	QWORD PTR 8[rax], rbx
	mov	rcx, QWORD PTR -64[rbp]
	mov	rbx, QWORD PTR -56[rbp]
	mov	QWORD PTR 16[rax], rcx
	mov	QWORD PTR 24[rax], rbx
	mov	rdx, QWORD PTR -48[rbp]
	mov	QWORD PTR 32[rax], rdx
	mov	edx, DWORD PTR -40[rbp]
	mov	DWORD PTR 40[rax], edx
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	mov	rax, QWORD PTR -88[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	makeWaveHeader, .-makeWaveHeader
	.globl	makeWave
	.type	makeWave, @function
makeWave:
.LFB11:
	.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, 152
	.cfi_offset 3, -24
	mov	QWORD PTR -104[rbp], rdi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rax, -160[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	makeWaveHeader
	mov	rax, QWORD PTR -160[rbp]
	mov	rdx, QWORD PTR -152[rbp]
	mov	QWORD PTR -96[rbp], rax
	mov	QWORD PTR -88[rbp], rdx
	mov	rax, QWORD PTR -144[rbp]
	mov	rdx, QWORD PTR -136[rbp]
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR -128[rbp]
	mov	QWORD PTR -64[rbp], rax
	mov	eax, DWORD PTR -120[rbp]
	mov	DWORD PTR -56[rbp], eax
	mov	rax, QWORD PTR -112[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	QWORD PTR -48[rbp], 0
	mov	rax, QWORD PTR -104[rbp]
	mov	rcx, QWORD PTR -96[rbp]
	mov	rbx, QWORD PTR -88[rbp]
	mov	QWORD PTR [rax], rcx
	mov	QWORD PTR 8[rax], rbx
	mov	rcx, QWORD PTR -80[rbp]
	mov	rbx, QWORD PTR -72[rbp]
	mov	QWORD PTR 16[rax], rcx
	mov	QWORD PTR 24[rax], rbx
	mov	rcx, QWORD PTR -64[rbp]
	mov	rbx, QWORD PTR -56[rbp]
	mov	QWORD PTR 32[rax], rcx
	mov	QWORD PTR 40[rax], rbx
	mov	rcx, QWORD PTR -48[rbp]
	mov	rbx, QWORD PTR -40[rbp]
	mov	QWORD PTR 48[rax], rcx
	mov	QWORD PTR 56[rax], rbx
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	mov	rax, QWORD PTR -104[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	makeWave, .-makeWave
	.globl	waveAddSample
	.type	waveAddSample, @function
waveAddSample:
.LFB12:
	.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
	movss	DWORD PTR -44[rbp], xmm0
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movss	xmm1, DWORD PTR -44[rbp]
	movss	xmm0, DWORD PTR .LC0[rip]
	mulss	xmm0, xmm1
	cvttss2si	eax, xmm0
	mov	DWORD PTR -20[rbp], eax
	lea	rax, -20[rbp]
	mov	rsi, rax
	mov	edi, 2
	call	toLittleEndian
	lea	rax, -20[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 56[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 48[rax]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR 48[rax], rdx
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	waveAddSample, .-waveAddSample
	.globl	ONE_N
	.data
	.align 4
	.type	ONE_N, @object
	.size	ONE_N, 4
ONE_N:
	.long	2
	.text
	.globl	writeOne
	.type	writeOne, @function
writeOne:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -12[rbp], 0
	jmp	.L25
.L30:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L26
.L27:
	movss	xmm0, DWORD PTR .LC1[rip]
	movss	xmm1, DWORD PTR .LC2[rip]
	xorps	xmm0, xmm1
	movd	edx, xmm0
	mov	rax, QWORD PTR -24[rbp]
	movd	xmm0, edx
	mov	rdi, rax
	call	waveAddSample
	add	DWORD PTR -8[rbp], 1
.L26:
	mov	eax, DWORD PTR ONE_N[rip]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L27
	mov	DWORD PTR -4[rbp], 0
	jmp	.L28
.L29:
	mov	edx, DWORD PTR .LC1[rip]
	mov	rax, QWORD PTR -24[rbp]
	movd	xmm0, edx
	mov	rdi, rax
	call	waveAddSample
	add	DWORD PTR -4[rbp], 1
.L28:
	mov	eax, DWORD PTR ONE_N[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L29
	add	DWORD PTR -12[rbp], 1
.L25:
	mov	eax, 8
	cmp	DWORD PTR -12[rbp], eax
	jl	.L30
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	writeOne, .-writeOne
	.globl	ZERO_N
	.data
	.align 4
	.type	ZERO_N, @object
	.size	ZERO_N, 4
ZERO_N:
	.long	4
	.text
	.globl	writeZero
	.type	writeZero, @function
writeZero:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -12[rbp], 0
	jmp	.L32
.L37:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L33
.L34:
	movss	xmm0, DWORD PTR .LC1[rip]
	movss	xmm1, DWORD PTR .LC2[rip]
	xorps	xmm0, xmm1
	movd	edx, xmm0
	mov	rax, QWORD PTR -24[rbp]
	movd	xmm0, edx
	mov	rdi, rax
	call	waveAddSample
	add	DWORD PTR -8[rbp], 1
.L33:
	mov	eax, DWORD PTR ZERO_N[rip]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L34
	mov	DWORD PTR -4[rbp], 0
	jmp	.L35
.L36:
	mov	edx, DWORD PTR .LC1[rip]
	mov	rax, QWORD PTR -24[rbp]
	movd	xmm0, edx
	mov	rdi, rax
	call	waveAddSample
	add	DWORD PTR -4[rbp], 1
.L35:
	mov	eax, DWORD PTR ZERO_N[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L36
	add	DWORD PTR -12[rbp], 1
.L32:
	mov	eax, 4
	cmp	DWORD PTR -12[rbp], eax
	jl	.L37
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	writeZero, .-writeZero
	.globl	waveWriteHeader
	.type	waveWriteHeader, @function
waveWriteHeader:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	ecx, eax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR 34[rax]
	lea	edx, 7[rax]
	test	ax, ax
	cmovs	eax, edx
	sar	ax, 3
	cwde
	imul	eax, ecx
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 40[rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 16[rax]
	lea	edx, 20[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 40[rax]
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 56[rax]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 56[rax]
	mov	rdi, rax
	call	rewind@PLT
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4
	mov	rsi, rax
	mov	edi, 4
	call	toLittleEndian
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 16
	mov	rsi, rax
	mov	edi, 4
	call	toLittleEndian
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 20
	mov	rsi, rax
	mov	edi, 2
	call	toLittleEndian
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 22
	mov	rsi, rax
	mov	edi, 2
	call	toLittleEndian
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 24
	mov	rsi, rax
	mov	edi, 4
	call	toLittleEndian
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 28
	mov	rsi, rax
	mov	edi, 4
	call	toLittleEndian
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 32
	mov	rsi, rax
	mov	edi, 2
	call	toLittleEndian
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 34
	mov	rsi, rax
	mov	edi, 2
	call	toLittleEndian
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 40
	mov	rsi, rax
	mov	edi, 4
	call	toLittleEndian
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 56[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 44
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4
	mov	rsi, rax
	mov	edi, 4
	call	toLittleEndian
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 16
	mov	rsi, rax
	mov	edi, 4
	call	toLittleEndian
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 20
	mov	rsi, rax
	mov	edi, 2
	call	toLittleEndian
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 22
	mov	rsi, rax
	mov	edi, 2
	call	toLittleEndian
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 24
	mov	rsi, rax
	mov	edi, 4
	call	toLittleEndian
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 28
	mov	rsi, rax
	mov	edi, 4
	call	toLittleEndian
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 32
	mov	rsi, rax
	mov	edi, 2
	call	toLittleEndian
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 34
	mov	rsi, rax
	mov	edi, 2
	call	toLittleEndian
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 40
	mov	rsi, rax
	mov	edi, 4
	call	toLittleEndian
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 56[rax]
	mov	rcx, QWORD PTR -8[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	waveWriteHeader, .-waveWriteHeader
	.globl	waveWriteByte
	.type	waveWriteByte, @function
waveWriteByte:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	eax, esi
	mov	BYTE PTR -28[rbp], al
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	writeZero
	mov	DWORD PTR -8[rbp], 0
	jmp	.L40
.L43:
	movsx	edx, BYTE PTR -28[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	ecx, eax
	sar	edx, cl
	mov	eax, edx
	and	eax, 1
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 1
	jne	.L41
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	writeOne
	jmp	.L42
.L41:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	writeZero
.L42:
	add	DWORD PTR -8[rbp], 1
.L40:
	cmp	DWORD PTR -8[rbp], 7
	jle	.L43
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	writeOne
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	writeOne
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	waveWriteByte, .-waveWriteByte
	.section	.rodata
.LC3:
	.string	"error: too few arguments"
	.align 8
.LC4:
	.string	"usage: encoder input output.wav"
.LC5:
	.string	"rb"
	.align 8
.LC6:
	.string	"error: couldn't open %s for reading\n"
.LC7:
	.string	"wb"
	.align 8
.LC8:
	.string	"error: couldn't open %s for writing\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB17:
	.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	.L45
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L58
.L45:
	mov	rax, QWORD PTR -160[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -112[rbp], rax
	cmp	QWORD PTR -112[rbp], 0
	jne	.L47
	mov	rax, QWORD PTR -160[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L58
.L47:
	mov	rax, QWORD PTR -160[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -104[rbp], rax
	cmp	QWORD PTR -104[rbp], 0
	jne	.L48
	mov	rax, QWORD PTR -112[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -160[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L58
.L48:
	lea	rax, -96[rbp]
	mov	rdx, QWORD PTR -104[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	makeWave
	lea	rax, -96[rbp]
	mov	rdi, rax
	call	waveWriteHeader
	mov	edx, 5
	mov	eax, 9600
	imul	eax, edx
	mov	ecx, 32
	cdq
	idiv	ecx
	mov	DWORD PTR -124[rbp], eax
	mov	DWORD PTR -144[rbp], 0
	jmp	.L49
.L50:
	lea	rax, -96[rbp]
	mov	rdi, rax
	call	writeOne
	add	DWORD PTR -144[rbp], 1
.L49:
	mov	eax, DWORD PTR -144[rbp]
	cmp	eax, DWORD PTR -124[rbp]
	jl	.L50
	mov	DWORD PTR -140[rbp], 0
	mov	DWORD PTR -136[rbp], 0
	jmp	.L51
.L55:
	mov	rdx, QWORD PTR -112[rbp]
	lea	rax, -32[rbp]
	mov	rcx, rdx
	mov	edx, 16
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -116[rbp], eax
	mov	DWORD PTR -132[rbp], 0
	jmp	.L52
.L54:
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	movzx	eax, BYTE PTR -32[rbp+rax]
	movsx	edx, al
	mov	eax, DWORD PTR -140[rbp]
	add	eax, edx
	and	eax, 255
	mov	DWORD PTR -140[rbp], eax
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	movzx	eax, BYTE PTR -32[rbp+rax]
	movsx	edx, al
	lea	rax, -96[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	waveWriteByte
	cmp	DWORD PTR -136[rbp], 3
	jne	.L53
	mov	eax, DWORD PTR -140[rbp]
	xor	al, -1
	add	eax, 1
	and	eax, 255
	mov	DWORD PTR -140[rbp], eax
	mov	eax, DWORD PTR -140[rbp]
	movsx	edx, al
	lea	rax, -96[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	waveWriteByte
	mov	DWORD PTR -140[rbp], 0
.L53:
	mov	eax, DWORD PTR -136[rbp]
	add	eax, 1
	cdq
	shr	edx, 30
	add	eax, edx
	and	eax, 3
	sub	eax, edx
	mov	DWORD PTR -136[rbp], eax
	add	DWORD PTR -132[rbp], 1
.L52:
	mov	eax, DWORD PTR -132[rbp]
	cmp	eax, DWORD PTR -116[rbp]
	jl	.L54
.L51:
	mov	rax, QWORD PTR -112[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L55
	mov	edx, 5
	mov	eax, 9600
	imul	eax, edx
	mov	ecx, 32
	cdq
	idiv	ecx
	mov	DWORD PTR -120[rbp], eax
	mov	DWORD PTR -128[rbp], 0
	jmp	.L56
.L57:
	lea	rax, -96[rbp]
	mov	rdi, rax
	call	writeOne
	add	DWORD PTR -128[rbp], 1
.L56:
	mov	eax, DWORD PTR -128[rbp]
	cmp	eax, DWORD PTR -120[rbp]
	jl	.L57
	lea	rax, -96[rbp]
	mov	rdi, rax
	call	waveWriteHeader
	mov	rax, QWORD PTR -112[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L58:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L59
	call	__stack_chk_fail@PLT
.L59:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	main, .-main
	.section	.rodata
	.align 4
.LC0:
	.long	1191181824
	.align 4
.LC1:
	.long	1056964608
	.align 16
.LC2:
	.long	-2147483648
	.long	0
	.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	"168367.c"
	.text
	.global	SAMPLE_RATE
	.section	.rodata
	.align	2
	.type	SAMPLE_RATE, %object
	.size	SAMPLE_RATE, 4
SAMPLE_RATE:
	.word	9600
	.global	ONE_FREQ
	.align	2
	.type	ONE_FREQ, %object
	.size	ONE_FREQ, 4
ONE_FREQ:
	.word	2400
	.global	ZERO_FREQ
	.align	2
	.type	ZERO_FREQ, %object
	.size	ZERO_FREQ, 4
ZERO_FREQ:
	.word	1200
	.global	ZERO_CYCLES_PER_BIT
	.align	2
	.type	ZERO_CYCLES_PER_BIT, %object
	.size	ZERO_CYCLES_PER_BIT, 4
ZERO_CYCLES_PER_BIT:
	.word	4
	.global	ONE_CYCLES_PER_BIT
	.align	2
	.type	ONE_CYCLES_PER_BIT, %object
	.size	ONE_CYCLES_PER_BIT, 4
ONE_CYCLES_PER_BIT:
	.word	8
	.global	SAMPLES_PER_BIT
	.align	2
	.type	SAMPLES_PER_BIT, %object
	.size	SAMPLES_PER_BIT, 4
SAMPLES_PER_BIT:
	.word	32
	.global	BITS_PER_BYTE
	.align	2
	.type	BITS_PER_BYTE, %object
	.size	BITS_PER_BYTE, 4
BITS_PER_BYTE:
	.word	11
	.global	AMPLITUDE
	.align	2
	.type	AMPLITUDE, %object
	.size	AMPLITUDE, 4
AMPLITUDE:
	.word	1056964608
	.global	LEAD
	.align	2
	.type	LEAD, %object
	.size	LEAD, 4
LEAD:
	.word	5
	.global	TAIL
	.align	2
	.type	TAIL, %object
	.size	TAIL, 4
TAIL:
	.word	5
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	isBigEndian
	.syntax unified
	.arm
	.fpu softvfp
	.type	isBigEndian, %function
isBigEndian:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-16]
	sub	r3, fp, #16
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	ldr	r2, .L4
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.size	isBigEndian, .-isBigEndian
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	reverseEndianness
	.syntax unified
	.arm
	.fpu softvfp
	.type	reverseEndianness, %function
reverseEndianness:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-52]
	str	r1, [fp, #-48]
	str	r2, [fp, #-56]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L7
.L8:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-44]
	sub	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	sub	r2, fp, #40
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L7:
	ldr	r3, [fp, #-44]
	mov	r0, r3
	asr	r1, r0, #31
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L8
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L9
.L10:
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	sub	r1, fp, #40
	ldr	r2, [fp, #-44]
	add	r2, r1, r2
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L9:
	ldr	r3, [fp, #-44]
	mov	r0, r3
	asr	r1, r0, #31
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L10
	nop
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC1
	.size	reverseEndianness, .-reverseEndianness
	.align	2
	.global	toBigEndian
	.syntax unified
	.arm
	.fpu softvfp
	.type	toBigEndian, %function
toBigEndian:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	str	r2, [fp, #-16]
	bl	isBigEndian
	mov	r3, r0
	cmp	r3, #0
	bne	.L16
	ldr	r2, [fp, #-16]
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	reverseEndianness
.L16:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	toBigEndian, .-toBigEndian
	.align	2
	.global	toLittleEndian
	.syntax unified
	.arm
	.fpu softvfp
	.type	toLittleEndian, %function
toLittleEndian:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	str	r2, [fp, #-16]
	bl	isBigEndian
	mov	r3, r0
	cmp	r3, #0
	beq	.L19
	ldr	r2, [fp, #-16]
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	reverseEndianness
.L19:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	toLittleEndian, .-toLittleEndian
	.section	.rodata
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	makeWaveHeader
	.syntax unified
	.arm
	.fpu softvfp
	.type	makeWaveHeader, %function
makeWaveHeader:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #82
	strb	r3, [fp, #-52]
	mov	r3, #73
	strb	r3, [fp, #-51]
	mov	r3, #70
	strb	r3, [fp, #-50]
	mov	r3, #70
	strb	r3, [fp, #-49]
	mov	r3, #87
	strb	r3, [fp, #-44]
	mov	r3, #65
	strb	r3, [fp, #-43]
	mov	r3, #86
	strb	r3, [fp, #-42]
	mov	r3, #69
	strb	r3, [fp, #-41]
	mov	r3, #102
	strb	r3, [fp, #-40]
	mov	r3, #109
	strb	r3, [fp, #-39]
	mov	r3, #116
	strb	r3, [fp, #-38]
	mov	r3, #32
	strb	r3, [fp, #-37]
	mov	r3, #1
	strh	r3, [fp, #-32]	@ movhi
	mov	r3, #1
	strh	r3, [fp, #-30]	@ movhi
	mov	r3, #9600
	str	r3, [fp, #-28]
	mov	r3, #16
	strh	r3, [fp, #-18]	@ movhi
	ldr	r3, [fp, #-28]
	ldrsh	r2, [fp, #-18]
	mul	r3, r2, r3
	add	r2, r3, #7
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #3
	str	r3, [fp, #-24]
	ldrsh	r3, [fp, #-18]
	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
	strh	r3, [fp, #-20]	@ movhi
	mov	r3, #100
	strb	r3, [fp, #-16]
	mov	r3, #97
	strb	r3, [fp, #-15]
	mov	r3, #116
	strb	r3, [fp, #-14]
	mov	r3, #97
	strb	r3, [fp, #-13]
	mov	r3, #16
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-36]
	add	r2, r3, #20
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-56]
	mov	lr, r3
	sub	ip, fp, #52
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldm	ip, {r0, r1, r2}
	stm	lr, {r0, r1, r2}
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	ldr	r0, [fp, #-56]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC2
	.size	makeWaveHeader, .-makeWaveHeader
	.section	.rodata
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	makeWave
	.syntax unified
	.arm
	.fpu softvfp
	.type	makeWave, %function
makeWave:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	str	r0, [fp, #-80]
	str	r1, [fp, #-84]
	ldr	r3, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #132
	mov	r0, r3
	bl	makeWaveHeader
	sub	ip, fp, #76
	sub	lr, fp, #132
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	ldr	r3, [fp, #-84]
	str	r3, [fp, #-20]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-80]
	mov	lr, r3
	sub	ip, fp, #76
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldm	ip, {r0, r1, r2, r3}
	stm	lr, {r0, r1, r2, r3}
	ldr	r3, .L28
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L27
	bl	__stack_chk_fail
.L27:
	ldr	r0, [fp, #-80]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC3
	.size	makeWave, .-makeWave
	.global	__aeabi_fmul
	.global	__aeabi_f2iz
	.section	.rodata
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	waveAddSample
	.syntax unified
	.arm
	.fpu softvfp
	.type	waveAddSample, %function
waveAddSample:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]	@ float
	ldr	r3, .L32
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r1, .L32+4
	ldr	r0, [fp, #-36]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2iz
	mov	r3, r0
	str	r3, [fp, #-24]
	sub	r3, fp, #24
	mov	r2, r3
	mov	r0, #2
	mov	r1, #0
	bl	toLittleEndian
	sub	r3, fp, #24
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #56]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, [fp, #-20]
	bl	fwrite
	ldr	r3, [fp, #-32]
	add	r3, r3, #48
	ldmia	r3, {r2-r3}
	adds	r4, r2, #1
	adc	r5, r3, #0
	ldr	r3, [fp, #-32]
	str	r4, [r3, #48]
	str	r5, [r3, #52]
	nop
	ldr	r3, .L32
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L31
	bl	__stack_chk_fail
.L31:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC4
	.word	1191181824
	.size	waveAddSample, .-waveAddSample
	.global	ONE_N
	.data
	.align	2
	.type	ONE_N, %object
	.size	ONE_N, 4
ONE_N:
	.word	2
	.text
	.align	2
	.global	writeOne
	.syntax unified
	.arm
	.fpu softvfp
	.type	writeOne, %function
writeOne:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L35
.L40:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L36
.L37:
	mov	r3, #1056964608
	eor	r3, r3, #-2147483648
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	waveAddSample
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L36:
	ldr	r3, .L41
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L37
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L38
.L39:
	mov	r3, #1056964608
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	waveAddSample
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L38:
	ldr	r3, .L41
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L39
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L35:
	mov	r2, #8
	ldr	r3, [fp, #-16]
	cmp	r3, r2
	blt	.L40
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L42:
	.align	2
.L41:
	.word	ONE_N
	.size	writeOne, .-writeOne
	.global	ZERO_N
	.data
	.align	2
	.type	ZERO_N, %object
	.size	ZERO_N, 4
ZERO_N:
	.word	4
	.text
	.align	2
	.global	writeZero
	.syntax unified
	.arm
	.fpu softvfp
	.type	writeZero, %function
writeZero:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L44
.L49:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L45
.L46:
	mov	r3, #1056964608
	eor	r3, r3, #-2147483648
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	waveAddSample
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L45:
	ldr	r3, .L50
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L46
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L47
.L48:
	mov	r3, #1056964608
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	waveAddSample
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L47:
	ldr	r3, .L50
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L48
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L44:
	mov	r2, #4
	ldr	r3, [fp, #-16]
	cmp	r3, r2
	blt	.L49
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L51:
	.align	2
.L50:
	.word	ZERO_N
	.size	writeZero, .-writeZero
	.align	2
	.global	waveWriteHeader
	.syntax unified
	.arm
	.fpu softvfp
	.type	waveWriteHeader, %function
waveWriteHeader:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	add	r3, r3, #48
	ldmia	r3, {r2-r3}
	mov	r1, r2
	ldr	r3, [fp, #-16]
	ldrsh	r3, [r3, #34]
	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
	mul	r3, r1, r3
	mov	r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3, #40]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #16]
	add	r2, r3, #20
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #40]
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #56]
	mov	r0, r3
	bl	ftell
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #56]
	mov	r0, r3
	bl	rewind
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	mov	r2, r3
	mov	r0, #4
	mov	r1, #0
	bl	toLittleEndian
	ldr	r3, [fp, #-16]
	add	r3, r3, #16
	mov	r2, r3
	mov	r0, #4
	mov	r1, #0
	bl	toLittleEndian
	ldr	r3, [fp, #-16]
	add	r3, r3, #20
	mov	r2, r3
	mov	r0, #2
	mov	r1, #0
	bl	toLittleEndian
	ldr	r3, [fp, #-16]
	add	r3, r3, #22
	mov	r2, r3
	mov	r0, #2
	mov	r1, #0
	bl	toLittleEndian
	ldr	r3, [fp, #-16]
	add	r3, r3, #24
	mov	r2, r3
	mov	r0, #4
	mov	r1, #0
	bl	toLittleEndian
	ldr	r3, [fp, #-16]
	add	r3, r3, #28
	mov	r2, r3
	mov	r0, #4
	mov	r1, #0
	bl	toLittleEndian
	ldr	r3, [fp, #-16]
	add	r3, r3, #32
	mov	r2, r3
	mov	r0, #2
	mov	r1, #0
	bl	toLittleEndian
	ldr	r3, [fp, #-16]
	add	r3, r3, #34
	mov	r2, r3
	mov	r0, #2
	mov	r1, #0
	bl	toLittleEndian
	ldr	r3, [fp, #-16]
	add	r3, r3, #40
	mov	r2, r3
	mov	r0, #4
	mov	r1, #0
	bl	toLittleEndian
	ldr	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #56]
	mov	r2, #1
	mov	r1, #44
	bl	fwrite
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	mov	r2, r3
	mov	r0, #4
	mov	r1, #0
	bl	toLittleEndian
	ldr	r3, [fp, #-16]
	add	r3, r3, #16
	mov	r2, r3
	mov	r0, #4
	mov	r1, #0
	bl	toLittleEndian
	ldr	r3, [fp, #-16]
	add	r3, r3, #20
	mov	r2, r3
	mov	r0, #2
	mov	r1, #0
	bl	toLittleEndian
	ldr	r3, [fp, #-16]
	add	r3, r3, #22
	mov	r2, r3
	mov	r0, #2
	mov	r1, #0
	bl	toLittleEndian
	ldr	r3, [fp, #-16]
	add	r3, r3, #24
	mov	r2, r3
	mov	r0, #4
	mov	r1, #0
	bl	toLittleEndian
	ldr	r3, [fp, #-16]
	add	r3, r3, #28
	mov	r2, r3
	mov	r0, #4
	mov	r1, #0
	bl	toLittleEndian
	ldr	r3, [fp, #-16]
	add	r3, r3, #32
	mov	r2, r3
	mov	r0, #2
	mov	r1, #0
	bl	toLittleEndian
	ldr	r3, [fp, #-16]
	add	r3, r3, #34
	mov	r2, r3
	mov	r0, #2
	mov	r1, #0
	bl	toLittleEndian
	ldr	r3, [fp, #-16]
	add	r3, r3, #40
	mov	r2, r3
	mov	r0, #4
	mov	r1, #0
	bl	toLittleEndian
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #56]
	mov	r2, #0
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	fseek
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	waveWriteHeader, .-waveWriteHeader
	.align	2
	.global	waveWriteByte
	.syntax unified
	.arm
	.fpu softvfp
	.type	waveWriteByte, %function
waveWriteByte:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, r1
	strb	r3, [fp, #-17]
	ldr	r0, [fp, #-16]
	bl	writeZero
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L54
.L57:
	ldrb	r2, [fp, #-17]	@ zero_extendqisi2
	ldr	r3, [fp, #-12]
	asr	r3, r2, r3
	and	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bne	.L55
	ldr	r0, [fp, #-16]
	bl	writeOne
	b	.L56
.L55:
	ldr	r0, [fp, #-16]
	bl	writeZero
.L56:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L54:
	ldr	r3, [fp, #-12]
	cmp	r3, #7
	ble	.L57
	ldr	r0, [fp, #-16]
	bl	writeOne
	ldr	r0, [fp, #-16]
	bl	writeOne
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	waveWriteByte, .-waveWriteByte
	.section	.rodata
	.align	2
.LC5:
	.ascii	"error: too few arguments\000"
	.align	2
.LC6:
	.ascii	"usage: encoder input output.wav\000"
	.align	2
.LC7:
	.ascii	"rb\000"
	.align	2
.LC8:
	.ascii	"error: couldn't open %s for reading\012\000"
	.align	2
.LC9:
	.ascii	"wb\000"
	.align	2
.LC10:
	.ascii	"error: couldn't open %s for writing\012\000"
	.global	__aeabi_idiv
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #136
	str	r0, [fp, #-136]
	str	r1, [fp, #-140]
	ldr	r3, .L74
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-136]
	cmp	r3, #2
	bgt	.L59
	ldr	r0, .L74+4
	bl	puts
	ldr	r0, .L74+8
	bl	puts
	mov	r3, #1
	b	.L72
.L59:
	ldr	r3, [fp, #-140]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L74+12
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bne	.L61
	ldr	r3, [fp, #-140]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L74+16
	bl	printf
	ldr	r0, .L74+8
	bl	puts
	mov	r3, #1
	b	.L72
.L61:
	ldr	r3, [fp, #-140]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L74+20
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-108]
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	bne	.L62
	ldr	r0, [fp, #-112]
	bl	fclose
	ldr	r3, [fp, #-140]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L74+24
	bl	printf
	ldr	r0, .L74+8
	bl	puts
	mov	r3, #1
	b	.L72
.L62:
	sub	r3, fp, #92
	ldr	r1, [fp, #-108]
	mov	r0, r3
	bl	makeWave
	sub	r3, fp, #92
	mov	r0, r3
	bl	waveWriteHeader
	mov	r3, #5
	mov	r2, #9600
	mul	r3, r2, r3
	mov	r2, #32
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-104]
	mov	r3, #0
	str	r3, [fp, #-132]
	b	.L63
.L64:
	sub	r3, fp, #92
	mov	r0, r3
	bl	writeOne
	ldr	r3, [fp, #-132]
	add	r3, r3, #1
	str	r3, [fp, #-132]
.L63:
	ldr	r2, [fp, #-132]
	ldr	r3, [fp, #-104]
	cmp	r2, r3
	blt	.L64
	mov	r3, #0
	str	r3, [fp, #-128]
	mov	r3, #0
	str	r3, [fp, #-124]
	b	.L65
.L69:
	sub	r0, fp, #24
	ldr	r3, [fp, #-112]
	mov	r2, #16
	mov	r1, #1
	bl	fread
	mov	r3, r0
	str	r3, [fp, #-96]
	mov	r3, #0
	str	r3, [fp, #-120]
	b	.L66
.L68:
	sub	r2, fp, #24
	ldr	r3, [fp, #-120]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-128]
	add	r3, r2, r3
	and	r3, r3, #255
	str	r3, [fp, #-128]
	sub	r2, fp, #24
	ldr	r3, [fp, #-120]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	sub	r3, fp, #92
	mov	r1, r2
	mov	r0, r3
	bl	waveWriteByte
	ldr	r3, [fp, #-124]
	cmp	r3, #3
	bne	.L67
	ldr	r3, [fp, #-128]
	eor	r3, r3, #255
	add	r3, r3, #1
	and	r3, r3, #255
	str	r3, [fp, #-128]
	ldr	r3, [fp, #-128]
	and	r2, r3, #255
	sub	r3, fp, #92
	mov	r1, r2
	mov	r0, r3
	bl	waveWriteByte
	mov	r3, #0
	str	r3, [fp, #-128]
.L67:
	ldr	r3, [fp, #-124]
	add	r3, r3, #1
	rsbs	r2, r3, #0
	and	r3, r3, #3
	and	r2, r2, #3
	rsbpl	r3, r2, #0
	str	r3, [fp, #-124]
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	str	r3, [fp, #-120]
.L66:
	ldr	r2, [fp, #-120]
	ldr	r3, [fp, #-96]
	cmp	r2, r3
	blt	.L68
.L65:
	ldr	r0, [fp, #-112]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L69
	mov	r3, #5
	mov	r2, #9600
	mul	r3, r2, r3
	mov	r2, #32
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-100]
	mov	r3, #0
	str	r3, [fp, #-116]
	b	.L70
.L71:
	sub	r3, fp, #92
	mov	r0, r3
	bl	writeOne
	ldr	r3, [fp, #-116]
	add	r3, r3, #1
	str	r3, [fp, #-116]
.L70:
	ldr	r2, [fp, #-116]
	ldr	r3, [fp, #-100]
	cmp	r2, r3
	blt	.L71
	sub	r3, fp, #92
	mov	r0, r3
	bl	waveWriteHeader
	ldr	r0, [fp, #-112]
	bl	fclose
	ldr	r0, [fp, #-108]
	bl	fclose
	mov	r3, #0
.L72:
	ldr	r2, .L74
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L73
	bl	__stack_chk_fail
.L73:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L75:
	.align	2
.L74:
	.word	.LC11
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
