	.file	"379597.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"/dev/msm_pcm_out"
	.align 8
.LC1:
	.string	"pcm_play: cannot open audio device"
.LC2:
	.string	"could not get config"
.LC3:
	.string	"could not set config"
.LC4:
	.string	"too big\n"
.LC5:
	.string	"prefill\n"
.LC6:
	.string	"start\n"
	.text
	.globl	pcm_play
	.type	pcm_play, @function
pcm_play:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 96
	mov	DWORD PTR -8260[rbp], edi
	mov	DWORD PTR -8264[rbp], esi
	mov	QWORD PTR -8272[rbp], rdx
	mov	QWORD PTR -8280[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 2
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -8248[rbp], eax
	cmp	DWORD PTR -8248[rbp], 0
	jns	.L2
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L16
.L2:
	lea	rdx, -8240[rbp]
	mov	eax, DWORD PTR -8248[rbp]
	mov	esi, 2147770627
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	je	.L4
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L16
.L4:
	mov	eax, DWORD PTR -8264[rbp]
	mov	DWORD PTR -8232[rbp], eax
	mov	eax, DWORD PTR -8260[rbp]
	mov	DWORD PTR -8228[rbp], eax
	lea	rdx, -8240[rbp]
	mov	eax, DWORD PTR -8248[rbp]
	mov	esi, 1074028804
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	je	.L5
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L16
.L5:
	mov	eax, DWORD PTR -8240[rbp]
	mov	DWORD PTR -8244[rbp], eax
	cmp	DWORD PTR -8244[rbp], 8192
	jbe	.L6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 8
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	eax, -1
	jmp	.L16
.L6:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 8
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	DWORD PTR -8252[rbp], 0
	jmp	.L7
.L11:
	mov	rdx, QWORD PTR -8280[rbp]
	mov	ecx, DWORD PTR -8244[rbp]
	lea	rax, -8208[rbp]
	mov	r8, QWORD PTR -8272[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	r8
	test	eax, eax
	jne	.L18
	mov	edx, DWORD PTR -8244[rbp]
	lea	rcx, -8208[rbp]
	mov	eax, DWORD PTR -8248[rbp]
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	cmp	DWORD PTR -8244[rbp], eax
	jne	.L19
	add	DWORD PTR -8252[rbp], 1
.L7:
	mov	eax, DWORD PTR -8236[rbp]
	cmp	DWORD PTR -8252[rbp], eax
	jb	.L11
	jmp	.L9
.L18:
	nop
	jmp	.L9
.L19:
	nop
.L9:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 6
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	eax, DWORD PTR -8248[rbp]
	mov	edx, 0
	mov	esi, 1074028800
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
.L15:
	mov	rdx, QWORD PTR -8280[rbp]
	mov	ecx, DWORD PTR -8244[rbp]
	lea	rax, -8208[rbp]
	mov	r8, QWORD PTR -8272[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	r8
	test	eax, eax
	jne	.L20
	mov	edx, DWORD PTR -8244[rbp]
	lea	rcx, -8208[rbp]
	mov	eax, DWORD PTR -8248[rbp]
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	cmp	DWORD PTR -8244[rbp], eax
	jne	.L21
	jmp	.L15
.L20:
	nop
	jmp	.L13
.L21:
	nop
.L13:
	mov	eax, DWORD PTR -8248[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	mov	eax, 0
.L16:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	pcm_play, .-pcm_play
	.local	next
	.comm	next,8,8
	.local	avail
	.comm	avail,4,4
	.globl	fill_buffer
	.type	fill_buffer, @function
fill_buffer:
.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, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	QWORD PTR -24[rbp], rdx
	mov	eax, DWORD PTR avail[rip]
	cmp	DWORD PTR -12[rbp], eax
	jbe	.L23
	mov	eax, -1
	jmp	.L24
.L23:
	mov	edx, DWORD PTR -12[rbp]
	mov	rcx, QWORD PTR next[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rdx, QWORD PTR next[rip]
	mov	eax, DWORD PTR -12[rbp]
	add	rax, rdx
	mov	QWORD PTR next[rip], rax
	mov	eax, DWORD PTR avail[rip]
	sub	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR avail[rip], eax
	mov	eax, 0
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	fill_buffer, .-fill_buffer
	.section	.rodata
.LC7:
	.string	"could not allocate %d bytes\n"
.LC8:
	.string	"could not read %d bytes\n"
	.text
	.globl	play_file
	.type	play_file, @function
play_file:
.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	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	DWORD PTR -12[rbp], edx
	mov	DWORD PTR -16[rbp], ecx
	mov	eax, DWORD PTR -16[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR next[rip], rax
	mov	rax, QWORD PTR next[rip]
	test	rax, rax
	jne	.L26
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -16[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L25
.L26:
	mov	rcx, QWORD PTR next[rip]
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	read@PLT
	cmp	DWORD PTR -16[rbp], eax
	je	.L28
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -16[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L25
.L28:
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR avail[rip], eax
	mov	esi, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	ecx, 0
	lea	rdx, fill_buffer[rip]
	mov	edi, eax
	call	pcm_play
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	play_file, .-play_file
	.section	.rodata
.LC9:
	.string	"playwav: cannot open '%s'\n"
.LC10:
	.string	"playwav: cannot read header\n"
.LC11:
	.string	"PCM"
.LC12:
	.string	"unknown"
	.align 8
.LC13:
	.string	"playwav: %d ch, %d hz, %d bit, %s\n"
	.align 8
.LC14:
	.string	"playwav: '%s' is not a riff/wave file\n"
	.align 8
.LC15:
	.string	"playwav: '%s' is not pcm format\n"
	.align 8
.LC16:
	.string	"playwav: '%s' is not 16bit per sample\n"
	.text
	.globl	wav_play
	.type	wav_play, @function
wav_play:
.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, 96
	mov	QWORD PTR -88[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -88[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -68[rbp], eax
	cmp	DWORD PTR -68[rbp], 0
	jns	.L30
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -88[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L40
.L30:
	lea	rcx, -64[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	edx, 44
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	read@PLT
	cmp	eax, 44
	je	.L32
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
	mov	eax, -1
	jmp	.L40
.L32:
	movzx	eax, WORD PTR -44[rbp]
	cmp	ax, 1
	jne	.L33
	lea	rax, .LC11[rip]
	jmp	.L34
.L33:
	lea	rax, .LC12[rip]
.L34:
	movzx	edx, WORD PTR -30[rbp]
	movzx	esi, dx
	mov	ecx, DWORD PTR -40[rbp]
	movzx	edx, WORD PTR -42[rbp]
	movzx	edx, dx
	mov	rdi, QWORD PTR stderr[rip]
	mov	r9, rax
	mov	r8d, esi
	lea	rsi, .LC13[rip]
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -64[rbp]
	cmp	eax, 1179011410
	jne	.L35
	mov	eax, DWORD PTR -56[rbp]
	cmp	eax, 1163280727
	jne	.L35
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, 544501094
	je	.L36
.L35:
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -88[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L40
.L36:
	movzx	eax, WORD PTR -44[rbp]
	cmp	ax, 1
	jne	.L37
	mov	eax, DWORD PTR -48[rbp]
	cmp	eax, 16
	je	.L38
.L37:
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -88[rbp]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L40
.L38:
	movzx	eax, WORD PTR -30[rbp]
	cmp	ax, 16
	je	.L39
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -88[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L40
.L39:
	mov	ecx, DWORD PTR -24[rbp]
	movzx	eax, WORD PTR -42[rbp]
	movzx	esi, ax
	mov	eax, DWORD PTR -40[rbp]
	mov	edx, DWORD PTR -68[rbp]
	mov	edi, eax
	call	play_file
	mov	eax, 0
.L40:
	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
.LFE9:
	.size	wav_play, .-wav_play
	.section	.rodata
.LC17:
	.string	"cannot open output file"
.LC18:
	.string	"/dev/msm_pcm_in"
.LC19:
	.string	"cannot open msm_pcm_in"
.LC20:
	.string	"cannot read audio config"
.LC21:
	.string	"cannot write audio config"
.LC22:
	.string	"buffer size %d x %d\n"
.LC23:
	.string	"buffer size %d too large\n"
.LC24:
	.string	"cannot start audio"
	.align 8
.LC25:
	.string	"\n*** RECORDING * HIT ENTER TO STOP ***\n"
.LC26:
	.string	"cannot read buffer"
.LC27:
	.string	"cannot write buffer"
	.text
	.globl	wav_rec
	.type	wav_rec, @function
wav_rec:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 144
	mov	QWORD PTR -8328[rbp], rdi
	mov	DWORD PTR -8332[rbp], esi
	mov	DWORD PTR -8336[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -8304[rbp], 0
	mov	DWORD PTR -8288[rbp], 1179011410
	mov	DWORD PTR -8284[rbp], 0
	mov	DWORD PTR -8280[rbp], 1163280727
	mov	DWORD PTR -8276[rbp], 544501094
	mov	DWORD PTR -8272[rbp], 16
	mov	WORD PTR -8268[rbp], 1
	mov	eax, DWORD PTR -8332[rbp]
	mov	WORD PTR -8266[rbp], ax
	mov	eax, DWORD PTR -8336[rbp]
	mov	DWORD PTR -8264[rbp], eax
	mov	edx, DWORD PTR -8264[rbp]
	movzx	eax, WORD PTR -8266[rbp]
	movzx	eax, ax
	imul	eax, edx
	add	eax, eax
	mov	DWORD PTR -8260[rbp], eax
	movzx	eax, WORD PTR -8266[rbp]
	add	eax, eax
	mov	WORD PTR -8256[rbp], ax
	mov	WORD PTR -8254[rbp], 16
	mov	DWORD PTR -8252[rbp], 1635017060
	mov	DWORD PTR -8248[rbp], 0
	mov	rax, QWORD PTR -8328[rbp]
	mov	edx, 438
	mov	esi, 66
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -8300[rbp], eax
	cmp	DWORD PTR -8300[rbp], 0
	jns	.L43
	lea	rdi, .LC17[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L59
.L43:
	lea	rcx, -8288[rbp]
	mov	eax, DWORD PTR -8300[rbp]
	mov	edx, 44
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	mov	esi, 2
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -8296[rbp], eax
	cmp	DWORD PTR -8296[rbp], 0
	jns	.L45
	lea	rdi, .LC19[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -8300[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	mov	eax, -1
	jmp	.L59
.L45:
	lea	rdx, -8240[rbp]
	mov	eax, DWORD PTR -8296[rbp]
	mov	esi, 2147770627
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	je	.L46
	lea	rdi, .LC20[rip]
	call	perror@PLT
	jmp	.L47
.L46:
	movzx	eax, WORD PTR -8266[rbp]
	movzx	eax, ax
	mov	DWORD PTR -8232[rbp], eax
	mov	eax, DWORD PTR -8264[rbp]
	mov	DWORD PTR -8228[rbp], eax
	lea	rdx, -8240[rbp]
	mov	eax, DWORD PTR -8296[rbp]
	mov	esi, 1074028804
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	je	.L48
	lea	rdi, .LC21[rip]
	call	perror@PLT
	jmp	.L47
.L48:
	lea	rdx, -8240[rbp]
	mov	eax, DWORD PTR -8296[rbp]
	mov	esi, 2147770627
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	je	.L49
	lea	rdi, .LC20[rip]
	call	perror@PLT
	jmp	.L47
.L49:
	mov	eax, DWORD PTR -8240[rbp]
	mov	DWORD PTR -8292[rbp], eax
	mov	ecx, DWORD PTR -8236[rbp]
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -8292[rbp]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	cmp	DWORD PTR -8292[rbp], 8192
	jbe	.L50
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -8292[rbp]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L47
.L50:
	mov	eax, DWORD PTR -8296[rbp]
	mov	edx, 0
	mov	esi, 1074028800
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	je	.L51
	lea	rdi, .LC24[rip]
	call	perror@PLT
	jmp	.L47
.L51:
	mov	edx, 2048
	mov	esi, 4
	mov	edi, 0
	mov	eax, 0
	call	fcntl@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 39
	mov	esi, 1
	lea	rdi, .LC25[rip]
	call	fwrite@PLT
.L58:
	jmp	.L52
.L55:
	movzx	eax, BYTE PTR -8305[rbp]
	cmp	al, 13
	je	.L61
	movzx	eax, BYTE PTR -8305[rbp]
	cmp	al, 10
	je	.L61
.L52:
	lea	rax, -8305[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	edi, 0
	mov	eax, 0
	call	read@PLT
	cmp	eax, 1
	je	.L55
	mov	edx, DWORD PTR -8292[rbp]
	lea	rcx, -8208[rbp]
	mov	eax, DWORD PTR -8296[rbp]
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	read@PLT
	cmp	DWORD PTR -8292[rbp], eax
	je	.L56
	lea	rdi, .LC26[rip]
	call	perror@PLT
	jmp	.L47
.L56:
	mov	edx, DWORD PTR -8292[rbp]
	lea	rcx, -8208[rbp]
	mov	eax, DWORD PTR -8300[rbp]
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	cmp	DWORD PTR -8292[rbp], eax
	je	.L57
	lea	rdi, .LC27[rip]
	call	perror@PLT
	jmp	.L47
.L57:
	mov	eax, DWORD PTR -8292[rbp]
	add	DWORD PTR -8304[rbp], eax
	jmp	.L58
.L61:
	nop
.L54:
	mov	eax, DWORD PTR -8296[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	mov	eax, DWORD PTR -8304[rbp]
	mov	DWORD PTR -8248[rbp], eax
	mov	eax, DWORD PTR -8304[rbp]
	add	eax, 32
	mov	DWORD PTR -8284[rbp], eax
	mov	eax, DWORD PTR -8300[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	mov	eax, 0
	call	lseek@PLT
	lea	rcx, -8288[rbp]
	mov	eax, DWORD PTR -8300[rbp]
	mov	edx, 44
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	mov	eax, DWORD PTR -8300[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	mov	eax, 0
	jmp	.L59
.L47:
	mov	eax, DWORD PTR -8296[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	mov	eax, DWORD PTR -8300[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	mov	rax, QWORD PTR -8328[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	unlink@PLT
	mov	eax, -1
.L59:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L60
	call	__stack_chk_fail@PLT
.L60:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	wav_rec, .-wav_rec
	.section	.rodata
.LC28:
	.string	"cannot open mp3 file"
.LC29:
	.string	"/dev/msm_mp3"
.LC30:
	.string	"cannot open mp3 output device"
.LC31:
	.string	"MP3 PLAY\n"
	.text
	.globl	mp3_play
	.type	mp3_play, @function
mp3_play:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -65536[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 48
	mov	QWORD PTR -65576[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -65576[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -65564[rbp], eax
	cmp	DWORD PTR -65564[rbp], 0
	jns	.L63
	lea	rdi, .LC28[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L70
.L63:
	mov	esi, 2
	lea	rdi, .LC29[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -65560[rbp], eax
	cmp	DWORD PTR -65560[rbp], 0
	jns	.L65
	mov	eax, DWORD PTR -65564[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	lea	rdi, .LC30[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L70
.L65:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 9
	mov	esi, 1
	lea	rdi, .LC31[rip]
	call	fwrite@PLT
	mov	eax, DWORD PTR -65560[rbp]
	mov	edx, 0
	mov	esi, 1074028800
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
.L69:
	lea	rcx, -65552[rbp]
	mov	eax, DWORD PTR -65564[rbp]
	mov	edx, 65536
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	read@PLT
	mov	DWORD PTR -65556[rbp], eax
	cmp	DWORD PTR -65556[rbp], 0
	jle	.L72
	mov	edx, DWORD PTR -65556[rbp]
	lea	rcx, -65552[rbp]
	mov	eax, DWORD PTR -65560[rbp]
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	mov	DWORD PTR -65556[rbp], eax
	cmp	DWORD PTR -65556[rbp], 0
	js	.L73
	jmp	.L69
.L72:
	nop
	jmp	.L67
.L73:
	nop
.L67:
	mov	eax, DWORD PTR -65564[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	mov	eax, DWORD PTR -65560[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	mov	eax, 0
.L70:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L71
	call	__stack_chk_fail@PLT
.L71:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	mp3_play, .-mp3_play
	.section	.rodata
.LC32:
	.string	"-rec"
.LC33:
	.string	"-play"
.LC34:
	.string	"-stereo"
.LC35:
	.string	"-mono"
.LC36:
	.string	"-rate"
	.align 8
.LC37:
	.string	"playwav: -rate requires a parameter\n"
.LC38:
	.string	"/data/out.wav"
.LC39:
	.string	"/data/rec.wav"
.LC40:
	.string	".mp3"
	.text
	.globl	main
	.type	main, @function
main:
.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	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -16[rbp], 0
	mov	DWORD PTR -28[rbp], 1
	mov	DWORD PTR -24[rbp], 1
	mov	DWORD PTR -20[rbp], 44100
	sub	DWORD PTR -36[rbp], 1
	add	QWORD PTR -48[rbp], 8
	jmp	.L75
.L84:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC32[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L76
	mov	DWORD PTR -28[rbp], 0
	jmp	.L77
.L76:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC33[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L78
	mov	DWORD PTR -28[rbp], 1
	jmp	.L77
.L78:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC34[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L79
	mov	DWORD PTR -24[rbp], 2
	jmp	.L77
.L79:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC35[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L80
	mov	DWORD PTR -24[rbp], 1
	jmp	.L77
.L80:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC36[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L81
	sub	DWORD PTR -36[rbp], 1
	add	QWORD PTR -48[rbp], 8
	cmp	DWORD PTR -36[rbp], 0
	jne	.L82
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 36
	mov	esi, 1
	lea	rdi, .LC37[rip]
	call	fwrite@PLT
	mov	eax, -1
	jmp	.L83
.L82:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -20[rbp], eax
	jmp	.L77
.L81:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
.L77:
	sub	DWORD PTR -36[rbp], 1
	add	QWORD PTR -48[rbp], 8
.L75:
	cmp	DWORD PTR -36[rbp], 0
	jg	.L84
	cmp	QWORD PTR -16[rbp], 0
	jne	.L85
	cmp	DWORD PTR -28[rbp], 0
	je	.L86
	lea	rax, .LC38[rip]
	jmp	.L87
.L86:
	lea	rax, .LC39[rip]
.L87:
	mov	QWORD PTR -16[rbp], rax
.L85:
	cmp	DWORD PTR -28[rbp], 0
	je	.L88
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 46
	mov	rdi, rax
	call	strrchr@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L89
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC40[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L89
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	mp3_play
	jmp	.L83
.L89:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	wav_play
	jmp	.L83
.L88:
	mov	edx, DWORD PTR -20[rbp]
	mov	ecx, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	wav_rec
.L83:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	main, .-main
	.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	"379597.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/dev/msm_pcm_out\000"
	.align	2
.LC1:
	.ascii	"pcm_play: cannot open audio device\000"
	.align	2
.LC2:
	.ascii	"could not get config\000"
	.align	2
.LC3:
	.ascii	"could not set config\000"
	.align	2
.LC4:
	.ascii	"too big\012\000"
	.align	2
.LC5:
	.ascii	"prefill\012\000"
	.align	2
.LC6:
	.ascii	"start\012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	pcm_play
	.syntax unified
	.arm
	.fpu softvfp
	.type	pcm_play, %function
pcm_play:
	@ args = 0, pretend = 0, frame = 8256
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #8256
	sub	sp, sp, #4
	sub	ip, fp, #8192
	sub	ip, ip, #12
	str	r0, [ip, #-52]
	sub	r0, fp, #8192
	sub	r0, r0, #12
	str	r1, [r0, #-56]
	sub	r1, fp, #8192
	sub	r1, r1, #12
	str	r2, [r1, #-60]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	str	r3, [r2, #-64]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	mov	r1, #2
	ldr	r0, .L22+4
	bl	open
	str	r0, [r4, #-44]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L22+8
	bl	perror
	mvn	r3, #0
	b	.L16
.L2:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #36
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, .L22+12
	ldr	r0, [r0, #-44]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	ldr	r0, .L22+16
	bl	perror
	mvn	r3, #0
	b	.L16
.L4:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-56]
	str	r3, [r2, #-28]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-52]
	str	r3, [r2, #-24]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #36
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, .L22+20
	ldr	r0, [r0, #-44]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	beq	.L5
	ldr	r0, .L22+24
	bl	perror
	mvn	r3, #0
	b	.L16
.L5:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-36]
	str	r3, [r2, #-40]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	cmp	r3, #8192
	bls	.L6
	ldr	r3, .L22+28
	ldr	r3, [r3]
	mov	r2, #8
	mov	r1, #1
	ldr	r0, .L22+32
	bl	fwrite
	mvn	r3, #0
	b	.L16
.L6:
	ldr	r3, .L22+28
	ldr	r3, [r3]
	mov	r2, #8
	mov	r1, #1
	ldr	r0, .L22+36
	bl	fwrite
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-48]
	b	.L7
.L11:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r0, fp, #8192
	sub	r0, r0, #12
	ldr	r4, [r0, #-60]
	ldr	r2, [r2, #-64]
	ldr	r1, [r1, #-40]
	mov	r0, r3
	blx	r4
	mov	r3, r0
	cmp	r3, #0
	bne	.L18
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r1, fp, #8192
	sub	r1, r1, #12
	mov	r0, r1
	ldr	r2, [r2, #-40]
	mov	r1, r3
	ldr	r0, [r0, #-44]
	bl	write
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	cmp	r3, r2
	bne	.L19
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	add	r3, r3, #1
	str	r3, [r2, #-48]
.L7:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-48]
	cmp	r2, r3
	bcc	.L11
	b	.L9
.L18:
	nop
	b	.L9
.L19:
	nop
.L9:
	ldr	r3, .L22+28
	ldr	r3, [r3]
	mov	r2, #6
	mov	r1, #1
	ldr	r0, .L22+40
	bl	fwrite
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, #0
	ldr	r1, .L22+44
	ldr	r0, [r3, #-44]
	bl	ioctl
.L15:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r0, fp, #8192
	sub	r0, r0, #12
	ldr	r4, [r0, #-60]
	ldr	r2, [r2, #-64]
	ldr	r1, [r1, #-40]
	mov	r0, r3
	blx	r4
	mov	r3, r0
	cmp	r3, #0
	bne	.L20
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r1, fp, #8192
	sub	r1, r1, #12
	mov	r0, r1
	ldr	r2, [r2, #-40]
	mov	r1, r3
	ldr	r0, [r0, #-44]
	bl	write
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	cmp	r3, r2
	bne	.L21
	b	.L15
.L20:
	nop
	b	.L13
.L21:
	nop
.L13:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-44]
	bl	close
	mov	r3, #0
.L16:
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	-2147196669
	.word	.LC2
	.word	1074028804
	.word	.LC3
	.word	stderr
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	1074028800
	.size	pcm_play, .-pcm_play
	.local	next
	.comm	next,4,4
	.local	avail
	.comm	avail,4,4
	.align	2
	.global	fill_buffer
	.syntax unified
	.arm
	.fpu softvfp
	.type	fill_buffer, %function
fill_buffer:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, .L27
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bls	.L25
	mvn	r3, #0
	b	.L26
.L25:
	ldr	r3, .L27+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	memcpy
	ldr	r3, .L27+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldr	r2, .L27+4
	str	r3, [r2]
	ldr	r3, .L27
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	ldr	r2, .L27
	str	r3, [r2]
	mov	r3, #0
.L26:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	avail
	.word	next
	.size	fill_buffer, .-fill_buffer
	.section	.rodata
	.align	2
.LC8:
	.ascii	"could not allocate %d bytes\012\000"
	.align	2
.LC9:
	.ascii	"could not read %d bytes\012\000"
	.text
	.align	2
	.global	play_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	play_file, %function
play_file:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r0, [fp, #-20]
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L33
	str	r2, [r3]
	ldr	r3, .L33
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L30
	ldr	r3, .L33+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	ldr	r1, .L33+8
	mov	r0, r3
	bl	fprintf
	b	.L29
.L30:
	ldr	r3, .L33
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	read
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-20]
	cmp	r3, r2
	beq	.L32
	ldr	r3, .L33+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	ldr	r1, .L33+12
	mov	r0, r3
	bl	fprintf
	b	.L29
.L32:
	ldr	r2, .L33+16
	ldr	r3, [fp, #-20]
	str	r3, [r2]
	mov	r3, #0
	ldr	r2, .L33+20
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	pcm_play
.L29:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	next
	.word	stderr
	.word	.LC8
	.word	.LC9
	.word	avail
	.word	fill_buffer
	.size	play_file, .-play_file
	.section	.rodata
	.align	2
.LC10:
	.ascii	"playwav: cannot open '%s'\012\000"
	.align	2
.LC11:
	.ascii	"playwav: cannot read header\012\000"
	.align	2
.LC12:
	.ascii	"PCM\000"
	.align	2
.LC13:
	.ascii	"unknown\000"
	.align	2
.LC14:
	.ascii	"playwav: %d ch, %d hz, %d bit, %s\012\000"
	.align	2
.LC15:
	.ascii	"playwav: '%s' is not a riff/wave file\012\000"
	.align	2
.LC16:
	.ascii	"playwav: '%s' is not pcm format\012\000"
	.align	2
.LC17:
	.ascii	"playwav: '%s' is not 16bit per sample\012\000"
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	wav_play
	.syntax unified
	.arm
	.fpu softvfp
	.type	wav_play, %function
wav_play:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	str	r0, [fp, #-64]
	ldr	r3, .L48
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #0
	ldr	r0, [fp, #-64]
	bl	open
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bge	.L36
	ldr	r3, .L48+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-64]
	ldr	r1, .L48+8
	mov	r0, r3
	bl	fprintf
	mvn	r3, #0
	b	.L46
.L36:
	sub	r3, fp, #52
	mov	r2, #44
	mov	r1, r3
	ldr	r0, [fp, #-56]
	bl	read
	mov	r3, r0
	cmp	r3, #44
	beq	.L38
	ldr	r3, .L48+4
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L48+12
	bl	fwrite
	mvn	r3, #0
	b	.L46
.L38:
	ldr	r3, .L48+4
	ldr	r0, [r3]
	ldrh	r3, [fp, #-30]
	mov	ip, r3
	ldr	r2, [fp, #-28]
	ldrh	r3, [fp, #-18]
	mov	r1, r3
	ldrh	r3, [fp, #-32]
	cmp	r3, #1
	bne	.L39
	ldr	r3, .L48+16
	b	.L40
.L39:
	ldr	r3, .L48+20
.L40:
	str	r3, [sp, #4]
	str	r1, [sp]
	mov	r3, r2
	mov	r2, ip
	ldr	r1, .L48+24
	bl	fprintf
	ldr	r3, [fp, #-52]
	ldr	r2, .L48+28
	cmp	r3, r2
	bne	.L41
	ldr	r3, [fp, #-44]
	ldr	r2, .L48+32
	cmp	r3, r2
	bne	.L41
	ldr	r3, [fp, #-40]
	ldr	r2, .L48+36
	cmp	r3, r2
	beq	.L42
.L41:
	ldr	r3, .L48+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-64]
	ldr	r1, .L48+40
	mov	r0, r3
	bl	fprintf
	mvn	r3, #0
	b	.L46
.L42:
	ldrh	r3, [fp, #-32]
	cmp	r3, #1
	bne	.L43
	ldr	r3, [fp, #-36]
	cmp	r3, #16
	beq	.L44
.L43:
	ldr	r3, .L48+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-64]
	ldr	r1, .L48+44
	mov	r0, r3
	bl	fprintf
	mvn	r3, #0
	b	.L46
.L44:
	ldrh	r3, [fp, #-18]
	cmp	r3, #16
	beq	.L45
	ldr	r3, .L48+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-64]
	ldr	r1, .L48+48
	mov	r0, r3
	bl	fprintf
	mvn	r3, #0
	b	.L46
.L45:
	ldr	r0, [fp, #-28]
	ldrh	r3, [fp, #-30]
	mov	r1, r3
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-56]
	bl	play_file
	mov	r3, #0
.L46:
	ldr	r2, .L48
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L47
	bl	__stack_chk_fail
.L47:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L49:
	.align	2
.L48:
	.word	.LC18
	.word	stderr
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	1179011410
	.word	1163280727
	.word	544501094
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.size	wav_play, .-wav_play
	.section	.rodata
	.align	2
.LC19:
	.ascii	"cannot open output file\000"
	.align	2
.LC20:
	.ascii	"/dev/msm_pcm_in\000"
	.align	2
.LC21:
	.ascii	"cannot open msm_pcm_in\000"
	.align	2
.LC22:
	.ascii	"cannot read audio config\000"
	.align	2
.LC23:
	.ascii	"cannot write audio config\000"
	.align	2
.LC24:
	.ascii	"buffer size %d x %d\012\000"
	.align	2
.LC25:
	.ascii	"buffer size %d too large\012\000"
	.align	2
.LC26:
	.ascii	"cannot start audio\000"
	.align	2
.LC27:
	.ascii	"\012*** RECORDING * HIT ENTER TO STOP ***\012\000"
	.align	2
.LC28:
	.ascii	"cannot read buffer\000"
	.align	2
.LC29:
	.ascii	"cannot write buffer\000"
	.align	2
.LC30:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	wav_rec
	.syntax unified
	.arm
	.fpu softvfp
	.type	wav_rec, %function
wav_rec:
	@ args = 0, pretend = 0, frame = 8312
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #8256
	sub	sp, sp, #60
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r0, [r3, #-108]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r1, [r3, #-112]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r2, [r3, #-116]
	ldr	r3, .L70
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-96]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L70+4
	str	r3, [r2, #-80]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-76]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L70+8
	str	r3, [r2, #-72]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L70+12
	str	r3, [r2, #-68]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #16
	str	r3, [r2, #-64]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, #1
	strh	r2, [r3, #-60]	@ movhi
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-112]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	sub	r2, fp, #8192
	sub	r2, r2, #12
	strh	r3, [r2, #-58]	@ movhi
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-116]
	str	r3, [r2, #-56]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-56]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldrh	r2, [r2, #-58]
	mul	r3, r2, r3
	lsl	r3, r3, #1
	sub	r2, fp, #8192
	sub	r2, r2, #12
	str	r3, [r2, #-52]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldrh	r3, [r3, #-58]
	lsl	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	sub	r2, fp, #8192
	sub	r2, r2, #12
	strh	r3, [r2, #-48]	@ movhi
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, #16
	strh	r2, [r3, #-46]	@ movhi
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L70+16
	str	r3, [r2, #-44]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-40]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, .L70+20
	mov	r1, #66
	ldr	r0, [r3, #-108]
	bl	open
	str	r0, [r4, #-92]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-92]
	cmp	r3, #0
	bge	.L51
	ldr	r0, .L70+24
	bl	perror
	mvn	r3, #0
	b	.L67
.L51:
	sub	r3, fp, #8256
	sub	r3, r3, #12
	sub	r3, r3, #16
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #44
	mov	r1, r3
	ldr	r0, [r0, #-92]
	bl	write
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	mov	r1, #2
	ldr	r0, .L70+28
	bl	open
	str	r0, [r4, #-88]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-88]
	cmp	r3, #0
	bge	.L53
	ldr	r0, .L70+32
	bl	perror
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-92]
	bl	close
	mvn	r3, #0
	b	.L67
.L53:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #36
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, .L70+36
	ldr	r0, [r0, #-88]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	beq	.L54
	ldr	r0, .L70+40
	bl	perror
	b	.L55
.L54:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldrh	r3, [r3, #-58]
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r2, [r3, #-28]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-56]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	str	r3, [r2, #-24]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #36
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, .L70+44
	ldr	r0, [r0, #-88]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	beq	.L56
	ldr	r0, .L70+48
	bl	perror
	b	.L55
.L56:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #36
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, .L70+36
	ldr	r0, [r0, #-88]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	beq	.L57
	ldr	r0, .L70+40
	bl	perror
	b	.L55
.L57:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-36]
	str	r3, [r2, #-84]
	ldr	r3, .L70+52
	ldr	r0, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-84]
	ldr	r1, .L70+56
	bl	fprintf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-84]
	cmp	r3, #8192
	bls	.L58
	ldr	r3, .L70+52
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-84]
	ldr	r1, .L70+60
	mov	r0, r3
	bl	fprintf
	b	.L55
.L58:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, #0
	ldr	r1, .L70+64
	ldr	r0, [r3, #-88]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	beq	.L59
	ldr	r0, .L70+68
	bl	perror
	b	.L55
.L59:
	mov	r2, #2048
	mov	r1, #4
	mov	r0, #0
	bl	fcntl
	ldr	r3, .L70+52
	ldr	r3, [r3]
	mov	r2, #39
	mov	r1, #1
	ldr	r0, .L70+72
	bl	fwrite
.L66:
	b	.L60
.L63:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldrb	r3, [r3, #-97]	@ zero_extendqisi2
	cmp	r3, #13
	beq	.L69
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldrb	r3, [r3, #-97]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L69
.L60:
	sub	r3, fp, #8256
	sub	r3, r3, #12
	sub	r3, r3, #33
	mov	r2, #1
	mov	r1, r3
	mov	r0, #0
	bl	read
	mov	r3, r0
	cmp	r3, #1
	beq	.L63
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r1, fp, #8192
	sub	r1, r1, #12
	mov	r0, r1
	ldr	r2, [r2, #-84]
	mov	r1, r3
	ldr	r0, [r0, #-88]
	bl	read
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-84]
	cmp	r3, r2
	beq	.L64
	ldr	r0, .L70+76
	bl	perror
	b	.L55
.L64:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r1, fp, #8192
	sub	r1, r1, #12
	mov	r0, r1
	ldr	r2, [r2, #-84]
	mov	r1, r3
	ldr	r0, [r0, #-92]
	bl	write
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-84]
	cmp	r3, r2
	beq	.L65
	ldr	r0, .L70+80
	bl	perror
	b	.L55
.L65:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-96]
	ldr	r3, [r3, #-84]
	add	r3, r2, r3
	str	r3, [r1, #-96]
	b	.L66
.L69:
	nop
.L62:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-88]
	bl	close
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-96]
	str	r3, [r2, #-40]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-96]
	add	r3, r3, #32
	sub	r2, fp, #8192
	sub	r2, r2, #12
	str	r3, [r2, #-76]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [r3, #-92]
	bl	lseek
	sub	r3, fp, #8256
	sub	r3, r3, #12
	sub	r3, r3, #16
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #44
	mov	r1, r3
	ldr	r0, [r0, #-92]
	bl	write
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-92]
	bl	close
	mov	r3, #0
	b	.L67
.L55:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-88]
	bl	close
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-92]
	bl	close
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-108]
	bl	unlink
	mvn	r3, #0
.L67:
	ldr	r2, .L70
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L68
	bl	__stack_chk_fail
.L68:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L71:
	.align	2
.L70:
	.word	.LC30
	.word	1179011410
	.word	1163280727
	.word	544501094
	.word	1635017060
	.word	438
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	-2147196669
	.word	.LC22
	.word	1074028804
	.word	.LC23
	.word	stderr
	.word	.LC24
	.word	.LC25
	.word	1074028800
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.size	wav_rec, .-wav_rec
	.section	.rodata
	.align	2
.LC31:
	.ascii	"cannot open mp3 file\000"
	.align	2
.LC32:
	.ascii	"/dev/msm_mp3\000"
	.align	2
.LC33:
	.ascii	"cannot open mp3 output device\000"
	.align	2
.LC34:
	.ascii	"MP3 PLAY\012\000"
	.align	2
.LC35:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mp3_play
	.syntax unified
	.arm
	.fpu softvfp
	.type	mp3_play, %function
mp3_play:
	@ args = 0, pretend = 0, frame = 65560
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #65536
	sub	sp, sp, #28
	sub	r3, fp, #65536
	sub	r3, r3, #12
	str	r0, [r3, #-20]
	ldr	r3, .L84
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r1, #0
	ldr	r0, [r3, #-20]
	bl	open
	str	r0, [r4, #-16]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	cmp	r3, #0
	bge	.L73
	ldr	r0, .L84+4
	bl	perror
	mvn	r3, #0
	b	.L80
.L73:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r4, r3
	mov	r1, #2
	ldr	r0, .L84+8
	bl	open
	str	r0, [r4, #-12]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	cmp	r3, #0
	bge	.L75
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r0, [r3, #-16]
	bl	close
	ldr	r0, .L84+12
	bl	perror
	mvn	r3, #0
	b	.L80
.L75:
	ldr	r3, .L84+16
	ldr	r3, [r3]
	mov	r2, #9
	mov	r1, #1
	ldr	r0, .L84+20
	bl	fwrite
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, #0
	ldr	r1, .L84+24
	ldr	r0, [r3, #-12]
	bl	ioctl
.L79:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #65536
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #65536
	mov	r1, r3
	ldr	r0, [r0, #-16]
	bl	read
	str	r0, [r4, #-8]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #0
	ble	.L82
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r1, fp, #65536
	sub	r1, r1, #12
	mov	r0, r1
	ldr	r2, [r2, #-8]
	mov	r1, r3
	ldr	r0, [r0, #-12]
	bl	write
	str	r0, [r4, #-8]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #0
	blt	.L83
	b	.L79
.L82:
	nop
	b	.L77
.L83:
	nop
.L77:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r0, [r3, #-16]
	bl	close
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r0, [r3, #-12]
	bl	close
	mov	r3, #0
.L80:
	ldr	r2, .L84
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L81
	bl	__stack_chk_fail
.L81:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L85:
	.align	2
.L84:
	.word	.LC35
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	stderr
	.word	.LC34
	.word	1074028800
	.size	mp3_play, .-mp3_play
	.section	.rodata
	.align	2
.LC36:
	.ascii	"-rec\000"
	.align	2
.LC37:
	.ascii	"-play\000"
	.align	2
.LC38:
	.ascii	"-stereo\000"
	.align	2
.LC39:
	.ascii	"-mono\000"
	.align	2
.LC40:
	.ascii	"-rate\000"
	.align	2
.LC41:
	.ascii	"playwav: -rate requires a parameter\012\000"
	.align	2
.LC42:
	.ascii	"/data/out.wav\000"
	.align	2
.LC43:
	.ascii	"/data/rec.wav\000"
	.align	2
.LC44:
	.ascii	".mp3\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #1
	str	r3, [fp, #-20]
	mov	r3, #1
	str	r3, [fp, #-16]
	ldr	r3, .L102
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	str	r3, [fp, #-36]
	b	.L87
.L96:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	ldr	r1, .L102+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L88
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L89
.L88:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	ldr	r1, .L102+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L90
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L89
.L90:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	ldr	r1, .L102+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L91
	mov	r3, #2
	str	r3, [fp, #-16]
	b	.L89
.L91:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	ldr	r1, .L102+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L92
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L89
.L92:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	ldr	r1, .L102+20
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L93
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L94
	ldr	r3, .L102+24
	ldr	r3, [r3]
	mov	r2, #36
	mov	r1, #1
	ldr	r0, .L102+28
	bl	fwrite
	mvn	r3, #0
	b	.L95
.L94:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-12]
	b	.L89
.L93:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	str	r3, [fp, #-24]
.L89:
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	str	r3, [fp, #-36]
.L87:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bgt	.L96
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L97
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L98
	ldr	r3, .L102+32
	b	.L99
.L98:
	ldr	r3, .L102+36
.L99:
	str	r3, [fp, #-24]
.L97:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L100
	mov	r1, #46
	ldr	r0, [fp, #-24]
	bl	strrchr
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L101
	ldr	r1, .L102+40
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L101
	ldr	r0, [fp, #-24]
	bl	mp3_play
	mov	r3, r0
	b	.L95
.L101:
	ldr	r0, [fp, #-24]
	bl	wav_play
	mov	r3, r0
	b	.L95
.L100:
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-24]
	bl	wav_rec
	mov	r3, r0
.L95:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L103:
	.align	2
.L102:
	.word	44100
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.word	.LC39
	.word	.LC40
	.word	stderr
	.word	.LC41
	.word	.LC42
	.word	.LC43
	.word	.LC44
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
