40a577:	8b 4d f4             	mov    -0xc(%ebp),%ecx
40a57a:	89 55 f8             	mov    %edx,-0x8(%ebp)
40a57d:	3b 10                	cmp    (%eax),%edx
40a57f:	0f 82 01 ff ff ff    	jb     0x40a486
40a585:	8b 4d 08             	mov    0x8(%ebp),%ecx
40a588:	8b 55 c8             	mov    -0x38(%ebp),%edx
40a58b:	89 19                	mov    %ebx,(%ecx)
40a58d:	8b 4d 0c             	mov    0xc(%ebp),%ecx
40a590:	89 11                	mov    %edx,(%ecx)
40a592:	8b 4d d8             	mov    -0x28(%ebp),%ecx
40a595:	89 08                	mov    %ecx,(%eax)
40a597:	eb 0f                	jmp    0x40a5a8
40a599:	ba 16 02 00 00       	mov    $0x216,%edx
40a59e:	b9 14 51 40 00       	mov    $0x405114,%ecx
40a5a3:	e8 d8 e3 ff ff       	call   0x408980
40a5a8:	5f                   	pop    %edi
40a5a9:	5e                   	pop    %esi
40a5aa:	5b                   	pop    %ebx
40a5ab:	c9                   	leave
40a5ac:	c2 08 00             	ret    $0x8
40a5af:	8b ff                	mov    %edi,%edi
40a5b1:	55                   	push   %ebp
40a5b2:	8b ec                	mov    %esp,%ebp
40a5b4:	51                   	push   %ecx
40a5b5:	52                   	push   %edx
40a5b6:	6a 02                	push   $0x2
40a5b8:	8d 45 fc             	lea    -0x4(%ebp),%eax
40a5bb:	50                   	push   %eax
40a5bc:	6a 00                	push   $0x0
40a5be:	51                   	push   %ecx
40a5bf:	6a 00                	push   $0x0
40a5c1:	68 00 29 00 00       	push   $0x2900
40a5c6:	ff 15 78 f0 40 00    	call   *0x40f078
40a5cc:	85 c0                	test   %eax,%eax
40a5ce:	74 13                	je     0x40a5e3
40a5d0:	8b 4d fc             	mov    -0x4(%ebp),%ecx
40a5d3:	8b d0                	mov    %eax,%edx
40a5d5:	e8 7d 14 00 00       	call   0x40ba57
40a5da:	ff 75 fc             	push   -0x4(%ebp)
40a5dd:	ff 15 68 f0 40 00    	call   *0x40f068
40a5e3:	c9                   	leave
40a5e4:	c3                   	ret
40a5e5:	8b ff                	mov    %edi,%edi
40a5e7:	55                   	push   %ebp
40a5e8:	8b ec                	mov    %esp,%ebp
40a5ea:	81 ec c8 06 00 00    	sub    $0x6c8,%esp
40a5f0:	a1 04 e0 40 00       	mov    0x40e004,%eax
40a5f5:	33 c5                	xor    %ebp,%eax
40a5f7:	89 45 f8             	mov    %eax,-0x8(%ebp)
40a5fa:	8b 45 08             	mov    0x8(%ebp),%eax
40a5fd:	53                   	push   %ebx
40a5fe:	56                   	push   %esi
40a5ff:	57                   	push   %edi
40a600:	33 ff                	xor    %edi,%edi
40a602:	89 8d 88 f9 ff ff    	mov    %ecx,-0x678(%ebp)
40a608:	8b 4d 0c             	mov    0xc(%ebp),%ecx
40a60b:	8b df                	mov    %edi,%ebx
40a60d:	89 95 7c f9 ff ff    	mov    %edx,-0x684(%ebp)
40a613:	89 85 70 f9 ff ff    	mov    %eax,-0x690(%ebp)
40a619:	89 8d 80 f9 ff ff    	mov    %ecx,-0x680(%ebp)
40a61f:	85 c0                	test   %eax,%eax
40a621:	74 33                	je     0x40a656
40a623:	50                   	push   %eax
40a624:	57                   	push   %edi
40a625:	ff 15 64 f0 40 00    	call   *0x40f064
40a62b:	8b f0                	mov    %eax,%esi
40a62d:	89 b5 94 f9 ff ff    	mov    %esi,-0x66c(%ebp)
40a633:	85 f6                	test   %esi,%esi
40a635:	75 17                	jne    0x40a64e
40a637:	ff 15 40 f0 40 00    	call   *0x40f040
40a63d:	8b d0                	mov    %eax,%edx
40a63f:	b9 a0 14 40 00       	mov    $0x4014a0,%ecx
40a644:	e8 37 e3 ff ff       	call   0x408980
40a649:	e9 0a 01 00 00       	jmp    0x40a758
40a64e:	8b 95 7c f9 ff ff    	mov    -0x684(%ebp),%edx
40a654:	eb 08                	jmp    0x40a65e
40a656:	8b f7                	mov    %edi,%esi
40a658:	89 b5 94 f9 ff ff    	mov    %esi,-0x66c(%ebp)
40a65e:	6a 01                	push   $0x1
40a660:	52                   	push   %edx
40a661:	ff b5 88 f9 ff ff    	push   -0x678(%ebp)
40a667:	ff 15 3c 00 41 00    	call   *0x41003c
40a66d:	8b 8d 80 f9 ff ff    	mov    -0x680(%ebp),%ecx
40a673:	89 01                	mov    %eax,(%ecx)
40a675:	85 c0                	test   %eax,%eax
40a677:	75 19                	jne    0x40a692
40a679:	ff 15 40 f0 40 00    	call   *0x40f040
40a67f:	8b d0                	mov    %eax,%edx
40a681:	b9 88 14 40 00       	mov    $0x401488,%ecx
40a686:	e8 f5 e2 ff ff       	call   0x408980
40a68b:	8b d8                	mov    %eax,%ebx
40a68d:	e9 bd 00 00 00       	jmp    0x40a74f
40a692:	8b 75 10             	mov    0x10(%ebp),%esi
40a695:	8d 8d 54 f9 ff ff    	lea    -0x6ac(%ebp),%ecx
40a69b:	51                   	push   %ecx
40a69c:	8d 8d 70 f9 ff ff    	lea    -0x690(%ebp),%ecx
40a6a2:	8b d6                	mov    %esi,%edx
40a6a4:	51                   	push   %ecx
40a6a5:	8d 8d 94 f9 ff ff    	lea    -0x66c(%ebp),%ecx
40a6ab:	51                   	push   %ecx
40a6ac:	8b c8                	mov    %eax,%ecx
40a6ae:	e8 23 14 00 00       	call   0x40bad6
40a6b3:	85 c0                	test   %eax,%eax
40a6b5:	75 0c                	jne    0x40a6c3
40a6b7:	ff 15 40 f0 40 00    	call   *0x40f040
40a6bd:	8b d8                	mov    %eax,%ebx
40a6bf:	85 db                	test   %ebx,%ebx
40a6c1:	75 61                	jne    0x40a724
40a6c3:	8b 85 70 f9 ff ff    	mov    -0x690(%ebp),%eax
40a6c9:	6a 04                	push   $0x4
40a6cb:	59                   	pop    %ecx
40a6cc:	83 fe 01             	cmp    $0x1,%esi
40a6cf:	75 04                	jne    0x40a6d5
40a6d1:	3b c1                	cmp    %ecx,%eax
40a6d3:	72 40                	jb     0x40a715
40a6d5:	3b f1                	cmp    %ecx,%esi
40a6d7:	75 04                	jne    0x40a6dd
40a6d9:	3b c1                	cmp    %ecx,%eax
40a6db:	72 38                	jb     0x40a715
40a6dd:	83 fe 09             	cmp    $0x9,%esi
40a6e0:	75 04                	jne    0x40a6e6
40a6e2:	3b c1                	cmp    %ecx,%eax
40a6e4:	72 2f                	jb     0x40a715
40a6e6:	83 fe 0b             	cmp    $0xb,%esi
40a6e9:	75 05                	jne    0x40a6f0
40a6eb:	83 f8 01             	cmp    $0x1,%eax
40a6ee:	72 25                	jb     0x40a715
40a6f0:	83 fe 05             	cmp    $0x5,%esi
40a6f3:	75 04                	jne    0x40a6f9
40a6f5:	3b c1                	cmp    %ecx,%eax
40a6f7:	72 1c                	jb     0x40a715
40a6f9:	83 fe 06             	cmp    $0x6,%esi
40a6fc:	75 04                	jne    0x40a702
40a6fe:	3b c1                	cmp    %ecx,%eax
40a700:	72 13                	jb     0x40a715
40a702:	83 fe 02             	cmp    $0x2,%esi
40a705:	75 05                	jne    0x40a70c
40a707:	83 f8 14             	cmp    $0x14,%eax
40a70a:	72 09                	jb     0x40a715
40a70c:	83 fe 0c             	cmp    $0xc,%esi
40a70f:	75 58                	jne    0x40a769
40a711:	3b c1                	cmp    %ecx,%eax
40a713:	73 54                	jae    0x40a769
40a715:	6a 7a                	push   $0x7a
40a717:	5b                   	pop    %ebx
40a718:	53                   	push   %ebx
40a719:	5a                   	pop    %edx
40a71a:	b9 d8 14 40 00       	mov    $0x4014d8,%ecx
40a71f:	e8 5c e2 ff ff       	call   0x408980
40a724:	8b d3                	mov    %ebx,%edx
40a726:	b9 3c 15 40 00       	mov    $0x40153c,%ecx
40a72b:	e8 50 e2 ff ff       	call   0x408980
40a730:	83 fb 7a             	cmp    $0x7a,%ebx
40a733:	75 14                	jne    0x40a749
40a735:	57                   	push   %edi
40a736:	ff b5 54 f9 ff ff    	push   -0x6ac(%ebp)
40a73c:	b9 70 16 40 00       	mov    $0x401670,%ecx
40a741:	6a 66                	push   $0x66
40a743:	5a                   	pop    %edx
40a744:	e8 ca e2 ff ff       	call   0x408a13
40a749:	8b b5 94 f9 ff ff    	mov    -0x66c(%ebp),%esi
40a74f:	56                   	push   %esi
40a750:	ff 15 68 f0 40 00    	call   *0x40f068
40a756:	8b c3                	mov    %ebx,%eax
40a758:	8b 4d f8             	mov    -0x8(%ebp),%ecx
40a75b:	5f                   	pop    %edi
40a75c:	5e                   	pop    %esi
40a75d:	33 cd                	xor    %ebp,%ecx
40a75f:	5b                   	pop    %ebx
40a760:	e8 bb b8 ff ff       	call   0x406020
40a765:	c9                   	leave
40a766:	c2 0c 00             	ret    $0xc
40a769:	6a 64                	push   $0x64
40a76b:	8d 95 88 f9 ff ff    	lea    -0x678(%ebp),%edx
40a771:	c7 85 88 f9 ff ff 3c 	movl   $0x40153c,-0x678(%ebp)
40a778:	15 40 00
40a77b:	59                   	pop    %ecx
40a77c:	e8 2e fe ff ff       	call   0x40a5af
40a781:	83 fe 01             	cmp    $0x1,%esi
40a784:	75 30                	jne    0x40a7b6
40a786:	8b b5 94 f9 ff ff    	mov    -0x66c(%ebp),%esi
40a78c:	8b 85 7c f9 ff ff    	mov    -0x684(%ebp),%eax
40a792:	89 85 60 f9 ff ff    	mov    %eax,-0x6a0(%ebp)
40a798:	8b 06                	mov    (%esi),%eax
40a79a:	85 c0                	test   %eax,%eax
40a79c:	75 05                	jne    0x40a7a3
40a79e:	b8 fc 12 40 00       	mov    $0x4012fc,%eax
40a7a3:	89 85 64 f9 ff ff    	mov    %eax,-0x69c(%ebp)
40a7a9:	8d 95 60 f9 ff ff    	lea    -0x6a0(%ebp),%edx
40a7af:	6a 23                	push   $0x23
40a7b1:	e9 43 02 00 00       	jmp    0x40a9f9
40a7b6:	83 fe 04             	cmp    $0x4,%esi
40a7b9:	75 16                	jne    0x40a7d1
40a7bb:	8b b5 94 f9 ff ff    	mov    -0x66c(%ebp),%esi
40a7c1:	33 c9                	xor    %ecx,%ecx
40a7c3:	83 3e 01             	cmpl   $0x1,(%esi)
40a7c6:	0f 95 c1             	setne  %cl
40a7c9:	83 c1 73             	add    $0x73,%ecx
40a7cc:	e9 4b 02 00 00       	jmp    0x40aa1c
40a7d1:	83 fe 09             	cmp    $0x9,%esi
40a7d4:	75 32                	jne    0x40a808
40a7d6:	8b b5 94 f9 ff ff    	mov    -0x66c(%ebp),%esi
40a7dc:	8d 45 dc             	lea    -0x24(%ebp),%eax
40a7df:	6a 0a                	push   $0xa
40a7e1:	50                   	push   %eax
40a7e2:	0f b7 06             	movzwl (%esi),%eax
40a7e5:	50                   	push   %eax
40a7e6:	ff 15 20 f1 40 00    	call   *0x40f120
40a7ec:	8d 45 dc             	lea    -0x24(%ebp),%eax
40a7ef:	83 c4 0c             	add    $0xc,%esp
40a7f2:	89 85 88 f9 ff ff    	mov    %eax,-0x678(%ebp)
40a7f8:	8d 95 88 f9 ff ff    	lea    -0x678(%ebp),%edx
40a7fe:	b9 98 00 00 00       	mov    $0x98,%ecx
40a803:	e9 1a 02 00 00       	jmp    0x40aa22
40a808:	83 fe 0b             	cmp    $0xb,%esi
40a80b:	75 2b                	jne    0x40a838
40a80d:	8b b5 94 f9 ff ff    	mov    -0x66c(%ebp),%esi
40a813:	b8 64 15 40 00       	mov    $0x401564,%eax
40a818:	80 3e 00             	cmpb   $0x0,(%esi)
40a81b:	74 05                	je     0x40a822
40a81d:	b8 70 15 40 00       	mov    $0x401570,%eax
40a822:	89 85 88 f9 ff ff    	mov    %eax,-0x678(%ebp)
40a828:	8d 95 88 f9 ff ff    	lea    -0x678(%ebp),%edx
40a82e:	b9 a9 00 00 00       	mov    $0xa9,%ecx
40a833:	e9 ea 01 00 00       	jmp    0x40aa22
40a838:	83 fe 05             	cmp    $0x5,%esi
40a83b:	75 27                	jne    0x40a864
40a83d:	8b b5 94 f9 ff ff    	mov    -0x66c(%ebp),%esi
40a843:	83 3e 01             	cmpl   $0x1,(%esi)
40a846:	75 08                	jne    0x40a850
40a848:	6a 77                	push   $0x77
40a84a:	59                   	pop    %ecx
40a84b:	e9 cc 01 00 00       	jmp    0x40aa1c
40a850:	33 c9                	xor    %ecx,%ecx
40a852:	83 3e 03             	cmpl   $0x3,(%esi)
40a855:	0f 95 c1             	setne  %cl
40a858:	49                   	dec    %ecx
40a859:	83 e1 05             	and    $0x5,%ecx
40a85c:	83 c1 78             	add    $0x78,%ecx
40a85f:	e9 b8 01 00 00       	jmp    0x40aa1c
40a864:	83 fe 06             	cmp    $0x6,%esi
40a867:	0f 85 a1 00 00 00    	jne    0x40a90e
40a86d:	8b b5 94 f9 ff ff    	mov    -0x66c(%ebp),%esi
40a873:	8b 85 7c f9 ff ff    	mov    -0x684(%ebp),%eax
40a879:	89 85 60 f9 ff ff    	mov    %eax,-0x6a0(%ebp)
40a87f:	8b 06                	mov    (%esi),%eax
40a881:	85 c0                	test   %eax,%eax
40a883:	75 05                	jne    0x40a88a
40a885:	b8 fc 12 40 00       	mov    $0x4012fc,%eax
40a88a:	6a 79                	push   $0x79
40a88c:	8d 95 60 f9 ff ff    	lea    -0x6a0(%ebp),%edx
40a892:	89 85 64 f9 ff ff    	mov    %eax,-0x69c(%ebp)
40a898:	59                   	pop    %ecx
40a899:	e8 11 fd ff ff       	call   0x40a5af
40a89e:	8b 16                	mov    (%esi),%edx
40a8a0:	85 d2                	test   %edx,%edx
40a8a2:	0f 84 a7 fe ff ff    	je     0x40a74f
40a8a8:	8b ca                	mov    %edx,%ecx
40a8aa:	8d 41 02             	lea    0x2(%ecx),%eax
40a8ad:	89 85 88 f9 ff ff    	mov    %eax,-0x678(%ebp)
40a8b3:	66 8b 01             	mov    (%ecx),%ax
40a8b6:	83 c1 02             	add    $0x2,%ecx
40a8b9:	66 3b c7             	cmp    %di,%ax
40a8bc:	75 f5                	jne    0x40a8b3
40a8be:	2b 8d 88 f9 ff ff    	sub    -0x678(%ebp),%ecx
40a8c4:	eb 30                	jmp    0x40a8f6
40a8c6:	6a 7a                	push   $0x7a
40a8c8:	8d 95 8c f9 ff ff    	lea    -0x674(%ebp),%edx
40a8ce:	59                   	pop    %ecx
40a8cf:	e8 db fc ff ff       	call   0x40a5af
40a8d4:	8b 95 8c f9 ff ff    	mov    -0x674(%ebp),%edx
40a8da:	8b ca                	mov    %edx,%ecx
40a8dc:	8d 41 02             	lea    0x2(%ecx),%eax
40a8df:	89 85 88 f9 ff ff    	mov    %eax,-0x678(%ebp)
40a8e5:	66 8b 01             	mov    (%ecx),%ax
40a8e8:	83 c1 02             	add    $0x2,%ecx
40a8eb:	66 3b c7             	cmp    %di,%ax
40a8ee:	75 f5                	jne    0x40a8e5
40a8f0:	2b 8d 88 f9 ff ff    	sub    -0x678(%ebp),%ecx
40a8f6:	d1 f9                	sar    $1,%ecx
40a8f8:	8d 42 02             	lea    0x2(%edx),%eax
40a8fb:	8d 04 48             	lea    (%eax,%ecx,2),%eax
40a8fe:	89 85 8c f9 ff ff    	mov    %eax,-0x674(%ebp)
40a904:	66 39 38             	cmp    %di,(%eax)
40a907:	75 bd                	jne    0x40a8c6
40a909:	e9 41 fe ff ff       	jmp    0x40a74f
40a90e:	83 fe 02             	cmp    $0x2,%esi
40a911:	0f 85 e5 00 00 00    	jne    0x40a9fc
40a917:	8b b5 94 f9 ff ff    	mov    -0x66c(%ebp),%esi
40a91d:	8b 85 7c f9 ff ff    	mov    -0x684(%ebp),%eax
40a923:	89 85 98 f9 ff ff    	mov    %eax,-0x668(%ebp)
40a929:	83 3e ff             	cmpl   $0xffffffff,(%esi)
40a92c:	75 0c                	jne    0x40a93a
40a92e:	c7 85 9c f9 ff ff 7c 	movl   $0x40157c,-0x664(%ebp)
40a935:	15 40 00
40a938:	eb 1a                	jmp    0x40a954
40a93a:	6a 0a                	push   $0xa
40a93c:	8d 45 dc             	lea    -0x24(%ebp),%eax
40a93f:	50                   	push   %eax
40a940:	ff 36                	push   (%esi)
40a942:	ff 15 20 f1 40 00    	call   *0x40f120
40a948:	8d 45 dc             	lea    -0x24(%ebp),%eax
40a94b:	83 c4 0c             	add    $0xc,%esp
40a94e:	89 85 9c f9 ff ff    	mov    %eax,-0x664(%ebp)
40a954:	8b 46 04             	mov    0x4(%esi),%eax
40a957:	b9 fc 12 40 00       	mov    $0x4012fc,%ecx
40a95c:	85 c0                	test   %eax,%eax
40a95e:	75 02                	jne    0x40a962
40a960:	8b c1                	mov    %ecx,%eax
40a962:	89 85 a0 f9 ff ff    	mov    %eax,-0x660(%ebp)
40a968:	39 7e 08             	cmp    %edi,0x8(%esi)
40a96b:	74 03                	je     0x40a970
40a96d:	8b 4e 08             	mov    0x8(%esi),%ecx
40a970:	6a 33                	push   $0x33
40a972:	89 8d a4 f9 ff ff    	mov    %ecx,-0x65c(%ebp)
40a978:	8d 95 98 f9 ff ff    	lea    -0x668(%ebp),%edx
40a97e:	59                   	pop    %ecx
40a97f:	e8 2b fc ff ff       	call   0x40a5af
40a984:	39 7e 0c             	cmp    %edi,0xc(%esi)
40a987:	76 6c                	jbe    0x40a9f5
40a989:	8b 46 10             	mov    0x10(%esi),%eax
40a98c:	8b 0c f8             	mov    (%eax,%edi,8),%ecx
40a98f:	8b 54 f8 04          	mov    0x4(%eax,%edi,8),%edx
40a993:	8d 41 ff             	lea    -0x1(%ecx),%eax
40a996:	83 f8 02             	cmp    $0x2,%eax
40a999:	77 54                	ja     0x40a9ef
40a99b:	83 f9 01             	cmp    $0x1,%ecx
40a99e:	75 05                	jne    0x40a9a5
40a9a0:	6a 34                	push   $0x34
40a9a2:	58                   	pop    %eax
40a9a3:	eb 0f                	jmp    0x40a9b4
40a9a5:	33 c0                	xor    %eax,%eax
40a9a7:	83 f9 02             	cmp    $0x2,%ecx
40a9aa:	0f 95 c0             	setne  %al
40a9ad:	8d 04 45 36 00 00 00 	lea    0x36(,%eax,2),%eax
40a9b4:	89 85 8c f9 ff ff    	mov    %eax,-0x674(%ebp)
40a9ba:	85 ff                	test   %edi,%edi
40a9bc:	74 07                	je     0x40a9c5
40a9be:	40                   	inc    %eax
40a9bf:	89 85 8c f9 ff ff    	mov    %eax,-0x674(%ebp)
40a9c5:	6a 0a                	push   $0xa
40a9c7:	8d 45 dc             	lea    -0x24(%ebp),%eax
40a9ca:	50                   	push   %eax
40a9cb:	52                   	push   %edx
40a9cc:	ff 15 20 f1 40 00    	call   *0x40f120
40a9d2:	8b 8d 8c f9 ff ff    	mov    -0x674(%ebp),%ecx
40a9d8:	8d 45 dc             	lea    -0x24(%ebp),%eax
40a9db:	83 c4 0c             	add    $0xc,%esp
40a9de:	89 85 98 f9 ff ff    	mov    %eax,-0x668(%ebp)
40a9e4:	8d 95 98 f9 ff ff    	lea    -0x668(%ebp),%edx