40b5b3:	55                   	push   %ebp
40b5b4:	8b ec                	mov    %esp,%ebp
40b5b6:	51                   	push   %ecx
40b5b7:	53                   	push   %ebx
40b5b8:	56                   	push   %esi
40b5b9:	8b 75 08             	mov    0x8(%ebp),%esi
40b5bc:	33 c0                	xor    %eax,%eax
40b5be:	57                   	push   %edi
40b5bf:	8b fe                	mov    %esi,%edi
40b5c1:	ab                   	stos   %eax,%es:(%edi)
40b5c2:	ab                   	stos   %eax,%es:(%edi)
40b5c3:	ab                   	stos   %eax,%es:(%edi)
40b5c4:	8b 7d 0c             	mov    0xc(%ebp),%edi
40b5c7:	8b 45 10             	mov    0x10(%ebp),%eax
40b5ca:	03 c7                	add    %edi,%eax
40b5cc:	89 45 fc             	mov    %eax,-0x4(%ebp)
40b5cf:	3b f8                	cmp    %eax,%edi
40b5d1:	73 3f                	jae    0x40b612
40b5d3:	0f b7 1f             	movzwl (%edi),%ebx
40b5d6:	53                   	push   %ebx
40b5d7:	e8 38 5a 00 00       	call   0x411014
40b5dc:	59                   	pop    %ecx
40b5dd:	66 3b c3             	cmp    %bx,%ax
40b5e0:	75 28                	jne    0x40b60a
40b5e2:	83 46 04 02          	addl   $0x2,0x4(%esi)
40b5e6:	83 fb 0a             	cmp    $0xa,%ebx
40b5e9:	75 15                	jne    0x40b600
40b5eb:	6a 0d                	push   $0xd
40b5ed:	5b                   	pop    %ebx
40b5ee:	53                   	push   %ebx
40b5ef:	e8 20 5a 00 00       	call   0x411014
40b5f4:	59                   	pop    %ecx
40b5f5:	66 3b c3             	cmp    %bx,%ax
40b5f8:	75 10                	jne    0x40b60a
40b5fa:	ff 46 04             	incl   0x4(%esi)
40b5fd:	ff 46 08             	incl   0x8(%esi)
40b600:	83 c7 02             	add    $0x2,%edi
40b603:	3b 7d fc             	cmp    -0x4(%ebp),%edi
40b606:	72 cb                	jb     0x40b5d3
40b608:	eb 08                	jmp    0x40b612
40b60a:	ff 15 28 90 41 00    	call   *0x419028
40b610:	89 06                	mov    %eax,(%esi)
40b612:	5f                   	pop    %edi
40b613:	8b c6                	mov    %esi,%eax
40b615:	5e                   	pop    %esi
40b616:	5b                   	pop    %ebx
40b617:	c9                   	leave
40b618:	c3                   	ret
40b619:	8b ff                	mov    %edi,%edi
40b61b:	55                   	push   %ebp
40b61c:	8b ec                	mov    %esp,%ebp
40b61e:	51                   	push   %ecx
40b61f:	53                   	push   %ebx
40b620:	56                   	push   %esi
40b621:	8b 75 08             	mov    0x8(%ebp),%esi
40b624:	57                   	push   %edi
40b625:	56                   	push   %esi
40b626:	e8 d6 55 00 00       	call   0x410c01
40b62b:	59                   	pop    %ecx
40b62c:	85 c0                	test   %eax,%eax
40b62e:	74 5f                	je     0x40b68f
40b630:	8b fe                	mov    %esi,%edi
40b632:	83 e6 3f             	and    $0x3f,%esi
40b635:	c1 ff 06             	sar    $0x6,%edi
40b638:	6b de 38             	imul   $0x38,%esi,%ebx
40b63b:	8b 04 bd a8 21 42 00 	mov    0x4221a8(,%edi,4),%eax
40b642:	80 7c 18 28 00       	cmpb   $0x0,0x28(%eax,%ebx,1)
40b647:	7d 46                	jge    0x40b68f
40b649:	8b 75 0c             	mov    0xc(%ebp),%esi
40b64c:	80 7e 14 00          	cmpb   $0x0,0x14(%esi)
40b650:	75 07                	jne    0x40b659
40b652:	8b ce                	mov    %esi,%ecx
40b654:	e8 47 d8 ff ff       	call   0x408ea0
40b659:	8b 46 0c             	mov    0xc(%esi),%eax
40b65c:	83 b8 a8 00 00 00 00 	cmpl   $0x0,0xa8(%eax)
40b663:	75 0e                	jne    0x40b673
40b665:	8b 04 bd a8 21 42 00 	mov    0x4221a8(,%edi,4),%eax
40b66c:	80 7c 18 29 00       	cmpb   $0x0,0x29(%eax,%ebx,1)
40b671:	74 1c                	je     0x40b68f
40b673:	8d 45 fc             	lea    -0x4(%ebp),%eax
40b676:	50                   	push   %eax
40b677:	8b 04 bd a8 21 42 00 	mov    0x4221a8(,%edi,4),%eax
40b67e:	ff 74 18 18          	push   0x18(%eax,%ebx,1)
40b682:	ff 15 e8 90 41 00    	call   *0x4190e8
40b688:	85 c0                	test   %eax,%eax
40b68a:	0f 95 c0             	setne  %al
40b68d:	eb 02                	jmp    0x40b691
40b68f:	32 c0                	xor    %al,%al
40b691:	5f                   	pop    %edi
40b692:	5e                   	pop    %esi
40b693:	5b                   	pop    %ebx
40b694:	c9                   	leave
40b695:	c3                   	ret
40b696:	8b ff                	mov    %edi,%edi
40b698:	55                   	push   %ebp
40b699:	8b ec                	mov    %esp,%ebp
40b69b:	b8 0c 14 00 00       	mov    $0x140c,%eax
40b6a0:	e8 1b 7f ff ff       	call   0x4035c0
40b6a5:	a1 c0 10 42 00       	mov    0x4210c0,%eax
40b6aa:	33 c5                	xor    %ebp,%eax
40b6ac:	89 45 fc             	mov    %eax,-0x4(%ebp)
40b6af:	8b 4d 0c             	mov    0xc(%ebp),%ecx
40b6b2:	8b c1                	mov    %ecx,%eax
40b6b4:	8b 55 14             	mov    0x14(%ebp),%edx
40b6b7:	83 e1 3f             	and    $0x3f,%ecx
40b6ba:	c1 f8 06             	sar    $0x6,%eax
40b6bd:	6b c9 38             	imul   $0x38,%ecx,%ecx
40b6c0:	53                   	push   %ebx
40b6c1:	8b 5d 08             	mov    0x8(%ebp),%ebx
40b6c4:	8b 04 85 a8 21 42 00 	mov    0x4221a8(,%eax,4),%eax
40b6cb:	56                   	push   %esi
40b6cc:	57                   	push   %edi
40b6cd:	8b fb                	mov    %ebx,%edi
40b6cf:	8b 44 08 18          	mov    0x18(%eax,%ecx,1),%eax
40b6d3:	8b 4d 10             	mov    0x10(%ebp),%ecx
40b6d6:	03 d1                	add    %ecx,%edx
40b6d8:	89 85 f8 eb ff ff    	mov    %eax,-0x1408(%ebp)
40b6de:	33 c0                	xor    %eax,%eax
40b6e0:	ab                   	stos   %eax,%es:(%edi)
40b6e1:	89 95 f4 eb ff ff    	mov    %edx,-0x140c(%ebp)
40b6e7:	ab                   	stos   %eax,%es:(%edi)
40b6e8:	ab                   	stos   %eax,%es:(%edi)
40b6e9:	3b ca                	cmp    %edx,%ecx
40b6eb:	73 73                	jae    0x40b760
40b6ed:	8b bd f8 eb ff ff    	mov    -0x1408(%ebp),%edi
40b6f3:	8d b5 fc eb ff ff    	lea    -0x1404(%ebp),%esi
40b6f9:	3b ca                	cmp    %edx,%ecx
40b6fb:	73 18                	jae    0x40b715
40b6fd:	8a 01                	mov    (%ecx),%al
40b6ff:	41                   	inc    %ecx
40b700:	3c 0a                	cmp    $0xa,%al
40b702:	75 07                	jne    0x40b70b
40b704:	ff 43 08             	incl   0x8(%ebx)
40b707:	c6 06 0d             	movb   $0xd,(%esi)
40b70a:	46                   	inc    %esi
40b70b:	88 06                	mov    %al,(%esi)
40b70d:	46                   	inc    %esi
40b70e:	8d 45 fb             	lea    -0x5(%ebp),%eax
40b711:	3b f0                	cmp    %eax,%esi
40b713:	72 e4                	jb     0x40b6f9
40b715:	8d 85 fc eb ff ff    	lea    -0x1404(%ebp),%eax
40b71b:	89 4d 10             	mov    %ecx,0x10(%ebp)
40b71e:	2b f0                	sub    %eax,%esi
40b720:	8d 85 f8 eb ff ff    	lea    -0x1408(%ebp),%eax
40b726:	6a 00                	push   $0x0
40b728:	50                   	push   %eax
40b729:	56                   	push   %esi
40b72a:	8d 85 fc eb ff ff    	lea    -0x1404(%ebp),%eax
40b730:	50                   	push   %eax
40b731:	57                   	push   %edi
40b732:	ff 15 c0 90 41 00    	call   *0x4190c0
40b738:	85 c0                	test   %eax,%eax
40b73a:	74 1c                	je     0x40b758
40b73c:	8b 85 f8 eb ff ff    	mov    -0x1408(%ebp),%eax
40b742:	01 43 04             	add    %eax,0x4(%ebx)
40b745:	3b c6                	cmp    %esi,%eax
40b747:	72 17                	jb     0x40b760
40b749:	8b 4d 10             	mov    0x10(%ebp),%ecx
40b74c:	8b 95 f4 eb ff ff    	mov    -0x140c(%ebp),%edx
40b752:	3b ca                	cmp    %edx,%ecx
40b754:	72 9d                	jb     0x40b6f3
40b756:	eb 08                	jmp    0x40b760
40b758:	ff 15 28 90 41 00    	call   *0x419028
40b75e:	89 03                	mov    %eax,(%ebx)
40b760:	8b 4d fc             	mov    -0x4(%ebp),%ecx
40b763:	8b c3                	mov    %ebx,%eax
40b765:	5f                   	pop    %edi
40b766:	5e                   	pop    %esi
40b767:	33 cd                	xor    %ebp,%ecx
40b769:	5b                   	pop    %ebx
40b76a:	e8 59 89 ff ff       	call   0x4040c8
40b76f:	c9                   	leave
40b770:	c3                   	ret
40b771:	8b ff                	mov    %edi,%edi
40b773:	55                   	push   %ebp
40b774:	8b ec                	mov    %esp,%ebp
40b776:	b8 10 14 00 00       	mov    $0x1410,%eax
40b77b:	e8 40 7e ff ff       	call   0x4035c0
40b780:	a1 c0 10 42 00       	mov    0x4210c0,%eax
40b785:	33 c5                	xor    %ebp,%eax
40b787:	89 45 fc             	mov    %eax,-0x4(%ebp)
40b78a:	8b 4d 0c             	mov    0xc(%ebp),%ecx
40b78d:	8b c1                	mov    %ecx,%eax
40b78f:	8b 55 14             	mov    0x14(%ebp),%edx
40b792:	83 e1 3f             	and    $0x3f,%ecx
40b795:	c1 f8 06             	sar    $0x6,%eax
40b798:	6b c9 38             	imul   $0x38,%ecx,%ecx
40b79b:	53                   	push   %ebx
40b79c:	8b 5d 08             	mov    0x8(%ebp),%ebx
40b79f:	8b 04 85 a8 21 42 00 	mov    0x4221a8(,%eax,4),%eax
40b7a6:	56                   	push   %esi
40b7a7:	57                   	push   %edi
40b7a8:	8b fb                	mov    %ebx,%edi
40b7aa:	8b 44 08 18          	mov    0x18(%eax,%ecx,1),%eax
40b7ae:	8b 4d 10             	mov    0x10(%ebp),%ecx
40b7b1:	03 d1                	add    %ecx,%edx
40b7b3:	89 85 f8 eb ff ff    	mov    %eax,-0x1408(%ebp)
40b7b9:	33 c0                	xor    %eax,%eax
40b7bb:	ab                   	stos   %eax,%es:(%edi)
40b7bc:	89 95 f0 eb ff ff    	mov    %edx,-0x1410(%ebp)
40b7c2:	ab                   	stos   %eax,%es:(%edi)
40b7c3:	ab                   	stos   %eax,%es:(%edi)
40b7c4:	eb 75                	jmp    0x40b83b
40b7c6:	8d b5 fc eb ff ff    	lea    -0x1404(%ebp),%esi
40b7cc:	3b ca                	cmp    %edx,%ecx
40b7ce:	73 25                	jae    0x40b7f5
40b7d0:	0f b7 01             	movzwl (%ecx),%eax
40b7d3:	83 c1 02             	add    $0x2,%ecx
40b7d6:	83 f8 0a             	cmp    $0xa,%eax
40b7d9:	75 0d                	jne    0x40b7e8
40b7db:	83 43 08 02          	addl   $0x2,0x8(%ebx)
40b7df:	6a 0d                	push   $0xd
40b7e1:	5f                   	pop    %edi
40b7e2:	66 89 3e             	mov    %di,(%esi)
40b7e5:	83 c6 02             	add    $0x2,%esi
40b7e8:	66 89 06             	mov    %ax,(%esi)
40b7eb:	83 c6 02             	add    $0x2,%esi
40b7ee:	8d 45 fa             	lea    -0x6(%ebp),%eax
40b7f1:	3b f0                	cmp    %eax,%esi
40b7f3:	72 d7                	jb     0x40b7cc
40b7f5:	8b bd f8 eb ff ff    	mov    -0x1408(%ebp),%edi
40b7fb:	8d 85 fc eb ff ff    	lea    -0x1404(%ebp),%eax
40b801:	2b f0                	sub    %eax,%esi
40b803:	89 4d 10             	mov    %ecx,0x10(%ebp)
40b806:	6a 00                	push   $0x0
40b808:	8d 85 f4 eb ff ff    	lea    -0x140c(%ebp),%eax
40b80e:	83 e6 fe             	and    $0xfffffffe,%esi
40b811:	50                   	push   %eax
40b812:	56                   	push   %esi
40b813:	8d 85 fc eb ff ff    	lea    -0x1404(%ebp),%eax
40b819:	50                   	push   %eax
40b81a:	57                   	push   %edi
40b81b:	ff 15 c0 90 41 00    	call   *0x4190c0
40b821:	85 c0                	test   %eax,%eax
40b823:	74 1c                	je     0x40b841
40b825:	8b 85 f4 eb ff ff    	mov    -0x140c(%ebp),%eax
40b82b:	01 43 04             	add    %eax,0x4(%ebx)
40b82e:	3b c6                	cmp    %esi,%eax
40b830:	72 17                	jb     0x40b849
40b832:	8b 4d 10             	mov    0x10(%ebp),%ecx
40b835:	8b 95 f0 eb ff ff    	mov    -0x1410(%ebp),%edx
40b83b:	3b ca                	cmp    %edx,%ecx
40b83d:	72 87                	jb     0x40b7c6
40b83f:	eb 08                	jmp    0x40b849
40b841:	ff 15 28 90 41 00    	call   *0x419028
40b847:	89 03                	mov    %eax,(%ebx)
40b849:	8b 4d fc             	mov    -0x4(%ebp),%ecx
40b84c:	8b c3                	mov    %ebx,%eax
40b84e:	5f                   	pop    %edi
40b84f:	5e                   	pop    %esi
40b850:	33 cd                	xor    %ebp,%ecx
40b852:	5b                   	pop    %ebx
40b853:	e8 70 88 ff ff       	call   0x4040c8
40b858:	c9                   	leave
40b859:	c3                   	ret
40b85a:	8b ff                	mov    %edi,%edi
40b85c:	55                   	push   %ebp
40b85d:	8b ec                	mov    %esp,%ebp
40b85f:	b8 18 14 00 00       	mov    $0x1418,%eax
40b864:	e8 57 7d ff ff       	call   0x4035c0
40b869:	a1 c0 10 42 00       	mov    0x4210c0,%eax
40b86e:	33 c5                	xor    %ebp,%eax
40b870:	89 45 fc             	mov    %eax,-0x4(%ebp)
40b873:	8b 4d 0c             	mov    0xc(%ebp),%ecx
40b876:	8b c1                	mov    %ecx,%eax
40b878:	8b 55 10             	mov    0x10(%ebp),%edx
40b87b:	83 e1 3f             	and    $0x3f,%ecx
40b87e:	c1 f8 06             	sar    $0x6,%eax
40b881:	6b c9 38             	imul   $0x38,%ecx,%ecx
40b884:	53                   	push   %ebx
40b885:	56                   	push   %esi
40b886:	8b 04 85 a8 21 42 00 	mov    0x4221a8(,%eax,4),%eax
40b88d:	8b 75 08             	mov    0x8(%ebp),%esi
40b890:	57                   	push   %edi
40b891:	8b fe                	mov    %esi,%edi
40b893:	8b 44 08 18          	mov    0x18(%eax,%ecx,1),%eax
40b897:	8b 4d 14             	mov    0x14(%ebp),%ecx
40b89a:	89 85 f0 eb ff ff    	mov    %eax,-0x1410(%ebp)
40b8a0:	03 ca                	add    %edx,%ecx
40b8a2:	33 c0                	xor    %eax,%eax
40b8a4:	89 8d f4 eb ff ff    	mov    %ecx,-0x140c(%ebp)
40b8aa:	ab                   	stos   %eax,%es:(%edi)
40b8ab:	ab                   	stos   %eax,%es:(%edi)
40b8ac:	ab                   	stos   %eax,%es:(%edi)
40b8ad:	8b fa                	mov    %edx,%edi
40b8af:	3b d1                	cmp    %ecx,%edx
40b8b1:	0f 83 c4 00 00 00    	jae    0x40b97b
40b8b7:	8b b5 f4 eb ff ff    	mov    -0x140c(%ebp),%esi
40b8bd:	8d 85 50 f9 ff ff    	lea    -0x6b0(%ebp),%eax
40b8c3:	3b fe                	cmp    %esi,%edi
40b8c5:	73 21                	jae    0x40b8e8
40b8c7:	0f b7 0f             	movzwl (%edi),%ecx
40b8ca:	83 c7 02             	add    $0x2,%edi
40b8cd:	83 f9 0a             	cmp    $0xa,%ecx
40b8d0:	75 09                	jne    0x40b8db
40b8d2:	6a 0d                	push   $0xd
40b8d4:	5a                   	pop    %edx
40b8d5:	66 89 10             	mov    %dx,(%eax)
40b8d8:	83 c0 02             	add    $0x2,%eax
40b8db:	66 89 08             	mov    %cx,(%eax)
40b8de:	83 c0 02             	add    $0x2,%eax
40b8e1:	8d 4d f8             	lea    -0x8(%ebp),%ecx
40b8e4:	3b c1                	cmp    %ecx,%eax
40b8e6:	72 db                	jb     0x40b8c3
40b8e8:	6a 00                	push   $0x0
40b8ea:	6a 00                	push   $0x0
40b8ec:	68 55 0d 00 00       	push   $0xd55
40b8f1:	8d 8d f8 eb ff ff    	lea    -0x1408(%ebp),%ecx
40b8f7:	51                   	push   %ecx
40b8f8:	8d 8d 50 f9 ff ff    	lea    -0x6b0(%ebp),%ecx
40b8fe:	2b c1                	sub    %ecx,%eax
40b900:	d1 f8                	sar    $1,%eax
40b902:	50                   	push   %eax
40b903:	8b c1                	mov    %ecx,%eax
40b905:	50                   	push   %eax
40b906:	6a 00                	push   $0x0
40b908:	68 e9 fd 00 00       	push   $0xfde9
40b90d:	e8 1c 37 00 00       	call   0x40f02e
40b912:	8b 75 08             	mov    0x8(%ebp),%esi
40b915:	83 c4 20             	add    $0x20,%esp
40b918:	89 85 e8 eb ff ff    	mov    %eax,-0x1418(%ebp)
40b91e:	85 c0                	test   %eax,%eax
40b920:	74 51                	je     0x40b973
40b922:	33 db                	xor    %ebx,%ebx
40b924:	85 c0                	test   %eax,%eax
40b926:	74 35                	je     0x40b95d
40b928:	6a 00                	push   $0x0
40b92a:	8d 8d ec eb ff ff    	lea    -0x1414(%ebp),%ecx
40b930:	2b c3                	sub    %ebx,%eax
40b932:	51                   	push   %ecx
40b933:	50                   	push   %eax
40b934:	8d 85 f8 eb ff ff    	lea    -0x1408(%ebp),%eax
40b93a:	03 c3                	add    %ebx,%eax
40b93c:	50                   	push   %eax
40b93d:	ff b5 f0 eb ff ff    	push   -0x1410(%ebp)
40b943:	ff 15 c0 90 41 00    	call   *0x4190c0
40b949:	85 c0                	test   %eax,%eax
40b94b:	74 26                	je     0x40b973
40b94d:	03 9d ec eb ff ff    	add    -0x1414(%ebp),%ebx
40b953:	8b 85 e8 eb ff ff    	mov    -0x1418(%ebp),%eax
40b959:	3b d8                	cmp    %eax,%ebx
40b95b:	72 cb                	jb     0x40b928
40b95d:	8b c7                	mov    %edi,%eax
40b95f:	2b 45 10             	sub    0x10(%ebp),%eax
40b962:	89 46 04             	mov    %eax,0x4(%esi)
40b965:	3b bd f4 eb ff ff    	cmp    -0x140c(%ebp),%edi
40b96b:	0f 82 46 ff ff ff    	jb     0x40b8b7
40b971:	eb 08                	jmp    0x40b97b
40b973:	ff 15 28 90 41 00    	call   *0x419028
40b979:	89 06                	mov    %eax,(%esi)