	.file	"900500.c"
	.intel_syntax noprefix
	.text
	.globl	mem_fd
	.bss
	.align 4
	.type	mem_fd, @object
	.size	mem_fd, 4
mem_fd:
	.zero	4
	.globl	gpio_mem
	.align 8
	.type	gpio_mem, @object
	.size	gpio_mem, 8
gpio_mem:
	.zero	8
	.globl	gpio_map
	.align 8
	.type	gpio_map, @object
	.size	gpio_map, 8
gpio_map:
	.zero	8
	.globl	spi0_mem
	.align 8
	.type	spi0_mem, @object
	.size	spi0_mem, 8
spi0_mem:
	.zero	8
	.globl	spi0_map
	.align 8
	.type	spi0_map, @object
	.size	spi0_map, 8
spi0_map:
	.zero	8
	.globl	gpio
	.align 8
	.type	gpio, @object
	.size	gpio, 8
gpio:
	.zero	8
	.globl	allof7e
	.align 8
	.type	allof7e, @object
	.size	allof7e, 8
allof7e:
	.zero	8
	.section	.rodata
.LC0:
	.string	"/proc/self/pagemap"
	.text
	.globl	getRealMemPage
	.type	getRealMemPage, @function
getRealMemPage:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 4096
	call	valloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], 1
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 4096
	mov	rdi, rax
	call	mlock@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
	mov	esi, 114
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -28[rbp], eax
	mov	rax, QWORD PTR -16[rbp]
	lea	edx, 4095[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 12
	sal	eax, 3
	movsx	rcx, eax
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	lseek@PLT
	lea	rcx, -24[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	rax, QWORD PTR -24[rbp]
	sal	eax, 12
	cdqe
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR [rax], rdx
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L2
	call	__stack_chk_fail@PLT
.L2:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	getRealMemPage, .-getRealMemPage
	.globl	freeRealMemPage
	.type	freeRealMemPage, @function
freeRealMemPage:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 4096
	mov	rdi, rax
	call	munlock@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	freeRealMemPage, .-freeRealMemPage
	.section	.rodata
.LC1:
	.string	"/dev/mem"
.LC2:
	.string	"can't open /dev/mem "
	.text
	.globl	setup_fm
	.type	setup_fm, @function
setup_fm:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 1052674
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR mem_fd[rip], eax
	mov	eax, DWORD PTR mem_fd[rip]
	test	eax, eax
	jns	.L5
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
.L5:
	mov	eax, DWORD PTR mem_fd[rip]
	mov	r9d, 536870912
	mov	r8d, eax
	mov	ecx, 1
	mov	edx, 3
	mov	esi, 16777216
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR allof7e[rip], rax
	mov	rax, QWORD PTR allof7e[rip]
	cmp	eax, -1
	jne	.L6
	mov	edi, -1
	call	exit@PLT
.L6:
	mov	rax, QWORD PTR allof7e[rip]
	add	eax, 2097152
	cdqe
	mov	eax, DWORD PTR [rax]
	mov	rdx, QWORD PTR allof7e[rip]
	add	edx, 2097152
	movsx	rdx, edx
	or	ah, 64
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR allof7e[rip]
	add	eax, 2097152
	cdqe
	mov	eax, DWORD PTR [rax]
	mov	rdx, QWORD PTR allof7e[rip]
	add	edx, 2097152
	movsx	rdx, edx
	and	ah, -33
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR allof7e[rip]
	add	eax, 2097152
	cdqe
	mov	eax, DWORD PTR [rax]
	mov	rdx, QWORD PTR allof7e[rip]
	add	edx, 2097152
	movsx	rdx, edx
	and	ah, -17
	mov	DWORD PTR [rdx], eax
	mov	DWORD PTR -12[rbp], 0
	movzx	eax, BYTE PTR -12[rbp]
	and	eax, -16
	or	eax, 6
	mov	BYTE PTR -12[rbp], al
	movzx	eax, BYTE PTR -12[rbp]
	or	eax, 16
	mov	BYTE PTR -12[rbp], al
	movzx	eax, BYTE PTR -11[rbp]
	and	eax, -7
	or	eax, 2
	mov	BYTE PTR -11[rbp], al
	mov	BYTE PTR -9[rbp], 90
	lea	rax, -12[rbp]
	mov	rdx, QWORD PTR allof7e[rip]
	add	edx, 1052784
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	setup_fm, .-setup_fm
	.globl	modulate
	.type	modulate, @function
modulate:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	rax, QWORD PTR allof7e[rip]
	add	eax, 1052788
	cdqe
	mov	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1509969266
	mov	DWORD PTR [rdx], eax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	modulate, .-modulate
	.globl	constPage
	.bss
	.align 16
	.type	constPage, @object
	.size	constPage, 16
constPage:
	.zero	16
	.globl	instrPage
	.align 16
	.type	instrPage, @object
	.size	instrPage, 16
instrPage:
	.zero	16
	.globl	instrs
	.align 32
	.type	instrs, @object
	.size	instrs, 16384
instrs:
	.zero	16384
	.text
	.globl	playWav
	.type	playWav, @function
playWav:
.LFB10:
	.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
	movss	DWORD PTR -76[rbp], xmm0
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -56[rbp], 0
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	je	.L10
	mov	rax, QWORD PTR -72[rbp]
	mov	esi, 114
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -56[rbp], eax
.L10:
	mov	DWORD PTR -52[rbp], 0
	pxor	xmm0, xmm0
	movss	DWORD PTR -48[rbp], xmm0
	mov	DWORD PTR -44[rbp], 0
	jmp	.L11
.L12:
	lea	rcx, -58[rbp]
	mov	eax, DWORD PTR -56[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	add	DWORD PTR -44[rbp], 1
.L11:
	cmp	DWORD PTR -44[rbp], 21
	jle	.L12
	jmp	.L13
.L22:
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, DWORD PTR -76[rbp]
	movsd	xmm0, QWORD PTR .LC4[rip]
	mulsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -40[rbp], xmm0
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, DWORD PTR -76[rbp]
	movsd	xmm0, QWORD PTR .LC5[rip]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR .LC6[rip]
	mulsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -36[rbp], eax
	movzx	eax, WORD PTR -58[rbp]
	cwde
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	movss	xmm1, DWORD PTR .LC7[rip]
	divss	xmm0, xmm1
	movss	DWORD PTR -32[rbp], xmm0
	movss	xmm0, DWORD PTR -48[rbp]
	subss	xmm0, DWORD PTR -32[rbp]
	movss	xmm1, DWORD PTR .LC8[rip]
	subss	xmm1, DWORD PTR -40[rbp]
	divss	xmm0, xmm1
	movss	xmm1, DWORD PTR -32[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -28[rbp], xmm0
	movss	xmm1, DWORD PTR -28[rbp]
	movss	xmm0, DWORD PTR .LC9[rip]
	mulss	xmm0, xmm1
	movss	DWORD PTR -24[rbp], xmm0
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, DWORD PTR -24[rbp]
	movq	rax, xmm3
	movq	xmm0, rax
	call	round@PLT
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -20[rbp], eax
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, DWORD PTR -20[rbp]
	movss	xmm0, DWORD PTR -24[rbp]
	subss	xmm0, xmm1
	movss	xmm2, DWORD PTR .LC10[rip]
	movaps	xmm1, xmm0
	divss	xmm1, xmm2
	movss	xmm0, DWORD PTR .LC11[rip]
	addss	xmm0, xmm1
	movss	DWORD PTR -16[rbp], xmm0
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR -36[rbp]
	mulss	xmm0, DWORD PTR -16[rbp]
	cvttss2si	rax, xmm0
	mov	DWORD PTR -12[rbp], eax
	add	DWORD PTR -52[rbp], 1
	jmp	.L14
.L15:
	mov	edi, 1000
	call	usleep@PLT
.L14:
	mov	rax, QWORD PTR allof7e[rip]
	add	eax, 28676
	cdqe
	mov	eax, DWORD PTR [rax]
	mov	edx, DWORD PTR -52[rbp]
	movsx	rdx, edx
	mov	rcx, rdx
	sal	rcx, 4
	lea	rdx, instrs[rip]
	mov	rdx, QWORD PTR [rcx+rdx]
	cmp	eax, edx
	je	.L15
	mov	rax, QWORD PTR constPage[rip]
	lea	edx, 2048[rax]
	mov	eax, DWORD PTR -20[rbp]
	sal	eax, 2
	add	eax, edx
	lea	ecx, -4[rax]
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, instrs[rip+8]
	mov	rax, QWORD PTR [rdx+rax]
	mov	edx, ecx
	mov	DWORD PTR 4[rax], edx
	add	DWORD PTR -52[rbp], 1
	jmp	.L16
.L17:
	mov	edi, 1000
	call	usleep@PLT
.L16:
	mov	rax, QWORD PTR allof7e[rip]
	add	eax, 28676
	cdqe
	mov	eax, DWORD PTR [rax]
	mov	edx, DWORD PTR -52[rbp]
	movsx	rdx, edx
	mov	rcx, rdx
	sal	rcx, 4
	lea	rdx, instrs[rip]
	mov	rdx, QWORD PTR [rcx+rdx]
	cmp	eax, edx
	je	.L17
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	sal	rax, 4
	mov	rcx, rax
	lea	rax, instrs[rip+8]
	mov	rax, QWORD PTR [rcx+rax]
	sub	edx, DWORD PTR -12[rbp]
	mov	DWORD PTR 12[rax], edx
	add	DWORD PTR -52[rbp], 1
	jmp	.L18
.L19:
	mov	edi, 1000
	call	usleep@PLT
.L18:
	mov	rax, QWORD PTR allof7e[rip]
	add	eax, 28676
	cdqe
	mov	eax, DWORD PTR [rax]
	mov	edx, DWORD PTR -52[rbp]
	movsx	rdx, edx
	mov	rcx, rdx
	sal	rcx, 4
	lea	rdx, instrs[rip]
	mov	rdx, QWORD PTR [rcx+rdx]
	cmp	eax, edx
	je	.L19
	mov	rax, QWORD PTR constPage[rip]
	lea	edx, 2048[rax]
	mov	eax, DWORD PTR -20[rbp]
	sal	eax, 2
	add	eax, edx
	lea	ecx, 4[rax]
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, instrs[rip+8]
	mov	rax, QWORD PTR [rdx+rax]
	mov	edx, ecx
	mov	DWORD PTR 4[rax], edx
	mov	eax, DWORD PTR -52[rbp]
	add	eax, 1
	cdq
	shr	edx, 22
	add	eax, edx
	and	eax, 1023
	sub	eax, edx
	mov	DWORD PTR -52[rbp], eax
	jmp	.L20
.L21:
	mov	edi, 1000
	call	usleep@PLT
.L20:
	mov	rax, QWORD PTR allof7e[rip]
	add	eax, 28676
	cdqe
	mov	eax, DWORD PTR [rax]
	mov	edx, DWORD PTR -52[rbp]
	movsx	rdx, edx
	mov	rcx, rdx
	sal	rcx, 4
	lea	rdx, instrs[rip]
	mov	rdx, QWORD PTR [rcx+rdx]
	cmp	eax, edx
	je	.L21
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, instrs[rip+8]
	mov	rax, QWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -12[rbp]
	mov	DWORD PTR 12[rax], edx
	movss	xmm0, DWORD PTR -32[rbp]
	movss	DWORD PTR -48[rbp], xmm0
.L13:
	lea	rcx, -58[rbp]
	mov	eax, DWORD PTR -56[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	test	rax, rax
	jne	.L22
	mov	eax, DWORD PTR -56[rbp]
	mov	edi, eax
	call	close@PLT
	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
.LFE10:
	.size	playWav, .-playWav
	.section	.rodata
.LC12:
	.string	"exiting"
	.text
	.globl	unSetupDMA
	.type	unSetupDMA, @function
unSetupDMA:
.LFB11:
	.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
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	rax, QWORD PTR allof7e[rip]
	add	eax, 28672
	cdqe
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], -2147483648
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	unSetupDMA, .-unSetupDMA
	.globl	handSig
	.type	handSig, @function
handSig:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE12:
	.size	handSig, .-handSig
	.globl	setupDMA
	.type	setupDMA, @function
setupDMA:
.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, 48
	movss	DWORD PTR -36[rbp], xmm0
	lea	rdi, unSetupDMA[rip]
	call	atexit@PLT
	lea	rsi, handSig[rip]
	mov	edi, 2
	call	signal@PLT
	lea	rsi, handSig[rip]
	mov	edi, 15
	call	signal@PLT
	lea	rsi, handSig[rip]
	mov	edi, 1
	call	signal@PLT
	lea	rsi, handSig[rip]
	mov	edi, 3
	call	signal@PLT
	lea	rsi, constPage[rip]
	lea	rdi, constPage[rip+8]
	call	getRealMemPage
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, DWORD PTR -36[rbp]
	movsd	xmm0, QWORD PTR .LC13[rip]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR .LC14[rip]
	mulsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC15[rip]
	addsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -20[rbp], eax
	mov	DWORD PTR -32[rbp], 0
	jmp	.L27
.L28:
	mov	eax, DWORD PTR -20[rbp]
	lea	ecx, 1509948928[rax]
	mov	rdx, QWORD PTR constPage[rip+8]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR -32[rbp]
	add	edx, ecx
	mov	DWORD PTR [rax], edx
	add	DWORD PTR -32[rbp], 1
.L27:
	cmp	DWORD PTR -32[rbp], 1023
	jle	.L28
	mov	DWORD PTR -28[rbp], 0
	jmp	.L29
.L34:
	lea	rsi, instrPage[rip]
	lea	rdi, instrPage[rip+8]
	call	getRealMemPage
	mov	rax, QWORD PTR instrPage[rip+8]
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -24[rbp], 0
	jmp	.L30
.L33:
	mov	rax, QWORD PTR instrPage[rip+8]
	movsx	rdx, eax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 5
	add	rax, rdx
	mov	rcx, rax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, instrs[rip+8]
	mov	QWORD PTR [rdx+rax], rcx
	mov	rax, QWORD PTR instrPage[rip]
	movsx	rdx, eax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 5
	add	rax, rdx
	mov	rcx, rax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, instrs[rip]
	mov	QWORD PTR [rdx+rax], rcx
	mov	rax, QWORD PTR constPage[rip]
	lea	edx, 2048[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 8[rax], 2116075544
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 12[rax], 4
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 16[rax], 0
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], 67436608
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 24[rax], 0
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 28[rax], 0
	mov	eax, DWORD PTR -24[rbp]
	and	eax, 1
	test	eax, eax
	je	.L31
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 8[rax], 2114982004
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 16[rax], 4
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], 67108864
.L31:
	cmp	DWORD PTR -28[rbp], 0
	je	.L32
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, instrs[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rcx, rax
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, instrs[rip+8]
	mov	rax, QWORD PTR [rdx+rax]
	mov	edx, ecx
	mov	DWORD PTR 20[rax], edx
.L32:
	add	QWORD PTR -16[rbp], 32
	add	DWORD PTR -28[rbp], 1
	add	DWORD PTR -24[rbp], 1
.L30:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, 127
	jbe	.L33
.L29:
	cmp	DWORD PTR -28[rbp], 1023
	jle	.L34
	mov	rax, QWORD PTR instrs[rip]
	mov	rdx, rax
	mov	rax, QWORD PTR instrs[rip+16376]
	mov	DWORD PTR 20[rax], edx
	mov	rax, QWORD PTR allof7e[rip]
	add	eax, 1052832
	cdqe
	mov	DWORD PTR [rax], 1509949478
	mov	edi, 1000
	call	usleep@PLT
	mov	rax, QWORD PTR allof7e[rip]
	add	eax, 1052836
	cdqe
	mov	DWORD PTR [rax], 1509959680
	mov	rax, QWORD PTR allof7e[rip]
	add	eax, 1052832
	cdqe
	mov	DWORD PTR [rax], 1509949462
	mov	edi, 1000
	call	usleep@PLT
	mov	rax, QWORD PTR allof7e[rip]
	add	eax, 2146304
	cdqe
	mov	DWORD PTR [rax], 0
	mov	edi, 1000
	call	usleep@PLT
	mov	rax, QWORD PTR allof7e[rip]
	add	eax, 2146308
	cdqe
	mov	DWORD PTR [rax], -1
	mov	edi, 1000
	call	usleep@PLT
	mov	rax, QWORD PTR allof7e[rip]
	add	eax, 2146304
	cdqe
	mov	DWORD PTR [rax], -1
	mov	edi, 1000
	call	usleep@PLT
	mov	rax, QWORD PTR allof7e[rip]
	add	eax, 2146312
	cdqe
	mov	DWORD PTR [rax], -2147481849
	mov	rax, QWORD PTR allof7e[rip]
	add	eax, 28672
	cdqe
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], -2147483648
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 4[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 8[rax], 0
	mov	rax, QWORD PTR instrPage[rip]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], 16711681
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	setupDMA, .-setupDMA
	.section	.rodata
	.align 8
.LC18:
	.string	"Usage:   program wavfile.wav [freq] [sample rate]\n\nWhere wavfile is 16 bit 22.5kHz Mono.  Set wavfile to '-' to use stdin.\nfreq is in Mhz (default 103.3)\nsample rate of wav file in Hz\n\nPlay an empty file to transmit silence\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	cmp	DWORD PTR -4[rbp], 1
	jle	.L36
	mov	eax, 0
	call	setup_fm
	cmp	DWORD PTR -4[rbp], 2
	jle	.L37
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atof@PLT
	pxor	xmm1, xmm1
	cvtsd2ss	xmm1, xmm0
	movd	eax, xmm1
	jmp	.L38
.L37:
	mov	eax, DWORD PTR .LC16[rip]
.L38:
	movd	xmm0, eax
	call	setupDMA
	cmp	DWORD PTR -4[rbp], 3
	jle	.L39
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atof@PLT
	pxor	xmm2, xmm2
	cvtsd2ss	xmm2, xmm0
	movd	eax, xmm2
	jmp	.L40
.L39:
	mov	eax, DWORD PTR .LC17[rip]
.L40:
	mov	rdx, QWORD PTR -16[rbp]
	add	rdx, 8
	mov	rdx, QWORD PTR [rdx]
	movd	xmm0, eax
	mov	rdi, rdx
	call	playWav
	jmp	.L41
.L36:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 224
	mov	esi, 1
	lea	rdi, .LC18[rip]
	call	fwrite@PLT
.L41:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC4:
	.long	-350469331
	.long	1057634018
	.align 8
.LC5:
	.long	0
	.long	1087764736
	.align 8
.LC6:
	.long	0
	.long	1083564032
	.align 4
.LC7:
	.long	1191181824
	.align 4
.LC8:
	.long	1065353216
	.align 4
.LC9:
	.long	1097859072
	.align 4
.LC10:
	.long	1073741824
	.align 4
.LC11:
	.long	1056964608
	.align 8
.LC13:
	.long	0
	.long	1082081280
	.align 8
.LC14:
	.long	0
	.long	1085276160
	.align 8
.LC15:
	.long	0
	.long	1071644672
	.align 4
.LC16:
	.long	1120835994
	.align 4
.LC17:
	.long	1185925120
	.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	"900500.c"
	.text
	.comm	mem_fd,4,4
	.comm	gpio_mem,4,4
	.comm	gpio_map,4,4
	.comm	spi0_mem,4,4
	.comm	spi0_map,4,4
	.comm	gpio,4,4
	.comm	allof7e,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/proc/self/pagemap\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getRealMemPage
	.syntax unified
	.arm
	.fpu softvfp
	.type	getRealMemPage, %function
getRealMemPage:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #4096
	bl	valloc
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	mov	r2, #1
	str	r2, [r3]
	mov	r1, #4096
	ldr	r0, [fp, #-28]
	bl	mlock
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-28]
	str	r2, [r3]
	mov	r1, #114
	ldr	r0, .L3+4
	bl	open
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-28]
	add	r2, r3, #4080
	add	r2, r2, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #12
	lsl	r3, r3, #3
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	lseek
	sub	r3, fp, #20
	mov	r2, #8
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	read
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	mov	r3, r2
	lsl	r3, r3, #12
	mov	r2, r3
	ldr	r3, [fp, #-36]
	str	r2, [r3]
	nop
	ldr	r3, .L3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L2
	bl	__stack_chk_fail
.L2:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC1
	.word	.LC0
	.size	getRealMemPage, .-getRealMemPage
	.align	2
	.global	freeRealMemPage
	.syntax unified
	.arm
	.fpu softvfp
	.type	freeRealMemPage, %function
freeRealMemPage:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	mov	r1, #4096
	ldr	r0, [fp, #-8]
	bl	munlock
	ldr	r0, [fp, #-8]
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	freeRealMemPage, .-freeRealMemPage
	.section	.rodata
	.align	2
.LC2:
	.ascii	"/dev/mem\000"
	.align	2
.LC3:
	.ascii	"can't open /dev/mem \000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	setup_fm
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_fm, %function
setup_fm:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L10+4
	ldr	r0, .L10+8
	bl	open
	mov	r3, r0
	ldr	r2, .L10+12
	str	r3, [r2]
	ldr	r3, .L10+12
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L7
	ldr	r0, .L10+16
	bl	puts
	mvn	r0, #0
	bl	exit
.L7:
	ldr	r3, .L10+12
	ldr	r3, [r3]
	mov	r2, #536870912
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #3
	mov	r1, #16777216
	mov	r0, #0
	bl	mmap
	mov	r3, r0
	ldr	r2, .L10+20
	str	r3, [r2]
	ldr	r3, .L10+20
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L8
	mvn	r0, #0
	bl	exit
.L8:
	ldr	r3, .L10+20
	ldr	r3, [r3]
	add	r3, r3, #2097152
	ldr	r3, [r3]
	ldr	r2, .L10+20
	ldr	r2, [r2]
	add	r2, r2, #2097152
	orr	r3, r3, #16384
	str	r3, [r2]
	ldr	r3, .L10+20
	ldr	r3, [r3]
	add	r3, r3, #2097152
	ldr	r3, [r3]
	ldr	r2, .L10+20
	ldr	r2, [r2]
	add	r2, r2, #2097152
	bic	r3, r3, #8192
	str	r3, [r2]
	ldr	r3, .L10+20
	ldr	r3, [r3]
	add	r3, r3, #2097152
	ldr	r3, [r3]
	ldr	r2, .L10+20
	ldr	r2, [r2]
	add	r2, r2, #2097152
	bic	r3, r3, #4096
	str	r3, [r2]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldrb	r3, [fp, #-12]
	bic	r3, r3, #9
	orr	r3, r3, #6
	strb	r3, [fp, #-12]
	ldrb	r3, [fp, #-12]
	orr	r3, r3, #16
	strb	r3, [fp, #-12]
	ldrb	r3, [fp, #-11]
	bic	r3, r3, #4
	orr	r3, r3, #2
	strb	r3, [fp, #-11]
	mov	r3, #90
	strb	r3, [fp, #-9]
	sub	r2, fp, #12
	ldr	r3, .L10+20
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r3, .L10+24
	add	r3, r1, r3
	mov	r1, r3
	ldr	r3, [r2]
	str	r3, [r1]
	nop
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC4
	.word	1052674
	.word	.LC2
	.word	mem_fd
	.word	.LC3
	.word	allof7e
	.word	1052784
	.size	setup_fm, .-setup_fm
	.align	2
	.global	modulate
	.syntax unified
	.arm
	.fpu softvfp
	.type	modulate, %function
modulate:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, .L13
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, .L13+4
	add	r3, r2, r3
	mov	r1, r3
	ldr	r2, [fp, #-8]
	ldr	r3, .L13+8
	add	r3, r2, r3
	str	r3, [r1]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L14:
	.align	2
.L13:
	.word	allof7e
	.word	1052788
	.word	1509969266
	.size	modulate, .-modulate
	.comm	constPage,8,4
	.comm	instrPage,8,4
	.comm	instrs,8192,4
	.global	__aeabi_f2d
	.global	__aeabi_dmul
	.global	__aeabi_d2f
	.global	__aeabi_ddiv
	.global	__aeabi_d2iz
	.global	__aeabi_i2f
	.global	__aeabi_fdiv
	.global	__aeabi_fsub
	.global	__aeabi_fadd
	.global	__aeabi_fmul
	.global	__aeabi_f2uiz
	.section	.rodata
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	playWav
	.syntax unified
	.arm
	.fpu softvfp
	.type	playWav, %function
playWav:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #68
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]	@ float
	ldr	r3, .L30
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-72]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	beq	.L16
	mov	r1, #114
	ldr	r0, [fp, #-72]
	bl	open
	str	r0, [fp, #-64]
.L16:
	mov	r3, #0
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-56]	@ float
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L17
.L18:
	sub	r3, fp, #66
	mov	r2, #2
	mov	r1, r3
	ldr	r0, [fp, #-64]
	bl	read
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L17:
	ldr	r3, [fp, #-52]
	cmp	r3, #21
	ble	.L18
	b	.L19
.L28:
	ldr	r0, [fp, #-76]	@ float
	bl	__aeabi_f2d
	ldr	r2, .L30+4
	ldr	r3, .L30+8
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-48]	@ float
	ldr	r0, [fp, #-76]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	ldr	r1, .L30+12
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L30+16
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-44]
	ldrsh	r3, [fp, #-66]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, .L30+20
	mov	r0, r3
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [fp, #-40]	@ float
	ldr	r1, [fp, #-40]	@ float
	ldr	r0, [fp, #-56]	@ float
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r4, r3
	ldr	r1, [fp, #-48]	@ float
	mov	r0, #1065353216
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-40]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-36]	@ float
	ldr	r1, .L30+24
	ldr	r0, [fp, #-36]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	str	r3, [fp, #-32]	@ float
	ldr	r0, [fp, #-32]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	round
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r0, [fp, #-28]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-32]	@ float
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r1, #1073741824
	mov	r0, r3
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r1, #1056964608
	mov	r0, r3
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-24]	@ float
	ldr	r0, [fp, #-44]
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, [fp, #-24]	@ float
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2uiz
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
	b	.L20
.L21:
	mov	r0, #1000
	bl	usleep
.L20:
	ldr	r3, .L30+28
	ldr	r3, [r3]
	add	r3, r3, #28672
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L30+32
	ldr	r2, [fp, #-60]
	ldr	r2, [r1, r2, lsl #3]
	cmp	r3, r2
	beq	.L21
	ldr	r3, .L30+36
	ldr	r3, [r3]
	add	r2, r3, #2048
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	sub	r1, r3, #4
	ldr	r2, .L30+32
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r2, r1
	str	r2, [r3, #4]
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
	b	.L22
.L23:
	mov	r0, #1000
	bl	usleep
.L22:
	ldr	r3, .L30+28
	ldr	r3, [r3]
	add	r3, r3, #28672
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L30+32
	ldr	r2, [fp, #-60]
	ldr	r2, [r1, r2, lsl #3]
	cmp	r3, r2
	beq	.L23
	ldr	r1, [fp, #-44]
	ldr	r2, .L30+32
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-20]
	sub	r2, r1, r2
	str	r2, [r3, #12]
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
	b	.L24
.L25:
	mov	r0, #1000
	bl	usleep
.L24:
	ldr	r3, .L30+28
	ldr	r3, [r3]
	add	r3, r3, #28672
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L30+32
	ldr	r2, [fp, #-60]
	ldr	r2, [r1, r2, lsl #3]
	cmp	r3, r2
	beq	.L25
	ldr	r3, .L30+36
	ldr	r3, [r3]
	add	r2, r3, #2048
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	add	r1, r3, #4
	ldr	r2, .L30+32
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r2, r1
	str	r2, [r3, #4]
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	rsbs	r2, r3, #0
	lsl	r3, r3, #22
	lsr	r3, r3, #22
	lsl	r2, r2, #22
	lsr	r2, r2, #22
	rsbpl	r3, r2, #0
	str	r3, [fp, #-60]
	b	.L26
.L27:
	mov	r0, #1000
	bl	usleep
.L26:
	ldr	r3, .L30+28
	ldr	r3, [r3]
	add	r3, r3, #28672
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L30+32
	ldr	r2, [fp, #-60]
	ldr	r2, [r1, r2, lsl #3]
	cmp	r3, r2
	beq	.L27
	ldr	r2, .L30+32
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-20]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-40]	@ float
	str	r3, [fp, #-56]	@ float
.L19:
	sub	r3, fp, #66
	mov	r2, #2
	mov	r1, r3
	ldr	r0, [fp, #-64]
	bl	read
	mov	r3, r0
	cmp	r3, #0
	bne	.L28
	ldr	r0, [fp, #-64]
	bl	close
	nop
	ldr	r3, .L30
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L29
	bl	__stack_chk_fail
.L29:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC5
	.word	-350469331
	.word	1057634018
	.word	1087764736
	.word	1083564032
	.word	1191181824
	.word	1097859072
	.word	allof7e
	.word	instrs
	.word	constPage
	.size	playWav, .-playWav
	.section	.rodata
	.align	2
.LC6:
	.ascii	"exiting\000"
	.text
	.align	2
	.global	unSetupDMA
	.syntax unified
	.arm
	.fpu softvfp
	.type	unSetupDMA, %function
unSetupDMA:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r0, .L33
	bl	puts
	ldr	r3, .L33+4
	ldr	r3, [r3]
	add	r3, r3, #28672
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r2, #-2147483648
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC6
	.word	allof7e
	.size	unSetupDMA, .-unSetupDMA
	.align	2
	.global	handSig
	.syntax unified
	.arm
	.fpu softvfp
	.type	handSig, %function
handSig:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r0, #0
	bl	exit
	.size	handSig, .-handSig
	.global	__aeabi_dadd
	.align	2
	.global	setupDMA
	.syntax unified
	.arm
	.fpu softvfp
	.type	setupDMA, %function
setupDMA:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]	@ float
	ldr	r0, .L45
	bl	atexit
	ldr	r1, .L45+4
	mov	r0, #2
	bl	signal
	ldr	r1, .L45+4
	mov	r0, #15
	bl	signal
	ldr	r1, .L45+4
	mov	r0, #1
	bl	signal
	ldr	r1, .L45+4
	mov	r0, #3
	bl	signal
	ldr	r1, .L45+8
	ldr	r0, .L45+12
	bl	getRealMemPage
	ldr	r0, [fp, #-32]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	ldr	r1, .L45+16
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L45+20
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L45+24
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L37
.L38:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1509949440
	sub	r3, r3, #512
	ldr	r2, .L45+8
	ldr	r1, [r2, #4]
	ldr	r2, [fp, #-28]
	lsl	r2, r2, #2
	add	r2, r1, r2
	ldr	r1, [fp, #-28]
	add	r3, r3, r1
	str	r3, [r2]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L37:
	ldr	r3, [fp, #-28]
	cmp	r3, #1024
	blt	.L38
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L39
.L44:
	ldr	r1, .L45+28
	ldr	r0, .L45+32
	bl	getRealMemPage
	ldr	r3, .L45+28
	ldr	r3, [r3, #4]
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L40
.L43:
	ldr	r3, .L45+28
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #5
	add	r3, r2, r3
	mov	r1, r3
	ldr	r2, .L45+36
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #3
	add	r3, r2, r3
	str	r1, [r3, #4]
	ldr	r3, .L45+28
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #5
	add	r3, r2, r3
	mov	r1, r3
	ldr	r2, .L45+36
	ldr	r3, [fp, #-24]
	str	r1, [r2, r3, lsl #3]
	ldr	r3, .L45+8
	ldr	r3, [r3]
	add	r2, r3, #2048
	ldr	r3, [fp, #-20]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-20]
	ldr	r2, .L45+40
	str	r2, [r3, #8]
	ldr	r3, [fp, #-20]
	mov	r2, #4
	str	r2, [r3, #12]
	ldr	r3, [fp, #-20]
	mov	r2, #0
	str	r2, [r3, #16]
	ldr	r3, [fp, #-20]
	ldr	r2, .L45+44
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	mov	r2, #0
	str	r2, [r3, #24]
	ldr	r3, [fp, #-20]
	mov	r2, #0
	str	r2, [r3, #28]
	ldr	r3, [fp, #-16]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L41
	ldr	r3, [fp, #-20]
	ldr	r2, .L45+48
	str	r2, [r3, #8]
	ldr	r3, [fp, #-20]
	mov	r2, #4
	str	r2, [r3, #16]
	ldr	r3, [fp, #-20]
	mov	r2, #67108864
	str	r2, [r3]
.L41:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L42
	ldr	r2, .L45+36
	ldr	r3, [fp, #-24]
	ldr	r1, [r2, r3, lsl #3]
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	ldr	r2, .L45+36
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r2, r1
	str	r2, [r3, #20]
.L42:
	ldr	r3, [fp, #-20]
	add	r3, r3, #32
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L40:
	ldr	r3, [fp, #-16]
	cmp	r3, #127
	bls	.L43
.L39:
	ldr	r3, [fp, #-24]
	cmp	r3, #1024
	blt	.L44
	ldr	r3, .L45+36
	ldr	r2, [r3]
	ldr	r3, .L45+36
	add	r3, r3, #4096
	ldr	r3, [r3, #4092]
	str	r2, [r3, #20]
	ldr	r3, .L45+52
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, .L45+56
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, .L45+60
	str	r3, [r2]
	mov	r0, #1000
	bl	usleep
	ldr	r3, .L45+52
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, .L45+64
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, .L45+68
	str	r3, [r2]
	ldr	r3, .L45+52
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, .L45+56
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, .L45+72
	str	r3, [r2]
	mov	r0, #1000
	bl	usleep
	ldr	r3, .L45+52
	ldr	r3, [r3]
	add	r3, r3, #2146304
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	mov	r0, #1000
	bl	usleep
	ldr	r3, .L45+52
	ldr	r3, [r3]
	add	r3, r3, #2146304
	add	r3, r3, #4
	mov	r2, r3
	mvn	r3, #0
	str	r3, [r2]
	mov	r0, #1000
	bl	usleep
	ldr	r3, .L45+52
	ldr	r3, [r3]
	add	r3, r3, #2146304
	mov	r2, r3
	mvn	r3, #0
	str	r3, [r2]
	mov	r0, #1000
	bl	usleep
	ldr	r3, .L45+52
	ldr	r3, [r3]
	add	r3, r3, #2146304
	add	r3, r3, #8
	mov	r2, r3
	ldr	r3, .L45+76
	str	r3, [r2]
	ldr	r3, .L45+52
	ldr	r3, [r3]
	add	r3, r3, #28672
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r2, #-2147483648
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, .L45+28
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r2, .L45+80
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L46:
	.align	2
.L45:
	.word	unSetupDMA
	.word	handSig
	.word	constPage
	.word	constPage+4
	.word	1082081280
	.word	1085276160
	.word	1071644672
	.word	instrPage
	.word	instrPage+4
	.word	instrs
	.word	2116075544
	.word	67436608
	.word	2114982004
	.word	allof7e
	.word	1052832
	.word	1509949478
	.word	1052836
	.word	1509959680
	.word	1509949462
	.word	-2147481849
	.word	16711681
	.size	setupDMA, .-setupDMA
	.section	.rodata
	.align	2
.LC7:
	.ascii	"Usage:   program wavfile.wav [freq] [sample rate]\012"
	.ascii	"\012Where wavfile is 16 bit 22.5kHz Mono.  Set wavf"
	.ascii	"ile to '-' to use stdin.\012freq is in Mhz (default"
	.ascii	" 103.3)\012sample rate of wav file in Hz\012\012Pla"
	.ascii	"y an empty file to transmit silence\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	ble	.L48
	bl	setup_fm
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	ble	.L49
	ldr	r3, [fp, #-20]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atof
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	b	.L50
.L49:
	ldr	r3, .L55
.L50:
	mov	r0, r3
	bl	setupDMA
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r4, [r3]
	ldr	r3, [fp, #-16]
	cmp	r3, #3
	ble	.L51
	ldr	r3, [fp, #-20]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atof
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	b	.L52
.L51:
	ldr	r3, .L55+4
.L52:
	mov	r1, r3
	mov	r0, r4
	bl	playWav
	b	.L53
.L48:
	ldr	r3, .L55+8
	ldr	r3, [r3]
	mov	r2, #224
	mov	r1, #1
	ldr	r0, .L55+12
	bl	fwrite
.L53:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L56:
	.align	2
.L55:
	.word	1120835994
	.word	1185925120
	.word	stderr
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
