40d736:	e8 46 f9 ff ff       	call   0x40d081
40d73b:	83 c8 ff             	or     $0xffffffff,%eax
40d73e:	5d                   	pop    %ebp
40d73f:	c3                   	ret
40d740:	56                   	push   %esi
40d741:	8b 75 0c             	mov    0xc(%ebp),%esi
40d744:	85 f6                	test   %esi,%esi
40d746:	75 15                	jne    0x40d75d
40d748:	e8 ae 16 00 00       	call   0x40edfb
40d74d:	c7 00 16 00 00 00    	movl   $0x16,(%eax)
40d753:	e8 29 f9 ff ff       	call   0x40d081
40d758:	83 c8 ff             	or     $0xffffffff,%eax
40d75b:	eb 1b                	jmp    0x40d778
40d75d:	ff 75 08             	push   0x8(%ebp)
40d760:	e8 4a 98 00 00       	call   0x416faf
40d765:	59                   	pop    %ecx
40d766:	8b c8                	mov    %eax,%ecx
40d768:	89 06                	mov    %eax,(%esi)
40d76a:	23 ca                	and    %edx,%ecx
40d76c:	89 56 04             	mov    %edx,0x4(%esi)
40d76f:	83 c8 ff             	or     $0xffffffff,%eax
40d772:	3b c8                	cmp    %eax,%ecx
40d774:	74 02                	je     0x40d778
40d776:	33 c0                	xor    %eax,%eax
40d778:	5e                   	pop    %esi
40d779:	5d                   	pop    %ebp
40d77a:	c3                   	ret
40d77b:	8b ff                	mov    %edi,%edi
40d77d:	55                   	push   %ebp
40d77e:	8b ec                	mov    %esp,%ebp
40d780:	8b 55 0c             	mov    0xc(%ebp),%edx
40d783:	83 6a 08 01          	subl   $0x1,0x8(%edx)
40d787:	79 0d                	jns    0x40d796
40d789:	52                   	push   %edx
40d78a:	ff 75 08             	push   0x8(%ebp)
40d78d:	e8 74 9a 00 00       	call   0x417206
40d792:	59                   	pop    %ecx
40d793:	59                   	pop    %ecx
40d794:	5d                   	pop    %ebp
40d795:	c3                   	ret
40d796:	8b 02                	mov    (%edx),%eax
40d798:	8a 4d 08             	mov    0x8(%ebp),%cl
40d79b:	88 08                	mov    %cl,(%eax)
40d79d:	ff 02                	incl   (%edx)
40d79f:	0f b6 c1             	movzbl %cl,%eax
40d7a2:	5d                   	pop    %ebp
40d7a3:	c3                   	ret
40d7a4:	6a 0c                	push   $0xc
40d7a6:	68 58 15 43 00       	push   $0x431558
40d7ab:	e8 10 a8 ff ff       	call   0x407fc0
40d7b0:	8b 75 0c             	mov    0xc(%ebp),%esi
40d7b3:	85 f6                	test   %esi,%esi
40d7b5:	75 18                	jne    0x40d7cf
40d7b7:	e8 3f 16 00 00       	call   0x40edfb
40d7bc:	c7 00 16 00 00 00    	movl   $0x16,(%eax)
40d7c2:	e8 ba f8 ff ff       	call   0x40d081
40d7c7:	83 c8 ff             	or     $0xffffffff,%eax
40d7ca:	e9 c1 00 00 00       	jmp    0x40d890
40d7cf:	83 65 e4 00          	andl   $0x0,-0x1c(%ebp)
40d7d3:	56                   	push   %esi
40d7d4:	e8 ad df ff ff       	call   0x40b786
40d7d9:	59                   	pop    %ecx
40d7da:	83 65 fc 00          	andl   $0x0,-0x4(%ebp)
40d7de:	8b 46 0c             	mov    0xc(%esi),%eax
40d7e1:	90                   	nop
40d7e2:	c1 e8 0c             	shr    $0xc,%eax
40d7e5:	a8 01                	test   $0x1,%al
40d7e7:	0f 85 85 00 00 00    	jne    0x40d872
40d7ed:	56                   	push   %esi
40d7ee:	e8 9b 77 00 00       	call   0x414f8e
40d7f3:	59                   	pop    %ecx
40d7f4:	83 f8 ff             	cmp    $0xffffffff,%eax
40d7f7:	74 20                	je     0x40d819
40d7f9:	83 f8 fe             	cmp    $0xfffffffe,%eax
40d7fc:	74 1b                	je     0x40d819
40d7fe:	8b d0                	mov    %eax,%edx
40d800:	c1 fa 06             	sar    $0x6,%edx
40d803:	8b f8                	mov    %eax,%edi
40d805:	83 e7 3f             	and    $0x3f,%edi
40d808:	6b df 38             	imul   $0x38,%edi,%ebx
40d80b:	03 1c 95 c0 4a 43 00 	add    0x434ac0(,%edx,4),%ebx
40d812:	b9 90 31 43 00       	mov    $0x433190,%ecx
40d817:	eb 11                	jmp    0x40d82a
40d819:	b9 90 31 43 00       	mov    $0x433190,%ecx
40d81e:	8b d9                	mov    %ecx,%ebx
40d820:	8b d0                	mov    %eax,%edx
40d822:	c1 fa 06             	sar    $0x6,%edx
40d825:	8b f8                	mov    %eax,%edi
40d827:	83 e7 3f             	and    $0x3f,%edi
40d82a:	80 7b 29 00          	cmpb   $0x0,0x29(%ebx)
40d82e:	75 1a                	jne    0x40d84a
40d830:	83 f8 ff             	cmp    $0xffffffff,%eax
40d833:	74 0f                	je     0x40d844
40d835:	83 f8 fe             	cmp    $0xfffffffe,%eax
40d838:	74 0a                	je     0x40d844
40d83a:	6b cf 38             	imul   $0x38,%edi,%ecx
40d83d:	03 0c 95 c0 4a 43 00 	add    0x434ac0(,%edx,4),%ecx
40d844:	f6 41 2d 01          	testb  $0x1,0x2d(%ecx)
40d848:	74 28                	je     0x40d872
40d84a:	e8 ac 15 00 00       	call   0x40edfb
40d84f:	c7 00 16 00 00 00    	movl   $0x16,(%eax)
40d855:	e8 27 f8 ff ff       	call   0x40d081
40d85a:	6a fe                	push   $0xfffffffe
40d85c:	8d 4d f0             	lea    -0x10(%ebp),%ecx
40d85f:	51                   	push   %ecx
40d860:	68 14 30 43 00       	push   $0x433014
40d865:	e8 06 d8 ff ff       	call   0x40b070
40d86a:	83 c4 0c             	add    $0xc,%esp
40d86d:	e9 55 ff ff ff       	jmp    0x40d7c7
40d872:	56                   	push   %esi
40d873:	ff 75 08             	push   0x8(%ebp)
40d876:	e8 00 ff ff ff       	call   0x40d77b
40d87b:	59                   	pop    %ecx
40d87c:	59                   	pop    %ecx
40d87d:	8b f8                	mov    %eax,%edi
40d87f:	89 7d e4             	mov    %edi,-0x1c(%ebp)
40d882:	c7 45 fc fe ff ff ff 	movl   $0xfffffffe,-0x4(%ebp)
40d889:	e8 18 00 00 00       	call   0x40d8a6
40d88e:	8b c7                	mov    %edi,%eax
40d890:	8b 4d f0             	mov    -0x10(%ebp),%ecx
40d893:	64 89 0d 00 00 00 00 	mov    %ecx,%fs:0x0
40d89a:	59                   	pop    %ecx
40d89b:	5f                   	pop    %edi
40d89c:	5e                   	pop    %esi
40d89d:	5b                   	pop    %ebx
40d89e:	c9                   	leave
40d89f:	c3                   	ret
40d8a0:	8b 75 0c             	mov    0xc(%ebp),%esi
40d8a3:	8b 7d e4             	mov    -0x1c(%ebp),%edi
40d8a6:	56                   	push   %esi
40d8a7:	e8 ee de ff ff       	call   0x40b79a
40d8ac:	59                   	pop    %ecx
40d8ad:	c3                   	ret
40d8ae:	8b ff                	mov    %edi,%edi
40d8b0:	55                   	push   %ebp
40d8b1:	8b ec                	mov    %esp,%ebp
40d8b3:	83 ec 14             	sub    $0x14,%esp
40d8b6:	83 7d 10 00          	cmpl   $0x0,0x10(%ebp)
40d8ba:	53                   	push   %ebx
40d8bb:	56                   	push   %esi
40d8bc:	57                   	push   %edi
40d8bd:	74 1c                	je     0x40d8db
40d8bf:	83 7d 14 00          	cmpl   $0x0,0x14(%ebp)
40d8c3:	74 16                	je     0x40d8db
40d8c5:	83 7d 08 00          	cmpl   $0x0,0x8(%ebp)
40d8c9:	75 17                	jne    0x40d8e2
40d8cb:	e8 2b 15 00 00       	call   0x40edfb
40d8d0:	c7 00 16 00 00 00    	movl   $0x16,(%eax)
40d8d6:	e8 a6 f7 ff ff       	call   0x40d081
40d8db:	33 c0                	xor    %eax,%eax
40d8dd:	5f                   	pop    %edi
40d8de:	5e                   	pop    %esi
40d8df:	5b                   	pop    %ebx
40d8e0:	c9                   	leave
40d8e1:	c3                   	ret
40d8e2:	8b 7d 18             	mov    0x18(%ebp),%edi
40d8e5:	8b 75 0c             	mov    0xc(%ebp),%esi
40d8e8:	85 ff                	test   %edi,%edi
40d8ea:	74 0d                	je     0x40d8f9
40d8ec:	83 c8 ff             	or     $0xffffffff,%eax
40d8ef:	33 d2                	xor    %edx,%edx
40d8f1:	f7 75 10             	divl   0x10(%ebp)
40d8f4:	39 45 14             	cmp    %eax,0x14(%ebp)
40d8f7:	76 24                	jbe    0x40d91d
40d8f9:	83 fe ff             	cmp    $0xffffffff,%esi
40d8fc:	74 0e                	je     0x40d90c
40d8fe:	56                   	push   %esi
40d8ff:	6a 00                	push   $0x0
40d901:	ff 75 08             	push   0x8(%ebp)
40d904:	e8 e7 b5 ff ff       	call   0x408ef0
40d909:	83 c4 0c             	add    $0xc,%esp
40d90c:	85 ff                	test   %edi,%edi
40d90e:	74 bb                	je     0x40d8cb
40d910:	83 c8 ff             	or     $0xffffffff,%eax
40d913:	33 d2                	xor    %edx,%edx
40d915:	f7 75 10             	divl   0x10(%ebp)
40d918:	39 45 14             	cmp    %eax,0x14(%ebp)
40d91b:	77 ae                	ja     0x40d8cb
40d91d:	8b d7                	mov    %edi,%edx
40d91f:	8d 42 0c             	lea    0xc(%edx),%eax
40d922:	89 45 ec             	mov    %eax,-0x14(%ebp)
40d925:	8b 00                	mov    (%eax),%eax
40d927:	90                   	nop
40d928:	a9 c0 04 00 00       	test   $0x4c0,%eax
40d92d:	74 08                	je     0x40d937
40d92f:	8b 42 18             	mov    0x18(%edx),%eax
40d932:	89 45 f0             	mov    %eax,-0x10(%ebp)
40d935:	eb 07                	jmp    0x40d93e
40d937:	c7 45 f0 00 10 00 00 	movl   $0x1000,-0x10(%ebp)
40d93e:	8b 7d 10             	mov    0x10(%ebp),%edi
40d941:	8b de                	mov    %esi,%ebx
40d943:	0f af 7d 14          	imul   0x14(%ebp),%edi
40d947:	8b 45 08             	mov    0x8(%ebp),%eax
40d94a:	89 45 f4             	mov    %eax,-0xc(%ebp)
40d94d:	89 5d f8             	mov    %ebx,-0x8(%ebp)
40d950:	8b cf                	mov    %edi,%ecx
40d952:	89 4d fc             	mov    %ecx,-0x4(%ebp)
40d955:	85 ff                	test   %edi,%edi
40d957:	0f 84 2f 01 00 00    	je     0x40da8c
40d95d:	8b 42 0c             	mov    0xc(%edx),%eax
40d960:	90                   	nop
40d961:	a9 c0 04 00 00       	test   $0x4c0,%eax
40d966:	74 46                	je     0x40d9ae
40d968:	8b 5a 08             	mov    0x8(%edx),%ebx
40d96b:	85 db                	test   %ebx,%ebx
40d96d:	74 3c                	je     0x40d9ab
40d96f:	0f 88 f2 00 00 00    	js     0x40da67
40d975:	3b cb                	cmp    %ebx,%ecx
40d977:	73 02                	jae    0x40d97b
40d979:	8b d9                	mov    %ecx,%ebx
40d97b:	8b 45 f8             	mov    -0x8(%ebp),%eax
40d97e:	3b d8                	cmp    %eax,%ebx
40d980:	0f 87 be 00 00 00    	ja     0x40da44
40d986:	8b 4d f4             	mov    -0xc(%ebp),%ecx
40d989:	53                   	push   %ebx
40d98a:	ff 32                	push   (%edx)
40d98c:	50                   	push   %eax
40d98d:	51                   	push   %ecx
40d98e:	e8 bb 01 00 00       	call   0x40db4e
40d993:	8b 55 18             	mov    0x18(%ebp),%edx
40d996:	83 c4 10             	add    $0x10,%esp
40d999:	8b 4d fc             	mov    -0x4(%ebp),%ecx
40d99c:	2b cb                	sub    %ebx,%ecx
40d99e:	29 5a 08             	sub    %ebx,0x8(%edx)
40d9a1:	01 1a                	add    %ebx,(%edx)
40d9a3:	29 5d f8             	sub    %ebx,-0x8(%ebp)
40d9a6:	e9 87 00 00 00       	jmp    0x40da32
40d9ab:	8b 5d f8             	mov    -0x8(%ebp),%ebx
40d9ae:	8b 45 f0             	mov    -0x10(%ebp),%eax
40d9b1:	3b c8                	cmp    %eax,%ecx
40d9b3:	72 54                	jb     0x40da09
40d9b5:	81 f9 ff ff ff 7f    	cmp    $0x7fffffff,%ecx
40d9bb:	76 05                	jbe    0x40d9c2
40d9bd:	b9 ff ff ff 7f       	mov    $0x7fffffff,%ecx
40d9c2:	85 c0                	test   %eax,%eax
40d9c4:	74 0c                	je     0x40d9d2
40d9c6:	33 d2                	xor    %edx,%edx
40d9c8:	8b c1                	mov    %ecx,%eax
40d9ca:	f7 75 f0             	divl   -0x10(%ebp)
40d9cd:	2b ca                	sub    %edx,%ecx
40d9cf:	8b 55 18             	mov    0x18(%ebp),%edx
40d9d2:	3b cb                	cmp    %ebx,%ecx
40d9d4:	77 6e                	ja     0x40da44
40d9d6:	8b 42 04             	mov    0x4(%edx),%eax
40d9d9:	83 62 08 00          	andl   $0x0,0x8(%edx)
40d9dd:	51                   	push   %ecx
40d9de:	8b 4d f4             	mov    -0xc(%ebp),%ecx
40d9e1:	51                   	push   %ecx
40d9e2:	52                   	push   %edx
40d9e3:	89 02                	mov    %eax,(%edx)
40d9e5:	e8 a4 75 00 00       	call   0x414f8e
40d9ea:	59                   	pop    %ecx
40d9eb:	50                   	push   %eax
40d9ec:	e8 09 9e 00 00       	call   0x4177fa
40d9f1:	8b d8                	mov    %eax,%ebx
40d9f3:	83 c4 0c             	add    $0xc,%esp
40d9f6:	85 db                	test   %ebx,%ebx
40d9f8:	74 7a                	je     0x40da74
40d9fa:	8b 4d fc             	mov    -0x4(%ebp),%ecx
40d9fd:	78 68                	js     0x40da67
40d9ff:	8b 55 18             	mov    0x18(%ebp),%edx
40da02:	2b cb                	sub    %ebx,%ecx
40da04:	29 5d f8             	sub    %ebx,-0x8(%ebp)
40da07:	eb 29                	jmp    0x40da32
40da09:	52                   	push   %edx
40da0a:	e8 c4 8f 00 00       	call   0x4169d3
40da0f:	59                   	pop    %ecx
40da10:	83 f8 ff             	cmp    $0xffffffff,%eax
40da13:	74 68                	je     0x40da7d
40da15:	85 db                	test   %ebx,%ebx
40da17:	74 2b                	je     0x40da44
40da19:	8b 4d f4             	mov    -0xc(%ebp),%ecx
40da1c:	8b 55 18             	mov    0x18(%ebp),%edx
40da1f:	88 01                	mov    %al,(%ecx)
40da21:	8b 4d fc             	mov    -0x4(%ebp),%ecx
40da24:	8b 42 18             	mov    0x18(%edx),%eax
40da27:	49                   	dec    %ecx
40da28:	4b                   	dec    %ebx
40da29:	89 45 f0             	mov    %eax,-0x10(%ebp)
40da2c:	89 5d f8             	mov    %ebx,-0x8(%ebp)
40da2f:	33 db                	xor    %ebx,%ebx
40da31:	43                   	inc    %ebx
40da32:	01 5d f4             	add    %ebx,-0xc(%ebp)
40da35:	89 4d fc             	mov    %ecx,-0x4(%ebp)
40da38:	85 c9                	test   %ecx,%ecx
40da3a:	74 50                	je     0x40da8c
40da3c:	8b 5d f8             	mov    -0x8(%ebp),%ebx
40da3f:	e9 19 ff ff ff       	jmp    0x40d95d
40da44:	83 fe ff             	cmp    $0xffffffff,%esi
40da47:	74 0e                	je     0x40da57
40da49:	56                   	push   %esi
40da4a:	6a 00                	push   $0x0
40da4c:	ff 75 08             	push   0x8(%ebp)
40da4f:	e8 9c b4 ff ff       	call   0x408ef0
40da54:	83 c4 0c             	add    $0xc,%esp
40da57:	e8 9f 13 00 00       	call   0x40edfb
40da5c:	c7 00 22 00 00 00    	movl   $0x22,(%eax)
40da62:	e9 6f fe ff ff       	jmp    0x40d8d6
40da67:	8b 45 ec             	mov    -0x14(%ebp),%eax
40da6a:	6a 10                	push   $0x10
40da6c:	5a                   	pop    %edx
40da6d:	f0 09 10             	lock or %edx,(%eax)
40da70:	2b f9                	sub    %ecx,%edi
40da72:	eb 0c                	jmp    0x40da80
40da74:	8b 45 ec             	mov    -0x14(%ebp),%eax
40da77:	6a 08                	push   $0x8
40da79:	59                   	pop    %ecx
40da7a:	f0 09 08             	lock or %ecx,(%eax)
40da7d:	2b 7d fc             	sub    -0x4(%ebp),%edi
40da80:	8b c7                	mov    %edi,%eax
40da82:	33 d2                	xor    %edx,%edx
40da84:	f7 75 10             	divl   0x10(%ebp)
40da87:	e9 51 fe ff ff       	jmp    0x40d8dd
40da8c:	8b 45 14             	mov    0x14(%ebp),%eax
40da8f:	e9 49 fe ff ff       	jmp    0x40d8dd
40da94:	8b ff                	mov    %edi,%edi
40da96:	55                   	push   %ebp
40da97:	8b ec                	mov    %esp,%ebp
40da99:	ff 75 14             	push   0x14(%ebp)
40da9c:	ff 75 10             	push   0x10(%ebp)
40da9f:	ff 75 0c             	push   0xc(%ebp)
40daa2:	6a ff                	push   $0xffffffff
40daa4:	ff 75 08             	push   0x8(%ebp)
40daa7:	e8 05 00 00 00       	call   0x40dab1
40daac:	83 c4 14             	add    $0x14,%esp
40daaf:	5d                   	pop    %ebp
40dab0:	c3                   	ret
40dab1:	6a 0c                	push   $0xc
40dab3:	68 78 15 43 00       	push   $0x431578
40dab8:	e8 03 a5 ff ff       	call   0x407fc0
40dabd:	83 7d 10 00          	cmpl   $0x0,0x10(%ebp)
40dac1:	74 32                	je     0x40daf5
40dac3:	83 7d 14 00          	cmpl   $0x0,0x14(%ebp)
40dac7:	74 2c                	je     0x40daf5
40dac9:	8b 75 18             	mov    0x18(%ebp),%esi
40dacc:	85 f6                	test   %esi,%esi
40dace:	75 37                	jne    0x40db07
40dad0:	83 7d 0c ff          	cmpl   $0xffffffff,0xc(%ebp)
40dad4:	74 0f                	je     0x40dae5
40dad6:	ff 75 0c             	push   0xc(%ebp)
40dad9:	56                   	push   %esi
40dada:	ff 75 08             	push   0x8(%ebp)
40dadd:	e8 0e b4 ff ff       	call   0x408ef0
40dae2:	83 c4 0c             	add    $0xc,%esp
40dae5:	e8 11 13 00 00       	call   0x40edfb
40daea:	c7 00 16 00 00 00    	movl   $0x16,(%eax)
40daf0:	e8 8c f5 ff ff       	call   0x40d081
40daf5:	33 c0                	xor    %eax,%eax
40daf7:	8b 4d f0             	mov    -0x10(%ebp),%ecx
40dafa:	64 89 0d 00 00 00 00 	mov    %ecx,%fs:0x0