#NO_APP
	.text
	.even
	.globl	_myCopySBitMap
_myCopySBitMap:
	addw #-12,sp
	moveml #0x3f36,sp@-
	movel a0,sp@(48)
	movel a6,sp@(44)
	movel a0@(8),a5
	tstl a0@(32)
	jeq L1
	btst #2,a0@(31)
	jeq L1
	tstl a5
	jeq L1
	moveq #63,d6
	notb d6
	moveq #0,d7
	notb d7
	lea 0:w,a2
	.even
L7:
	tstl a5@(8)
	jne L6
	movew a5@(16),d2
	extl d2
	movel d2,a1
	movel sp@(48),a0
	subw a0@(16),a1
	movel a1,d0
	movew a5@(18),d3
	extl d3
	movel d3,a3
	subw a0@(18),a3
	movel a3,d1
	movel a0@(12),d5
	movew a5@(20),d4
	extl d4
	subl d2,d4
	movew a5@(22),a0
	movel a0,sp@(40)
	subl d3,sp@(40)
	movel sp@(44),a6
	movel sp@(48),a1
	movel a1@(32),a0
	movel d0,a3
	subw a1@(44),a3
	movel a3,d0
	movel d1,a3
	subw a1@(46),a3
	movel a3,d1
	movel d5,a3
	movel a3@(4),a1
	addql #1,d4
	movel sp@(40),d5
	addql #1,d5
#APP
	jsr a6@(-0x1e:W)
#NO_APP
L6:
	movel a5@,a5
	tstl a5
	jne L7
	.even
L1:
	moveml sp@+,#0x6cfc
	addw #12,sp
	rts
