40a37e:	75 f4                	jne    0x40a374
40a380:	2b 55 d8             	sub    -0x28(%ebp),%edx
40a383:	8d 45 f8             	lea    -0x8(%ebp),%eax
40a386:	d1 fa                	sar    $1,%edx
40a388:	50                   	push   %eax
40a389:	8d 14 55 02 00 00 00 	lea    0x2(,%edx,2),%edx
40a390:	e8 e6 25 00 00       	call   0x40c97b
40a395:	85 c0                	test   %eax,%eax
40a397:	0f 88 fc 01 00 00    	js     0x40a599
40a39d:	6a 3d                	push   $0x3d
40a39f:	ff 75 e0             	push   -0x20(%ebp)
40a3a2:	ff 15 18 f1 40 00    	call   *0x40f118
40a3a8:	59                   	pop    %ecx
40a3a9:	59                   	pop    %ecx
40a3aa:	85 c0                	test   %eax,%eax
40a3ac:	74 27                	je     0x40a3d5
40a3ae:	33 c9                	xor    %ecx,%ecx
40a3b0:	66 39 48 02          	cmp    %cx,0x2(%eax)
40a3b4:	74 1f                	je     0x40a3d5
40a3b6:	8b 4d f8             	mov    -0x8(%ebp),%ecx
40a3b9:	8d 45 f8             	lea    -0x8(%ebp),%eax
40a3bc:	50                   	push   %eax
40a3bd:	6a 02                	push   $0x2
40a3bf:	5a                   	pop    %edx
40a3c0:	e8 b6 25 00 00       	call   0x40c97b
40a3c5:	85 c0                	test   %eax,%eax
40a3c7:	0f 88 cc 01 00 00    	js     0x40a599
40a3cd:	b0 01                	mov    $0x1,%al
40a3cf:	47                   	inc    %edi
40a3d0:	88 45 ff             	mov    %al,-0x1(%ebp)
40a3d3:	eb 03                	jmp    0x40a3d8
40a3d5:	8a 45 ff             	mov    -0x1(%ebp),%al
40a3d8:	8b 0b                	mov    (%ebx),%ecx
40a3da:	46                   	inc    %esi
40a3db:	3b f1                	cmp    %ecx,%esi
40a3dd:	73 0b                	jae    0x40a3ea
40a3df:	8b 4d f8             	mov    -0x8(%ebp),%ecx
40a3e2:	8b 45 f4             	mov    -0xc(%ebp),%eax
40a3e5:	e9 7c ff ff ff       	jmp    0x40a366
40a3ea:	84 c0                	test   %al,%al
40a3ec:	0f 84 b6 01 00 00    	je     0x40a5a8
40a3f2:	8d 45 d8             	lea    -0x28(%ebp),%eax
40a3f5:	8b d7                	mov    %edi,%edx
40a3f7:	50                   	push   %eax
40a3f8:	e8 7e 25 00 00       	call   0x40c97b
40a3fd:	85 c0                	test   %eax,%eax
40a3ff:	0f 88 94 01 00 00    	js     0x40a599
40a405:	8b 45 d8             	mov    -0x28(%ebp),%eax
40a408:	33 ff                	xor    %edi,%edi
40a40a:	c1 e0 02             	shl    $0x2,%eax
40a40d:	50                   	push   %eax
40a40e:	57                   	push   %edi
40a40f:	ff 15 64 f0 40 00    	call   *0x40f064
40a415:	8b d8                	mov    %eax,%ebx
40a417:	89 5d cc             	mov    %ebx,-0x34(%ebp)
40a41a:	85 db                	test   %ebx,%ebx
40a41c:	75 12                	jne    0x40a430
40a41e:	ff 15 40 f0 40 00    	call   *0x40f040
40a424:	8b d0                	mov    %eax,%edx
40a426:	b9 9c 4e 40 00       	mov    $0x404e9c,%ecx
40a42b:	e9 73 01 00 00       	jmp    0x40a5a3
40a430:	8b 75 f8             	mov    -0x8(%ebp),%esi
40a433:	56                   	push   %esi
40a434:	57                   	push   %edi
40a435:	ff 15 64 f0 40 00    	call   *0x40f064
40a43b:	8b f8                	mov    %eax,%edi
40a43d:	89 7d c8             	mov    %edi,-0x38(%ebp)
40a440:	85 ff                	test   %edi,%edi
40a442:	75 1e                	jne    0x40a462
40a444:	ff 15 40 f0 40 00    	call   *0x40f040
40a44a:	8b d0                	mov    %eax,%edx
40a44c:	b9 9c 4e 40 00       	mov    $0x404e9c,%ecx
40a451:	e8 2a e5 ff ff       	call   0x408980
40a456:	53                   	push   %ebx
40a457:	ff 15 68 f0 40 00    	call   *0x40f068
40a45d:	e9 46 01 00 00       	jmp    0x40a5a8
40a462:	8b 4d f4             	mov    -0xc(%ebp),%ecx
40a465:	6a 02                	push   $0x2
40a467:	5a                   	pop    %edx
40a468:	89 55 f8             	mov    %edx,-0x8(%ebp)
40a46b:	8b 01                	mov    (%ecx),%eax
40a46d:	89 03                	mov    %eax,(%ebx)
40a46f:	8b 41 04             	mov    0x4(%ecx),%eax
40a472:	89 43 04             	mov    %eax,0x4(%ebx)
40a475:	8b 45 dc             	mov    -0x24(%ebp),%eax
40a478:	39 10                	cmp    %edx,(%eax)
40a47a:	0f 86 05 01 00 00    	jbe    0x40a585
40a480:	8d 43 0c             	lea    0xc(%ebx),%eax
40a483:	89 45 ec             	mov    %eax,-0x14(%ebp)
40a486:	6a 3d                	push   $0x3d
40a488:	ff 34 91             	push   (%ecx,%edx,4)
40a48b:	ff 15 18 f1 40 00    	call   *0x40f118
40a491:	8b d0                	mov    %eax,%edx
40a493:	8b 45 e8             	mov    -0x18(%ebp),%eax
40a496:	59                   	pop    %ecx
40a497:	59                   	pop    %ecx
40a498:	8b 4d f4             	mov    -0xc(%ebp),%ecx
40a49b:	89 3c 83             	mov    %edi,(%ebx,%eax,4)
40a49e:	8b 45 f8             	mov    -0x8(%ebp),%eax
40a4a1:	89 55 d4             	mov    %edx,-0x2c(%ebp)
40a4a4:	8b 04 81             	mov    (%ecx,%eax,4),%eax
40a4a7:	8b c8                	mov    %eax,%ecx
40a4a9:	89 45 e0             	mov    %eax,-0x20(%ebp)
40a4ac:	8d 41 02             	lea    0x2(%ecx),%eax
40a4af:	89 45 f0             	mov    %eax,-0x10(%ebp)
40a4b2:	66 8b 01             	mov    (%ecx),%ax
40a4b5:	83 c1 02             	add    $0x2,%ecx
40a4b8:	66 3b 45 e4          	cmp    -0x1c(%ebp),%ax
40a4bc:	75 f4                	jne    0x40a4b2
40a4be:	2b 4d f0             	sub    -0x10(%ebp),%ecx
40a4c1:	d1 f9                	sar    $1,%ecx
40a4c3:	8d 04 4d 02 00 00 00 	lea    0x2(,%ecx,2),%eax
40a4ca:	89 45 f0             	mov    %eax,-0x10(%ebp)
40a4cd:	85 d2                	test   %edx,%edx
40a4cf:	74 74                	je     0x40a545
40a4d1:	8d 42 02             	lea    0x2(%edx),%eax
40a4d4:	33 c9                	xor    %ecx,%ecx
40a4d6:	89 45 d0             	mov    %eax,-0x30(%ebp)
40a4d9:	66 39 08             	cmp    %cx,(%eax)
40a4dc:	74 67                	je     0x40a545
40a4de:	8b 4d e0             	mov    -0x20(%ebp),%ecx
40a4e1:	8b c2                	mov    %edx,%eax
40a4e3:	2b c1                	sub    %ecx,%eax
40a4e5:	8b d6                	mov    %esi,%edx
40a4e7:	d1 f8                	sar    $1,%eax
40a4e9:	8d 1c 45 02 00 00 00 	lea    0x2(,%eax,2),%ebx
40a4f0:	53                   	push   %ebx
40a4f1:	51                   	push   %ecx
40a4f2:	8b cf                	mov    %edi,%ecx
40a4f4:	e8 08 23 00 00       	call   0x40c801
40a4f9:	8b 45 f4             	mov    -0xc(%ebp),%eax
40a4fc:	2b f3                	sub    %ebx,%esi
40a4fe:	8b 4d f8             	mov    -0x8(%ebp),%ecx
40a501:	8b 55 d4             	mov    -0x2c(%ebp),%edx
40a504:	89 75 e0             	mov    %esi,-0x20(%ebp)
40a507:	8b 75 f0             	mov    -0x10(%ebp),%esi
40a50a:	2b 14 88             	sub    (%eax,%ecx,4),%edx
40a50d:	2b f3                	sub    %ebx,%esi
40a50f:	8b 45 ec             	mov    -0x14(%ebp),%eax
40a512:	d1 fa                	sar    $1,%edx
40a514:	56                   	push   %esi
40a515:	ff 75 d0             	push   -0x30(%ebp)
40a518:	8d 3c 57             	lea    (%edi,%edx,2),%edi
40a51b:	8b 55 e0             	mov    -0x20(%ebp),%edx
40a51e:	83 c7 04             	add    $0x4,%edi
40a521:	8b cf                	mov    %edi,%ecx
40a523:	89 38                	mov    %edi,(%eax)
40a525:	e8 d7 22 00 00       	call   0x40c801
40a52a:	d1 ee                	shr    $1,%esi
40a52c:	6a 08                	push   $0x8
40a52e:	8d 3c 77             	lea    (%edi,%esi,2),%edi
40a531:	8b 75 e0             	mov    -0x20(%ebp),%esi
40a534:	2b 75 f0             	sub    -0x10(%ebp),%esi
40a537:	03 f3                	add    %ebx,%esi
40a539:	c7 45 e0 02 00 00 00 	movl   $0x2,-0x20(%ebp)
40a540:	8b 5d cc             	mov    -0x34(%ebp),%ebx
40a543:	eb 21                	jmp    0x40a566
40a545:	8b 4d e0             	mov    -0x20(%ebp),%ecx
40a548:	8b d6                	mov    %esi,%edx
40a54a:	51                   	push   %ecx
40a54b:	8b cf                	mov    %edi,%ecx
40a54d:	e8 f1 22 00 00       	call   0x40c843
40a552:	8b 45 f0             	mov    -0x10(%ebp),%eax
40a555:	d1 e8                	shr    $1,%eax
40a557:	2b 75 f0             	sub    -0x10(%ebp),%esi
40a55a:	6a 04                	push   $0x4
40a55c:	c7 45 e0 01 00 00 00 	movl   $0x1,-0x20(%ebp)
40a563:	8d 3c 47             	lea    (%edi,%eax,2),%edi
40a566:	8b 45 e0             	mov    -0x20(%ebp),%eax
40a569:	01 45 e8             	add    %eax,-0x18(%ebp)
40a56c:	8b 55 f8             	mov    -0x8(%ebp),%edx
40a56f:	8b 45 dc             	mov    -0x24(%ebp),%eax
40a572:	42                   	inc    %edx
40a573:	59                   	pop    %ecx
40a574:	01 4d ec             	add    %ecx,-0x14(%ebp)
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)