
;  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
	.global	gbs_dmg_write
gbs_dmg_write:
;	.frame	%sp,4,$31		# vars= 0, regs= 1/0, args= 0, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0
	ld.w	%r11,%r12
	ld.uh	%r10,%r13
	srl	%r10,0x8	; 	xsrl	%r10,12
	srl	%r10,0x4
	sub	%r10,0x2	; 	xsub	%r10,%r10,2
	cmp	%r10,0xd	; 	xcmp	%r10,13
	jrugt	__L70		; 	xjrugt	__L70
	sll	%r10,0x2	; 	xsll	%r10,2
	ext	__L80+0x0@h	; 	xld.w	%r10,[%r10+__L80]
	ext	__L80+0x0@m
	ld.w	%r9,__L80+0x0@l
	add	%r9,%r10
	ld.w	%r10,[%r9]
	jp	%r10
	.code
	.align	2
__L80:
	.word	__L73
	.word	__L73
	.word	__L70
	.word	__L70
	.word	__L70
	.word	__L70
	.word	__L70
	.word	__L70
	.word	__L77
	.word	__L77
	.word	__L77
	.word	__L77
	.word	__L70
	.word	__L78
	.code
__L73:
	ld.ub	%r13,%r14
	ext	gbs_rom1_bank@rm	; 	xcall	gbs_rom1_bank
	call	gbs_rom1_bank@rl
	jp	__L70		; 	xjp	__L70
__L77:
	ld.uh	%r10,%r13
	add	%r12,%r10
	ld.w	%r10,%r12
	ext	0x20		; 	xld.b	[%r10+32],%r14
	ld.b	[%r10],%r14
	jp	__L70		; 	xjp	__L70
__L78:
	ld.uh	%r10,%r13
	ext	0x3fb		; 	xcmp	%r10,65279
	cmp	%r10,0x3f
	jrule	__L70		; 	xjrule	__L70
	ld.ub	%r13,%r13
	ld.ub	%r14,%r14
	ld.w	%r12,%r11
	ext	gbs_dmg_out@rm	; 	xcall	gbs_dmg_out
	call	gbs_dmg_out@rl
__L70:
	ret
