409d61:	0f 85 01 05 00 00    	jne    0x40a268
409d67:	33 c0                	xor    %eax,%eax
409d69:	89 85 64 ff ff ff    	mov    %eax,-0x9c(%ebp)
409d6f:	f7 c1 00 00 00 20    	test   $0x20000000,%ecx
409d75:	0f 85 f7 04 00 00    	jne    0x40a272
409d7b:	33 c0                	xor    %eax,%eax
409d7d:	89 85 60 ff ff ff    	mov    %eax,-0xa0(%ebp)
409d83:	f7 c1 00 00 00 02    	test   $0x2000000,%ecx
409d89:	0f 85 ed 04 00 00    	jne    0x40a27c
409d8f:	33 c0                	xor    %eax,%eax
409d91:	8b 55 14             	mov    0x14(%ebp),%edx
409d94:	89 85 5c ff ff ff    	mov    %eax,-0xa4(%ebp)
409d9a:	c7 85 34 ff ff ff 00 	movl   $0x0,-0xcc(%ebp)
409da1:	00 00 00
409da4:	84 d2                	test   %dl,%dl
409da6:	0f 88 da 04 00 00    	js     0x40a286
409dac:	33 c0                	xor    %eax,%eax
409dae:	89 85 50 ff ff ff    	mov    %eax,-0xb0(%ebp)
409db4:	f7 c2 00 01 00 00    	test   $0x100,%edx
409dba:	0f 85 d0 04 00 00    	jne    0x40a290
409dc0:	33 c0                	xor    %eax,%eax
409dc2:	89 85 54 ff ff ff    	mov    %eax,-0xac(%ebp)
409dc8:	f7 c2 00 04 00 00    	test   $0x400,%edx
409dce:	0f 85 c6 04 00 00    	jne    0x40a29a
409dd4:	33 c0                	xor    %eax,%eax
409dd6:	89 85 68 ff ff ff    	mov    %eax,-0x98(%ebp)
409ddc:	f7 c2 00 00 00 10    	test   $0x10000000,%edx
409de2:	0f 85 bc 04 00 00    	jne    0x40a2a4
409de8:	33 c0                	xor    %eax,%eax
409dea:	8b 73 0c             	mov    0xc(%ebx),%esi
409ded:	89 85 6c ff ff ff    	mov    %eax,-0x94(%ebp)
409df3:	c7 85 70 ff ff ff 00 	movl   $0x0,-0x90(%ebp)
409dfa:	00 00 00
409dfd:	c7 45 bc 00 00 00 00 	movl   $0x0,-0x44(%ebp)
409e04:	c7 45 b8 00 00 00 00 	movl   $0x0,-0x48(%ebp)
409e0b:	c7 45 b0 00 00 00 00 	movl   $0x0,-0x50(%ebp)
409e12:	f7 c6 00 10 00 00    	test   $0x1000,%esi
409e18:	0f 85 90 04 00 00    	jne    0x40a2ae
409e1e:	33 c0                	xor    %eax,%eax
409e20:	89 85 78 ff ff ff    	mov    %eax,-0x88(%ebp)
409e26:	8b 45 ec             	mov    -0x14(%ebp),%eax
409e29:	89 85 44 ff ff ff    	mov    %eax,-0xbc(%ebp)
409e2f:	8d b8 00 01 00 00    	lea    0x100(%eax),%edi
409e35:	05 40 03 00 00       	add    $0x340,%eax
409e3a:	89 85 4c ff ff ff    	mov    %eax,-0xb4(%ebp)
409e40:	8b c2                	mov    %edx,%eax
409e42:	89 bd 48 ff ff ff    	mov    %edi,-0xb8(%ebp)
409e48:	25 00 00 80 01       	and    $0x1800000,%eax
409e4d:	0f 85 c5 1e 08 00    	jne    0x48bd18
409e53:	f7 c1 00 00 80 01    	test   $0x1800000,%ecx
409e59:	0f 85 de 1e 08 00    	jne    0x48bd3d
409e5f:	c7 85 74 ff ff ff 01 	movl   $0x1,-0x8c(%ebp)
409e66:	00 00 00
409e69:	f7 c2 00 00 70 00    	test   $0x700000,%edx
409e6f:	0f 85 43 04 00 00    	jne    0x40a2b8
409e75:	81 e1 00 00 70 00    	and    $0x700000,%ecx
409e7b:	0f 85 cf 1e 08 00    	jne    0x48bd50
409e81:	c7 85 20 ff ff ff 02 	movl   $0x2,-0xe0(%ebp)
409e88:	00 00 00
409e8b:	83 7d 94 00          	cmpl   $0x0,-0x6c(%ebp)
409e8f:	0f 85 67 1f 08 00    	jne    0x48bdfc
409e95:	b8 56 55 55 55       	mov    $0x55555556,%eax
409e9a:	f7 6d 1c             	imull  0x1c(%ebp)
409e9d:	8b c2                	mov    %edx,%eax
409e9f:	c1 e8 1f             	shr    $0x1f,%eax
409ea2:	03 c2                	add    %edx,%eax
409ea4:	8d 3c 40             	lea    (%eax,%eax,2),%edi
409ea7:	b8 56 55 55 55       	mov    $0x55555556,%eax
409eac:	8d 0c 3f             	lea    (%edi,%edi,1),%ecx
409eaf:	f7 e9                	imul   %ecx
409eb1:	8b c2                	mov    %edx,%eax
409eb3:	c1 e8 1f             	shr    $0x1f,%eax
409eb6:	03 c2                	add    %edx,%eax
409eb8:	89 45 ec             	mov    %eax,-0x14(%ebp)
409ebb:	0f b7 43 20          	movzwl 0x20(%ebx),%eax
409ebf:	66 85 c0             	test   %ax,%ax
409ec2:	0f 85 4a 1f 08 00    	jne    0x48be12
409ec8:	8b 75 18             	mov    0x18(%ebp),%esi
409ecb:	89 b5 14 ff ff ff    	mov    %esi,-0xec(%ebp)
409ed1:	8d 0c 3f             	lea    (%edi,%edi,1),%ecx
409ed4:	b8 56 55 55 55       	mov    $0x55555556,%eax
409ed9:	f7 e9                	imul   %ecx
409edb:	8b c2                	mov    %edx,%eax
409edd:	c1 e8 1f             	shr    $0x1f,%eax
409ee0:	03 c2                	add    %edx,%eax
409ee2:	89 bd 18 ff ff ff    	mov    %edi,-0xe8(%ebp)
409ee8:	89 85 1c ff ff ff    	mov    %eax,-0xe4(%ebp)
409eee:	c7 45 9c 00 00 00 00 	movl   $0x0,-0x64(%ebp)
409ef5:	85 f6                	test   %esi,%esi
409ef7:	74 37                	je     0x409f30
409ef9:	0f b7 43 1e          	movzwl 0x1e(%ebx),%eax
409efd:	8d 0c be             	lea    (%esi,%edi,4),%ecx
409f00:	c1 e0 02             	shl    $0x2,%eax
409f03:	8b d1                	mov    %ecx,%edx
409f05:	2b d0                	sub    %eax,%edx
409f07:	8d 46 08             	lea    0x8(%esi),%eax
409f0a:	3b d0                	cmp    %eax,%edx
409f0c:	0f 82 ad 03 00 00    	jb     0x40a2bf
409f12:	83 e9 04             	sub    $0x4,%ecx
409f15:	3b ca                	cmp    %edx,%ecx
409f17:	0f 83 f3 01 00 00    	jae    0x40a110
409f1d:	c7 46 04 ff ff ff ff 	movl   $0xffffffff,0x4(%esi)
409f24:	8b 85 14 ff ff ff    	mov    -0xec(%ebp),%eax
409f2a:	c7 00 ff ff ff ff    	movl   $0xffffffff,(%eax)
409f30:	83 7d c8 00          	cmpl   $0x0,-0x38(%ebp)
409f34:	75 0b                	jne    0x409f41
409f36:	8b 43 0c             	mov    0xc(%ebx),%eax
409f39:	a8 10                	test   $0x10,%al
409f3b:	0f 85 ae 02 00 00    	jne    0x40a1ef
409f41:	8b 95 48 ff ff ff    	mov    -0xb8(%ebp),%edx
409f47:	8b 4d f4             	mov    -0xc(%ebp),%ecx
409f4a:	8b 43 0c             	mov    0xc(%ebx),%eax
409f4d:	a8 40                	test   $0x40,%al
409f4f:	0f 85 bb 02 00 00    	jne    0x40a210
409f55:	83 7d d0 00          	cmpl   $0x0,-0x30(%ebp)
409f59:	8b 7d f8             	mov    -0x8(%ebp),%edi
409f5c:	8b cf                	mov    %edi,%ecx
409f5e:	89 4d 10             	mov    %ecx,0x10(%ebp)
409f61:	0f 85 cb 1f 08 00    	jne    0x48bf32
409f67:	8b 73 08             	mov    0x8(%ebx),%esi
409f6a:	0b 75 14             	or     0x14(%ebp),%esi
409f6d:	81 e6 00 00 00 04    	and    $0x4000000,%esi
409f73:	75 12                	jne    0x409f87
409f75:	39 75 dc             	cmp    %esi,-0x24(%ebp)
409f78:	0f 85 41 02 00 00    	jne    0x40a1bf
409f7e:	39 75 e4             	cmp    %esi,-0x1c(%ebp)
409f81:	0f 85 18 21 08 00    	jne    0x48c09f
409f87:	89 4d f8             	mov    %ecx,-0x8(%ebp)
409f8a:	85 f6                	test   %esi,%esi
409f8c:	75 0c                	jne    0x409f9a
409f8e:	39 b5 f4 fe ff ff    	cmp    %esi,-0x10c(%ebp)
409f94:	0f 85 8e 01 00 00    	jne    0x40a128
409f9a:	8b 45 fc             	mov    -0x4(%ebp),%eax
409f9d:	8b 95 7c ff ff ff    	mov    -0x84(%ebp),%edx
409fa3:	6a 00                	push   $0x0
409fa5:	6a 00                	push   $0x0
409fa7:	8d 8d 08 ff ff ff    	lea    -0xf8(%ebp),%ecx
409fad:	51                   	push   %ecx
409fae:	6a 02                	push   $0x2
409fb0:	50                   	push   %eax
409fb1:	8b c8                	mov    %eax,%ecx
409fb3:	89 45 88             	mov    %eax,-0x78(%ebp)
409fb6:	89 45 90             	mov    %eax,-0x70(%ebp)
409fb9:	c7 85 08 ff ff ff 00 	movl   $0x0,-0xf8(%ebp)
409fc0:	00 00 00
409fc3:	c7 45 a4 00 00 00 00 	movl   $0x0,-0x5c(%ebp)
409fca:	c7 45 98 00 00 00 00 	movl   $0x0,-0x68(%ebp)
409fd1:	c7 85 30 ff ff ff 00 	movl   $0x0,-0xd0(%ebp)
409fd8:	00 00 00
409fdb:	e8 20 03 00 00       	call   0x40a300
409fe0:	83 c4 14             	add    $0x14,%esp
409fe3:	83 bd 70 ff ff ff 00 	cmpl   $0x0,-0x90(%ebp)
409fea:	8b f0                	mov    %eax,%esi
409fec:	0f 85 aa 22 08 00    	jne    0x48c29c
409ff2:	85 f6                	test   %esi,%esi
409ff4:	7e 6d                	jle    0x40a063
409ff6:	83 fe 01             	cmp    $0x1,%esi
409ff9:	0f 85 ab 23 08 00    	jne    0x48c3aa
409fff:	83 7d e0 00          	cmpl   $0x0,-0x20(%ebp)
40a003:	8b 75 ec             	mov    -0x14(%ebp),%esi
40a006:	0f 85 fd 23 08 00    	jne    0x48c409
40a00c:	f7 45 9c 00 00 01 00 	testl  $0x10000,-0x64(%ebp)
40a013:	8b 4d 98             	mov    -0x68(%ebp),%ecx
40a016:	0f 85 33 24 08 00    	jne    0x48c44f
40a01c:	8b c1                	mov    %ecx,%eax
40a01e:	99                   	cltd
40a01f:	2b c2                	sub    %edx,%eax
40a021:	8b f0                	mov    %eax,%esi
40a023:	d1 fe                	sar    $1,%esi
40a025:	0f b7 7b 1e          	movzwl 0x1e(%ebx),%edi
40a029:	8b c1                	mov    %ecx,%eax
40a02b:	99                   	cltd
40a02c:	2b c2                	sub    %edx,%eax
40a02e:	d1 f8                	sar    $1,%eax
40a030:	3b c7                	cmp    %edi,%eax
40a032:	8b 45 18             	mov    0x18(%ebp),%eax
40a035:	0f 8e 23 24 08 00    	jle    0x48c45e
40a03b:	83 7d 1c 02          	cmpl   $0x2,0x1c(%ebp)
40a03f:	0f 8c a6 02 00 00    	jl     0x40a2eb
40a045:	8b 4d 88             	mov    -0x78(%ebp),%ecx
40a048:	2b 4d 80             	sub    -0x80(%ebp),%ecx
40a04b:	d1 f9                	sar    $1,%ecx
40a04d:	89 08                	mov    %ecx,(%eax)
40a04f:	8b 4d 8c             	mov    -0x74(%ebp),%ecx
40a052:	2b 4d 80             	sub    -0x80(%ebp),%ecx
40a055:	d1 f9                	sar    $1,%ecx
40a057:	89 48 04             	mov    %ecx,0x4(%eax)
40a05a:	8b c6                	mov    %esi,%eax
40a05c:	5f                   	pop    %edi
40a05d:	5e                   	pop    %esi
40a05e:	5b                   	pop    %ebx
40a05f:	8b e5                	mov    %ebp,%esp
40a061:	5d                   	pop    %ebp
40a062:	c3                   	ret
40a063:	0f 85 51 22 08 00    	jne    0x48c2ba
40a069:	8b 55 fc             	mov    -0x4(%ebp),%edx
40a06c:	83 7d f4 00          	cmpl   $0x0,-0xc(%ebp)
40a070:	c7 85 34 ff ff ff 00 	movl   $0x0,-0xcc(%ebp)
40a077:	00 00 00
40a07a:	8d 7a 02             	lea    0x2(%edx),%edi
40a07d:	0f 84 52 02 00 00    	je     0x40a2d5
40a083:	8b 4d 10             	mov    0x10(%ebp),%ecx
40a086:	3b f9                	cmp    %ecx,%edi
40a088:	73 19                	jae    0x40a0a3
40a08a:	66 8b 07             	mov    (%edi),%ax
40a08d:	be 00 fc 00 00       	mov    $0xfc00,%esi
40a092:	66 23 c6             	and    %si,%ax
40a095:	be 00 dc 00 00       	mov    $0xdc00,%esi
40a09a:	66 3b c6             	cmp    %si,%ax
40a09d:	0f 84 2a 02 00 00    	je     0x40a2cd
40a0a3:	8b 85 20 ff ff ff    	mov    -0xe0(%ebp),%eax
40a0a9:	33 f6                	xor    %esi,%esi
40a0ab:	39 75 d0             	cmp    %esi,-0x30(%ebp)
40a0ae:	0f 85 45 22 08 00    	jne    0x48c2f9
40a0b4:	8b 95 24 ff ff ff    	mov    -0xdc(%ebp),%edx
40a0ba:	89 7d fc             	mov    %edi,-0x4(%ebp)
40a0bd:	3b f9                	cmp    %ecx,%edi
40a0bf:	0f 87 d0 00 00 00    	ja     0x40a195
40a0c5:	39 75 c8             	cmp    %esi,-0x38(%ebp)
40a0c8:	0f 85 c7 00 00 00    	jne    0x40a195
40a0ce:	3b bd fc fe ff ff    	cmp    -0x104(%ebp),%edi
40a0d4:	76 07                	jbe    0x40a0dd
40a0d6:	66 83 7f fe 0d       	cmpw   $0xd,-0x2(%edi)
40a0db:	74 08                	je     0x40a0e5
40a0dd:	89 75 b8             	mov    %esi,-0x48(%ebp)
40a0e0:	e9 70 fe ff ff       	jmp    0x409f55
40a0e5:	3b f9                	cmp    %ecx,%edi
40a0e7:	73 f4                	jae    0x40a0dd
40a0e9:	66 83 3f 0a          	cmpw   $0xa,(%edi)
40a0ed:	75 ee                	jne    0x40a0dd
40a0ef:	f7 43 0c 00 08 00 00 	testl  $0x800,0xc(%ebx)
40a0f6:	75 e5                	jne    0x40a0dd
40a0f8:	83 f8 02             	cmp    $0x2,%eax
40a0fb:	0f 85 88 22 08 00    	jne    0x48c389
40a101:	8d 47 02             	lea    0x2(%edi),%eax
40a104:	89 45 fc             	mov    %eax,-0x4(%ebp)
40a107:	89 75 b8             	mov    %esi,-0x48(%ebp)
40a10a:	e9 46 fe ff ff       	jmp    0x409f55
40a10f:	90                   	nop
40a110:	c7 01 ff ff ff ff    	movl   $0xffffffff,(%ecx)
40a116:	83 e9 04             	sub    $0x4,%ecx
40a119:	3b ca                	cmp    %edx,%ecx
40a11b:	73 f3                	jae    0x40a110
40a11d:	8b b5 14 ff ff ff    	mov    -0xec(%ebp),%esi
40a123:	e9 f5 fd ff ff       	jmp    0x409f1d
40a128:	83 7d 94 00          	cmpl   $0x0,-0x6c(%ebp)
40a12c:	0f 85 68 fe ff ff    	jne    0x409f9a
40a132:	8b 55 fc             	mov    -0x4(%ebp),%edx
40a135:	8b c1                	mov    %ecx,%eax
40a137:	2b c2                	sub    %edx,%eax
40a139:	83 e0 fe             	and    $0xfffffffe,%eax
40a13c:	3d d0 07 00 00       	cmp    $0x7d0,%eax
40a141:	0f 8d 53 fe ff ff    	jge    0x409f9a
40a147:	83 7d dc 00          	cmpl   $0x0,-0x24(%ebp)
40a14b:	0f 84 75 01 00 00    	je     0x40a2c6
40a151:	b8 01 00 00 00       	mov    $0x1,%eax
40a156:	8d 14 42             	lea    (%edx,%eax,2),%edx
40a159:	3b 95 f8 fe ff ff    	cmp    -0x108(%ebp),%edx
40a15f:	0f 86 35 fe ff ff    	jbe    0x409f9a
40a165:	8b b5 04 ff ff ff    	mov    -0xfc(%ebp),%esi
40a16b:	8b 45 e8             	mov    -0x18(%ebp),%eax
40a16e:	66 3b f0             	cmp    %ax,%si
40a171:	0f 85 f4 20 08 00    	jne    0x48c26b
40a177:	3b d1                	cmp    %ecx,%edx
40a179:	73 18                	jae    0x40a193
40a17b:	eb 03                	jmp    0x40a180
40a17d:	8d 49 00             	lea    0x0(%ecx),%ecx
40a180:	66 8b 02             	mov    (%edx),%ax
40a183:	83 c2 02             	add    $0x2,%edx
40a186:	66 3b c6             	cmp    %si,%ax
40a189:	0f 84 a8 00 00 00    	je     0x40a237
40a18f:	3b d1                	cmp    %ecx,%edx
40a191:	72 ed                	jb     0x40a180
40a193:	33 f6                	xor    %esi,%esi
40a195:	83 7d e0 00          	cmpl   $0x0,-0x20(%ebp)
40a199:	0f 85 1f 22 08 00    	jne    0x48c3be
40a19f:	85 f6                	test   %esi,%esi
40a1a1:	0f 85 36 01 00 00    	jne    0x40a2dd
40a1a7:	8b b5 00 ff ff ff    	mov    -0x100(%ebp),%esi
40a1ad:	85 f6                	test   %esi,%esi
40a1af:	0f 85 20 22 08 00    	jne    0x48c3d5
40a1b5:	83 c8 ff             	or     $0xffffffff,%eax
40a1b8:	5f                   	pop    %edi
40a1b9:	5e                   	pop    %esi
40a1ba:	5b                   	pop    %ebx
40a1bb:	8b e5                	mov    %ebp,%esp
40a1bd:	5d                   	pop    %ebp
40a1be:	c3                   	ret
40a1bf:	8b 55 cc             	mov    -0x34(%ebp),%edx
40a1c2:	8b 45 fc             	mov    -0x4(%ebp),%eax
40a1c5:	66 3b 55 f0          	cmp    -0x10(%ebp),%dx
40a1c9:	0f 85 a2 1e 08 00    	jne    0x48c071
40a1cf:	3b c7                	cmp    %edi,%eax
40a1d1:	0f 83 b0 fd ff ff    	jae    0x409f87
40a1d7:	66 39 10             	cmp    %dx,(%eax)
40a1da:	0f 84 a7 fd ff ff    	je     0x409f87
40a1e0:	83 c0 02             	add    $0x2,%eax
40a1e3:	89 45 fc             	mov    %eax,-0x4(%ebp)
40a1e6:	3b c7                	cmp    %edi,%eax
40a1e8:	72 ed                	jb     0x40a1d7
40a1ea:	e9 98 fd ff ff       	jmp    0x409f87
40a1ef:	0f b7 7b 18          	movzwl 0x18(%ebx),%edi
40a1f3:	0f b7 f7             	movzwl %di,%esi
40a1f6:	c7 45 dc 01 00 00 00 	movl   $0x1,-0x24(%ebp)
40a1fd:	89 7d f0             	mov    %edi,-0x10(%ebp)
40a200:	89 75 cc             	mov    %esi,-0x34(%ebp)
40a203:	a8 20                	test   $0x20,%al
40a205:	0f 84 36 fd ff ff    	je     0x409f41
40a20b:	e9 51 1c 08 00       	jmp    0x48be61
40a210:	0f b7 7b 1a          	movzwl 0x1a(%ebx),%edi
40a214:	0f b7 f7             	movzwl %di,%esi
40a217:	c7 85 f4 fe ff ff 01 	movl   $0x1,-0x10c(%ebp)
40a21e:	00 00 00
40a221:	89 7d e8             	mov    %edi,-0x18(%ebp)
40a224:	89 b5 04 ff ff ff    	mov    %esi,-0xfc(%ebp)
40a22a:	84 c0                	test   %al,%al
40a22c:	0f 89 23 fd ff ff    	jns    0x409f55
40a232:	e9 97 1c 08 00       	jmp    0x48bece
40a237:	83 ea 02             	sub    $0x2,%edx
40a23a:	3b d1                	cmp    %ecx,%edx
40a23c:	0f 83 51 ff ff ff    	jae    0x40a193
40a242:	89 95 f8 fe ff ff    	mov    %edx,-0x108(%ebp)
40a248:	e9 4d fd ff ff       	jmp    0x409f9a
40a24d:	33 c0                	xor    %eax,%eax
40a24f:	e9 07 fa ff ff       	jmp    0x409c5b
40a254:	b8 02 00 00 00       	mov    $0x2,%eax
40a259:	e9 20 fa ff ff       	jmp    0x409c7e
40a25e:	b8 01 00 00 00       	mov    $0x1,%eax
40a263:	e9 16 fa ff ff       	jmp    0x409c7e
40a268:	b8 01 00 00 00       	mov    $0x1,%eax
40a26d:	e9 f7 fa ff ff       	jmp    0x409d69
40a272:	b8 01 00 00 00       	mov    $0x1,%eax
40a277:	e9 01 fb ff ff       	jmp    0x409d7d
40a27c:	b8 01 00 00 00       	mov    $0x1,%eax
40a281:	e9 0b fb ff ff       	jmp    0x409d91
40a286:	b8 01 00 00 00       	mov    $0x1,%eax
40a28b:	e9 1e fb ff ff       	jmp    0x409dae
40a290:	b8 01 00 00 00       	mov    $0x1,%eax
40a295:	e9 28 fb ff ff       	jmp    0x409dc2
40a29a:	b8 01 00 00 00       	mov    $0x1,%eax
40a29f:	e9 32 fb ff ff       	jmp    0x409dd6
40a2a4:	b8 01 00 00 00       	mov    $0x1,%eax
40a2a9:	e9 3c fb ff ff       	jmp    0x409dea
40a2ae:	b8 01 00 00 00       	mov    $0x1,%eax
40a2b3:	e9 68 fb ff ff       	jmp    0x409e20
40a2b8:	8b ca                	mov    %edx,%ecx
40a2ba:	e9 b6 fb ff ff       	jmp    0x409e75
40a2bf:	8b d0                	mov    %eax,%edx
40a2c1:	e9 4c fc ff ff       	jmp    0x409f12
40a2c6:	33 c0                	xor    %eax,%eax