406ccc:	0f b6 03             	movzbl (%ebx),%eax
406ccf:	c1 e6 08             	shl    $0x8,%esi
406cd2:	c1 e7 08             	shl    $0x8,%edi
406cd5:	0b f0                	or     %eax,%esi
406cd7:	43                   	inc    %ebx
406cd8:	8b c7                	mov    %edi,%eax
406cda:	c1 e8 0b             	shr    $0xb,%eax
406cdd:	0f af c1             	imul   %ecx,%eax
406ce0:	3b f0                	cmp    %eax,%esi
406ce2:	73 13                	jae    0x406cf7
406ce4:	8b f8                	mov    %eax,%edi
406ce6:	b8 00 08 00 00       	mov    $0x800,%eax
406ceb:	2b c1                	sub    %ecx,%eax
406ced:	c1 e8 05             	shr    $0x5,%eax
406cf0:	03 c2                	add    %edx,%eax
406cf2:	0f b7 c0             	movzwl %ax,%eax
406cf5:	eb 0f                	jmp    0x406d06
406cf7:	2b f8                	sub    %eax,%edi
406cf9:	c1 e9 05             	shr    $0x5,%ecx
406cfc:	2b f0                	sub    %eax,%esi
406cfe:	ff 45 e4             	incl   -0x1c(%ebp)
406d01:	2b d1                	sub    %ecx,%edx
406d03:	0f b7 c2             	movzwl %dx,%eax
406d06:	8b 4d 9c             	mov    -0x64(%ebp),%ecx
406d09:	8b 55 c0             	mov    -0x40(%ebp),%edx
406d0c:	66 89 01             	mov    %ax,(%ecx)
406d0f:	8b 4d bc             	mov    -0x44(%ebp),%ecx
406d12:	8b 45 e4             	mov    -0x1c(%ebp),%eax
406d15:	3b c1                	cmp    %ecx,%eax
406d17:	72 9c                	jb     0x406cb5
406d19:	8b 45 cc             	mov    -0x34(%ebp),%eax
406d1c:	2b c1                	sub    %ecx,%eax
406d1e:	89 5d f4             	mov    %ebx,-0xc(%ebp)
406d21:	8b 4d e4             	mov    -0x1c(%ebp),%ecx
406d24:	03 c8                	add    %eax,%ecx
406d26:	89 75 f8             	mov    %esi,-0x8(%ebp)
406d29:	83 7d ec 0c          	cmpl   $0xc,-0x14(%ebp)
406d2d:	89 4d e4             	mov    %ecx,-0x1c(%ebp)
406d30:	0f 82 70 05 00 00    	jb     0x4072a6
406d36:	83 f9 04             	cmp    $0x4,%ecx
406d39:	73 04                	jae    0x406d3f
406d3b:	8b c1                	mov    %ecx,%eax
406d3d:	eb 03                	jmp    0x406d42
406d3f:	6a 03                	push   $0x3
406d41:	58                   	pop    %eax
406d42:	8b 4d f0             	mov    -0x10(%ebp),%ecx
406d45:	81 c1 60 03 00 00    	add    $0x360,%ecx
406d4b:	c1 e0 07             	shl    $0x7,%eax
406d4e:	03 c1                	add    %ecx,%eax
406d50:	89 45 cc             	mov    %eax,-0x34(%ebp)
406d53:	0f b7 50 02          	movzwl 0x2(%eax),%edx
406d57:	8b ca                	mov    %edx,%ecx
406d59:	81 ff 00 00 00 01    	cmp    $0x1000000,%edi
406d5f:	73 12                	jae    0x406d73
406d61:	0f b6 03             	movzbl (%ebx),%eax
406d64:	c1 e6 08             	shl    $0x8,%esi
406d67:	0b f0                	or     %eax,%esi
406d69:	c1 e7 08             	shl    $0x8,%edi
406d6c:	43                   	inc    %ebx
406d6d:	89 75 f8             	mov    %esi,-0x8(%ebp)
406d70:	89 5d f4             	mov    %ebx,-0xc(%ebp)
406d73:	8b c7                	mov    %edi,%eax
406d75:	c1 e8 0b             	shr    $0xb,%eax
406d78:	0f af c1             	imul   %ecx,%eax
406d7b:	3b f0                	cmp    %eax,%esi
406d7d:	73 15                	jae    0x406d94
406d7f:	8b f8                	mov    %eax,%edi
406d81:	b8 00 08 00 00       	mov    $0x800,%eax
406d86:	2b c1                	sub    %ecx,%eax
406d88:	c1 e8 05             	shr    $0x5,%eax
406d8b:	03 c2                	add    %edx,%eax
406d8d:	0f b7 c8             	movzwl %ax,%ecx
406d90:	6a 04                	push   $0x4
406d92:	eb 11                	jmp    0x406da5
406d94:	c1 e9 05             	shr    $0x5,%ecx
406d97:	2b f0                	sub    %eax,%esi
406d99:	2b f8                	sub    %eax,%edi
406d9b:	89 75 f8             	mov    %esi,-0x8(%ebp)
406d9e:	2b d1                	sub    %ecx,%edx
406da0:	0f b7 ca             	movzwl %dx,%ecx
406da3:	6a 06                	push   $0x6
406da5:	8b 55 cc             	mov    -0x34(%ebp),%edx
406da8:	58                   	pop    %eax
406da9:	89 45 bc             	mov    %eax,-0x44(%ebp)
406dac:	03 c2                	add    %edx,%eax
406dae:	89 45 9c             	mov    %eax,-0x64(%ebp)
406db1:	66 89 4a 02          	mov    %cx,0x2(%edx)
406db5:	0f b7 10             	movzwl (%eax),%edx
406db8:	8b ca                	mov    %edx,%ecx
406dba:	81 ff 00 00 00 01    	cmp    $0x1000000,%edi
406dc0:	73 12                	jae    0x406dd4
406dc2:	0f b6 03             	movzbl (%ebx),%eax
406dc5:	c1 e6 08             	shl    $0x8,%esi
406dc8:	0b f0                	or     %eax,%esi
406dca:	c1 e7 08             	shl    $0x8,%edi
406dcd:	43                   	inc    %ebx
406dce:	89 75 f8             	mov    %esi,-0x8(%ebp)
406dd1:	89 5d f4             	mov    %ebx,-0xc(%ebp)
406dd4:	8b c7                	mov    %edi,%eax
406dd6:	c1 e8 0b             	shr    $0xb,%eax
406dd9:	0f af c1             	imul   %ecx,%eax
406ddc:	3b f0                	cmp    %eax,%esi
406dde:	73 16                	jae    0x406df6
406de0:	8b f8                	mov    %eax,%edi
406de2:	b8 00 08 00 00       	mov    $0x800,%eax
406de7:	2b c1                	sub    %ecx,%eax
406de9:	c1 e8 05             	shr    $0x5,%eax
406dec:	03 c2                	add    %edx,%eax
406dee:	0f b7 c8             	movzwl %ax,%ecx
406df1:	8b 45 bc             	mov    -0x44(%ebp),%eax
406df4:	eb 13                	jmp    0x406e09
406df6:	2b f0                	sub    %eax,%esi
406df8:	c1 e9 05             	shr    $0x5,%ecx
406dfb:	2b f8                	sub    %eax,%edi
406dfd:	89 75 f8             	mov    %esi,-0x8(%ebp)
406e00:	8b 45 bc             	mov    -0x44(%ebp),%eax
406e03:	40                   	inc    %eax
406e04:	2b d1                	sub    %ecx,%edx
406e06:	0f b7 ca             	movzwl %dx,%ecx
406e09:	8b 55 9c             	mov    -0x64(%ebp),%edx
406e0c:	03 c0                	add    %eax,%eax
406e0e:	89 45 bc             	mov    %eax,-0x44(%ebp)
406e11:	03 45 cc             	add    -0x34(%ebp),%eax
406e14:	89 45 9c             	mov    %eax,-0x64(%ebp)
406e17:	66 89 0a             	mov    %cx,(%edx)
406e1a:	0f b7 10             	movzwl (%eax),%edx
406e1d:	8b ca                	mov    %edx,%ecx
406e1f:	81 ff 00 00 00 01    	cmp    $0x1000000,%edi
406e25:	73 12                	jae    0x406e39
406e27:	0f b6 03             	movzbl (%ebx),%eax
406e2a:	c1 e6 08             	shl    $0x8,%esi
406e2d:	0b f0                	or     %eax,%esi
406e2f:	c1 e7 08             	shl    $0x8,%edi
406e32:	43                   	inc    %ebx
406e33:	89 75 f8             	mov    %esi,-0x8(%ebp)
406e36:	89 5d f4             	mov    %ebx,-0xc(%ebp)
406e39:	8b c7                	mov    %edi,%eax
406e3b:	c1 e8 0b             	shr    $0xb,%eax
406e3e:	0f af c1             	imul   %ecx,%eax
406e41:	3b f0                	cmp    %eax,%esi
406e43:	73 13                	jae    0x406e58
406e45:	8b f8                	mov    %eax,%edi
406e47:	b8 00 08 00 00       	mov    $0x800,%eax
406e4c:	2b c1                	sub    %ecx,%eax
406e4e:	c1 e8 05             	shr    $0x5,%eax
406e51:	03 c2                	add    %edx,%eax
406e53:	0f b7 c0             	movzwl %ax,%eax
406e56:	eb 12                	jmp    0x406e6a
406e58:	2b f0                	sub    %eax,%esi
406e5a:	c1 e9 05             	shr    $0x5,%ecx
406e5d:	2b f8                	sub    %eax,%edi
406e5f:	89 75 f8             	mov    %esi,-0x8(%ebp)
406e62:	ff 45 bc             	incl   -0x44(%ebp)
406e65:	2b d1                	sub    %ecx,%edx
406e67:	0f b7 c2             	movzwl %dx,%eax
406e6a:	8b 4d 9c             	mov    -0x64(%ebp),%ecx
406e6d:	66 89 01             	mov    %ax,(%ecx)
406e70:	8b 45 bc             	mov    -0x44(%ebp),%eax
406e73:	03 c0                	add    %eax,%eax
406e75:	89 45 bc             	mov    %eax,-0x44(%ebp)
406e78:	03 45 cc             	add    -0x34(%ebp),%eax
406e7b:	89 45 9c             	mov    %eax,-0x64(%ebp)
406e7e:	0f b7 10             	movzwl (%eax),%edx
406e81:	8b ca                	mov    %edx,%ecx
406e83:	81 ff 00 00 00 01    	cmp    $0x1000000,%edi
406e89:	73 12                	jae    0x406e9d
406e8b:	0f b6 03             	movzbl (%ebx),%eax
406e8e:	c1 e6 08             	shl    $0x8,%esi
406e91:	0b f0                	or     %eax,%esi
406e93:	c1 e7 08             	shl    $0x8,%edi
406e96:	43                   	inc    %ebx
406e97:	89 75 f8             	mov    %esi,-0x8(%ebp)
406e9a:	89 5d f4             	mov    %ebx,-0xc(%ebp)
406e9d:	8b c7                	mov    %edi,%eax
406e9f:	c1 e8 0b             	shr    $0xb,%eax
406ea2:	0f af c1             	imul   %ecx,%eax
406ea5:	3b f0                	cmp    %eax,%esi
406ea7:	73 13                	jae    0x406ebc
406ea9:	8b f8                	mov    %eax,%edi
406eab:	b8 00 08 00 00       	mov    $0x800,%eax
406eb0:	2b c1                	sub    %ecx,%eax
406eb2:	c1 e8 05             	shr    $0x5,%eax
406eb5:	03 c2                	add    %edx,%eax
406eb7:	0f b7 c0             	movzwl %ax,%eax
406eba:	eb 12                	jmp    0x406ece
406ebc:	2b f0                	sub    %eax,%esi
406ebe:	c1 e9 05             	shr    $0x5,%ecx
406ec1:	2b f8                	sub    %eax,%edi
406ec3:	89 75 f8             	mov    %esi,-0x8(%ebp)
406ec6:	ff 45 bc             	incl   -0x44(%ebp)
406ec9:	2b d1                	sub    %ecx,%edx
406ecb:	0f b7 c2             	movzwl %dx,%eax
406ece:	8b 4d 9c             	mov    -0x64(%ebp),%ecx
406ed1:	66 89 01             	mov    %ax,(%ecx)
406ed4:	8b 45 bc             	mov    -0x44(%ebp),%eax
406ed7:	03 c0                	add    %eax,%eax
406ed9:	89 45 bc             	mov    %eax,-0x44(%ebp)
406edc:	03 45 cc             	add    -0x34(%ebp),%eax
406edf:	89 45 9c             	mov    %eax,-0x64(%ebp)
406ee2:	0f b7 10             	movzwl (%eax),%edx
406ee5:	8b ca                	mov    %edx,%ecx
406ee7:	81 ff 00 00 00 01    	cmp    $0x1000000,%edi
406eed:	73 12                	jae    0x406f01
406eef:	0f b6 03             	movzbl (%ebx),%eax
406ef2:	c1 e6 08             	shl    $0x8,%esi
406ef5:	0b f0                	or     %eax,%esi
406ef7:	c1 e7 08             	shl    $0x8,%edi
406efa:	43                   	inc    %ebx
406efb:	89 75 f8             	mov    %esi,-0x8(%ebp)
406efe:	89 5d f4             	mov    %ebx,-0xc(%ebp)
406f01:	8b c7                	mov    %edi,%eax
406f03:	c1 e8 0b             	shr    $0xb,%eax
406f06:	0f af c1             	imul   %ecx,%eax
406f09:	3b f0                	cmp    %eax,%esi
406f0b:	73 13                	jae    0x406f20
406f0d:	8b f8                	mov    %eax,%edi
406f0f:	b8 00 08 00 00       	mov    $0x800,%eax
406f14:	2b c1                	sub    %ecx,%eax
406f16:	c1 e8 05             	shr    $0x5,%eax
406f19:	03 c2                	add    %edx,%eax
406f1b:	0f b7 c0             	movzwl %ax,%eax
406f1e:	eb 12                	jmp    0x406f32
406f20:	2b f0                	sub    %eax,%esi
406f22:	c1 e9 05             	shr    $0x5,%ecx
406f25:	2b f8                	sub    %eax,%edi
406f27:	89 75 f8             	mov    %esi,-0x8(%ebp)
406f2a:	ff 45 bc             	incl   -0x44(%ebp)
406f2d:	2b d1                	sub    %ecx,%edx
406f2f:	0f b7 c2             	movzwl %dx,%eax
406f32:	8b 4d 9c             	mov    -0x64(%ebp),%ecx
406f35:	8b 55 bc             	mov    -0x44(%ebp),%edx
406f38:	03 d2                	add    %edx,%edx
406f3a:	66 89 01             	mov    %ax,(%ecx)
406f3d:	8b 45 cc             	mov    -0x34(%ebp),%eax
406f40:	03 c2                	add    %edx,%eax
406f42:	89 45 9c             	mov    %eax,-0x64(%ebp)
406f45:	0f b7 00             	movzwl (%eax),%eax
406f48:	89 45 b4             	mov    %eax,-0x4c(%ebp)
406f4b:	0f b7 c8             	movzwl %ax,%ecx
406f4e:	81 ff 00 00 00 01    	cmp    $0x1000000,%edi
406f54:	73 12                	jae    0x406f68
406f56:	0f b6 03             	movzbl (%ebx),%eax
406f59:	c1 e6 08             	shl    $0x8,%esi
406f5c:	0b f0                	or     %eax,%esi
406f5e:	c1 e7 08             	shl    $0x8,%edi
406f61:	43                   	inc    %ebx
406f62:	89 75 f8             	mov    %esi,-0x8(%ebp)
406f65:	89 5d f4             	mov    %ebx,-0xc(%ebp)
406f68:	8b c7                	mov    %edi,%eax
406f6a:	c1 e8 0b             	shr    $0xb,%eax
406f6d:	0f af c1             	imul   %ecx,%eax
406f70:	3b f0                	cmp    %eax,%esi
406f72:	73 11                	jae    0x406f85
406f74:	8b f8                	mov    %eax,%edi
406f76:	b8 00 08 00 00       	mov    $0x800,%eax
406f7b:	2b c1                	sub    %ecx,%eax
406f7d:	c1 e8 05             	shr    $0x5,%eax
406f80:	03 45 b4             	add    -0x4c(%ebp),%eax
406f83:	eb 10                	jmp    0x406f95
406f85:	2b f0                	sub    %eax,%esi
406f87:	c1 e9 05             	shr    $0x5,%ecx
406f8a:	2b f8                	sub    %eax,%edi
406f8c:	89 75 f8             	mov    %esi,-0x8(%ebp)
406f8f:	8b 45 b4             	mov    -0x4c(%ebp),%eax
406f92:	42                   	inc    %edx
406f93:	2b c1                	sub    %ecx,%eax
406f95:	8b 4d 9c             	mov    -0x64(%ebp),%ecx
406f98:	83 ea 40             	sub    $0x40,%edx
406f9b:	0f b7 c0             	movzwl %ax,%eax
406f9e:	66 89 01             	mov    %ax,(%ecx)
406fa1:	83 fa 04             	cmp    $0x4,%edx
406fa4:	0f 82 be 02 00 00    	jb     0x407268
406faa:	8b c2                	mov    %edx,%eax
406fac:	8b ca                	mov    %edx,%ecx
406fae:	d1 e9                	shr    $1,%ecx
406fb0:	83 e2 01             	and    $0x1,%edx
406fb3:	49                   	dec    %ecx
406fb4:	89 45 9c             	mov    %eax,-0x64(%ebp)
406fb7:	83 ca 02             	or     $0x2,%edx
406fba:	83 f8 0e             	cmp    $0xe,%eax
406fbd:	0f 83 9e 00 00 00    	jae    0x407061
406fc3:	8b 5d f0             	mov    -0x10(%ebp),%ebx
406fc6:	d3 e2                	shl    %cl,%edx
406fc8:	81 c3 5e 05 00 00    	add    $0x55e,%ebx
406fce:	8b c2                	mov    %edx,%eax
406fd0:	2b 45 9c             	sub    -0x64(%ebp),%eax
406fd3:	8d 04 43             	lea    (%ebx,%eax,2),%eax
406fd6:	89 45 9c             	mov    %eax,-0x64(%ebp)
406fd9:	33 c0                	xor    %eax,%eax
406fdb:	40                   	inc    %eax
406fdc:	89 45 c0             	mov    %eax,-0x40(%ebp)
406fdf:	8b 5d f4             	mov    -0xc(%ebp),%ebx
406fe2:	03 c0                	add    %eax,%eax
406fe4:	89 45 c4             	mov    %eax,-0x3c(%ebp)
406fe7:	03 45 9c             	add    -0x64(%ebp),%eax
406fea:	89 45 b4             	mov    %eax,-0x4c(%ebp)
406fed:	0f b7 00             	movzwl (%eax),%eax
406ff0:	89 45 cc             	mov    %eax,-0x34(%ebp)
406ff3:	0f b7 c0             	movzwl %ax,%eax
406ff6:	89 45 bc             	mov    %eax,-0x44(%ebp)
406ff9:	81 ff 00 00 00 01    	cmp    $0x1000000,%edi
406fff:	73 0f                	jae    0x407010
407001:	0f b6 03             	movzbl (%ebx),%eax
407004:	c1 e6 08             	shl    $0x8,%esi
407007:	c1 e7 08             	shl    $0x8,%edi
40700a:	0b f0                	or     %eax,%esi
40700c:	43                   	inc    %ebx
40700d:	89 5d f4             	mov    %ebx,-0xc(%ebp)
407010:	8b c7                	mov    %edi,%eax
407012:	c1 e8 0b             	shr    $0xb,%eax
407015:	0f af 45 bc          	imul   -0x44(%ebp),%eax
407019:	3b f0                	cmp    %eax,%esi
40701b:	73 12                	jae    0x40702f
40701d:	8b f8                	mov    %eax,%edi
40701f:	b8 00 08 00 00       	mov    $0x800,%eax
407024:	2b 45 bc             	sub    -0x44(%ebp),%eax
407027:	c1 e8 05             	shr    $0x5,%eax
40702a:	03 45 cc             	add    -0x34(%ebp),%eax
40702d:	eb 16                	jmp    0x407045
40702f:	0b 55 c0             	or     -0x40(%ebp),%edx
407032:	2b f8                	sub    %eax,%edi
407034:	2b f0                	sub    %eax,%esi
407036:	8b 45 bc             	mov    -0x44(%ebp),%eax
407039:	ff 45 c4             	incl   -0x3c(%ebp)
40703c:	c1 e8 05             	shr    $0x5,%eax
40703f:	29 45 cc             	sub    %eax,-0x34(%ebp)
407042:	8b 45 cc             	mov    -0x34(%ebp),%eax
407045:	8b 5d b4             	mov    -0x4c(%ebp),%ebx
407048:	d1 65 c0             	shll   $1,-0x40(%ebp)
40704b:	0f b7 c0             	movzwl %ax,%eax
40704e:	66 89 03             	mov    %ax,(%ebx)
407051:	8b 45 c4             	mov    -0x3c(%ebp),%eax
407054:	83 e9 01             	sub    $0x1,%ecx
407057:	75 86                	jne    0x406fdf
407059:	89 75 f8             	mov    %esi,-0x8(%ebp)
40705c:	e9 07 02 00 00       	jmp    0x407268
407061:	83 e9 04             	sub    $0x4,%ecx
407064:	81 ff 00 00 00 01    	cmp    $0x1000000,%edi
40706a:	73 0c                	jae    0x407078
40706c:	0f b6 03             	movzbl (%ebx),%eax
40706f:	c1 e6 08             	shl    $0x8,%esi
407072:	c1 e7 08             	shl    $0x8,%edi
407075:	0b f0                	or     %eax,%esi
407077:	43                   	inc    %ebx
407078:	d1 ef                	shr    $1,%edi
40707a:	8d 14 55 01 00 00 00 	lea    0x1(,%edx,2),%edx
407081:	2b f7                	sub    %edi,%esi
407083:	8b c6                	mov    %esi,%eax
407085:	c1 e8 1f             	shr    $0x1f,%eax
407088:	f7 d8                	neg    %eax