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