
;  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	"clipdfrg.$(%d)\000"
	.code
	.align	1
sct_address:
;	.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
	cmp	%r13,0x0
	jrlt	__LX75		; 	xjrlt	__L75
	ext	0x1		; 	xld.w	%r10,[%r12+12296]
	ext	0x1008
	ld.w	%r10,[%r12]
	sub	%r10,0x1	; 	xsub	%r10,%r10,1
	cmp	%r10,%r13
	jrge	__LX72		; 	xjrge	__L72
__LX75:				; __L75:
	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,0x00000041		; 65
	ld.w	%r10,0x1
	ld.w	[%sp+0x1],%r10	; 	xld.w	[%sp+4],%r10
	ext	die@rm		; 	xcall	die
	call	die@rl
__LX72:				; __L72:
	ld.w	%r10,[%r12]	; 	xld.w	%r10,[%r12]
	ld.w	%r11,%r13
	sll	%r11,0x8	; 	xsll	%r11,12
	sll	%r11,0x4
	ext	0x18		; 	xld.w	%r10,[%r10+24]
	ld.w	%r10,[%r10]
	add	%r10,%r11
	add	%sp,0x2		; 	xadd	%sp,%sp,8
	ret
	.align	1
next_sct:
;	.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
	cmp	%r13,0x0
	jrlt	__LX82		; 	xjrlt	__L82
	ext	0x1		; 	xld.w	%r10,[%r12+12296]
	ext	0x1008
	ld.w	%r10,[%r12]
	sub	%r10,0x1	; 	xsub	%r10,%r10,1
	cmp	%r10,%r13
	jrge	__LX79		; 	xjrge	__L79
__LX82:				; __L82:
	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,0x00000050		; 80
	ld.w	%r10,0x10
	ld.w	[%sp+0x1],%r10	; 	xld.w	[%sp+4],%r10
	ext	die@rm		; 	xcall	die
	call	die@rl
__LX79:				; __L79:
	ld.w	%r10,%r13
	sll	%r10,0x1	; 	xsll	%r10,1
	ld.w	%r11,%r12
	add	%r11,%r10
	ld.w	%r10,%r11
	ext	0xc24		; 	xld.uh	%r13,[%r10+3108]
	ld.uh	%r13,[%r10]
	ext	0x377		; 	xld.w	%r10,0x0000dddd		; 56797
	ld.w	%r10,0x1d
	cmp	%r13,%r10
	jreq	__LX84		; 	xjreq	__L84
	jrgt	__LX97		; 	xjrgt	__L97
	ext	0x333		; 	xcmp	%r13,52428
	cmp	%r13,0xc
	jreq	__LX84		; 	xjreq	__L84
	jp	__LX89		; 	xjp	__L89
__LX97:				; __L97:
	ext	0x3bb		; 	xcmp	%r13,61166
	cmp	%r13,0x2e
	jreq	__LX84		; 	xjreq	__L84
	ext	0x3ff		; 	xcmp	%r13,65535
	cmp	%r13,0x3f
	jreq	__LX84		; 	xjreq	__L84
__LX89:				; __L89:
	cmp	%r13,0x0
	jrlt	__LX94		; 	xjrlt	__L94
	ext	0x1		; 	xld.w	%r10,[%r12+12296]
	ext	0x1008
	ld.w	%r10,[%r12]
	sub	%r10,0x1	; 	xsub	%r10,%r10,1
	cmp	%r10,%r13
	jrge	__LX84		; 	xjrge	__L84
__LX94:				; __L94:
	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,0x0000005d		; 93
	ld.w	%r10,0x1d
	ld.w	[%sp+0x1],%r10	; 	xld.w	[%sp+4],%r10
	ext	die@rm		; 	xcall	die
	call	die@rl
__LX84:				; __L84:
	ld.w	%r10,%r13
	add	%sp,0x2		; 	xadd	%sp,%sp,8
	ret
	.align	1
read_sct:
;	.frame	%sp,8,$31		# vars= 0, regs= 2/0, args= 0, extra= 0
;	.mask	0x80010000,-4
;	.fmask	0x00000000,0
	pushn	%r0
	ld.w	%r0,%r14
	call	sct_address	; 	xcall	sct_address
	ld.w	%r12,%r0
	ld.w	%r13,%r10
	ext	0x40		; 	xld.w	%r14,0x00001000		; 4096
	ld.w	%r14,0x0
	ext	memcpy@rm	; 	xcall	memcpy
	call	memcpy@rl
	popn	%r0
	ret
	.align	1
write_sct:
;	.frame	%sp,28,$31		# vars= 0, regs= 5/0, args= 8, extra= 0
;	.mask	0x800f0000,-4
;	.fmask	0x00000000,0
	pushn	%r3
	sub	%sp,0x2		; 	xsub	%sp,%sp,8
	ld.w	%r1,%r12
	ld.w	%r2,%r14
	call	sct_address	; 	xcall	sct_address
	ld.w	%r0,%r10
	ext	0x40		; 	xld.w	%r3,0x00001000		; 4096
	ld.w	%r3,0x0
	ld.w	%r12,%r0
	ld.w	%r13,%r2
	ld.w	%r14,%r3
	ext	memcmp@rm	; 	xcall	memcmp
	call	memcmp@rl
	cmp	%r10,0x0
	jreq	__LX99		; 	xjreq	__L99
	ext	0x1		; 	xld.w	%r10,[%r1+12292]
	ext	0x1004
	ld.w	%r10,[%r1]
	cmp	%r10,0x0
	jreq	__LX101		; 	xjreq	__L101
	ld.w	%r12,%r0
	ext	pceFlashErase@rm	; 	xcall	pceFlashErase
	call	pceFlashErase@rl
	cmp	%r10,0x0
	jreq	__LX102		; 	xjreq	__L102
	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	0x2		; 	xld.w	%r10,0x00000081		; 129
	ld.w	%r10,0x1
	ld.w	[%sp+0x1],%r10	; 	xld.w	[%sp+4],%r10
	ext	die@rm		; 	xcall	die
	call	die@rl
__LX102:				; __L102:
	ld.w	%r12,%r0
	ld.w	%r13,%r2
	ld.w	%r14,%r3
	ext	pceFlashWrite@rm	; 	xcall	pceFlashWrite
	call	pceFlashWrite@rl
	cmp	%r10,0x0
	jreq	__LX101		; 	xjreq	__L101
	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	0x2		; 	xld.w	%r10,0x00000082		; 130
	ld.w	%r10,0x2
	ld.w	[%sp+0x1],%r10	; 	xld.w	[%sp+4],%r10
	ext	die@rm		; 	xcall	die
	call	die@rl
__LX101:				; __L101:
	ext	0x1		; 	xld.w	%r10,[%r1+12300]
	ext	0x100c
	ld.w	%r10,[%r1]
	add	%r10,0x1	; 	xadd	%r10,%r10,1
	ext	0x1		; 	xld.w	[%r1+12300],%r10
	ext	0x100c
	ld.w	[%r1],%r10
__LX99:				; __L99:
	add	%sp,0x2		; 	xadd	%sp,%sp,8
	popn	%r3
	ret
	.align	1
find_dir:
;	.frame	%sp,24,$31		# vars= 0, regs= 4/0, args= 8, extra= 0
;	.mask	0x80070000,-4
;	.fmask	0x00000000,0
	pushn	%r2
	sub	%sp,0x2		; 	xsub	%sp,%sp,8
	ld.w	%r2,%r13
	ext	0x24		; 	xadd	%r0,%r12,36
	add	%r0,%r12
	ld.w	%r1,0x0
__LX108:				; __L108:
	ld.b	%r10,[%r0]	; 	xld.b	%r10,[%r0]
	cmp	%r10,0x3f	; 	xcmp	%r10,-1
	jreq	__LX109		; 	xjreq	__L109
	ld.w	%r12,%r0
	ld.w	%r13,%r2
	ext	strcmp@rm	; 	xcall	strcmp
	call	strcmp@rl
	cmp	%r10,0x0
	jreq	__LX113		; 	xjreq	__L113
__LX109:				; __L109:
	add	%r0,0x20	; 	xadd	%r0,%r0,32
	add	%r1,0x1		; 	xadd	%r1,%r1,1
	ext	0x1		; 	xcmp	%r1,95
	cmp	%r1,0x1f
	jrle	__LX108		; 	xjrle	__L108
	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	0x2		; 	xld.w	%r10,0x0000009b		; 155
	ld.w	%r10,0x1b
	ld.w	[%sp+0x1],%r10	; 	xld.w	[%sp+4],%r10
	ext	die@rm		; 	xcall	die
	call	die@rl
__LX113:				; __L113:
	ld.w	%r10,%r0
	add	%sp,0x2		; 	xadd	%sp,%sp,8
	popn	%r2
	ret
	.align	1
find_sctdir:
;	.frame	%sp,28,$31		# vars= 0, regs= 5/0, args= 8, extra= 0
;	.mask	0x800f0000,-4
;	.fmask	0x00000000,0
	pushn	%r3
	sub	%sp,0x2		; 	xsub	%sp,%sp,8
	ld.w	%r3,%r12
	ld.w	%r1,%r13
	cmp	%r1,0x0
	jrlt	__LX119		; 	xjrlt	__L119
	ext	0x1		; 	xld.w	%r10,[%r3+12296]
	ext	0x1008
	ld.w	%r10,[%r3]
	sub	%r10,0x1	; 	xsub	%r10,%r10,1
	cmp	%r10,%r1
	jrge	__LX116		; 	xjrge	__L116
__LX119:				; __L119:
	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	0x2		; 	xld.w	%r10,0x000000ac		; 172
	ld.w	%r10,0x2c
	ld.w	[%sp+0x1],%r10	; 	xld.w	[%sp+4],%r10
	ext	die@rm		; 	xcall	die
	call	die@rl
__LX116:				; __L116:
	ext	0x24		; 	xadd	%r0,%r3,36
	add	%r0,%r3
	ld.w	%r2,0x0
__LX124:				; __L124:
	ld.b	%r10,[%r0]	; 	xld.b	%r10,[%r0]
	cmp	%r10,0x3f	; 	xcmp	%r10,-1
	jreq	__LX125		; 	xjreq	__L125
	ext	0x1a		; 	xld.uh	%r10,[%r0+26]
	ld.uh	%r10,[%r0]
	ext	0x3bb		; 	xcmp	%r10,61166
	cmp	%r10,0x2e
	jreq	__LX125		; 	xjreq	__L125
__LX128:				; __L128:
	cmp	%r10,%r1
	jreq	__LX133		; 	xjreq	__L133
	ld.w	%r12,%r3
	ld.w	%r13,%r10
	ext	next_sct@rm	; 	xcall	next_sct
	call	next_sct@rl
	ext	0x3bb		; 	xcmp	%r10,61166
	cmp	%r10,0x2e
	jrne	__LX128		; 	xjrne	__L128
__LX125:				; __L125:
	add	%r0,0x20	; 	xadd	%r0,%r0,32
	add	%r2,0x1		; 	xadd	%r2,%r2,1
	ext	0x1		; 	xcmp	%r2,95
	cmp	%r2,0x1f
	jrle	__LX124		; 	xjrle	__L124
	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	0x2		; 	xld.w	%r10,0x000000b8		; 184
	ld.w	%r10,0x38
	ld.w	[%sp+0x1],%r10	; 	xld.w	[%sp+4],%r10
	ext	die@rm		; 	xcall	die
	call	die@rl
__LX133:				; __L133:
	ld.w	%r10,%r0
	add	%sp,0x2		; 	xadd	%sp,%sp,8
	popn	%r3
	ret
	.align	1
find_sct:
;	.frame	%sp,24,$31		# vars= 0, regs= 4/0, args= 8, extra= 0
;	.mask	0x80070000,-4
;	.fmask	0x00000000,0
	pushn	%r2
	sub	%sp,0x2		; 	xsub	%sp,%sp,8
	ld.w	%r2,%r12
	ld.w	%r1,%r14
	cmp	%r1,0x0
	jrlt	__LX139		; 	xjrlt	__L139
	ext	0x1		; 	xld.w	%r10,[%r2+12296]
	ext	0x1008
	ld.w	%r10,[%r2]
	sub	%r10,0x1	; 	xsub	%r10,%r10,1
	cmp	%r10,%r1
	jrge	__LX136		; 	xjrge	__L136
__LX139:				; __L139:
	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	0x3		; 	xld.w	%r10,0x000000c9		; 201
	ld.w	%r10,0x9
	ld.w	[%sp+0x1],%r10	; 	xld.w	[%sp+4],%r10
	ext	die@rm		; 	xcall	die
	call	die@rl
__LX136:				; __L136:
	ext	0x1a		; 	xld.uh	%r10,[%r13+26]
	ld.uh	%r10,[%r13]
	ld.w	%r0,0x0
	ext	0x3bb		; 	xcmp	%r10,61166
	cmp	%r10,0x2e
	jreq	__LX142		; 	xjreq	__L142
__LX143:				; __L143:
	cmp	%r10,%r1
	jreq	__LX147		; 	xjreq	__L147
	ld.w	%r12,%r2
	ld.w	%r13,%r10
	ext	next_sct@rm	; 	xcall	next_sct
	call	next_sct@rl
	add	%r0,0x1		; 	xadd	%r0,%r0,1
	ext	0x3bb		; 	xcmp	%r10,61166
	cmp	%r10,0x2e
	jrne	__LX143		; 	xjrne	__L143
__LX142:				; __L142:
	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	0x3		; 	xld.w	%r10,0x000000d1		; 209
	ld.w	%r10,0x11
	ld.w	[%sp+0x1],%r10	; 	xld.w	[%sp+4],%r10
	ext	die@rm		; 	xcall	die
	call	die@rl
__LX147:				; __L147:
	ld.w	%r10,%r0
	add	%sp,0x2		; 	xadd	%sp,%sp,8
	popn	%r2
	ret
	.align	1
get_sct:
;	.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,%r14
	ext	0x1a		; 	xld.uh	%r10,[%r13+26]
	ld.uh	%r10,[%r13]
	cmp	%r0,0x0
	jreq	__LX150		; 	xjreq	__L150
__LX151:				; __L151:
	ld.w	%r12,%r1
	ld.w	%r13,%r10
	ext	next_sct@rm	; 	xcall	next_sct
	call	next_sct@rl
	sub	%r0,0x1		; 	xsub	%r0,%r0,1
	jrne	__LX151		; 	xjrne	__L151
__LX150:				; __L150:
	popn	%r1
	ret
	.align	1
get_sctcnt:
;	.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	0x1a		; 	xld.uh	%r10,[%r13+26]
	ld.uh	%r10,[%r13]
	ld.w	%r0,0x0
	ext	0x3bb		; 	xcmp	%r10,61166
	cmp	%r10,0x2e
	jreq	__LX155		; 	xjreq	__L155
__LX156:				; __L156:
	ld.w	%r12,%r1
	ld.w	%r13,%r10
	ext	next_sct@rm	; 	xcall	next_sct
	call	next_sct@rl
	add	%r0,0x1		; 	xadd	%r0,%r0,1
	ext	0x3bb		; 	xcmp	%r10,61166
	cmp	%r10,0x2e
	jrne	__LX156		; 	xjrne	__L156
__LX155:				; __L155:
	ld.w	%r10,%r0
	popn	%r1
	ret
	.align	1
remove_sct:
;	.frame	%sp,24,$31		# vars= 4, regs= 5/0, args= 0, extra= 0
;	.mask	0x800f0000,-4
;	.fmask	0x00000000,0
	pushn	%r3
	sub	%sp,0x1		; 	xsub	%sp,%sp,4
	ld.w	%r1,%r12
	ld.w	%r0,%r13
	ld.w	%r3,%r14
	call	find_sct	; 	xcall	find_sct
	ld.w	%r2,%r10
	ld.w	%r12,%r1
	ld.w	%r13,%r3
	ext	next_sct@rm	; 	xcall	next_sct
	call	next_sct@rl
	ld.w	[%sp+0x0],%r10	; 	xld.w	[%sp],%r10
	cmp	%r2,0x0
	jrne	__LX159		; 	xjrne	__L159
	ld.uh	%r15,[%sp+0x0]	; 	xld.uh	%r15,[%sp]
	ext	0x1a		; 	xld.h	[%r0+26],%r15
	ld.h	[%r0],%r15
	jp	__LX160		; 	xjp	__L160
__LX159:				; __L159:
	ld.w	%r12,%r1
	ld.w	%r13,%r0
	ext	0x1		; 	xsub	%r14,%r2,1
	sub	%r14,%r2
	call	get_sct		; 	xcall	get_sct
	sll	%r10,0x1	; 	xsll	%r10,1
	ld.w	%r15,%r1
	add	%r15,%r10
	ld.w	%r10,%r15
	ld.uh	%r15,[%sp+0x0]	; 	xld.uh	%r15,[%sp]
	ext	0xc24		; 	xld.h	[%r10+3108],%r15
	ld.h	[%r10],%r15
__LX160:				; __L160:
	ld.w	%r10,%r3
	sll	%r10,0x1	; 	xsll	%r10,1
	add	%r1,%r10
	ld.w	%r10,%r1
	ext	0x3ff		; 	xld.w	%r11,0x0000ffff		; 65535
	ld.w	%r11,0x3f
	ext	0xc24		; 	xld.h	[%r10+3108],%r11
	ld.h	[%r10],%r11
	add	%sp,0x1		; 	xadd	%sp,%sp,4
	popn	%r3
	ret
	.align	1
insert_sct:
;	.frame	%sp,32,$31		# vars= 4, regs= 5/0, args= 8, extra= 0
;	.mask	0x800f0000,-4
;	.fmask	0x00000000,0
	pushn	%r3
	sub	%sp,0x3		; 	xsub	%sp,%sp,12
	ld.w	%r1,%r12
	ld.w	%r3,%r13
	ld.w	%r2,%r14
	ld.w	%r0,%r15
	cmp	%r0,0x0
	jrlt	__LX166		; 	xjrlt	__L166
	ext	0x1		; 	xld.w	%r10,[%r1+12296]
	ext	0x1008
	ld.w	%r10,[%r1]
	sub	%r10,0x1	; 	xsub	%r10,%r10,1
	cmp	%r10,%r0
	jrge	__LX163		; 	xjrge	__L163
__LX166:				; __L166:
	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	0x4		; 	xld.w	%r10,0x00000121		; 289
	ld.w	%r10,0x21
	ld.w	[%sp+0x1],%r10	; 	xld.w	[%sp+4],%r10
	ext	die@rm		; 	xcall	die
	call	die@rl
__LX163:				; __L163:
	ld.w	%r10,%r0
	sll	%r10,0x1	; 	xsll	%r10,1
	ld.w	%r11,%r1
	add	%r11,%r10
	ld.w	%r10,%r11
	ext	0xc24		; 	xld.uh	%r10,[%r10+3108]
	ld.uh	%r10,[%r10]
	ext	0x3ff		; 	xcmp	%r10,65535
	cmp	%r10,0x3f
	jreq	__LX168		; 	xjreq	__L168
	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	0x4		; 	xld.w	%r10,0x00000122		; 290
	ld.w	%r10,0x22
	ld.w	[%sp+0x1],%r10	; 	xld.w	[%sp+4],%r10
	ext	die@rm		; 	xcall	die
	call	die@rl
__LX168:				; __L168:
	ld.w	%r12,%r1
	ld.w	%r13,%r3
	ld.w	%r14,%r2
	call	get_sct		; 	xcall	get_sct
	ld.w	[%sp+0x2],%r10	; 	xld.w	[%sp+8],%r10
	cmp	%r2,0x0
	jrne	__LX169		; 	xjrne	__L169
	ext	0x1a		; 	xld.h	[%r3+26],%r0
	ld.h	[%r3],%r0
	jp	__LX170		; 	xjp	__L170
__LX169:				; __L169:
	ld.w	%r12,%r1
	ld.w	%r13,%r3
	ext	0x1		; 	xsub	%r14,%r2,1
	sub	%r14,%r2
	ext	get_sct@rm	; 	xcall	get_sct
	call	get_sct@rl
	sll	%r10,0x1	; 	xsll	%r10,1
	ld.w	%r11,%r1
	add	%r11,%r10
	ld.w	%r10,%r11
	ext	0xc24		; 	xld.h	[%r10+3108],%r0
	ld.h	[%r10],%r0
__LX170:				; __L170:
	ld.w	%r10,%r0
	sll	%r10,0x1	; 	xsll	%r10,1
	add	%r1,%r10
	ld.w	%r10,%r1
	ld.uh	%r11,[%sp+0x4]	; 	xld.uh	%r11,[%sp+8]
	ext	0xc24		; 	xld.h	[%r10+3108],%r11
	ld.h	[%r10],%r11
	add	%sp,0x3		; 	xadd	%sp,%sp,12
	popn	%r3
	ret
	.code
	.align	2
__LC1:
	.ascii	"PFFS Master Block\000"
	.code
	.align	1
defrag_init:
;	.frame	%sp,20,$31		# vars= 0, regs= 3/0, args= 8, extra= 0
;	.mask	0x80030000,-4
;	.fmask	0x00000000,0
	pushn	%r1
	sub	%sp,0x2		; 	xsub	%sp,%sp,8
	ld.w	%r0,%r12
	ld.w	%r12,0x1	; 	xld.w	%r12,0x00000001		; 1
	ext	0xc0		; 	xld.w	%r13,0x00003010		; 12304
	ld.w	%r13,0x10
	ext	calloc@rm	; 	xcall	calloc
	call	calloc@rl
	ld.w	%r1,%r10
	cmp	%r1,0x0
	jrne	__LX172		; 	xjrne	__L172
	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	0x4		; 	xld.w	%r10,0x0000013b		; 315
	ld.w	%r10,0x3b
	ld.w	[%sp+0x1],%r10	; 	xld.w	[%sp+4],%r10
	ext	die@rm		; 	xcall	die
	call	die@rl
__LX172:				; __L172:
	ext	0x1		; 	xld.w	[%r1+12292],%r0
	ext	0x1004
	ld.w	[%r1],%r0
	ext	pceSystemGetInfo@rm	; 	xcall	pceSystemGetInfo
	call	pceSystemGetInfo@rl
	ld.w	[%r1],%r10	; 	xld.w	[%r1],%r10
	ext	0x1c		; 	xld.w	%r11,[%r10+28]
	ld.w	%r11,[%r10]
	ext	0x18		; 	xld.w	%r10,[%r10+24]
	ld.w	%r10,[%r10]
	sub	%r11,%r10
	jrge	__LX173		; 	xjrge	__L173
	ext	0x3f		; 	xadd	%r11,%r11,4095
	add	%r11,0x3f
__LX173:				; __L173:
	sra	%r11,0x8	; 	xsra	%r11,12
	sra	%r11,0x4
	ext	0x1		; 	xld.w	[%r1+12296],%r11
	ext	0x1008
	ld.w	[%r1],%r11
	jrge	__LX174		; 	xjrge	__L174
	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,0x00000145		; 325
	ld.w	%r10,0x5
	ld.w	[%sp+0x1],%r10	; 	xld.w	[%sp+4],%r10
	ext	die@rm		; 	xcall	die
	call	die@rl
__LX174:				; __L174:
	ext	0x7		; 	xcmp	%r11,496
	cmp	%r11,0x30
	jrle	__LX176		; 	xjrle	__L176
	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,0x00000146		; 326
	ld.w	%r10,0x6
	ld.w	[%sp+0x1],%r10	; 	xld.w	[%sp+4],%r10
	ext	die@rm		; 	xcall	die
	call	die@rl
__LX176:				; __L176:
	ext	0x4		; 	xadd	%r0,%r1,4
	add	%r0,%r1
	ld.w	%r12,%r1
	ld.w	%r13,0x0
	ld.w	%r14,%r0
	ext	read_sct@rm	; 	xcall	read_sct
	call	read_sct@rl
	ld.w	%r10,[%r1]	; 	xld.w	%r10,[%r1]
	ext	0x18		; 	xld.w	%r10,[%r10+24]
	ld.w	%r10,[%r10]
	add	%r10,0x4	; 	xadd	%r10,%r10,4
	ld.w	%r11,[%r0]	; 	xld.w	%r11,[%r0]
	cmp	%r11,%r10
	jreq	__LX177		; 	xjreq	__L177
	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,0x0000014d		; 333
	ld.w	%r10,0xd
	ld.w	[%sp+0x1],%r10	; 	xld.w	[%sp+4],%r10
	ext	die@rm		; 	xcall	die
	call	die@rl
__LX177:				; __L177:
	ext	0xc		; 	xadd	%r12,%r1,12
	add	%r12,%r1
	ext	__LC1+0x0@h	; 	xld.w	%r13,__LC1
	ext	__LC1+0x0@m
	ld.w	%r13,__LC1+0x0@l
	ext	strcmp@rm	; 	xcall	strcmp
	call	strcmp@rl
	cmp	%r10,0x0
	jreq	__LX178		; 	xjreq	__L178
	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,0x0000014e		; 334
	ld.w	%r10,0xe
	ld.w	[%sp+0x1],%r10	; 	xld.w	[%sp+4],%r10
	ext	die@rm		; 	xcall	die
	call	die@rl
__LX178:				; __L178:
	ld.w	%r10,%r1
	add	%sp,0x2		; 	xadd	%sp,%sp,8
	popn	%r1
	ret
	.align	1
defrag_exit:
;	.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,%r12
	ld.w	%r13,0x0
	ext	0x4		; 	xadd	%r14,%r0,4
	add	%r14,%r0
	ext	write_sct@rm	; 	xcall	write_sct
	call	write_sct@rl
	ld.w	%r12,%r0
	ext	free@rm		; 	xcall	free
	call	free@rl
	add	%sp,0x2		; 	xadd	%sp,%sp,8
	popn	%r0
	ret
	.code
	.align	2
__LC2:
	.ascii	"\203t\203@\203C\203\213\202\360\220\256\227\361\202\265\202"
	.ascii	"\304\202\242\202\334\202\267\201B\n\000"
	.align	2
__LC3:
	.ascii	"\n\000"
	.align	2
__LC4:
	.ascii	"\201~%s\202\360\224\262\202\251\202\310\202\242\202\305!"
	.ascii	"\n\000"
	.align	2
__LC5:
	.ascii	"\223d\222r\000"
	.align	2
__LC6:
	.ascii	"USB\203P\201[\203u\203\213\000"
	.align	2
__LC7:
	.ascii	"\201~P/ECE\202\360\203\212\203Z\203b\203g\202\265\202\310"
	.ascii	"\202\242\202\305!\n\000"
	.align	2
__LC8:
	.ascii	"    \220i\215s\217\363\213\265(%3d/%3d)\n\000"
	.code
	.align	1
defrag_sub:
;	.frame	%sp,72,$31		# vars= 40, regs= 5/0, args= 12, extra= 0
;	.mask	0x800f0000,-4
;	.fmask	0x00000000,0
	pushn	%r3
	sub	%sp,0xd		; 	xsub	%sp,%sp,52
	ld.w	%r1,%r12
	ld.w	[%sp+0x4],%r13	; 	xld.w	[%sp+16],%r13
	ld.w	%r4,0x0
	ld.w	[%sp+0xa],%r4	; 	xld.w	[%sp+40],%r4
	cmp	%r13,0x0
	jreq	__LX182		; 	xjreq	__L182
	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+0xa],%r10	; 	xld.w	[%sp+40],%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,0x3f	; 	xld.w	%r12,-1			; 0xffffffff
	ext	pceFontSetBkColor@rm	; 	xcall	pceFontSetBkColor
	call	pceFontSetBkColor@rl
	ld.w	%r12,%sp	; 	xadd	%r12,%sp,12
	add	%r12,0xc
	ext	pcePowerGetStatus@rm	; 	xcall	pcePowerGetStatus
	call	pcePowerGetStatus@rl
__LX182:				; __L182:
	ld.w	%r12,[%sp+0x4]	; 	xld.w	%r12,[%sp+16]
	ext	defrag_init@rm	; 	xcall	defrag_init
	call	defrag_init@rl
	ld.w	%r0,%r10
	ld.w	%r12,%r0
	ld.w	%r13,%r1
	ext	find_dir@rm	; 	xcall	find_dir
	call	find_dir@rl
	ld.w	[%sp+0x5],%r10	; 	xld.w	[%sp+20],%r10
	ext	0x1a		; 	xld.uh	%r5,[%r10+26]
	ld.uh	%r5,[%r10]
	ld.w	[%sp+0x6],%r5	; 	xld.w	[%sp+24],%r5
	ld.w	%r12,%r0
	ld.w	%r13,[%sp+0x5]	; 	xld.w	%r13,[%sp+20]
	ext	get_sctcnt@rm	; 	xcall	get_sctcnt
	call	get_sctcnt@rl
	ld.w	[%sp+0x7],%r10	; 	xld.w	[%sp+28],%r10
	ld.w	%r10,[%sp+0x6]	; 	xld.w	%r10,[%sp+24]
	ld.w	%r4,[%sp+0x7]	; 	xld.w	%r4,[%sp+28]
	add	%r10,%r4
	ext	0x1		; 	xld.w	%r11,[%r0+12296]
	ext	0x1008
	ld.w	%r11,[%r0]
	cmp	%r10,%r11
	jrle	__LX183		; 	xjrle	__L183
	sub	%r11,%r4
	ld.w	[%sp+0x6],%r11	; 	xld.w	[%sp+24],%r11
__LX183:				; __L183:
	ld.w	%r5,[%sp+0x5]	; 	xld.w	%r5,[%sp+20]
	ext	0x1a		; 	xld.uh	%r3,[%r5+26]
	ld.uh	%r3,[%r5]
	ld.w	%r4,0x0
	ld.w	[%sp+0x8],%r4	; 	xld.w	[%sp+32],%r4
	ext	0x3bb		; 	xcmp	%r3,61166
	cmp	%r3,0x2e
	ext	__LX185@rm	; 	xjreq	__L185
	jreq	__LX185@rl
	ext	0x1004		; 	xadd	%r5,%r0,4100
	add	%r5,%r0
	ld.w	[%sp+0xb],%r5	; 	xld.w	[%sp+44],%r5
	ext	0x1		; 	xadd	%r4,%r0,8196
	ext	0x4
	add	%r4,%r0
	ld.w	[%sp+0xc],%r4	; 	xld.w	[%sp+48],%r4
__LX186:				; __L186:
	ld.w	%r5,[%sp+0x4]	; 	xld.w	%r5,[%sp+16]
	cmp	%r5,0x0
	jreq	__LX187		; 	xjreq	__L187
	ext	_def_vbuff+0x0@h	; 	xld.w	%r12,_def_vbuff
	ext	_def_vbuff+0x0@m
	ld.w	%r12,_def_vbuff+0x0@l
	ld.w	%r13,0x0
	ext	0xb0		; 	xld.w	%r14,0x00002c00		; 11264
	ld.w	%r14,0x0
	ext	memset@rm	; 	xcall	memset
	call	memset@rl
	ld.w	%r12,0x0
	ld.w	%r13,0xa	; 	xld.w	%r13,0x0000000a		; 10
	ext	pceFontSetPos@rm	; 	xcall	pceFontSetPos
	call	pceFontSetPos@rl
	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
	ext	pceFontPrintf@rm	; 	xcall	pceFontPrintf
	call	pceFontPrintf@rl
	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
	ext	pceFontPrintf@rm	; 	xcall	pceFontPrintf
	call	pceFontPrintf@rl
	ext	__LC4+0x0@h	; 	xld.w	%r10,__LC4
	ext	__LC4+0x0@m
	ld.w	%r10,__LC4+0x0@l
	ld.w	[%sp+0x0],%r10	; 	xld.w	[%sp],%r10
	ld.ub	%r10,[%sp+0xc]	; 	xld.ub	%r10,[%sp+12]
	cmp	%r10,0x0
	jreq	__LX188		; 	xjreq	__L188
	ext	__LC5+0x0@h	; 	xld.w	%r10,__LC5
	ext	__LC5+0x0@m
	ld.w	%r10,__LC5+0x0@l
	jp	__LX199		; 	xjp	__L199
__LX188:				; __L188:
	ext	__LC6+0x0@h	; 	xld.w	%r10,__LC6
	ext	__LC6+0x0@m
	ld.w	%r10,__LC6+0x0@l
__LX199:				; __L199:
	ld.w	[%sp+0x1],%r10	; 	xld.w	[%sp+4],%r10
	ext	pceFontPrintf@rm	; 	xcall	pceFontPrintf
	call	pceFontPrintf@rl
	ext	__LC7+0x0@h	; 	xld.w	%r10,__LC7
	ext	__LC7+0x0@m
	ld.w	%r10,__LC7+0x0@l
	ld.w	[%sp+0x0],%r10	; 	xld.w	[%sp],%r10
	ext	pceFontPrintf@rm	; 	xcall	pceFontPrintf
	call	pceFontPrintf@rl
	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
	ext	pceFontPrintf@rm	; 	xcall	pceFontPrintf
	call	pceFontPrintf@rl
	ext	__LC8+0x0@h	; 	xld.w	%r10,__LC8
	ext	__LC8+0x0@m
	ld.w	%r10,__LC8+0x0@l
	ld.w	[%sp+0x0],%r10	; 	xld.w	[%sp],%r10
	ld.w	%r10,[%sp+0x8]	; 	xld.w	%r10,[%sp+32]
	add	%r10,0x1	; 	xadd	%r10,%r10,1
	ld.w	[%sp+0x1],%r10	; 	xld.w	[%sp+4],%r10
	ld.w	%r4,[%sp+0x7]	; 	xld.w	%r4,[%sp+28]
	ld.w	[%sp+0x2],%r4	; 	xld.w	[%sp+8],%r4
	ext	pceFontPrintf@rm	; 	xcall	pceFontPrintf
	call	pceFontPrintf@rl
	ext	pceLCDTrans@rm	; 	xcall	pceLCDTrans
	call	pceLCDTrans@rl
__LX187:				; __L187:
	ld.w	%r1,[%sp+0x6]	; 	xld.w	%r1,[%sp+24]
	ld.w	%r5,[%sp+0x8]	; 	xld.w	%r5,[%sp+32]
	add	%r1,%r5
	cmp	%r3,%r1
	jreq	__LX190		; 	xjreq	__L190
	ld.w	%r10,%r1
	sll	%r10,0x1	; 	xsll	%r10,1
	ld.w	%r4,%r0
	add	%r4,%r10
	ld.w	%r10,%r4
	ext	0xc24		; 	xld.uh	%r10,[%r10+3108]
	ld.uh	%r10,[%r10]
	ext	0x3ff		; 	xcmp	%r10,65535
	cmp	%r10,0x3f
	jrne	__LX191		; 	xjrne	__L191
	ld.w	%r12,%r0
	ld.w	%r13,%r3
	ld.w	%r14,[%sp+0xb]	; 	xld.w	%r14,[%sp+44]
	ext	read_sct@rm	; 	xcall	read_sct
	call	read_sct@rl
	ld.w	%r12,%r0
	ld.w	%r13,[%sp+0x5]	; 	xld.w	%r13,[%sp+20]
	ld.w	%r14,%r3
	ext	remove_sct@rm	; 	xcall	remove_sct
	call	remove_sct@rl
	ld.w	%r12,%r0
	ld.w	%r13,%r1
	ld.w	%r14,[%sp+0xb]	; 	xld.w	%r14,[%sp+44]
	ext	write_sct@rm	; 	xcall	write_sct
	call	write_sct@rl
	ld.w	%r12,%r0
	ld.w	%r13,[%sp+0x5]	; 	xld.w	%r13,[%sp+20]
	ld.w	%r14,[%sp+0x8]	; 	xld.w	%r14,[%sp+32]
	ld.w	%r15,%r1
	jp	__LX200		; 	xjp	__L200
__LX191:				; __L191:
	ld.w	%r12,%r0
	ld.w	%r13,%r1
	ext	find_sctdir@rm	; 	xcall	find_sctdir
	call	find_sctdir@rl
	ld.w	%r2,%r10
	ld.w	%r12,%r0
	ld.w	%r13,%r2
	ld.w	%r14,%r1
	ext	find_sct@rm	; 	xcall	find_sct
	call	find_sct@rl
	ld.w	[%sp+0x9],%r10	; 	xld.w	[%sp+36],%r10
	ld.w	%r5,[%sp+0x5]	; 	xld.w	%r5,[%sp+20]
	cmp	%r5,%r2
	jrne	__LX193		; 	xjrne	__L193
	ld.w	%r4,[%sp+0x8]	; 	xld.w	%r4,[%sp+32]
	cmp	%r4,%r10
	jrlt	__LX193		; 	xjrlt	__L193
	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	0x6		; 	xld.w	%r10,0x000001b5		; 437
	ld.w	%r10,0x35
	ld.w	[%sp+0x1],%r10	; 	xld.w	[%sp+4],%r10
	ext	die@rm		; 	xcall	die
	call	die@rl
__LX193:				; __L193:
	ld.w	%r12,%r0
	ld.w	%r13,%r3
	ld.w	%r14,[%sp+0xb]	; 	xld.w	%r14,[%sp+44]
	ext	read_sct@rm	; 	xcall	read_sct
	call	read_sct@rl
	ld.w	%r12,%r0
	ld.w	%r13,%r1
	ld.w	%r14,[%sp+0xc]	; 	xld.w	%r14,[%sp+48]
	ext	read_sct@rm	; 	xcall	read_sct
	call	read_sct@rl
	ld.w	%r12,%r0
	ld.w	%r13,%r2
	ld.w	%r14,%r1
	ext	remove_sct@rm	; 	xcall	remove_sct
	call	remove_sct@rl
	ld.w	%r12,%r0
	ld.w	%r13,[%sp+0x5]	; 	xld.w	%r13,[%sp+20]
	ld.w	%r14,%r3
	ext	remove_sct@rm	; 	xcall	remove_sct
	call	remove_sct@rl
	ld.w	%r12,%r0
	ld.w	%r13,%r3
	ld.w	%r14,[%sp+0xc]	; 	xld.w	%r14,[%sp+48]
	ext	write_sct@rm	; 	xcall	write_sct
	call	write_sct@rl
	ld.w	%r12,%r0
	ld.w	%r13,%r1
	ld.w	%r14,[%sp+0xb]	; 	xld.w	%r14,[%sp+44]
	ext	write_sct@rm	; 	xcall	write_sct
	call	write_sct@rl
	ld.w	%r12,%r0
	ld.w	%r13,[%sp+0x5]	; 	xld.w	%r13,[%sp+20]
	ld.w	%r14,[%sp+0x8]	; 	xld.w	%r14,[%sp+32]
	ld.w	%r15,%r1
	ext	insert_sct@rm	; 	xcall	insert_sct
	call	insert_sct@rl
	ld.w	%r12,%r0
	ld.w	%r13,%r2
	ld.w	%r14,[%sp+0x9]	; 	xld.w	%r14,[%sp+36]
	ld.w	%r15,%r3
__LX200:				; __L200:
	ext	insert_sct@rm	; 	xcall	insert_sct
	call	insert_sct@rl
__LX190:				; __L190:
	ld.w	%r12,%r0
	ld.w	%r13,%r1
	ext	next_sct@rm	; 	xcall	next_sct
	call	next_sct@rl
	ld.w	%r3,%r10
	ld.w	%r5,[%sp+0x8]	; 	xld.w	%r5,[%sp+32]
	add	%r5,0x1		; 	xadd	%r5,%r5,1
	ld.w	[%sp+0x8],%r5	; 	xld.w	[%sp+32],%r5
	ext	0x3bb		; 	xcmp	%r3,61166
	cmp	%r3,0x2e
	ext	__LX186@rm	; 	xjrne	__L186
	jrne	__LX186@rl
__LX185:				; __L185:
	ld.w	%r4,[%sp+0x8]	; 	xld.w	%r4,[%sp+32]
	ld.w	%r5,[%sp+0x7]	; 	xld.w	%r5,[%sp+28]
	cmp	%r4,%r5
	jreq	__LX196		; 	xjreq	__L196
	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	0x7		; 	xld.w	%r10,0x000001c9		; 457
	ld.w	%r10,0x9
	ld.w	[%sp+0x1],%r10	; 	xld.w	[%sp+4],%r10
	ext	die@rm		; 	xcall	die
	call	die@rl
__LX196:				; __L196:
	ld.w	%r4,[%sp+0x4]	; 	xld.w	%r4,[%sp+16]
	cmp	%r4,0x0
	jreq	__LX197		; 	xjreq	__L197
	ext	_def_vbuff+0x0@h	; 	xld.w	%r12,_def_vbuff
	ext	_def_vbuff+0x0@m
	ld.w	%r12,_def_vbuff+0x0@l
	ld.w	%r13,0x0
	ext	0xb0		; 	xld.w	%r14,0x00002c00		; 11264
	ld.w	%r14,0x0
	ext	memset@rm	; 	xcall	memset
	call	memset@rl
	ext	pceLCDTrans@rm	; 	xcall	pceLCDTrans
	call	pceLCDTrans@rl
__LX197:				; __L197:
	ext	0x1		; 	xld.w	%r1,[%r0+12300]
	ext	0x100c
	ld.w	%r1,[%r0]
	ld.w	%r12,%r0
	ext	defrag_exit@rm	; 	xcall	defrag_exit
	call	defrag_exit@rl
	ld.w	%r5,[%sp+0x4]	; 	xld.w	%r5,[%sp+16]
	cmp	%r5,0x0
	jreq	__LX198		; 	xjreq	__L198
	ld.w	%r12,[%sp+0xa]	; 	xld.w	%r12,[%sp+40]
	ext	pceLCDSetBuffer@rm	; 	xcall	pceLCDSetBuffer
	call	pceLCDSetBuffer@rl
__LX198:				; __L198:
	ld.w	%r10,%r1
	add	%sp,0xd		; 	xadd	%sp,%sp,52
	popn	%r3
	ret
	.align	1
	.global	file_defrag
file_defrag:
;	.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,0x0
	ext	turbo@rm	; 	xcall	turbo
	call	turbo@rl
	ld.w	%r1,%r10
	ld.w	%r12,%r0
	ld.w	%r13,0x0
	ext	defrag_sub@rm	; 	xcall	defrag_sub
	call	defrag_sub@rl
	cmp	%r10,0x0
	jreq	__LX202		; 	xjreq	__L202
	ld.w	%r12,%r0
	ld.w	%r13,0x1	; 	xld.w	%r13,0x00000001		; 1
	ext	defrag_sub@rm	; 	xcall	defrag_sub
	call	defrag_sub@rl
__LX202:				; __L202:
	ld.w	%r12,%r1
	ext	turbo@rm	; 	xcall	turbo
	call	turbo@rl
	ld.w	%r12,%r0
	ld.w	%r13,%r2
	ext	file_address@rm	; 	xcall	file_address
	call	file_address@rl
	popn	%r2
	ret

