4066d7:	d3 e0                	shl    %cl,%eax
4066d9:	8b 0e                	mov    (%esi),%ecx
4066db:	48                   	dec    %eax
4066dc:	8b 7e 1c             	mov    0x1c(%esi),%edi
4066df:	89 45 a4             	mov    %eax,-0x5c(%ebp)
4066e2:	8b 46 14             	mov    0x14(%esi),%eax
4066e5:	89 45 c8             	mov    %eax,-0x38(%ebp)
4066e8:	8b 46 28             	mov    0x28(%esi),%eax
4066eb:	89 45 d8             	mov    %eax,-0x28(%ebp)
4066ee:	8b 46 24             	mov    0x24(%esi),%eax
4066f1:	89 45 e8             	mov    %eax,-0x18(%ebp)
4066f4:	8b 46 2c             	mov    0x2c(%esi),%eax
4066f7:	89 45 e0             	mov    %eax,-0x20(%ebp)
4066fa:	8b 46 30             	mov    0x30(%esi),%eax
4066fd:	8b 76 20             	mov    0x20(%esi),%esi
406700:	89 45 b8             	mov    %eax,-0x48(%ebp)
406703:	33 c0                	xor    %eax,%eax
406705:	89 45 e4             	mov    %eax,-0x1c(%ebp)
406708:	b0 08                	mov    $0x8,%al
40670a:	2a c1                	sub    %cl,%al
40670c:	89 55 ec             	mov    %edx,-0x14(%ebp)
40670f:	88 45 ff             	mov    %al,-0x1(%ebp)
406712:	8b 45 e0             	mov    -0x20(%ebp),%eax
406715:	89 4d a0             	mov    %ecx,-0x60(%ebp)
406718:	89 5d f4             	mov    %ebx,-0xc(%ebp)
40671b:	23 45 a8             	and    -0x58(%ebp),%eax
40671e:	8b ca                	mov    %edx,%ecx
406720:	c1 e1 04             	shl    $0x4,%ecx
406723:	03 c8                	add    %eax,%ecx
406725:	89 45 bc             	mov    %eax,-0x44(%ebp)
406728:	8b 45 f0             	mov    -0x10(%ebp),%eax
40672b:	0f b7 04 48          	movzwl (%eax,%ecx,2),%eax
40672f:	89 45 b4             	mov    %eax,-0x4c(%ebp)
406732:	0f b7 d0             	movzwl %ax,%edx
406735:	81 ff 00 00 00 01    	cmp    $0x1000000,%edi
40673b:	73 0f                	jae    0x40674c
40673d:	0f b6 03             	movzbl (%ebx),%eax
406740:	c1 e6 08             	shl    $0x8,%esi
406743:	c1 e7 08             	shl    $0x8,%edi
406746:	0b f0                	or     %eax,%esi
406748:	43                   	inc    %ebx
406749:	89 5d f4             	mov    %ebx,-0xc(%ebp)
40674c:	8b c7                	mov    %edi,%eax
40674e:	c1 e8 0b             	shr    $0xb,%eax
406751:	0f af c2             	imul   %edx,%eax
406754:	3b f0                	cmp    %eax,%esi
406756:	0f 83 ce 01 00 00    	jae    0x40692a
40675c:	8b f8                	mov    %eax,%edi
40675e:	b8 00 08 00 00       	mov    $0x800,%eax
406763:	2b c2                	sub    %edx,%eax
406765:	8b 55 f0             	mov    -0x10(%ebp),%edx
406768:	c1 e8 05             	shr    $0x5,%eax
40676b:	03 45 b4             	add    -0x4c(%ebp),%eax
40676e:	66 89 04 4a          	mov    %ax,(%edx,%ecx,2)
406772:	81 c2 6c 0e 00 00    	add    $0xe6c,%edx
406778:	83 7d b8 00          	cmpl   $0x0,-0x48(%ebp)
40677c:	89 55 f8             	mov    %edx,-0x8(%ebp)
40677f:	75 06                	jne    0x406787
406781:	83 7d e0 00          	cmpl   $0x0,-0x20(%ebp)
406785:	74 32                	je     0x4067b9
406787:	8b 45 e8             	mov    -0x18(%ebp),%eax
40678a:	85 c0                	test   %eax,%eax
40678c:	75 03                	jne    0x406791
40678e:	8b 45 d8             	mov    -0x28(%ebp),%eax
406791:	8b 4d c8             	mov    -0x38(%ebp),%ecx
406794:	0f b6 54 08 ff       	movzbl -0x1(%eax,%ecx,1),%edx
406799:	8a 4d ff             	mov    -0x1(%ebp),%cl
40679c:	8b 45 e0             	mov    -0x20(%ebp),%eax
40679f:	23 45 a4             	and    -0x5c(%ebp),%eax
4067a2:	d3 ea                	shr    %cl,%edx
4067a4:	8b 4d a0             	mov    -0x60(%ebp),%ecx
4067a7:	d3 e0                	shl    %cl,%eax
4067a9:	03 d0                	add    %eax,%edx
4067ab:	69 c2 00 06 00 00    	imul   $0x600,%edx,%eax
4067b1:	8b 55 f8             	mov    -0x8(%ebp),%edx
4067b4:	03 d0                	add    %eax,%edx
4067b6:	89 55 f8             	mov    %edx,-0x8(%ebp)
4067b9:	8b 4d ec             	mov    -0x14(%ebp),%ecx
4067bc:	83 f9 07             	cmp    $0x7,%ecx
4067bf:	73 7f                	jae    0x406840
4067c1:	83 f9 04             	cmp    $0x4,%ecx
4067c4:	73 04                	jae    0x4067ca
4067c6:	8b c1                	mov    %ecx,%eax
4067c8:	eb 03                	jmp    0x4067cd
4067ca:	6a 03                	push   $0x3
4067cc:	58                   	pop    %eax
4067cd:	2b c8                	sub    %eax,%ecx
4067cf:	89 4d ec             	mov    %ecx,-0x14(%ebp)
4067d2:	33 c9                	xor    %ecx,%ecx
4067d4:	41                   	inc    %ecx
4067d5:	03 c9                	add    %ecx,%ecx
4067d7:	8d 04 11             	lea    (%ecx,%edx,1),%eax
4067da:	89 45 b4             	mov    %eax,-0x4c(%ebp)
4067dd:	0f b7 00             	movzwl (%eax),%eax
4067e0:	89 45 bc             	mov    %eax,-0x44(%ebp)
4067e3:	0f b7 d0             	movzwl %ax,%edx
4067e6:	81 ff 00 00 00 01    	cmp    $0x1000000,%edi
4067ec:	73 0c                	jae    0x4067fa
4067ee:	0f b6 03             	movzbl (%ebx),%eax
4067f1:	c1 e6 08             	shl    $0x8,%esi
4067f4:	c1 e7 08             	shl    $0x8,%edi
4067f7:	0b f0                	or     %eax,%esi
4067f9:	43                   	inc    %ebx
4067fa:	8b c7                	mov    %edi,%eax
4067fc:	c1 e8 0b             	shr    $0xb,%eax
4067ff:	0f af c2             	imul   %edx,%eax
406802:	3b f0                	cmp    %eax,%esi
406804:	73 11                	jae    0x406817
406806:	8b f8                	mov    %eax,%edi
406808:	b8 00 08 00 00       	mov    $0x800,%eax
40680d:	2b c2                	sub    %edx,%eax
40680f:	c1 e8 05             	shr    $0x5,%eax
406812:	03 45 bc             	add    -0x44(%ebp),%eax
406815:	eb 0d                	jmp    0x406824
406817:	2b f8                	sub    %eax,%edi
406819:	c1 ea 05             	shr    $0x5,%edx
40681c:	2b f0                	sub    %eax,%esi
40681e:	8b 45 bc             	mov    -0x44(%ebp),%eax
406821:	41                   	inc    %ecx
406822:	2b c2                	sub    %edx,%eax
406824:	8b 55 b4             	mov    -0x4c(%ebp),%edx
406827:	0f b7 c0             	movzwl %ax,%eax
40682a:	66 89 02             	mov    %ax,(%edx)
40682d:	8b 55 f8             	mov    -0x8(%ebp),%edx
406830:	81 f9 00 01 00 00    	cmp    $0x100,%ecx
406836:	72 9d                	jb     0x4067d5
406838:	89 5d f4             	mov    %ebx,-0xc(%ebp)
40683b:	e9 cf 00 00 00       	jmp    0x40690f
406840:	8b 55 dc             	mov    -0x24(%ebp),%edx
406843:	39 55 e8             	cmp    %edx,-0x18(%ebp)
406846:	1b c0                	sbb    %eax,%eax
406848:	23 45 d8             	and    -0x28(%ebp),%eax
40684b:	2b c2                	sub    %edx,%eax
40684d:	8b 55 ac             	mov    -0x54(%ebp),%edx
406850:	03 42 14             	add    0x14(%edx),%eax
406853:	83 f9 0a             	cmp    $0xa,%ecx
406856:	8b 55 e8             	mov    -0x18(%ebp),%edx
406859:	0f b6 04 10          	movzbl (%eax,%edx,1),%eax
40685d:	ba 00 01 00 00       	mov    $0x100,%edx
406862:	89 45 b4             	mov    %eax,-0x4c(%ebp)
406865:	1b c0                	sbb    %eax,%eax
406867:	83 e0 fd             	and    $0xfffffffd,%eax
40686a:	89 55 bc             	mov    %edx,-0x44(%ebp)
40686d:	83 c0 06             	add    $0x6,%eax
406870:	2b c8                	sub    %eax,%ecx
406872:	89 4d ec             	mov    %ecx,-0x14(%ebp)
406875:	33 c9                	xor    %ecx,%ecx
406877:	41                   	inc    %ecx
406878:	8b 45 b4             	mov    -0x4c(%ebp),%eax
40687b:	8b 5d f8             	mov    -0x8(%ebp),%ebx
40687e:	03 c0                	add    %eax,%eax
406880:	23 d0                	and    %eax,%edx
406882:	89 45 b4             	mov    %eax,-0x4c(%ebp)
406885:	8b 45 bc             	mov    -0x44(%ebp),%eax
406888:	03 c2                	add    %edx,%eax
40688a:	03 c1                	add    %ecx,%eax
40688c:	89 45 9c             	mov    %eax,-0x64(%ebp)
40688f:	0f b7 04 43          	movzwl (%ebx,%eax,2),%eax
406893:	8b 5d f4             	mov    -0xc(%ebp),%ebx
406896:	89 45 cc             	mov    %eax,-0x34(%ebp)
406899:	0f b7 c0             	movzwl %ax,%eax
40689c:	89 45 c0             	mov    %eax,-0x40(%ebp)
40689f:	81 ff 00 00 00 01    	cmp    $0x1000000,%edi
4068a5:	73 0f                	jae    0x4068b6
4068a7:	0f b6 03             	movzbl (%ebx),%eax
4068aa:	c1 e6 08             	shl    $0x8,%esi
4068ad:	c1 e7 08             	shl    $0x8,%edi
4068b0:	0b f0                	or     %eax,%esi
4068b2:	43                   	inc    %ebx
4068b3:	89 5d f4             	mov    %ebx,-0xc(%ebp)
4068b6:	8b c7                	mov    %edi,%eax
4068b8:	03 c9                	add    %ecx,%ecx
4068ba:	c1 e8 0b             	shr    $0xb,%eax
4068bd:	0f af 45 c0          	imul   -0x40(%ebp),%eax
4068c1:	3b f0                	cmp    %eax,%esi
4068c3:	73 14                	jae    0x4068d9
4068c5:	8b f8                	mov    %eax,%edi
4068c7:	f7 d2                	not    %edx
4068c9:	b8 00 08 00 00       	mov    $0x800,%eax
4068ce:	2b 45 c0             	sub    -0x40(%ebp),%eax
4068d1:	c1 e8 05             	shr    $0x5,%eax
4068d4:	03 45 cc             	add    -0x34(%ebp),%eax
4068d7:	eb 11                	jmp    0x4068ea
4068d9:	2b f8                	sub    %eax,%edi
4068db:	2b f0                	sub    %eax,%esi
4068dd:	8b 45 c0             	mov    -0x40(%ebp),%eax
4068e0:	41                   	inc    %ecx
4068e1:	c1 e8 05             	shr    $0x5,%eax
4068e4:	29 45 cc             	sub    %eax,-0x34(%ebp)
4068e7:	8b 45 cc             	mov    -0x34(%ebp),%eax
4068ea:	21 55 bc             	and    %edx,-0x44(%ebp)
4068ed:	8b 5d 9c             	mov    -0x64(%ebp),%ebx
4068f0:	8b 55 f8             	mov    -0x8(%ebp),%edx
4068f3:	0f b7 c0             	movzwl %ax,%eax
4068f6:	66 89 04 5a          	mov    %ax,(%edx,%ebx,2)
4068fa:	8b 55 bc             	mov    -0x44(%ebp),%edx
4068fd:	8b 5d f4             	mov    -0xc(%ebp),%ebx
406900:	89 55 bc             	mov    %edx,-0x44(%ebp)
406903:	81 f9 00 01 00 00    	cmp    $0x100,%ecx
406909:	0f 82 69 ff ff ff    	jb     0x406878
40690f:	8b 45 e8             	mov    -0x18(%ebp),%eax
406912:	8b 55 c8             	mov    -0x38(%ebp),%edx
406915:	88 0c 10             	mov    %cl,(%eax,%edx,1)
406918:	8b c8                	mov    %eax,%ecx
40691a:	8b 45 e0             	mov    -0x20(%ebp),%eax
40691d:	41                   	inc    %ecx
40691e:	40                   	inc    %eax
40691f:	89 4d e8             	mov    %ecx,-0x18(%ebp)
406922:	89 45 e0             	mov    %eax,-0x20(%ebp)
406925:	e9 0b 0a 00 00       	jmp    0x407335
40692a:	2b f8                	sub    %eax,%edi
40692c:	c1 ea 05             	shr    $0x5,%edx
40692f:	2b f0                	sub    %eax,%esi
406931:	8b 45 b4             	mov    -0x4c(%ebp),%eax
406934:	2b c2                	sub    %edx,%eax
406936:	8b 55 f0             	mov    -0x10(%ebp),%edx
406939:	66 89 04 4a          	mov    %ax,(%edx,%ecx,2)
40693d:	8b 55 ec             	mov    -0x14(%ebp),%edx
406940:	8b 45 f0             	mov    -0x10(%ebp),%eax
406943:	0f b7 94 50 80 01 00 	movzwl 0x180(%eax,%edx,2),%edx
40694a:	00
40694b:	8b ca                	mov    %edx,%ecx
40694d:	81 ff 00 00 00 01    	cmp    $0x1000000,%edi
406953:	73 0f                	jae    0x406964
406955:	0f b6 03             	movzbl (%ebx),%eax
406958:	c1 e6 08             	shl    $0x8,%esi
40695b:	c1 e7 08             	shl    $0x8,%edi
40695e:	0b f0                	or     %eax,%esi
406960:	43                   	inc    %ebx
406961:	89 5d f4             	mov    %ebx,-0xc(%ebp)
406964:	8b c7                	mov    %edi,%eax
406966:	c1 e8 0b             	shr    $0xb,%eax
406969:	0f af c1             	imul   %ecx,%eax
40696c:	3b f0                	cmp    %eax,%esi
40696e:	73 2c                	jae    0x40699c
406970:	8b f8                	mov    %eax,%edi
406972:	b8 00 08 00 00       	mov    $0x800,%eax
406977:	2b c1                	sub    %ecx,%eax
406979:	8b 4d ec             	mov    -0x14(%ebp),%ecx
40697c:	c1 e8 05             	shr    $0x5,%eax
40697f:	03 c2                	add    %edx,%eax
406981:	8b 55 f0             	mov    -0x10(%ebp),%edx
406984:	66 89 84 4a 80 01 00 	mov    %ax,0x180(%edx,%ecx,2)
40698b:	00
40698c:	83 c1 0c             	add    $0xc,%ecx
40698f:	89 4d ec             	mov    %ecx,-0x14(%ebp)
406992:	b8 64 06 00 00       	mov    $0x664,%eax
406997:	e9 30 02 00 00       	jmp    0x406bcc
40699c:	c1 e9 05             	shr    $0x5,%ecx
40699f:	2b f8                	sub    %eax,%edi
4069a1:	2b d1                	sub    %ecx,%edx
4069a3:	2b f0                	sub    %eax,%esi
4069a5:	83 7d b8 00          	cmpl   $0x0,-0x48(%ebp)
4069a9:	8b 45 ec             	mov    -0x14(%ebp),%eax
4069ac:	8b 4d f0             	mov    -0x10(%ebp),%ecx
4069af:	66 89 94 41 80 01 00 	mov    %dx,0x180(%ecx,%eax,2)
4069b6:	00
4069b7:	75 0a                	jne    0x4069c3
4069b9:	83 7d e0 00          	cmpl   $0x0,-0x20(%ebp)
4069bd:	0f 84 e5 09 00 00    	je     0x4073a8
4069c3:	0f b7 84 41 98 01 00 	movzwl 0x198(%ecx,%eax,2),%eax
4069ca:	00
4069cb:	89 45 b4             	mov    %eax,-0x4c(%ebp)
4069ce:	0f b7 d0             	movzwl %ax,%edx
4069d1:	81 ff 00 00 00 01    	cmp    $0x1000000,%edi
4069d7:	73 12                	jae    0x4069eb
4069d9:	0f b6 03             	movzbl (%ebx),%eax
4069dc:	c1 e6 08             	shl    $0x8,%esi
4069df:	0b f0                	or     %eax,%esi
4069e1:	c1 e7 08             	shl    $0x8,%edi
4069e4:	8b 45 b4             	mov    -0x4c(%ebp),%eax
4069e7:	43                   	inc    %ebx
4069e8:	89 5d f4             	mov    %ebx,-0xc(%ebp)
4069eb:	8b cf                	mov    %edi,%ecx
4069ed:	c1 e9 0b             	shr    $0xb,%ecx
4069f0:	0f af ca             	imul   %edx,%ecx
4069f3:	3b f1                	cmp    %ecx,%esi
4069f5:	0f 83 c4 00 00 00    	jae    0x406abf
4069fb:	8b 5d f0             	mov    -0x10(%ebp),%ebx
4069fe:	b8 00 08 00 00       	mov    $0x800,%eax
406a03:	2b c2                	sub    %edx,%eax
406a05:	8b f9                	mov    %ecx,%edi
406a07:	8b 55 ec             	mov    -0x14(%ebp),%edx
406a0a:	c1 e8 05             	shr    $0x5,%eax
406a0d:	03 45 b4             	add    -0x4c(%ebp),%eax
406a10:	66 89 84 53 98 01 00 	mov    %ax,0x198(%ebx,%edx,2)
406a17:	00
406a18:	8d 42 0f             	lea    0xf(%edx),%eax
406a1b:	c1 e0 04             	shl    $0x4,%eax
406a1e:	8b d3                	mov    %ebx,%edx
406a20:	03 45 bc             	add    -0x44(%ebp),%eax
406a23:	8b 5d f4             	mov    -0xc(%ebp),%ebx
406a26:	89 45 c0             	mov    %eax,-0x40(%ebp)
406a29:	0f b7 04 42          	movzwl (%edx,%eax,2),%eax
406a2d:	89 45 b4             	mov    %eax,-0x4c(%ebp)
406a30:	0f b7 d0             	movzwl %ax,%edx
406a33:	81 f9 00 00 00 01    	cmp    $0x1000000,%ecx
406a39:	73 0f                	jae    0x406a4a
406a3b:	0f b6 03             	movzbl (%ebx),%eax
406a3e:	c1 e6 08             	shl    $0x8,%esi
406a41:	c1 e7 08             	shl    $0x8,%edi
406a44:	0b f0                	or     %eax,%esi
406a46:	43                   	inc    %ebx
406a47:	89 5d f4             	mov    %ebx,-0xc(%ebp)
406a4a:	8b 4d c0             	mov    -0x40(%ebp),%ecx
406a4d:	8b c7                	mov    %edi,%eax
406a4f:	c1 e8 0b             	shr    $0xb,%eax
406a52:	0f af c2             	imul   %edx,%eax
406a55:	3b f0                	cmp    %eax,%esi
406a57:	73 4e                	jae    0x406aa7
406a59:	8b f8                	mov    %eax,%edi
406a5b:	b8 00 08 00 00       	mov    $0x800,%eax
406a60:	2b c2                	sub    %edx,%eax
406a62:	8b 55 f0             	mov    -0x10(%ebp),%edx
406a65:	c1 e8 05             	shr    $0x5,%eax
406a68:	03 45 b4             	add    -0x4c(%ebp),%eax
406a6b:	66 89 04 4a          	mov    %ax,(%edx,%ecx,2)
406a6f:	8b 4d e8             	mov    -0x18(%ebp),%ecx
406a72:	3b 4d dc             	cmp    -0x24(%ebp),%ecx
406a75:	8b 55 c8             	mov    -0x38(%ebp),%edx
406a78:	1b c0                	sbb    %eax,%eax
406a7a:	23 45 d8             	and    -0x28(%ebp),%eax
406a7d:	2b 45 dc             	sub    -0x24(%ebp),%eax
406a80:	03 c1                	add    %ecx,%eax
406a82:	8a 04 10             	mov    (%eax,%edx,1),%al
406a85:	88 04 11             	mov    %al,(%ecx,%edx,1)
406a88:	41                   	inc    %ecx
406a89:	8b 45 e0             	mov    -0x20(%ebp),%eax
406a8c:	40                   	inc    %eax
406a8d:	89 4d e8             	mov    %ecx,-0x18(%ebp)
406a90:	83 7d ec 07          	cmpl   $0x7,-0x14(%ebp)
406a94:	89 45 e0             	mov    %eax,-0x20(%ebp)
406a97:	1b d2                	sbb    %edx,%edx
406a99:	83 e2 fe             	and    $0xfffffffe,%edx
406a9c:	83 c2 0b             	add    $0xb,%edx
406a9f:	89 55 ec             	mov    %edx,-0x14(%ebp)
406aa2:	e9 91 08 00 00       	jmp    0x407338
406aa7:	2b f8                	sub    %eax,%edi
406aa9:	c1 ea 05             	shr    $0x5,%edx
406aac:	2b f0                	sub    %eax,%esi
406aae:	8b 45 b4             	mov    -0x4c(%ebp),%eax
406ab1:	2b c2                	sub    %edx,%eax
406ab3:	8b 55 f0             	mov    -0x10(%ebp),%edx
406ab6:	66 89 04 4a          	mov    %ax,(%edx,%ecx,2)
406aba:	e9 f9 00 00 00       	jmp    0x406bb8
406abf:	c1 ea 05             	shr    $0x5,%edx
406ac2:	2b f9                	sub    %ecx,%edi
406ac4:	2b c2                	sub    %edx,%eax
406ac6:	2b f1                	sub    %ecx,%esi
406ac8:	8b 4d ec             	mov    -0x14(%ebp),%ecx