
;  GNU C 2.7.2 [AL 1.1, MM 40] RISC NEWS-OS compiled by CC

;  Cc1 defaults:
;  -mmemcpy

;  Cc1 arguments (-G value = 0, Cpu = 3000, ISA = 1):
;  -quiet -dumpbase -O2 -Wall -o

gcc2_compiled.:
__gnu_compiled_c:
	.code
	.align	1
new_WaveDataOut:
;	.frame	%sp,4,$31		# vars= 0, regs= 1/0, args= 0, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0
	ext	music_wch+0x0@ah	; 	xld.ub	%r10,[music_wch]
	ext	music_wch+0x0@al
	ld.ub	%r10,[%r8]
	cmp	%r12,%r10
	jrne	__LX71		; 	xjrne	__L71
	ext	0x1		; 	xbtst	[%r13+1],0x0
	btst	[%r13],0x0
	jreq	__LX71		; 	xjreq	__L71
	ext	0x4		; 	xld.w	%r11,[%r13+4]
	ld.w	%r11,[%r13]
	ext	0x8		; 	xld.w	%r15,[%r13+8]
	ld.w	%r15,[%r13]
	ld.w	%r14,0x0
	cmp	%r14,%r15
	jrge	__LX71		; 	xjrge	__L71
	ext	0x1e00		; 	xld.w	%r5,-32767			; 0xffff8001
	ld.w	%r5,0x1
	ext	0x1ff		; 	xld.w	%r4,0x00007fff		; 32767
	ld.w	%r4,0x3f
__LX75:				; __L75:
	ld.h	%r10,[%r11]	; 	xld.h	%r10,[%r11]
	sll	%r10,0x2	; 	xsll	%r10,2
	cmp	%r10,%r5
	jrge	__LX76		; 	xjrge	__L76
	ld.w	%r10,%r5
	jp	__LX77		; 	xjp	__L77
__LX76:				; __L76:
	cmp	%r10,%r4
	jrle	__LX77		; 	xjrle	__L77
	ld.w	%r10,%r4
__LX77:				; __L77:
	ld.h	[%r11],%r10	; 	xld.h	[%r11],%r10
	add	%r11,0x2	; 	xadd	%r11,%r11,2
	add	%r14,0x1	; 	xadd	%r14,%r14,1
	cmp	%r14,%r15
	jrlt	__LX75		; 	xjrlt	__L75
__LX71:				; __L71:
	ext	old_WaveDataOut+0x0@ah	; 	xld.w	%r10,[old_WaveDataOut]
	ext	old_WaveDataOut+0x0@al
	ld.w	%r10,[%r8]
	call	%r10
	ret
	.align	1
	.global	music_loudness
music_loudness:
;	.frame	%sp,8,$31		# vars= 0, regs= 2/0, args= 0, extra= 0
;	.mask	0x80010000,-4
;	.fmask	0x00000000,0
	pushn	%r0
	ld.w	%r0,%r12
	cmp	%r0,0x0
	jreq	__LX81		; 	xjreq	__L81
	ext	old_WaveDataOut+0x0@ah	; 	xld.w	%r10,[old_WaveDataOut]
	ext	old_WaveDataOut+0x0@al
	ld.w	%r10,[%r8]
	cmp	%r10,0x0
	jrne	__LX80		; 	xjrne	__L80
	ext	0x0		; 	xld.w	%r12,0x00000029		; 41
	ld.w	%r12,0x29
	ext	new_WaveDataOut+0x0@h	; 	xld.w	%r13,new_WaveDataOut
	ext	new_WaveDataOut+0x0@m
	ld.w	%r13,new_WaveDataOut+0x0@l
	ext	pceVectorSetKs@rm	; 	xcall	pceVectorSetKs
	call	pceVectorSetKs@rl
	ext	old_WaveDataOut+0x0@ah	; 	xld.w	[old_WaveDataOut],%r10
	ext	old_WaveDataOut+0x0@al
	ld.w	[%r8],%r10
	jp	__LX80		; 	xjp	__L80
__LX81:				; __L81:
	ext	old_WaveDataOut+0x0@ah	; 	xld.w	%r13,[old_WaveDataOut]
	ext	old_WaveDataOut+0x0@al
	ld.w	%r13,[%r8]
	cmp	%r13,0x0
	jreq	__LX80		; 	xjreq	__L80
	ext	0x0		; 	xld.w	%r12,0x00000029		; 41
	ld.w	%r12,0x29
	ext	pceVectorSetKs@rm	; 	xcall	pceVectorSetKs
	call	pceVectorSetKs@rl
	ext	old_WaveDataOut+0x0@ah	; 	xld.w	[old_WaveDataOut],%r0
	ext	old_WaveDataOut+0x0@al
	ld.w	[%r8],%r0
__LX80:				; __L80:
	popn	%r0
	ret

	.lcomm	old_WaveDataOut 4

