40a4e8:	5e                   	pop    %esi
40a4e9:	5d                   	pop    %ebp
40a4ea:	c2 08 00             	ret    $0x8
40a4ed:	8b ff                	mov    %edi,%edi
40a4ef:	55                   	push   %ebp
40a4f0:	8b ec                	mov    %esp,%ebp
40a4f2:	83 ec 14             	sub    $0x14,%esp
40a4f5:	53                   	push   %ebx
40a4f6:	56                   	push   %esi
40a4f7:	8b f1                	mov    %ecx,%esi
40a4f9:	8b da                	mov    %edx,%ebx
40a4fb:	89 75 f0             	mov    %esi,-0x10(%ebp)
40a4fe:	57                   	push   %edi
40a4ff:	85 f6                	test   %esi,%esi
40a501:	0f 84 24 02 00 00    	je     0x40a72b
40a507:	85 db                	test   %ebx,%ebx
40a509:	0f 84 1c 02 00 00    	je     0x40a72b
40a50f:	e8 f1 fd ff ff       	call   0x40a305
40a514:	83 f8 01             	cmp    $0x1,%eax
40a517:	0f 85 fe 00 00 00    	jne    0x40a61b
40a51d:	50                   	push   %eax
40a51e:	e8 b6 4d 00 00       	call   0x40f2d9
40a523:	59                   	pop    %ecx
40a524:	3b f0                	cmp    %eax,%esi
40a526:	75 0f                	jne    0x40a537
40a528:	6a f5                	push   $0xfffffff5
40a52a:	ff 15 58 20 41 00    	call   *0x412058
40a530:	8b f0                	mov    %eax,%esi
40a532:	89 75 f8             	mov    %esi,-0x8(%ebp)
40a535:	eb 1d                	jmp    0x40a554
40a537:	6a 02                	push   $0x2
40a539:	e8 9b 4d 00 00       	call   0x40f2d9
40a53e:	59                   	pop    %ecx
40a53f:	3b f0                	cmp    %eax,%esi
40a541:	0f 85 bc 00 00 00    	jne    0x40a603
40a547:	6a f4                	push   $0xfffffff4
40a549:	ff 15 58 20 41 00    	call   *0x412058
40a54f:	8b f0                	mov    %eax,%esi
40a551:	89 45 f8             	mov    %eax,-0x8(%ebp)
40a554:	33 ff                	xor    %edi,%edi
40a556:	8b cb                	mov    %ebx,%ecx
40a558:	89 7d fc             	mov    %edi,-0x4(%ebp)
40a55b:	e8 2b ff ff ff       	call   0x40a48b
40a560:	57                   	push   %edi
40a561:	8d 4d fc             	lea    -0x4(%ebp),%ecx
40a564:	89 45 f4             	mov    %eax,-0xc(%ebp)
40a567:	51                   	push   %ecx
40a568:	50                   	push   %eax
40a569:	53                   	push   %ebx
40a56a:	56                   	push   %esi
40a56b:	ff 15 54 20 41 00    	call   *0x412054
40a571:	85 c0                	test   %eax,%eax
40a573:	74 08                	je     0x40a57d
40a575:	8b 45 f4             	mov    -0xc(%ebp),%eax
40a578:	3b 45 fc             	cmp    -0x4(%ebp),%eax
40a57b:	74 62                	je     0x40a5df
40a57d:	ff 15 48 20 41 00    	call   *0x412048
40a583:	83 f8 08             	cmp    $0x8,%eax
40a586:	75 5f                	jne    0x40a5e7
40a588:	8b cb                	mov    %ebx,%ecx
40a58a:	e8 fc fe ff ff       	call   0x40a48b
40a58f:	8b c8                	mov    %eax,%ecx
40a591:	8b c7                	mov    %edi,%eax
40a593:	89 4d f0             	mov    %ecx,-0x10(%ebp)
40a596:	89 45 f4             	mov    %eax,-0xc(%ebp)
40a599:	85 c9                	test   %ecx,%ecx
40a59b:	74 42                	je     0x40a5df
40a59d:	ba 00 04 00 00       	mov    $0x400,%edx
40a5a2:	8b f1                	mov    %ecx,%esi
40a5a4:	2b f0                	sub    %eax,%esi
40a5a6:	3b f2                	cmp    %edx,%esi
40a5a8:	76 02                	jbe    0x40a5ac
40a5aa:	8b f2                	mov    %edx,%esi
40a5ac:	57                   	push   %edi
40a5ad:	8d 45 fc             	lea    -0x4(%ebp),%eax
40a5b0:	50                   	push   %eax
40a5b1:	56                   	push   %esi
40a5b2:	53                   	push   %ebx
40a5b3:	ff 75 f8             	push   -0x8(%ebp)
40a5b6:	ff 15 54 20 41 00    	call   *0x412054
40a5bc:	85 c0                	test   %eax,%eax
40a5be:	74 27                	je     0x40a5e7
40a5c0:	3b 75 fc             	cmp    -0x4(%ebp),%esi
40a5c3:	75 22                	jne    0x40a5e7
40a5c5:	8b 45 f4             	mov    -0xc(%ebp),%eax
40a5c8:	ba 00 04 00 00       	mov    $0x400,%edx
40a5cd:	8b 4d f0             	mov    -0x10(%ebp),%ecx
40a5d0:	03 c2                	add    %edx,%eax
40a5d2:	81 c3 00 08 00 00    	add    $0x800,%ebx
40a5d8:	89 45 f4             	mov    %eax,-0xc(%ebp)
40a5db:	3b c1                	cmp    %ecx,%eax
40a5dd:	72 c3                	jb     0x40a5a2
40a5df:	33 c0                	xor    %eax,%eax
40a5e1:	40                   	inc    %eax
40a5e2:	e9 58 01 00 00       	jmp    0x40a73f
40a5e7:	6a 02                	push   $0x2
40a5e9:	e8 eb 4c 00 00       	call   0x40f2d9
40a5ee:	59                   	pop    %ecx
40a5ef:	8b c8                	mov    %eax,%ecx
40a5f1:	e8 f6 f2 ff ff       	call   0x4098ec
40a5f6:	e8 1a f3 ff ff       	call   0x409915
40a5fb:	6a 01                	push   $0x1
40a5fd:	ff 15 a8 20 41 00    	call   *0x4120a8
40a603:	ff 15 48 20 41 00    	call   *0x412048
40a609:	85 c0                	test   %eax,%eax
40a60b:	0f 85 2c 01 00 00    	jne    0x40a73d
40a611:	68 2b 04 00 00       	push   $0x42b
40a616:	e9 1c 01 00 00       	jmp    0x40a737
40a61b:	8b cb                	mov    %ebx,%ecx
40a61d:	e8 69 fe ff ff       	call   0x40a48b
40a622:	68 00 01 00 00       	push   $0x100
40a627:	33 ff                	xor    %edi,%edi
40a629:	8b f0                	mov    %eax,%esi
40a62b:	57                   	push   %edi
40a62c:	68 a8 13 41 00       	push   $0x4113a8
40a631:	89 75 ec             	mov    %esi,-0x14(%ebp)
40a634:	e8 8b 4d 00 00       	call   0x40f3c4
40a639:	83 c4 0c             	add    $0xc,%esp
40a63c:	8b c7                	mov    %edi,%eax
40a63e:	89 45 f8             	mov    %eax,-0x8(%ebp)
40a641:	85 f6                	test   %esi,%esi
40a643:	74 9a                	je     0x40a5df
40a645:	2b f0                	sub    %eax,%esi
40a647:	81 fe ff 00 00 00    	cmp    $0xff,%esi
40a64d:	76 05                	jbe    0x40a654
40a64f:	be ff 00 00 00       	mov    $0xff,%esi
40a654:	8d 04 43             	lea    (%ebx,%eax,2),%eax
40a657:	89 45 f4             	mov    %eax,-0xc(%ebp)
40a65a:	57                   	push   %edi
40a65b:	57                   	push   %edi
40a65c:	57                   	push   %edi
40a65d:	57                   	push   %edi
40a65e:	56                   	push   %esi
40a65f:	50                   	push   %eax
40a660:	57                   	push   %edi
40a661:	ff 15 a4 20 41 00    	call   *0x4120a4
40a667:	50                   	push   %eax
40a668:	ff 15 c4 20 41 00    	call   *0x4120c4
40a66e:	89 45 fc             	mov    %eax,-0x4(%ebp)
40a671:	85 c0                	test   %eax,%eax
40a673:	0f 84 ab 00 00 00    	je     0x40a724
40a679:	3d ff 00 00 00       	cmp    $0xff,%eax
40a67e:	76 1d                	jbe    0x40a69d
40a680:	05 01 ff ff ff       	add    $0xffffff01,%eax
40a685:	83 f8 03             	cmp    $0x3,%eax
40a688:	76 06                	jbe    0x40a690
40a68a:	d1 e8                	shr    $1,%eax
40a68c:	2b f0                	sub    %eax,%esi
40a68e:	eb 01                	jmp    0x40a691
40a690:	4e                   	dec    %esi
40a691:	89 7d fc             	mov    %edi,-0x4(%ebp)
40a694:	85 f6                	test   %esi,%esi
40a696:	74 77                	je     0x40a70f
40a698:	8b 45 f4             	mov    -0xc(%ebp),%eax
40a69b:	eb bd                	jmp    0x40a65a
40a69d:	3b c6                	cmp    %esi,%eax
40a69f:	73 02                	jae    0x40a6a3
40a6a1:	8b f0                	mov    %eax,%esi
40a6a3:	68 00 01 00 00       	push   $0x100
40a6a8:	57                   	push   %edi
40a6a9:	68 a8 13 41 00       	push   $0x4113a8
40a6ae:	e8 11 4d 00 00       	call   0x40f3c4
40a6b3:	83 c4 0c             	add    $0xc,%esp
40a6b6:	57                   	push   %edi
40a6b7:	57                   	push   %edi
40a6b8:	68 ff 00 00 00       	push   $0xff
40a6bd:	68 a8 13 41 00       	push   $0x4113a8
40a6c2:	56                   	push   %esi
40a6c3:	ff 75 f4             	push   -0xc(%ebp)
40a6c6:	57                   	push   %edi
40a6c7:	ff 15 a4 20 41 00    	call   *0x4120a4
40a6cd:	50                   	push   %eax
40a6ce:	ff 15 c4 20 41 00    	call   *0x4120c4
40a6d4:	89 45 fc             	mov    %eax,-0x4(%ebp)
40a6d7:	85 c0                	test   %eax,%eax
40a6d9:	74 49                	je     0x40a724
40a6db:	01 75 f8             	add    %esi,-0x8(%ebp)
40a6de:	8b 75 f0             	mov    -0x10(%ebp),%esi
40a6e1:	68 a8 13 41 00       	push   $0x4113a8
40a6e6:	68 6c 18 40 00       	push   $0x40186c
40a6eb:	56                   	push   %esi
40a6ec:	ff 15 68 22 41 00    	call   *0x412268
40a6f2:	56                   	push   %esi
40a6f3:	ff 15 64 22 41 00    	call   *0x412264
40a6f9:	8b 45 f8             	mov    -0x8(%ebp),%eax
40a6fc:	83 c4 10             	add    $0x10,%esp
40a6ff:	8b 75 ec             	mov    -0x14(%ebp),%esi
40a702:	3b f0                	cmp    %eax,%esi
40a704:	0f 87 3b ff ff ff    	ja     0x40a645
40a70a:	e9 d0 fe ff ff       	jmp    0x40a5df
40a70f:	ff 15 48 20 41 00    	call   *0x412048
40a715:	85 c0                	test   %eax,%eax
40a717:	75 0b                	jne    0x40a724
40a719:	68 2b 04 00 00       	push   $0x42b
40a71e:	ff 15 74 20 41 00    	call   *0x412074
40a724:	6a 01                	push   $0x1
40a726:	e9 be fe ff ff       	jmp    0x40a5e9
40a72b:	ff 15 48 20 41 00    	call   *0x412048
40a731:	85 c0                	test   %eax,%eax
40a733:	75 08                	jne    0x40a73d
40a735:	6a 57                	push   $0x57
40a737:	ff 15 74 20 41 00    	call   *0x412074
40a73d:	33 c0                	xor    %eax,%eax
40a73f:	5f                   	pop    %edi
40a740:	5e                   	pop    %esi
40a741:	5b                   	pop    %ebx
40a742:	c9                   	leave
40a743:	c3                   	ret
40a744:	8b ff                	mov    %edi,%edi
40a746:	55                   	push   %ebp
40a747:	8b ec                	mov    %esp,%ebp
40a749:	51                   	push   %ecx
40a74a:	51                   	push   %ecx
40a74b:	8b 55 14             	mov    0x14(%ebp),%edx
40a74e:	53                   	push   %ebx
40a74f:	56                   	push   %esi
40a750:	85 d2                	test   %edx,%edx
40a752:	0f 84 00 01 00 00    	je     0x40a858
40a758:	83 7d 08 00          	cmpl   $0x0,0x8(%ebp)
40a75c:	0f 84 f6 00 00 00    	je     0x40a858
40a762:	83 7d 0c 00          	cmpl   $0x0,0xc(%ebp)
40a766:	75 0d                	jne    0x40a775
40a768:	8b 4d 08             	mov    0x8(%ebp),%ecx
40a76b:	e8 7d fd ff ff       	call   0x40a4ed
40a770:	e9 f7 00 00 00       	jmp    0x40a86c
40a775:	83 7d 10 00          	cmpl   $0x0,0x10(%ebp)
40a779:	0f 85 8d 00 00 00    	jne    0x40a80c
40a77f:	83 cb ff             	or     $0xffffffff,%ebx
40a782:	33 c9                	xor    %ecx,%ecx
40a784:	8d 45 18             	lea    0x18(%ebp),%eax
40a787:	89 45 fc             	mov    %eax,-0x4(%ebp)
40a78a:	33 c0                	xor    %eax,%eax
40a78c:	83 fb ff             	cmp    $0xffffffff,%ebx
40a78f:	6a 01                	push   $0x1
40a791:	0f 95 c0             	setne  %al
40a794:	33 d2                	xor    %edx,%edx
40a796:	48                   	dec    %eax
40a797:	25 00 08 00 00       	and    $0x800,%eax
40a79c:	05 00 08 00 00       	add    $0x800,%eax
40a7a1:	03 c8                	add    %eax,%ecx
40a7a3:	51                   	push   %ecx
40a7a4:	6a 03                	push   $0x3
40a7a6:	89 4d f8             	mov    %ecx,-0x8(%ebp)
40a7a9:	59                   	pop    %ecx
40a7aa:	e8 f4 ed ff ff       	call   0x4095a3
40a7af:	8b f0                	mov    %eax,%esi
40a7b1:	85 f6                	test   %esi,%esi
40a7b3:	74 49                	je     0x40a7fe
40a7b5:	8d 45 fc             	lea    -0x4(%ebp),%eax
40a7b8:	50                   	push   %eax
40a7b9:	8b 45 f8             	mov    -0x8(%ebp),%eax
40a7bc:	48                   	dec    %eax
40a7bd:	50                   	push   %eax
40a7be:	56                   	push   %esi
40a7bf:	6a 00                	push   $0x0
40a7c1:	6a 00                	push   $0x0
40a7c3:	ff 75 14             	push   0x14(%ebp)
40a7c6:	68 00 04 00 00       	push   $0x400
40a7cb:	ff 15 60 20 41 00    	call   *0x412060
40a7d1:	8b d8                	mov    %eax,%ebx
40a7d3:	85 db                	test   %ebx,%ebx
40a7d5:	75 15                	jne    0x40a7ec
40a7d7:	ff 15 48 20 41 00    	call   *0x412048
40a7dd:	85 c0                	test   %eax,%eax
40a7df:	74 18                	je     0x40a7f9
40a7e1:	ff 15 48 20 41 00    	call   *0x412048
40a7e7:	83 f8 7a             	cmp    $0x7a,%eax
40a7ea:	75 7e                	jne    0x40a86a
40a7ec:	83 65 fc 00          	andl   $0x0,-0x4(%ebp)
40a7f0:	85 db                	test   %ebx,%ebx
40a7f2:	75 5d                	jne    0x40a851
40a7f4:	8b 4d f8             	mov    -0x8(%ebp),%ecx
40a7f7:	eb 8b                	jmp    0x40a784
40a7f9:	33 c0                	xor    %eax,%eax
40a7fb:	40                   	inc    %eax
40a7fc:	eb 6e                	jmp    0x40a86c
40a7fe:	ff 15 48 20 41 00    	call   *0x412048
40a804:	85 c0                	test   %eax,%eax
40a806:	75 62                	jne    0x40a86a
40a808:	6a 08                	push   $0x8
40a80a:	eb 58                	jmp    0x40a864
40a80c:	33 db                	xor    %ebx,%ebx
40a80e:	6a 01                	push   $0x1
40a810:	81 c3 00 08 00 00    	add    $0x800,%ebx
40a816:	8d 45 18             	lea    0x18(%ebp),%eax
40a819:	53                   	push   %ebx
40a81a:	6a 03                	push   $0x3
40a81c:	33 d2                	xor    %edx,%edx
40a81e:	89 45 fc             	mov    %eax,-0x4(%ebp)
40a821:	59                   	pop    %ecx
40a822:	e8 7c ed ff ff       	call   0x4095a3
40a827:	8b f0                	mov    %eax,%esi
40a829:	85 f6                	test   %esi,%esi
40a82b:	74 d1                	je     0x40a7fe
40a82d:	ff 75 fc             	push   -0x4(%ebp)
40a830:	8b d3                	mov    %ebx,%edx
40a832:	8b ce                	mov    %esi,%ecx
40a834:	ff 75 14             	push   0x14(%ebp)
40a837:	e8 02 07 00 00       	call   0x40af3e
40a83c:	83 65 fc 00          	andl   $0x0,-0x4(%ebp)
40a840:	3d 7a 00 07 80       	cmp    $0x8007007a,%eax
40a845:	74 c7                	je     0x40a80e
40a847:	85 c0                	test   %eax,%eax
40a849:	79 06                	jns    0x40a851
40a84b:	0f b7 c0             	movzwl %ax,%eax
40a84e:	50                   	push   %eax
40a84f:	eb 13                	jmp    0x40a864
40a851:	8b d6                	mov    %esi,%edx
40a853:	e9 10 ff ff ff       	jmp    0x40a768
40a858:	ff 15 48 20 41 00    	call   *0x412048
40a85e:	85 c0                	test   %eax,%eax
40a860:	75 08                	jne    0x40a86a
40a862:	6a 57                	push   $0x57
40a864:	ff 15 74 20 41 00    	call   *0x412074
40a86a:	33 c0                	xor    %eax,%eax
40a86c:	5e                   	pop    %esi
40a86d:	5b                   	pop    %ebx
40a86e:	c9                   	leave
40a86f:	c3                   	ret
40a870:	8b ff                	mov    %edi,%edi
40a872:	55                   	push   %ebp
40a873:	8b ec                	mov    %esp,%ebp
40a875:	51                   	push   %ecx
40a876:	53                   	push   %ebx
40a877:	56                   	push   %esi
40a878:	57                   	push   %edi
40a879:	8b fa                	mov    %edx,%edi
40a87b:	33 f6                	xor    %esi,%esi
40a87d:	8b d1                	mov    %ecx,%edx
40a87f:	89 55 fc             	mov    %edx,-0x4(%ebp)
40a882:	85 d2                	test   %edx,%edx
40a884:	0f 84 b4 00 00 00    	je     0x40a93e
40a88a:	8b 5d 08             	mov    0x8(%ebp),%ebx
40a88d:	85 db                	test   %ebx,%ebx
40a88f:	0f 84 a9 00 00 00    	je     0x40a93e
40a895:	85 ff                	test   %edi,%edi
40a897:	75 08                	jne    0x40a8a1
40a899:	39 33                	cmp    %esi,(%ebx)
40a89b:	0f 85 9d 00 00 00    	jne    0x40a93e
40a8a1:	8b 0b                	mov    (%ebx),%ecx
40a8a3:	85 c9                	test   %ecx,%ecx
40a8a5:	74 08                	je     0x40a8af
40a8a7:	83 f9 01             	cmp    $0x1,%ecx
40a8aa:	76 7b                	jbe    0x40a927
40a8ac:	8d 71 ff             	lea    -0x1(%ecx),%esi
40a8af:	85 ff                	test   %edi,%edi
40a8b1:	74 1a                	je     0x40a8cd
40a8b3:	85 f6                	test   %esi,%esi
40a8b5:	74 16                	je     0x40a8cd
40a8b7:	8d 04 75 02 00 00 00 	lea    0x2(,%esi,2),%eax