40152e:	0f 92 c1             	setb   %cl
401531:	e8 f5 42 00 00       	call   0x40582b
401536:	c1 e7 04             	shl    $0x4,%edi
401539:	03 3e                	add    (%esi),%edi
40153b:	8b 75 08             	mov    0x8(%ebp),%esi
40153e:	8b ce                	mov    %esi,%ecx
401540:	57                   	push   %edi
401541:	e8 14 1f 00 00       	call   0x40345a
401546:	8b 4f 04             	mov    0x4(%edi),%ecx
401549:	8b c6                	mov    %esi,%eax
40154b:	89 4e 04             	mov    %ecx,0x4(%esi)
40154e:	8b 4f 08             	mov    0x8(%edi),%ecx
401551:	89 4e 08             	mov    %ecx,0x8(%esi)
401554:	8b 4f 0c             	mov    0xc(%edi),%ecx
401557:	5f                   	pop    %edi
401558:	89 4e 0c             	mov    %ecx,0xc(%esi)
40155b:	5e                   	pop    %esi
40155c:	5d                   	pop    %ebp
40155d:	c2 08 00             	ret    $0x8
401560:	55                   	push   %ebp
401561:	8b ec                	mov    %esp,%ebp
401563:	83 ec 10             	sub    $0x10,%esp
401566:	53                   	push   %ebx
401567:	56                   	push   %esi
401568:	57                   	push   %edi
401569:	8b f9                	mov    %ecx,%edi
40156b:	8b 77 08             	mov    0x8(%edi),%esi
40156e:	3b 77 04             	cmp    0x4(%edi),%esi
401571:	0f 82 d2 00 00 00    	jb     0x401649
401577:	46                   	inc    %esi
401578:	33 db                	xor    %ebx,%ebx
40157a:	0f af 77 0c          	imul   0xc(%edi),%esi
40157e:	6a 0c                	push   $0xc
401580:	59                   	pop    %ecx
401581:	8b c6                	mov    %esi,%eax
401583:	89 75 f0             	mov    %esi,-0x10(%ebp)
401586:	f7 e1                	mul    %ecx
401588:	0f 90 c3             	seto   %bl
40158b:	33 c9                	xor    %ecx,%ecx
40158d:	f7 db                	neg    %ebx
40158f:	0b d8                	or     %eax,%ebx
401591:	83 c3 04             	add    $0x4,%ebx
401594:	0f 92 c1             	setb   %cl
401597:	f7 d9                	neg    %ecx
401599:	0b cb                	or     %ebx,%ecx
40159b:	e8 3b 45 00 00       	call   0x405adb
4015a0:	85 c0                	test   %eax,%eax
4015a2:	74 22                	je     0x4015c6
4015a4:	8d 58 04             	lea    0x4(%eax),%ebx
4015a7:	89 30                	mov    %esi,(%eax)
4015a9:	33 c0                	xor    %eax,%eax
4015ab:	89 5d f8             	mov    %ebx,-0x8(%ebp)
4015ae:	8b d6                	mov    %esi,%edx
4015b0:	85 f6                	test   %esi,%esi
4015b2:	74 19                	je     0x4015cd
4015b4:	8d 4b 08             	lea    0x8(%ebx),%ecx
4015b7:	89 41 fc             	mov    %eax,-0x4(%ecx)
4015ba:	89 01                	mov    %eax,(%ecx)
4015bc:	8d 49 0c             	lea    0xc(%ecx),%ecx
4015bf:	83 ea 01             	sub    $0x1,%edx
4015c2:	75 f3                	jne    0x4015b7
4015c4:	eb 07                	jmp    0x4015cd
4015c6:	33 c0                	xor    %eax,%eax
4015c8:	8b d8                	mov    %eax,%ebx
4015ca:	89 45 f8             	mov    %eax,-0x8(%ebp)
4015cd:	39 47 08             	cmp    %eax,0x8(%edi)
4015d0:	76 47                	jbe    0x401619
4015d2:	6a f8                	push   $0xfffffff8
4015d4:	58                   	pop    %eax
4015d5:	8d 4b 08             	lea    0x8(%ebx),%ecx
4015d8:	2b c3                	sub    %ebx,%eax
4015da:	89 4d fc             	mov    %ecx,-0x4(%ebp)
4015dd:	33 db                	xor    %ebx,%ebx
4015df:	89 45 f4             	mov    %eax,-0xc(%ebp)
4015e2:	8d 34 08             	lea    (%eax,%ecx,1),%esi
4015e5:	03 37                	add    (%edi),%esi
4015e7:	8b 06                	mov    (%esi),%eax
4015e9:	89 41 f8             	mov    %eax,-0x8(%ecx)
4015ec:	8d 46 04             	lea    0x4(%esi),%eax
4015ef:	50                   	push   %eax
4015f0:	83 c1 fc             	add    $0xfffffffc,%ecx
4015f3:	e8 6c 1c 00 00       	call   0x403264
4015f8:	8b 4d fc             	mov    -0x4(%ebp),%ecx
4015fb:	8d 46 08             	lea    0x8(%esi),%eax
4015fe:	50                   	push   %eax
4015ff:	e8 60 1c 00 00       	call   0x403264
401604:	8b 4d fc             	mov    -0x4(%ebp),%ecx
401607:	43                   	inc    %ebx
401608:	8b 45 f4             	mov    -0xc(%ebp),%eax
40160b:	83 c1 0c             	add    $0xc,%ecx
40160e:	89 4d fc             	mov    %ecx,-0x4(%ebp)
401611:	3b 5f 08             	cmp    0x8(%edi),%ebx
401614:	72 cc                	jb     0x4015e2
401616:	8b 5d f8             	mov    -0x8(%ebp),%ebx
401619:	8b 0f                	mov    (%edi),%ecx
40161b:	85 c9                	test   %ecx,%ecx
40161d:	74 20                	je     0x40163f
40161f:	8b 71 fc             	mov    -0x4(%ecx),%esi
401622:	6b c6 0c             	imul   $0xc,%esi,%eax
401625:	03 c1                	add    %ecx,%eax
401627:	85 f6                	test   %esi,%esi
401629:	74 14                	je     0x40163f
40162b:	8b d8                	mov    %eax,%ebx
40162d:	83 eb 0c             	sub    $0xc,%ebx
401630:	8b cb                	mov    %ebx,%ecx
401632:	e8 7f fd ff ff       	call   0x4013b6
401637:	83 ee 01             	sub    $0x1,%esi
40163a:	75 f1                	jne    0x40162d
40163c:	8b 5d f8             	mov    -0x8(%ebp),%ebx
40163f:	8b 45 f0             	mov    -0x10(%ebp),%eax
401642:	89 1f                	mov    %ebx,(%edi)
401644:	89 47 04             	mov    %eax,0x4(%edi)
401647:	eb 02                	jmp    0x40164b
401649:	8b 1f                	mov    (%edi),%ebx
40164b:	6b 77 08 0c          	imul   $0xc,0x8(%edi),%esi
40164f:	8b 45 08             	mov    0x8(%ebp),%eax
401652:	89 04 1e             	mov    %eax,(%esi,%ebx,1)
401655:	8d 4e 04             	lea    0x4(%esi),%ecx
401658:	8d 45 0c             	lea    0xc(%ebp),%eax
40165b:	03 cb                	add    %ebx,%ecx
40165d:	50                   	push   %eax
40165e:	e8 01 1c 00 00       	call   0x403264
401663:	8d 45 10             	lea    0x10(%ebp),%eax
401666:	8d 4e 08             	lea    0x8(%esi),%ecx
401669:	50                   	push   %eax
40166a:	03 cb                	add    %ebx,%ecx
40166c:	e8 f3 1b 00 00       	call   0x403264
401671:	ff 47 08             	incl   0x8(%edi)
401674:	8d 4d 08             	lea    0x8(%ebp),%ecx
401677:	e8 3a fd ff ff       	call   0x4013b6
40167c:	5f                   	pop    %edi
40167d:	5e                   	pop    %esi
40167e:	5b                   	pop    %ebx
40167f:	c9                   	leave
401680:	c2 0c 00             	ret    $0xc
401683:	53                   	push   %ebx
401684:	56                   	push   %esi
401685:	57                   	push   %edi
401686:	8b f9                	mov    %ecx,%edi
401688:	33 db                	xor    %ebx,%ebx
40168a:	6a 0c                	push   $0xc
40168c:	59                   	pop    %ecx
40168d:	8b 77 04             	mov    0x4(%edi),%esi
401690:	8b c6                	mov    %esi,%eax
401692:	f7 e1                	mul    %ecx
401694:	0f 90 c3             	seto   %bl
401697:	33 c9                	xor    %ecx,%ecx
401699:	f7 db                	neg    %ebx
40169b:	0b d8                	or     %eax,%ebx
40169d:	83 c3 04             	add    $0x4,%ebx
4016a0:	0f 92 c1             	setb   %cl
4016a3:	f7 d9                	neg    %ecx
4016a5:	0b cb                	or     %ebx,%ecx
4016a7:	e8 2f 44 00 00       	call   0x405adb
4016ac:	85 c0                	test   %eax,%eax
4016ae:	74 1d                	je     0x4016cd
4016b0:	89 30                	mov    %esi,(%eax)
4016b2:	8d 48 04             	lea    0x4(%eax),%ecx
4016b5:	85 f6                	test   %esi,%esi
4016b7:	74 16                	je     0x4016cf
4016b9:	8d 41 08             	lea    0x8(%ecx),%eax
4016bc:	83 60 fc 00          	andl   $0x0,-0x4(%eax)
4016c0:	83 20 00             	andl   $0x0,(%eax)
4016c3:	8d 40 0c             	lea    0xc(%eax),%eax
4016c6:	83 ee 01             	sub    $0x1,%esi
4016c9:	75 f1                	jne    0x4016bc
4016cb:	eb 02                	jmp    0x4016cf
4016cd:	33 c9                	xor    %ecx,%ecx
4016cf:	89 0f                	mov    %ecx,(%edi)
4016d1:	5f                   	pop    %edi
4016d2:	5e                   	pop    %esi
4016d3:	5b                   	pop    %ebx
4016d4:	c3                   	ret
4016d5:	55                   	push   %ebp
4016d6:	8b ec                	mov    %esp,%ebp
4016d8:	56                   	push   %esi
4016d9:	8b 75 0c             	mov    0xc(%ebp),%esi
4016dc:	57                   	push   %edi
4016dd:	8b f9                	mov    %ecx,%edi
4016df:	3b 77 08             	cmp    0x8(%edi),%esi
4016e2:	0f 92 c1             	setb   %cl
4016e5:	e8 41 41 00 00       	call   0x40582b
4016ea:	6b f6 0c             	imul   $0xc,%esi,%esi
4016ed:	03 37                	add    (%edi),%esi
4016ef:	8b 7d 08             	mov    0x8(%ebp),%edi
4016f2:	8b 06                	mov    (%esi),%eax
4016f4:	8d 4e 04             	lea    0x4(%esi),%ecx
4016f7:	51                   	push   %ecx
4016f8:	8d 4f 04             	lea    0x4(%edi),%ecx
4016fb:	89 07                	mov    %eax,(%edi)
4016fd:	e8 58 1d 00 00       	call   0x40345a
401702:	8d 4e 08             	lea    0x8(%esi),%ecx
401705:	51                   	push   %ecx
401706:	8d 4f 08             	lea    0x8(%edi),%ecx
401709:	e8 4c 1d 00 00       	call   0x40345a
40170e:	8b c7                	mov    %edi,%eax
401710:	5f                   	pop    %edi
401711:	5e                   	pop    %esi
401712:	5d                   	pop    %ebp
401713:	c2 08 00             	ret    $0x8
401716:	55                   	push   %ebp
401717:	8b ec                	mov    %esp,%ebp
401719:	83 ec 10             	sub    $0x10,%esp
40171c:	53                   	push   %ebx
40171d:	56                   	push   %esi
40171e:	57                   	push   %edi
40171f:	8b f9                	mov    %ecx,%edi
401721:	8b 77 08             	mov    0x8(%edi),%esi
401724:	3b 77 04             	cmp    0x4(%edi),%esi
401727:	0f 82 b1 00 00 00    	jb     0x4017de
40172d:	46                   	inc    %esi
40172e:	33 db                	xor    %ebx,%ebx
401730:	0f af 77 0c          	imul   0xc(%edi),%esi
401734:	6a 18                	push   $0x18
401736:	59                   	pop    %ecx
401737:	8b c6                	mov    %esi,%eax
401739:	89 75 f0             	mov    %esi,-0x10(%ebp)
40173c:	f7 e1                	mul    %ecx
40173e:	0f 90 c3             	seto   %bl
401741:	33 c9                	xor    %ecx,%ecx
401743:	f7 db                	neg    %ebx
401745:	0b d8                	or     %eax,%ebx
401747:	83 c3 04             	add    $0x4,%ebx
40174a:	0f 92 c1             	setb   %cl
40174d:	f7 d9                	neg    %ecx
40174f:	0b cb                	or     %ebx,%ecx
401751:	e8 85 43 00 00       	call   0x405adb
401756:	85 c0                	test   %eax,%eax
401758:	74 1e                	je     0x401778
40175a:	8d 58 04             	lea    0x4(%eax),%ebx
40175d:	89 30                	mov    %esi,(%eax)
40175f:	33 c0                	xor    %eax,%eax
401761:	89 5d f8             	mov    %ebx,-0x8(%ebp)
401764:	8b ce                	mov    %esi,%ecx
401766:	8b d3                	mov    %ebx,%edx
401768:	85 f6                	test   %esi,%esi
40176a:	74 13                	je     0x40177f
40176c:	89 02                	mov    %eax,(%edx)
40176e:	8d 52 18             	lea    0x18(%edx),%edx
401771:	83 e9 01             	sub    $0x1,%ecx
401774:	75 f6                	jne    0x40176c
401776:	eb 07                	jmp    0x40177f
401778:	33 c0                	xor    %eax,%eax
40177a:	8b d8                	mov    %eax,%ebx
40177c:	89 45 f8             	mov    %eax,-0x8(%ebp)
40177f:	39 47 08             	cmp    %eax,0x8(%edi)
401782:	76 47                	jbe    0x4017cb
401784:	6a f0                	push   $0xfffffff0
401786:	58                   	pop    %eax
401787:	8d 4b 10             	lea    0x10(%ebx),%ecx
40178a:	2b c3                	sub    %ebx,%eax
40178c:	89 4d fc             	mov    %ecx,-0x4(%ebp)
40178f:	33 db                	xor    %ebx,%ebx
401791:	89 45 f4             	mov    %eax,-0xc(%ebp)
401794:	8d 34 08             	lea    (%eax,%ecx,1),%esi
401797:	83 c1 f0             	add    $0xfffffff0,%ecx
40179a:	03 37                	add    (%edi),%esi
40179c:	56                   	push   %esi
40179d:	e8 c2 1a 00 00       	call   0x403264
4017a2:	8b 4d fc             	mov    -0x4(%ebp),%ecx
4017a5:	43                   	inc    %ebx
4017a6:	8b 46 08             	mov    0x8(%esi),%eax
4017a9:	89 41 f8             	mov    %eax,-0x8(%ecx)
4017ac:	8b 46 0c             	mov    0xc(%esi),%eax
4017af:	89 41 fc             	mov    %eax,-0x4(%ecx)
4017b2:	8b 46 10             	mov    0x10(%esi),%eax
4017b5:	89 01                	mov    %eax,(%ecx)
4017b7:	83 c1 18             	add    $0x18,%ecx
4017ba:	8b 45 f4             	mov    -0xc(%ebp),%eax
4017bd:	89 4d fc             	mov    %ecx,-0x4(%ebp)
4017c0:	3b 5f 08             	cmp    0x8(%edi),%ebx
4017c3:	72 cf                	jb     0x401794
4017c5:	8b 5d f8             	mov    -0x8(%ebp),%ebx
4017c8:	8b 75 f0             	mov    -0x10(%ebp),%esi
4017cb:	8b 0f                	mov    (%edi),%ecx
4017cd:	85 c9                	test   %ecx,%ecx
4017cf:	74 06                	je     0x4017d7
4017d1:	51                   	push   %ecx
4017d2:	e8 9e 02 00 00       	call   0x401a75
4017d7:	89 1f                	mov    %ebx,(%edi)
4017d9:	89 77 04             	mov    %esi,0x4(%edi)
4017dc:	eb 02                	jmp    0x4017e0
4017de:	8b 1f                	mov    (%edi),%ebx
4017e0:	6b 77 08 18          	imul   $0x18,0x8(%edi),%esi
4017e4:	8d 45 08             	lea    0x8(%ebp),%eax
4017e7:	50                   	push   %eax
4017e8:	03 f3                	add    %ebx,%esi
4017ea:	8b ce                	mov    %esi,%ecx
4017ec:	e8 73 1a 00 00       	call   0x403264
4017f1:	8b 45 10             	mov    0x10(%ebp),%eax
4017f4:	89 46 08             	mov    %eax,0x8(%esi)
4017f7:	8b 45 14             	mov    0x14(%ebp),%eax
4017fa:	89 46 0c             	mov    %eax,0xc(%esi)
4017fd:	8b 45 18             	mov    0x18(%ebp),%eax
401800:	89 46 10             	mov    %eax,0x10(%esi)
401803:	8b 4d 08             	mov    0x8(%ebp),%ecx
401806:	ff 47 08             	incl   0x8(%edi)
401809:	e8 1f 42 00 00       	call   0x405a2d
40180e:	5f                   	pop    %edi
40180f:	5e                   	pop    %esi
401810:	5b                   	pop    %ebx
401811:	c9                   	leave
401812:	c2 18 00             	ret    $0x18
401815:	53                   	push   %ebx
401816:	56                   	push   %esi
401817:	57                   	push   %edi
401818:	8b f9                	mov    %ecx,%edi
40181a:	33 db                	xor    %ebx,%ebx
40181c:	6a 18                	push   $0x18
40181e:	59                   	pop    %ecx
40181f:	8b 77 04             	mov    0x4(%edi),%esi
401822:	8b c6                	mov    %esi,%eax
401824:	f7 e1                	mul    %ecx
401826:	0f 90 c3             	seto   %bl
401829:	33 c9                	xor    %ecx,%ecx
40182b:	f7 db                	neg    %ebx
40182d:	0b d8                	or     %eax,%ebx
40182f:	83 c3 04             	add    $0x4,%ebx
401832:	0f 92 c1             	setb   %cl
401835:	f7 d9                	neg    %ecx
401837:	0b cb                	or     %ebx,%ecx
401839:	e8 9d 42 00 00       	call   0x405adb
40183e:	85 c0                	test   %eax,%eax
401840:	74 18                	je     0x40185a
401842:	89 30                	mov    %esi,(%eax)
401844:	83 c0 04             	add    $0x4,%eax
401847:	8b c8                	mov    %eax,%ecx
401849:	85 f6                	test   %esi,%esi
40184b:	74 0f                	je     0x40185c
40184d:	83 21 00             	andl   $0x0,(%ecx)
401850:	8d 49 18             	lea    0x18(%ecx),%ecx
401853:	83 ee 01             	sub    $0x1,%esi
401856:	75 f5                	jne    0x40184d
401858:	eb 02                	jmp    0x40185c
40185a:	33 c0                	xor    %eax,%eax
40185c:	89 07                	mov    %eax,(%edi)
40185e:	5f                   	pop    %edi
40185f:	5e                   	pop    %esi
401860:	5b                   	pop    %ebx
401861:	c3                   	ret
401862:	55                   	push   %ebp
401863:	8b ec                	mov    %esp,%ebp
401865:	53                   	push   %ebx
401866:	56                   	push   %esi
401867:	8b 75 0c             	mov    0xc(%ebp),%esi
40186a:	57                   	push   %edi
40186b:	8b f9                	mov    %ecx,%edi
40186d:	3b 77 08             	cmp    0x8(%edi),%esi
401870:	0f 92 c1             	setb   %cl
401873:	e8 b3 3f 00 00       	call   0x40582b