
;  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	2
__LC0:
	.ascii	"clipio.$(%d)\000"
	.code
	.align	1
	.global	rename
rename:
;	.frame	%sp,12,$31		# vars= 0, regs= 1/0, args= 8, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0
	sub	%sp,0x2		; 	xsub	%sp,%sp,8
	ext	__LC0+0x0@h	; 	xld.w	%r10,__LC0
	ext	__LC0+0x0@m
	ld.w	%r10,__LC0+0x0@l
	ld.w	[%sp+0x0],%r10	; 	xld.w	[%sp],%r10
	ext	0x1		; 	xld.w	%r10,0x00000044		; 68
	ld.w	%r10,0x4
	ld.w	[%sp+0x1],%r10	; 	xld.w	[%sp+4],%r10
	ext	die@rm		; 	xcall	die
	call	die@rl
	add	%sp,0x2		; 	xadd	%sp,%sp,8
	ret
	.align	1
	.global	setbuf
setbuf:
;	.frame	%sp,12,$31		# vars= 0, regs= 1/0, args= 8, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0
	sub	%sp,0x2		; 	xsub	%sp,%sp,8
	ext	__LC0+0x0@h	; 	xld.w	%r10,__LC0
	ext	__LC0+0x0@m
	ld.w	%r10,__LC0+0x0@l
	ld.w	[%sp+0x0],%r10	; 	xld.w	[%sp],%r10
	ext	0x1		; 	xld.w	%r10,0x00000045		; 69
	ld.w	%r10,0x5
	ld.w	[%sp+0x1],%r10	; 	xld.w	[%sp+4],%r10
	ext	die@rm		; 	xcall	die
	call	die@rl
	add	%sp,0x2		; 	xadd	%sp,%sp,8
	ret
	.align	1
	.global	setvbuf
setvbuf:
;	.frame	%sp,12,$31		# vars= 0, regs= 1/0, args= 8, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0
	sub	%sp,0x2		; 	xsub	%sp,%sp,8
	ext	__LC0+0x0@h	; 	xld.w	%r10,__LC0
	ext	__LC0+0x0@m
	ld.w	%r10,__LC0+0x0@l
	ld.w	[%sp+0x0],%r10	; 	xld.w	[%sp],%r10
	ext	0x1		; 	xld.w	%r10,0x00000046		; 70
	ld.w	%r10,0x6
	ld.w	[%sp+0x1],%r10	; 	xld.w	[%sp+4],%r10
	ext	die@rm		; 	xcall	die
	call	die@rl
	add	%sp,0x2		; 	xadd	%sp,%sp,8
	ret
	.align	1
	.global	tmpfile
tmpfile:
;	.frame	%sp,12,$31		# vars= 0, regs= 1/0, args= 8, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0
	sub	%sp,0x2		; 	xsub	%sp,%sp,8
	ext	__LC0+0x0@h	; 	xld.w	%r10,__LC0
	ext	__LC0+0x0@m
	ld.w	%r10,__LC0+0x0@l
	ld.w	[%sp+0x0],%r10	; 	xld.w	[%sp],%r10
	ext	0x1		; 	xld.w	%r10,0x00000047		; 71
	ld.w	%r10,0x7
	ld.w	[%sp+0x1],%r10	; 	xld.w	[%sp+4],%r10
	ext	die@rm		; 	xcall	die
	call	die@rl
	add	%sp,0x2		; 	xadd	%sp,%sp,8
	ret
	.align	1
	.global	tmpnam
tmpnam:
;	.frame	%sp,12,$31		# vars= 0, regs= 1/0, args= 8, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0
	sub	%sp,0x2		; 	xsub	%sp,%sp,8
	ext	__LC0+0x0@h	; 	xld.w	%r10,__LC0
	ext	__LC0+0x0@m
	ld.w	%r10,__LC0+0x0@l
	ld.w	[%sp+0x0],%r10	; 	xld.w	[%sp],%r10
	ext	0x1		; 	xld.w	%r10,0x00000048		; 72
	ld.w	%r10,0x8
	ld.w	[%sp+0x1],%r10	; 	xld.w	[%sp+4],%r10
	ext	die@rm		; 	xcall	die
	call	die@rl
	add	%sp,0x2		; 	xadd	%sp,%sp,8
	ret
	.align	1
	.global	fscanf
fscanf:
;	.frame	%sp,12,$31		# vars= 0, regs= 1/0, args= 8, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0
	sub	%sp,0x2		; 	xsub	%sp,%sp,8
	ext	__LC0+0x0@h	; 	xld.w	%r10,__LC0
	ext	__LC0+0x0@m
	ld.w	%r10,__LC0+0x0@l
	ld.w	[%sp+0x0],%r10	; 	xld.w	[%sp],%r10
	ext	0x1		; 	xld.w	%r10,0x0000004d		; 77
	ld.w	%r10,0xd
	ld.w	[%sp+0x1],%r10	; 	xld.w	[%sp+4],%r10
	ext	die@rm		; 	xcall	die
	call	die@rl
	add	%sp,0x2		; 	xadd	%sp,%sp,8
	ret
	.align	1
	.global	scanf
scanf:
;	.frame	%sp,12,$31		# vars= 0, regs= 1/0, args= 8, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0
	sub	%sp,0x2		; 	xsub	%sp,%sp,8
	ext	__LC0+0x0@h	; 	xld.w	%r10,__LC0
	ext	__LC0+0x0@m
	ld.w	%r10,__LC0+0x0@l
	ld.w	[%sp+0x0],%r10	; 	xld.w	[%sp],%r10
	ext	0x1		; 	xld.w	%r10,0x0000004e		; 78
	ld.w	%r10,0xe
	ld.w	[%sp+0x1],%r10	; 	xld.w	[%sp+4],%r10
	ext	die@rm		; 	xcall	die
	call	die@rl
	add	%sp,0x2		; 	xadd	%sp,%sp,8
	ret
	.align	1
io_file:
;	.frame	%sp,12,$31		# vars= 0, regs= 1/0, args= 8, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0
	sub	%sp,0x2		; 	xsub	%sp,%sp,8
	ld.uh	%r10,[%r12]	; 	xld.uh	%r10,[%r12]
	ext	0x13d		; 	xcmp	%r10,20297
	cmp	%r10,0x9
	jreq	__LX78		; 	xjreq	__L78
	ext	__LC0+0x0@h	; 	xld.w	%r10,__LC0
	ext	__LC0+0x0@m
	ld.w	%r10,__LC0+0x0@l
	ld.w	[%sp+0x0],%r10	; 	xld.w	[%sp],%r10
	ext	0x1		; 	xld.w	%r10,0x0000007f		; 127
	ld.w	%r10,0x3f
	ld.w	[%sp+0x1],%r10	; 	xld.w	[%sp+4],%r10
	ext	die@rm		; 	xcall	die
	call	die@rl
__LX78:				; __L78:
	ld.w	%r10,%r12
	add	%sp,0x2		; 	xadd	%sp,%sp,8
	ret
	.align	1
io_open:
;	.frame	%sp,16,$31		# vars= 0, regs= 4/0, args= 0, extra= 0
;	.mask	0x80070000,-4
;	.fmask	0x00000000,0
	pushn	%r2
	ld.w	%r1,%r12
	ld.w	%r2,%r13
	ld.w	%r0,%r14
	ld.w	%r13,0x0
	ext	0x0		; 	xld.w	%r14,0x00000024		; 36
	ld.w	%r14,0x24
	ext	memset@rm	; 	xcall	memset
	call	memset@rl
	ld.b	%r10,[%r0]	; 	xld.b	%r10,[%r0]
	ext	0x1		; 	xcmp	%r10,114
	cmp	%r10,0x32
	jreq	__LX81		; 	xjreq	__L81
	ext	0x1		; 	xcmp	%r10,119
	cmp	%r10,0x37
	jreq	__LX83		; 	xjreq	__L83
	jp	__LX89		; 	xjp	__L89
__LX81:				; __L81:
	ext	0x8		; 	xadd	%r12,%r1,8
	add	%r12,%r1
	ld.w	%r13,%r2
	ld.w	%r14,0x1	; 	xld.w	%r14,0x00000001		; 1
	jp	__LX88		; 	xjp	__L88
__LX83:				; __L83:
	ext	0x8		; 	xadd	%r12,%r1,8
	add	%r12,%r1
	ld.w	%r13,%r2
	ld.w	%r14,0x2	; 	xld.w	%r14,0x00000002		; 2
__LX88:				; __L88:
	ext	pceFileOpen@rm	; 	xcall	pceFileOpen
	call	pceFileOpen@rl
	cmp	%r10,0x0
	jreq	__LX80		; 	xjreq	__L80
__LX89:				; __L89:
	ld.w	%r10,0x0
	jp	__LX87		; 	xjp	__L87
__LX80:				; __L80:
	ext	0x13d		; 	xld.w	%r10,0x00004f49		; 20297
	ld.w	%r10,0x9
	ld.h	[%r1],%r10	; 	xld.h	[%r1],%r10
	ld.w	%r10,0x3f	; 	xld.w	%r10,-1			; 0xffffffff
	ext	0x18		; 	xld.w	[%r1+24],%r10
	ld.w	[%r1],%r10
	ld.w	%r10,%r1
__LX87:				; __L87:
	popn	%r2
	ret
	.align	1
io_seek:
;	.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
	ld.w	%r14,%r13
	ext	0x18		; 	xld.w	%r10,[%r0+24]
	ld.w	%r10,[%r0]
	cmp	%r14,%r10
	jreq	__LX91		; 	xjreq	__L91
	ext	0x18		; 	xld.w	[%r0+24],%r14
	ld.w	[%r0],%r14
	ext	0x8		; 	xadd	%r12,%r0,8
	add	%r12,%r0
	ld.w	%r13,0x0
	ext	0x40		; 	xld.w	%r15,0x00001000		; 4096
	ld.w	%r15,0x0
	ext	pceFileReadSct@rm	; 	xcall	pceFileReadSct
	call	pceFileReadSct@rl
	ext	0x1c		; 	xld.w	[%r0+28],%r10
	ld.w	[%r0],%r10
	ext	0xc		; 	xld.w	%r10,[%r0+12]
	ld.w	%r10,[%r0]
	ext	0x20		; 	xld.w	[%r0+32],%r10
	ld.w	[%r0],%r10
__LX91:				; __L91:
	ext	0x1c		; 	xld.w	%r10,[%r0+28]
	ld.w	%r10,[%r0]
	popn	%r0
	ret
	.global	stdin
	.data
	.align	2
stdin:
	.word	-4
	.global	stdout
	.align	2
stdout:
	.word	-8
	.global	stderr
	.align	2
stderr:
	.word	-12
	.code
	.align	1
	.global	fopen
fopen:
;	.frame	%sp,4,$31		# vars= 0, regs= 1/0, args= 0, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0
	ld.w	%r15,%r12
	ld.w	%r14,%r13
	ext	ios+0x0@h	; 	xld.w	%r12,ios
	ext	ios+0x0@m
	ld.w	%r12,ios+0x0@l
	ld.w	%r11,0x0
	ext	0x0		; 	xld.w	%r13,0x00000024		; 36
	ld.w	%r13,0x24
__LX96:				; __L96:
	ld.uh	%r10,[%r12]	; 	xld.uh	%r10,[%r12]
	cmp	%r10,0x0
	jreq	__LX94		; 	xjreq	__L94
	add	%r11,0x1	; 	xadd	%r11,%r11,1
	add	%r12,%r13
	cmp	%r11,0x3	; 	xcmp	%r11,3
	jrle	__LX96		; 	xjrle	__L96
__LX94:				; __L94:
	cmp	%r11,0x4	; 	xcmp	%r11,4
	jreq	__LX99		; 	xjreq	__L99
	ld.w	%r13,%r15
	call	io_open		; 	xcall	io_open
	jp	__LX100		; 	xjp	__L100
__LX99:				; __L99:
	ld.w	%r10,0x0
__LX100:				; __L100:
	ret
	.align	1
	.global	freopen
freopen:
;	.frame	%sp,16,$31		# vars= 0, regs= 4/0, args= 0, extra= 0
;	.mask	0x80070000,-4
;	.fmask	0x00000000,0
	pushn	%r2
	ld.w	%r0,%r12
	ld.w	%r2,%r13
	ld.w	%r12,%r14
	call	io_file		; 	xcall	io_file
	ld.w	%r1,%r10
	ext	0x8		; 	xadd	%r12,%r1,8
	add	%r12,%r1
	ext	pceFileClose@rm	; 	xcall	pceFileClose
	call	pceFileClose@rl
	ld.w	%r12,%r1
	ld.w	%r13,%r0
	ld.w	%r14,%r2
	call	io_open		; 	xcall	io_open
	popn	%r2
	ret
	.align	1
	.global	fclose
fclose:
;	.frame	%sp,8,$31		# vars= 0, regs= 2/0, args= 0, extra= 0
;	.mask	0x80010000,-4
;	.fmask	0x00000000,0
	pushn	%r0
	call	io_file		; 	xcall	io_file
	ld.w	%r0,%r10
	ext	0x8		; 	xadd	%r12,%r0,8
	add	%r12,%r0
	ext	pceFileClose@rm	; 	xcall	pceFileClose
	call	pceFileClose@rl
	ld.w	%r12,%r0
	ld.w	%r13,0x0
	ext	0x0		; 	xld.w	%r14,0x00000024		; 36
	ld.w	%r14,0x24
	ext	memset@rm	; 	xcall	memset
	call	memset@rl
	ld.w	%r10,0x0
	popn	%r0
	ret
	.align	1
	.global	fflush
fflush:
;	.frame	%sp,4,$31		# vars= 0, regs= 1/0, args= 0, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0
	ld.w	%r10,0x0
	ret
	.align	1
	.global	fseek
fseek:
;	.frame	%sp,20,$31		# vars= 0, regs= 5/0, args= 0, extra= 0
;	.mask	0x800f0000,-4
;	.fmask	0x00000000,0
	pushn	%r3
	ld.w	%r0,%r12
	ld.w	%r3,%r13
	ld.w	%r1,%r14
	ext	io_file@rm	; 	xcall	io_file
	call	io_file@rl
	ld.w	%r2,%r10
	ld.w	%r12,%r0
	ext	clearerr@rm	; 	xcall	clearerr
	call	clearerr@rl
	cmp	%r1,0x1		; 	xcmp	%r1,1
	jreq	__LX107		; 	xjreq	__L107
	jrgt	__LX111		; 	xjrgt	__L111
	cmp	%r1,0x0
	jreq	__LX106		; 	xjreq	__L106
	jp	__LX109		; 	xjp	__L109
__LX111:				; __L111:
	cmp	%r1,0x2		; 	xcmp	%r1,2
	jreq	__LX108		; 	xjreq	__L108
	jp	__LX109		; 	xjp	__L109
__LX106:				; __L106:
	ext	0x4		; 	xld.w	[%r2+4],%r3
	ld.w	[%r2],%r3
	jp	__LX105		; 	xjp	__L105
__LX107:				; __L107:
	ext	0x4		; 	xld.w	%r10,[%r2+4]
	ld.w	%r10,[%r2]
	add	%r10,%r3
	ext	0x4		; 	xld.w	[%r2+4],%r10
	ld.w	[%r2],%r10
	jp	__LX105		; 	xjp	__L105
__LX108:				; __L108:
	ext	0x10		; 	xld.w	%r10,[%r2+16]
	ld.w	%r10,[%r2]
	sub	%r10,%r3
	ext	0x4		; 	xld.w	[%r2+4],%r10
	ld.w	[%r2],%r10
	jp	__LX105		; 	xjp	__L105
__LX109:				; __L109:
	ld.w	%r10,0x3f	; 	xld.w	%r10,-1			; 0xffffffff
	jp	__LX112		; 	xjp	__L112
__LX105:				; __L105:
	ld.w	%r10,0x0
__LX112:				; __L112:
	popn	%r3
	ret
	.align	1
	.global	ftell
ftell:
;	.frame	%sp,4,$31		# vars= 0, regs= 1/0, args= 0, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0
	ext	io_file@rm	; 	xcall	io_file
	call	io_file@rl
	ext	0x4		; 	xld.w	%r10,[%r10+4]
	ld.w	%r10,[%r10]
	ret
	.align	1
	.global	rewind
rewind:
;	.frame	%sp,4,$31		# vars= 0, regs= 1/0, args= 0, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0
	ld.w	%r13,0x0
	ld.w	%r14,%r13
	call	fseek		; 	xcall	fseek
	ret
	.align	1
	.global	fgetpos
fgetpos:
;	.frame	%sp,8,$31		# vars= 0, regs= 2/0, args= 0, extra= 0
;	.mask	0x80010000,-4
;	.fmask	0x00000000,0
	pushn	%r0
	ld.w	%r0,%r13
	call	ftell		; 	xcall	ftell
	ld.w	[%r0],%r10	; 	xld.w	[%r0],%r10
	ld.w	%r10,0x0
	popn	%r0
	ret
	.align	1
	.global	fsetpos
fsetpos:
;	.frame	%sp,4,$31		# vars= 0, regs= 1/0, args= 0, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0
	ld.w	%r13,[%r13]	; 	xld.w	%r13,[%r13]
	ld.w	%r14,0x0
	call	fseek		; 	xcall	fseek
	ret
	.align	1
	.global	fread
fread:
;	.frame	%sp,28,$31		# vars= 8, regs= 5/0, args= 0, extra= 0
;	.mask	0x800f0000,-4
;	.fmask	0x00000000,0
	pushn	%r3
	sub	%sp,0x2		; 	xsub	%sp,%sp,8
	ld.w	%r0,%r12
	ld.w	[%sp+0x0],%r13	; 	xld.w	[%sp],%r13
	ld.w	%r1,%r14
	ld.w	%r12,%r15
	ext	io_file@rm	; 	xcall	io_file
	call	io_file@rl
	ld.w	%r2,%r10
	ld.w	[%sp+0x1],%r0	; 	xld.w	[%sp+4],%r0
	ld.w	%r4,[%sp+0x0]	; 	xld.w	%r4,[%sp]
	mlt.w	%r4,%r1
	ld.w	%r3,%alr
	ld.w	%r1,0x0
	cmp	%r1,%r3
	jrge	__LX119		; 	xjrge	__L119
__LX120:				; __L120:
	ext	0x4		; 	xld.w	%r10,[%r2+4]
	ld.w	%r10,[%r2]
	add	%r10,%r1
	jrge	__LX121		; 	xjrge	__L121
	ext	0x3f		; 	xadd	%r10,%r10,4095
	add	%r10,0x3f
__LX121:				; __L121:
	ld.w	%r12,%r2
	ld.w	%r13,%r10
	sra	%r13,0x8	; 	xsra	%r13,12
	sra	%r13,0x4
	ext	io_seek@rm	; 	xcall	io_seek
	call	io_seek@rl
	ld.w	%r0,%r10
	cmp	%r0,0x0
	jreq	__LX119		; 	xjreq	__L119
	ext	0x4		; 	xld.w	%r10,[%r2+4]
	ld.w	%r10,[%r2]
	ld.w	%r11,%r10
	add	%r11,%r1
	ld.w	%r10,%r11
	jrge	__LX123		; 	xjrge	__L123
	ext	0xfff		; 	xadd	%r10,%r11,4095
	add	%r10,%r11
__LX123:				; __L123:
	ext	0x1fc0		; 	xand	%r10,%r10,0xfffff000
	and	%r10,0x0
	sub	%r11,%r10
	ld.w	%r10,%r11
	sub	%r0,%r10
	ld.w	%r11,%r3
	sub	%r11,%r1
	cmp	%r0,%r11
	jrle	__LX124		; 	xjrle	__L124
	ld.w	%r0,%r11
__LX124:				; __L124:
	cmp	%r0,0x0
	jrle	__LX119		; 	xjrle	__L119
	ext	0x20		; 	xld.w	%r13,[%r2+32]
	ld.w	%r13,[%r2]
	ld.w	%r12,[%sp+0x1]	; 	xld.w	%r12,[%sp+4]
	add	%r12,%r1
	add	%r13,%r10
	ld.w	%r14,%r0
	ext	memcpy@rm	; 	xcall	memcpy
	call	memcpy@rl
	add	%r1,%r0
	cmp	%r1,%r3
	jrlt	__LX120		; 	xjrlt	__L120
__LX119:				; __L119:
	ld.w	%r12,%r1
	ld.w	%r13,[%sp+0x0]	; 	xld.w	%r13,[%sp]
	ext	__udivsi3@rm	; 	xcall	__udivsi3
	call	__udivsi3@rl
	ld.w	%r1,%r10
	ld.w	%r4,[%sp+0x0]	; 	xld.w	%r4,[%sp]
	mlt.w	%r1,%r4
	ld.w	%r11,%alr
	ext	0x4		; 	xld.w	%r10,[%r2+4]
	ld.w	%r10,[%r2]
	add	%r10,%r11
	ext	0x4		; 	xld.w	[%r2+4],%r10
	ld.w	[%r2],%r10
	cmp	%r11,%r3
	jruge	__LX127		; 	xjruge	__L127
	ext	0x2		; 	xld.uh	%r10,[%r2+2]
	ld.uh	%r10,[%r2]
	or	%r10,0x1	; 	xoor	%r10,%r10,0x00000001
	ext	0x2		; 	xld.h	[%r2+2],%r10
	ld.h	[%r2],%r10
__LX127:				; __L127:
	ld.w	%r10,%r1
	add	%sp,0x2		; 	xadd	%sp,%sp,8
	popn	%r3
	ret
	.align	1
	.global	fwrite
fwrite:
;	.frame	%sp,16,$31		# vars= 0, regs= 2/0, args= 8, extra= 0
;	.mask	0x80010000,-4
;	.fmask	0x00000000,0
	pushn	%r0
	sub	%sp,0x2		; 	xsub	%sp,%sp,8
	ld.w	%r0,%r14
	cmp	%r15,0x38	; 	xcmp	%r15,-8
	jreq	__LX130		; 	xjreq	__L130
	cmp	%r15,0x34	; 	xcmp	%r15,-12
	jrne	__LX129		; 	xjrne	__L129
__LX130:				; __L130:
	mlt.w	%r13,%r0
	ld.w	%r13,%alr
	ext	stderr_write@rm	; 	xcall	stderr_write
	call	stderr_write@rl
	ld.w	%r10,%r0
	jp	__LX132		; 	xjp	__L132
__LX129:				; __L129:
	ext	__LC0+0x0@h	; 	xld.w	%r10,__LC0
	ext	__LC0+0x0@m
	ld.w	%r10,__LC0+0x0@l
	ld.w	[%sp+0x0],%r10	; 	xld.w	[%sp],%r10
	ext	0x5		; 	xld.w	%r10,0x00000172		; 370
	ld.w	%r10,0x32
	ld.w	[%sp+0x1],%r10	; 	xld.w	[%sp+4],%r10
	ext	die@rm		; 	xcall	die
	call	die@rl
__LX132:				; __L132:
	add	%sp,0x2		; 	xadd	%sp,%sp,8
	popn	%r0
	ret
	.align	1
	.global	fgetc
fgetc:
;	.frame	%sp,8,$31		# vars= 4, regs= 1/0, args= 0, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0
	sub	%sp,0x1		; 	xsub	%sp,%sp,4
	ld.w	%r15,%r12
	ld.w	%r12,%sp
	ld.w	%r13,0x1	; 	xld.w	%r13,0x00000001		; 1
	ld.w	%r14,%r13
	call	fread		; 	xcall	fread
	cmp	%r10,0x1	; 	xcmp	%r10,1
	jrne	__LX134		; 	xjrne	__L134
	ld.b	%r10,[%sp+0x0]	; 	xld.b	%r10,[%sp]
	ld.ub	%r10,%r10
	jp	__LX135		; 	xjp	__L135
__LX134:				; __L134:
	ld.w	%r10,0x3f	; 	xld.w	%r10,-1			; 0xffffffff
__LX135:				; __L135:
	add	%sp,0x1		; 	xadd	%sp,%sp,4
	ret
	.align	1
	.global	getc
getc:
;	.frame	%sp,4,$31		# vars= 0, regs= 1/0, args= 0, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0
	call	fgetc		; 	xcall	fgetc
	ret
	.align	1
	.global	getchar
getchar:
;	.frame	%sp,4,$31		# vars= 0, regs= 1/0, args= 0, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0
	ext	stdin+0x0@ah	; 	xld.w	%r12,[stdin]
	ext	stdin+0x0@al
	ld.w	%r12,[%r8]
	call	getc		; 	xcall	getc
	ret
	.align	1
	.global	ungetc
ungetc:
;	.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
	ld.w	%r12,%r13
	ext	io_file@rm	; 	xcall	io_file
	call	io_file@rl
	ld.w	%r11,%r10
	cmp	%r0,0x3f	; 	xcmp	%r0,-1
	jrne	__LX139		; 	xjrne	__L139
	ld.w	%r10,%r0
	jp	__LX140		; 	xjp	__L140
__LX139:				; __L139:
	ext	0x4		; 	xld.w	%r10,[%r11+4]
	ld.w	%r10,[%r11]
	sub	%r10,0x1	; 	xsub	%r10,%r10,1
	ext	0x4		; 	xld.w	[%r11+4],%r10
	ld.w	[%r11],%r10
	ld.ub	%r10,%r0
__LX140:				; __L140:
	popn	%r0
	ret
	.align	1
	.global	fgets
fgets:
;	.frame	%sp,20,$31		# vars= 0, regs= 5/0, args= 0, extra= 0
;	.mask	0x800f0000,-4
;	.fmask	0x00000000,0
	pushn	%r3
	ld.w	%r2,%r12
	ld.w	%r1,%r13
	ld.w	%r3,%r14
	ld.w	%r0,%r2
	cmp	%r1,0x0
	jrle	__LX151		; 	xjrle	__L151
	jp	__LX152		; 	xjp	__L152
__LX145:				; __L145:
	ld.w	%r12,%r0
	ld.w	%r13,0x1	; 	xld.w	%r13,0x00000001		; 1
	ld.w	%r14,%r13
	ld.w	%r15,%r3
	ext	fread@rm	; 	xcall	fread
	call	fread@rl
	cmp	%r10,0x1	; 	xcmp	%r10,1
	jreq	__LX146		; 	xjreq	__L146
	cmp	%r0,%r2
	jrne	__LX144		; 	xjrne	__L144
__LX151:				; __L151:
	ld.w	%r10,0x0
	jp	__LX150		; 	xjp	__L150
__LX146:				; __L146:
	ld.b	%r10,[%r0]	; 	xld.b	%r10,[%r0]
	add	%r0,0x1		; 	xadd	%r0,%r0,1
	cmp	%r10,0xa	; 	xcmp	%r10,10
	jreq	__LX144		; 	xjreq	__L144
__LX152:				; __L152:
	sub	%r1,0x1		; 	xsub	%r1,%r1,1
	jrne	__LX145		; 	xjrne	__L145
__LX144:				; __L144:
	ld.w	%r11,0x0
	ld.b	[%r0],%r11	; 	xld.b	[%r0],%r11
	ld.w	%r10,%r2
__LX150:				; __L150:
	popn	%r3
	ret
	.align	1
	.global	gets
gets:
;	.frame	%sp,12,$31		# vars= 0, regs= 3/0, args= 0, extra= 0
;	.mask	0x80030000,-4
;	.fmask	0x00000000,0
	pushn	%r1
	ld.w	%r1,%r12
	ld.w	%r0,%r1
__LX154:				; __L154:
	ld.w	%r12,%r0
	ld.w	%r13,0x1	; 	xld.w	%r13,0x00000001		; 1
	ld.w	%r14,%r13
	ext	stdin+0x0@ah	; 	xld.w	%r15,[stdin]
	ext	stdin+0x0@al
	ld.w	%r15,[%r8]
	ext	fread@rm	; 	xcall	fread
	call	fread@rl
	cmp	%r10,0x1	; 	xcmp	%r10,1
	jreq	__LX157		; 	xjreq	__L157
	cmp	%r0,%r1
	jrne	__LX155		; 	xjrne	__L155
	ld.w	%r10,0x0
	jp	__LX160		; 	xjp	__L160
__LX157:				; __L157:
	ld.b	%r10,[%r0]	; 	xld.b	%r10,[%r0]
	cmp	%r10,0xa	; 	xcmp	%r10,10
	jreq	__LX155		; 	xjreq	__L155
	add	%r0,0x1		; 	xadd	%r0,%r0,1
	jp	__LX154		; 	xjp	__L154
__LX155:				; __L155:
	ld.w	%r11,0x0
	ld.b	[%r0],%r11	; 	xld.b	[%r0],%r11
	ld.w	%r10,%r1
__LX160:				; __L160:
	popn	%r1
	ret
	.align	1
	.global	fputc
fputc:
;	.frame	%sp,8,$31		# vars= 4, regs= 1/0, args= 0, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0
	sub	%sp,0x1		; 	xsub	%sp,%sp,4
	ld.w	[%sp+0x0],%r12	; 	xld.w	[%sp],%r12
	ld.w	%r15,%r13
	ld.w	%r12,%sp
	ld.w	%r13,0x1	; 	xld.w	%r13,0x00000001		; 1
	ld.w	%r14,%r13
	ext	fwrite@rm	; 	xcall	fwrite
	call	fwrite@rl
	cmp	%r10,0x1	; 	xcmp	%r10,1
	jrne	__LX162		; 	xjrne	__L162
	ld.ub	%r10,[%sp+0x0]	; 	xld.ub	%r10,[%sp]
	jp	__LX163		; 	xjp	__L163
__LX162:				; __L162:
	ld.w	%r10,0x3f	; 	xld.w	%r10,-1			; 0xffffffff
__LX163:				; __L163:
	add	%sp,0x1		; 	xadd	%sp,%sp,4
	ret
	.align	1
	.global	putc
putc:
;	.frame	%sp,4,$31		# vars= 0, regs= 1/0, args= 0, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0
	call	fputc		; 	xcall	fputc
	ret
	.align	1
	.global	putchar
putchar:
;	.frame	%sp,4,$31		# vars= 0, regs= 1/0, args= 0, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0
	ext	stdout+0x0@ah	; 	xld.w	%r13,[stdout]
	ext	stdout+0x0@al
	ld.w	%r13,[%r8]
	call	putc		; 	xcall	putc
	ret
	.align	1
	.global	fputs
fputs:
;	.frame	%sp,12,$31		# vars= 0, regs= 3/0, args= 0, extra= 0
;	.mask	0x80030000,-4
;	.fmask	0x00000000,0
	pushn	%r1
	ld.w	%r1,%r13
	ld.w	%r0,%r12
	jp	__LX167		; 	xjp	__L167
__LX169:				; __L169:
	ld.w	%r12,%r0
	add	%r0,0x1		; 	xadd	%r0,%r0,1
	ld.w	%r13,0x1	; 	xld.w	%r13,0x00000001		; 1
	ld.w	%r14,%r13
	ld.w	%r15,%r1
	ext	fwrite@rm	; 	xcall	fwrite
	call	fwrite@rl
	cmp	%r10,0x1	; 	xcmp	%r10,1
	jreq	__LX167		; 	xjreq	__L167
	ld.w	%r10,0x3f	; 	xld.w	%r10,-1			; 0xffffffff
	jp	__LX172		; 	xjp	__L172
__LX167:				; __L167:
	ld.b	%r10,[%r0]	; 	xld.b	%r10,[%r0]
	cmp	%r10,0x0
	jrne	__LX169		; 	xjrne	__L169
	ld.w	%r10,0x0
__LX172:				; __L172:
	popn	%r1
	ret
	.align	1
	.global	puts
puts:
;	.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
	jp	__LX174		; 	xjp	__L174
__LX179:				; __L179:
	ld.b	%r10,%r11
	cmp	%r10,0xa	; 	xcmp	%r10,10
	jreq	__LX175		; 	xjreq	__L175
	ld.w	%r12,%r0
	add	%r0,0x1		; 	xadd	%r0,%r0,1
	ld.w	%r13,0x1	; 	xld.w	%r13,0x00000001		; 1
	ld.w	%r14,%r13
	ext	stdout+0x0@ah	; 	xld.w	%r15,[stdout]
	ext	stdout+0x0@al
	ld.w	%r15,[%r8]
	ext	fwrite@rm	; 	xcall	fwrite
	call	fwrite@rl
	cmp	%r10,0x1	; 	xcmp	%r10,1
	jreq	__LX174		; 	xjreq	__L174
	ld.w	%r10,0x3f	; 	xld.w	%r10,-1			; 0xffffffff
	jp	__LX180		; 	xjp	__L180
__LX174:				; __L174:
	ld.ub	%r11,[%r0]	; 	xld.ub	%r11,[%r0]
	ld.b	%r10,%r11
	cmp	%r10,0x0
	jrne	__LX179		; 	xjrne	__L179
__LX175:				; __L175:
	ld.w	%r10,0x0
__LX180:				; __L180:
	popn	%r0
	ret
	.align	1
	.global	remove
remove:
;	.frame	%sp,4,$31		# vars= 0, regs= 1/0, args= 0, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0
	ext	pceFileDelete@rm	; 	xcall	pceFileDelete
	call	pceFileDelete@rl
	not	%r11,%r10
	add	%r11,1
	or	%r11,%r10
	ld.w	%r10,%r11
	sra	%r10,0x8	; 	xsra	%r10,31
	sra	%r10,0x8
	sra	%r10,0x8
	sra	%r10,0x7
	ret
	.align	1
	.global	feof
feof:
;	.frame	%sp,4,$31		# vars= 0, regs= 1/0, args= 0, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0
	ext	io_file@rm	; 	xcall	io_file
	call	io_file@rl
	ext	0x2		; 	xld.ub	%r10,[%r10+2]
	ld.ub	%r10,[%r10]
	and	%r10,0x1	; 	xand	%r10,%r10,0x00000001
	ret
	.align	1
	.global	ferror
ferror:
;	.frame	%sp,4,$31		# vars= 0, regs= 1/0, args= 0, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0
	ext	io_file@rm	; 	xcall	io_file
	call	io_file@rl
	ext	0x2		; 	xld.ub	%r10,[%r10+2]
	ld.ub	%r10,[%r10]
	and	%r10,0x2	; 	xand	%r10,%r10,0x00000002
	ret
	.align	1
	.global	clearerr
clearerr:
;	.frame	%sp,4,$31		# vars= 0, regs= 1/0, args= 0, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0
	ext	io_file@rm	; 	xcall	io_file
	call	io_file@rl
	ld.w	%r11,0x0
	ext	0x2		; 	xld.h	[%r10+2],%r11
	ld.h	[%r10],%r11
	ret
	.code
	.align	2
__LC1:
	.ascii	"%s\000"
	.align	2
__LC2:
	.ascii	": \000"
	.align	2
__LC3:
	.ascii	"\n\000"
	.code
	.align	1
	.global	perror
perror:
;	.frame	%sp,12,$31		# vars= 0, regs= 1/0, args= 8, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0
	sub	%sp,0x2		; 	xsub	%sp,%sp,8
	ld.w	%r11,%r12
	cmp	%r11,0x0
	jreq	__LX188		; 	xjreq	__L188
	ld.b	%r10,[%r11]	; 	xld.b	%r10,[%r11]
	cmp	%r10,0x0
	jreq	__LX188		; 	xjreq	__L188
	ext	stderr+0x0@ah	; 	xld.w	%r12,[stderr]
	ext	stderr+0x0@al
	ld.w	%r12,[%r8]
	ext	__LC1+0x0@h	; 	xld.w	%r10,__LC1
	ext	__LC1+0x0@m
	ld.w	%r10,__LC1+0x0@l
	ld.w	[%sp+0x0],%r10	; 	xld.w	[%sp],%r10
	ld.w	[%sp+0x1],%r11	; 	xld.w	[%sp+4],%r11
	call	fprintf		; 	xcall	fprintf
	ext	stderr+0x0@ah	; 	xld.w	%r12,[stderr]
	ext	stderr+0x0@al
	ld.w	%r12,[%r8]
	ext	__LC2+0x0@h	; 	xld.w	%r10,__LC2
	ext	__LC2+0x0@m
	ld.w	%r10,__LC2+0x0@l
	ld.w	[%sp+0x0],%r10	; 	xld.w	[%sp],%r10
	call	fprintf		; 	xcall	fprintf
__LX188:				; __L188:
	ext	errno+0x0@ah	; 	xld.w	%r12,[errno]
	ext	errno+0x0@al
	ld.w	%r12,[%r8]
	ext	strerror@rm	; 	xcall	strerror
	call	strerror@rl
	ext	stderr+0x0@ah	; 	xld.w	%r12,[stderr]
	ext	stderr+0x0@al
	ld.w	%r12,[%r8]
	ext	__LC1+0x0@h	; 	xld.w	%r11,__LC1
	ext	__LC1+0x0@m
	ld.w	%r11,__LC1+0x0@l
	ld.w	[%sp+0x0],%r11	; 	xld.w	[%sp],%r11
	ld.w	[%sp+0x1],%r10	; 	xld.w	[%sp+4],%r10
	call	fprintf		; 	xcall	fprintf
	ext	stderr+0x0@ah	; 	xld.w	%r12,[stderr]
	ext	stderr+0x0@al
	ld.w	%r12,[%r8]
	ext	__LC3+0x0@h	; 	xld.w	%r10,__LC3
	ext	__LC3+0x0@m
	ld.w	%r10,__LC3+0x0@l
	ld.w	[%sp+0x0],%r10	; 	xld.w	[%sp],%r10
	call	fprintf		; 	xcall	fprintf
	add	%sp,0x2		; 	xadd	%sp,%sp,8
	ret
	.align	1
	.global	fprintf
fprintf:
;	.frame	%sp,4,$31		# vars= 0, regs= 1/0, args= 0, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0
	ld.w	%r13,[%sp+0x1]	; 	xld.w	%r13,[%sp+4]
	ld.w	%r14,%sp	; 	xadd	%r14,%sp,8
	add	%r14,0x8
	call	vfprintf	; 	xcall	vfprintf
	ret
	.align	1
	.global	printf
printf:
;	.frame	%sp,4,$31		# vars= 0, regs= 1/0, args= 0, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0
	ld.w	%r12,[%sp+0x1]	; 	xld.w	%r12,[%sp+4]
	ld.w	%r13,%sp	; 	xadd	%r13,%sp,8
	add	%r13,0x8
	call	vprintf		; 	xcall	vprintf
	ret
	.align	1
	.global	vfprintf
vfprintf:
;	.frame	%sp,12,$31		# vars= 0, regs= 3/0, args= 0, extra= 0
;	.mask	0x80030000,-4
;	.fmask	0x00000000,0
	pushn	%r1
	ld.w	%r1,%r12
	ext	_def_vbuff+0x1000@h	; 	xld.w	%r0,_def_vbuff+4096
	ext	_def_vbuff+0x1000@m
	ld.w	%r0,_def_vbuff+0x1000@l
	ld.w	%r12,%r0
	ext	vsprintf@rm	; 	xcall	vsprintf
	call	vsprintf@rl
	ld.w	%r12,%r0
	ld.w	%r13,0x1	; 	xld.w	%r13,0x00000001		; 1
	ld.w	%r14,%r10
	ld.w	%r15,%r1
	ext	fwrite@rm	; 	xcall	fwrite
	call	fwrite@rl
	popn	%r1
	ret
	.align	1
	.global	vprintf
vprintf:
;	.frame	%sp,4,$31		# vars= 0, regs= 1/0, args= 0, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0
	ld.w	%r10,%r12
	ld.w	%r14,%r13
	ext	stdout+0x0@ah	; 	xld.w	%r12,[stdout]
	ext	stdout+0x0@al
	ld.w	%r12,[%r8]
	ld.w	%r13,%r10
	call	vfprintf	; 	xcall	vfprintf
	ret
	.code
	.align	2
__LC4:
	.ascii	"stderr\000"
	.space	9
	.align	2
__LC5:
	.ascii	" +----------------------+\n"
	.ascii	" |\225W\217\200\203G\203\211\201[\217o\227\315\203\202\203"
	.ascii	"j\203^\202\314|\n"
	.ascii	" | \220\332\221\261\202\360\221\322\202\301\202\304\202\242"
	.ascii	"\202\334\202\267\201c |\n"
	.ascii	" |(\202`\203{\203^\203\223\202\305\203L\203\203\203\223\203"
	.ascii	"Z\203\213)|\n"
	.ascii	" +----------------------+\000"
	.align	2
__LC6:
	.ascii	"\202\240\202\306%3d\225b\000"
	.align	2
__LC7:
	.ascii	"\220\332\221\261\212\256\227\271\n\000"
	.code
	.align	1
	.global	stderr_open
stderr_open:
;	.frame	%sp,48,$31		# vars= 20, regs= 5/0, args= 8, extra= 0
;	.mask	0x800f0000,-4
;	.fmask	0x00000000,0
	pushn	%r3
	sub	%sp,0x7		; 	xsub	%sp,%sp,28
	ld.w	%r2,%r12
	ld.w	%r0,%sp		; 	xadd	%r0,%sp,8
	add	%r0,0x8
	ld.w	%r12,%r0
	ext	__LC4+0x0@h	; 	xld.w	%r13,__LC4
	ext	__LC4+0x0@m
	ld.w	%r13,__LC4+0x0@l
	ld.w	%r14,0x10	; 	xld.w	%r14,0x00000010		; 16
	ext	memcpy@rm	; 	xcall	memcpy
	call	memcpy@rl
	ld.w	%r12,%r0
	ext	pceUSBCOMSetup@rm	; 	xcall	pceUSBCOMSetup
	call	pceUSBCOMSetup@rl
	ext	_def_vbuff+0x0@h	; 	xld.w	%r12,_def_vbuff
	ext	_def_vbuff+0x0@m
	ld.w	%r12,_def_vbuff+0x0@l
	ext	pceLCDSetBuffer@rm	; 	xcall	pceLCDSetBuffer
	call	pceLCDSetBuffer@rl
	ld.w	[%sp+0x6],%r10	; 	xld.w	[%sp+24],%r10
	ext	pceLCDDispStart@rm	; 	xcall	pceLCDDispStart
	call	pceLCDDispStart@rl
	ext	0x2		; 	xld.w	%r12,0x00000080		; 128
	ld.w	%r12,0x0
	ext	pceFontSetType@rm	; 	xcall	pceFontSetType
	call	pceFontSetType@rl
	ld.w	%r12,0x3	; 	xld.w	%r12,0x00000003		; 3
	ext	pceFontSetTxColor@rm	; 	xcall	pceFontSetTxColor
	call	pceFontSetTxColor@rl
	ld.w	%r12,0x0
	ext	pceFontSetBkColor@rm	; 	xcall	pceFontSetBkColor
	call	pceFontSetBkColor@rl
	ld.w	%r12,0x0
	ld.w	%r13,0x13	; 	xld.w	%r13,0x00000013		; 19
	ext	pceFontSetPos@rm	; 	xcall	pceFontSetPos
	call	pceFontSetPos@rl
	ext	__LC5+0x0@h	; 	xld.w	%r12,__LC5
	ext	__LC5+0x0@m
	ld.w	%r12,__LC5+0x0@l
	ext	pceFontPutStr@rm	; 	xcall	pceFontPutStr
	call	pceFontPutStr@rl
	ext	pceLCDTrans@rm	; 	xcall	pceLCDTrans
	call	pceLCDTrans@rl
__LX194:				; __L194:
	ext	pcePadGetDirect@rm	; 	xcall	pcePadGetDirect
	call	pcePadGetDirect@rl
	ext	0x0		; 	xand	%r10,%r10,0x00000020
	and	%r10,0x20
	jrne	__LX194		; 	xjrne	__L194
	ext	pceTimerGetCount@rm	; 	xcall	pceTimerGetCount
	call	pceTimerGetCount@rl
	ld.w	%r3,%r10
	ext	0xf		; 	xld.w	%r1,0x000003e8		; 1000
	ld.w	%r1,0x28
__LX197:				; __L197:
	ext	pceUSBCOMGetStat@rm	; 	xcall	pceUSBCOMGetStat
	call	pceUSBCOMGetStat@rl
	ext	0x1fe0		; 	xand	%r10,%r10,0xff000000
	ext	0x0
	and	%r10,0x0
	jrne	__LX204		; 	xjrne	__L204
	ext	pcePadGetDirect@rm	; 	xcall	pcePadGetDirect
	call	pcePadGetDirect@rl
	ext	0x0		; 	xand	%r10,%r10,0x00000020
	and	%r10,0x20
	jrne	__LX204		; 	xjrne	__L204
	cmp	%r2,0x0
	jrlt	__LX197		; 	xjrlt	__L197
	ext	pceTimerGetCount@rm	; 	xcall	pceTimerGetCount
	call	pceTimerGetCount@rl
	mlt.w	%r2,%r1
	sub	%r10,%r3
	ld.w	%r0,%alr
	sub	%r0,%r10
	jrle	__LX204		; 	xjrle	__L204
	ext	0x0		; 	xld.w	%r12,0x00000029		; 41
	ld.w	%r12,0x29
	ext	0x1		; 	xld.w	%r13,0x00000048		; 72
	ld.w	%r13,0x8
	ext	pceFontSetPos@rm	; 	xcall	pceFontSetPos
	call	pceFontSetPos@rl
	ext	__LC6+0x0@h	; 	xld.w	%r10,__LC6
	ext	__LC6+0x0@m
	ld.w	%r10,__LC6+0x0@l
	ld.w	[%sp+0x0],%r10	; 	xld.w	[%sp],%r10
	ext	0x3e7		; 	xadd	%r12,%r0,999
	add	%r12,%r0
	ld.w	%r13,%r1
	ext	__divsi3@rm	; 	xcall	__divsi3
	call	__divsi3@rl
	ld.w	[%sp+0x1],%r10	; 	xld.w	[%sp+4],%r10
	ext	pceFontPrintf@rm	; 	xcall	pceFontPrintf
	call	pceFontPrintf@rl
	ext	pceLCDTrans@rm	; 	xcall	pceLCDTrans
	call	pceLCDTrans@rl
	jp	__LX197		; 	xjp	__L197
__LX204:				; __L204:
	ext	pcePadGetDirect@rm	; 	xcall	pcePadGetDirect
	call	pcePadGetDirect@rl
	ext	0x0		; 	xand	%r10,%r10,0x00000020
	and	%r10,0x20
	jrne	__LX204		; 	xjrne	__L204
	ld.w	%r12,[%sp+0x6]	; 	xld.w	%r12,[%sp+24]
	ext	pceLCDSetBuffer@rm	; 	xcall	pceLCDSetBuffer
	call	pceLCDSetBuffer@rl
	ext	__LC7+0x0@h	; 	xld.w	%r12,__LC7
	ext	__LC7+0x0@m
	ld.w	%r12,__LC7+0x0@l
	ld.w	%r13,0x9	; 	xld.w	%r13,0x00000009		; 9
	call	stderr_write	; 	xcall	stderr_write
	add	%sp,0x7		; 	xadd	%sp,%sp,28
	popn	%r3
	ret
	.code
	.align	2
__LC8:
	.ascii	"\000"
	.space	15
	.code
	.align	1
	.global	stderr_close
stderr_close:
;	.frame	%sp,20,$31		# vars= 16, regs= 1/0, args= 0, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0
	sub	%sp,0x4		; 	xsub	%sp,%sp,16
	ld.w	%r12,%sp
	ext	__LC8+0x0@h	; 	xld.w	%r13,__LC8
	ext	__LC8+0x0@m
	ld.w	%r13,__LC8+0x0@l
	ld.w	%r14,0x10	; 	xld.w	%r14,0x00000010		; 16
	ext	memcpy@rm	; 	xcall	memcpy
	call	memcpy@rl
	ld.w	%r12,%sp
	ext	pceUSBCOMSetup@rm	; 	xcall	pceUSBCOMSetup
	call	pceUSBCOMSetup@rl
	ext	pceUSBCOMStop@rm	; 	xcall	pceUSBCOMStop
	call	pceUSBCOMStop@rl
	add	%sp,0x4		; 	xadd	%sp,%sp,16
	ret
	.align	1
	.global	stderr_write
stderr_write:
;	.frame	%sp,12,$31		# vars= 0, regs= 3/0, args= 0, extra= 0
;	.mask	0x80030000,-4
;	.fmask	0x00000000,0
	pushn	%r1
	ld.w	%r1,%r12
	ld.w	%r0,%r13
	cmp	%r0,0x0
	jrle	__LX208		; 	xjrle	__L208
	ext	pceUSBCOMGetStat@rm	; 	xcall	pceUSBCOMGetStat
	call	pceUSBCOMGetStat@rl
	ext	0x1fe0		; 	xand	%r10,%r10,0xff000000
	ext	0x0
	and	%r10,0x0
	jreq	__LX208		; 	xjreq	__L208
	ld.w	%r12,%r1
	ld.w	%r13,%r0
	ext	pceUSBCOMStartTx@rm	; 	xcall	pceUSBCOMStartTx
	call	pceUSBCOMStartTx@rl
__LX211:				; __L211:
	ext	pceUSBCOMGetStat@rm	; 	xcall	pceUSBCOMGetStat
	call	pceUSBCOMGetStat@rl
	ld.w	%r11,%r10
	ext	0x10		; 	xand	%r10,%r10,0x00000400
	and	%r10,0x0
	jrne	__LX208		; 	xjrne	__L208
	ld.w	%r10,%r11
	ext	0x1fe0		; 	xand	%r10,%r10,0xff000000
	ext	0x0
	and	%r10,0x0
	jrne	__LX211		; 	xjrne	__L211
__LX208:				; __L208:
	popn	%r1
	ret

	.lcomm	ios 144

