40e7ea:	83 c9 02             	or     $0x2,%ecx
40e7ed:	89 0e                	mov    %ecx,(%esi)
40e7ef:	8b 45 fc             	mov    -0x4(%ebp),%eax
40e7f2:	f0 0f b1 0f          	lock cmpxchg %ecx,(%edi)
40e7f6:	3b 45 fc             	cmp    -0x4(%ebp),%eax
40e7f9:	75 bd                	jne    0x40e7b8
40e7fb:	85 db                	test   %ebx,%ebx
40e7fd:	75 52                	jne    0x40e851
40e7ff:	38 1d 84 48 42 00    	cmp    %bl,0x424884
40e805:	74 4a                	je     0x40e851
40e807:	bb 88 48 42 00       	mov    $0x424888,%ebx
40e80c:	53                   	push   %ebx
40e80d:	ff 15 60 61 42 00    	call   *0x426160
40e813:	8b 4d f4             	mov    -0xc(%ebp),%ecx
40e816:	a1 94 48 42 00       	mov    0x424894,%eax
40e81b:	85 c9                	test   %ecx,%ecx
40e81d:	74 22                	je     0x40e841
40e81f:	3b c8                	cmp    %eax,%ecx
40e821:	75 1e                	jne    0x40e841
40e823:	6a 08                	push   $0x8
40e825:	8d 45 ec             	lea    -0x14(%ebp),%eax
40e828:	c7 45 ec 01 00 00 00 	movl   $0x1,-0x14(%ebp)
40e82f:	50                   	push   %eax
40e830:	b9 b0 48 42 00       	mov    $0x4248b0,%ecx
40e835:	89 7d f0             	mov    %edi,-0x10(%ebp)
40e838:	e8 3c 9b ff ff       	call   0x408379
40e83d:	84 c0                	test   %al,%al
40e83f:	75 06                	jne    0x40e847
40e841:	6a fd                	push   $0xfffffffd
40e843:	58                   	pop    %eax
40e844:	f0 21 07             	lock and %eax,(%edi)
40e847:	53                   	push   %ebx
40e848:	ff 15 6c 61 42 00    	call   *0x42616c
40e84e:	8b 55 e4             	mov    -0x1c(%ebp),%edx
40e851:	f6 06 01             	testb  $0x1,(%esi)
40e854:	5b                   	pop    %ebx
40e855:	75 0c                	jne    0x40e863
40e857:	8b 0e                	mov    (%esi),%ecx
40e859:	33 ca                	xor    %edx,%ecx
40e85b:	81 e1 18 01 00 00    	and    $0x118,%ecx
40e861:	31 0e                	xor    %ecx,(%esi)
40e863:	5f                   	pop    %edi
40e864:	8b c6                	mov    %esi,%eax
40e866:	5e                   	pop    %esi
40e867:	c9                   	leave
40e868:	c2 04 00             	ret    $0x4
40e86b:	8b ff                	mov    %edi,%edi
40e86d:	51                   	push   %ecx
40e86e:	51                   	push   %ecx
40e86f:	6a 01                	push   $0x1
40e871:	e8 05 00 00 00       	call   0x40e87b
40e876:	b0 01                	mov    $0x1,%al
40e878:	c2 04 00             	ret    $0x4
40e87b:	8b ff                	mov    %edi,%edi
40e87d:	55                   	push   %ebp
40e87e:	8b ec                	mov    %esp,%ebp
40e880:	83 ec 10             	sub    $0x10,%esp
40e883:	56                   	push   %esi
40e884:	8b f1                	mov    %ecx,%esi
40e886:	8b 16                	mov    (%esi),%edx
40e888:	f6 c2 02             	test   $0x2,%dl
40e88b:	75 0b                	jne    0x40e898
40e88d:	8d 45 f0             	lea    -0x10(%ebp),%eax
40e890:	50                   	push   %eax
40e891:	e8 e9 fe ff ff       	call   0x40e77f
40e896:	8b 10                	mov    (%eax),%edx
40e898:	33 c0                	xor    %eax,%eax
40e89a:	c6 45 fc 03          	movb   $0x3,-0x4(%ebp)
40e89e:	51                   	push   %ecx
40e89f:	89 45 f8             	mov    %eax,-0x8(%ebp)
40e8a2:	0f b6 45 08          	movzbl 0x8(%ebp),%eax
40e8a6:	51                   	push   %ecx
40e8a7:	50                   	push   %eax
40e8a8:	8d 45 f8             	lea    -0x8(%ebp),%eax
40e8ab:	50                   	push   %eax
40e8ac:	8b c2                	mov    %edx,%eax
40e8ae:	8d 4e 08             	lea    0x8(%esi),%ecx
40e8b1:	c1 e8 08             	shr    $0x8,%eax
40e8b4:	c1 ea 07             	shr    $0x7,%edx
40e8b7:	83 e0 01             	and    $0x1,%eax
40e8ba:	83 e2 01             	and    $0x1,%edx
40e8bd:	50                   	push   %eax
40e8be:	52                   	push   %edx
40e8bf:	ba 03 81 22 01       	mov    $0x1228103,%edx
40e8c4:	e8 3d 11 00 00       	call   0x40fa06
40e8c9:	5e                   	pop    %esi
40e8ca:	c9                   	leave
40e8cb:	c2 0c 00             	ret    $0xc
40e8ce:	8b ff                	mov    %edi,%edi
40e8d0:	55                   	push   %ebp
40e8d1:	8b ec                	mov    %esp,%ebp
40e8d3:	83 ec 1c             	sub    $0x1c,%esp
40e8d6:	56                   	push   %esi
40e8d7:	8b 75 08             	mov    0x8(%ebp),%esi
40e8da:	57                   	push   %edi
40e8db:	8b f9                	mov    %ecx,%edi
40e8dd:	8b 07                	mov    (%edi),%eax
40e8df:	89 06                	mov    %eax,(%esi)
40e8e1:	83 e0 03             	and    $0x3,%eax
40e8e4:	3c 03                	cmp    $0x3,%al
40e8e6:	0f 84 c6 00 00 00    	je     0x40e9b2
40e8ec:	53                   	push   %ebx
40e8ed:	e8 aa b8 ff ff       	call   0x40a19c
40e8f2:	89 45 f4             	mov    %eax,-0xc(%ebp)
40e8f5:	8d 45 f8             	lea    -0x8(%ebp),%eax
40e8f8:	50                   	push   %eax
40e8f9:	8d 45 e4             	lea    -0x1c(%ebp),%eax
40e8fc:	50                   	push   %eax
40e8fd:	e8 ef 06 00 00       	call   0x40eff1
40e902:	8b 06                	mov    (%esi),%eax
40e904:	8b 55 e4             	mov    -0x1c(%ebp),%edx
40e907:	83 7d f8 00          	cmpl   $0x0,-0x8(%ebp)
40e90b:	8b d8                	mov    %eax,%ebx
40e90d:	89 5d fc             	mov    %ebx,-0x4(%ebp)
40e910:	8b c8                	mov    %eax,%ecx
40e912:	89 06                	mov    %eax,(%esi)
40e914:	74 13                	je     0x40e929
40e916:	a8 01                	test   $0x1,%al
40e918:	75 0f                	jne    0x40e929
40e91a:	33 ca                	xor    %edx,%ecx
40e91c:	81 e1 18 01 00 00    	and    $0x118,%ecx
40e922:	33 c8                	xor    %eax,%ecx
40e924:	83 c9 01             	or     $0x1,%ecx
40e927:	89 0e                	mov    %ecx,(%esi)
40e929:	83 e3 02             	and    $0x2,%ebx
40e92c:	75 10                	jne    0x40e93e
40e92e:	8b c1                	mov    %ecx,%eax
40e930:	33 c2                	xor    %edx,%eax
40e932:	25 80 00 00 00       	and    $0x80,%eax
40e937:	33 c8                	xor    %eax,%ecx
40e939:	83 c9 02             	or     $0x2,%ecx
40e93c:	89 0e                	mov    %ecx,(%esi)
40e93e:	8b 45 fc             	mov    -0x4(%ebp),%eax
40e941:	f0 0f b1 0f          	lock cmpxchg %ecx,(%edi)
40e945:	3b 45 fc             	cmp    -0x4(%ebp),%eax
40e948:	75 bd                	jne    0x40e907
40e94a:	85 db                	test   %ebx,%ebx
40e94c:	75 52                	jne    0x40e9a0
40e94e:	38 1d 84 48 42 00    	cmp    %bl,0x424884
40e954:	74 4a                	je     0x40e9a0
40e956:	bb 88 48 42 00       	mov    $0x424888,%ebx
40e95b:	53                   	push   %ebx
40e95c:	ff 15 60 61 42 00    	call   *0x426160
40e962:	8b 4d f4             	mov    -0xc(%ebp),%ecx
40e965:	a1 94 48 42 00       	mov    0x424894,%eax
40e96a:	85 c9                	test   %ecx,%ecx
40e96c:	74 22                	je     0x40e990
40e96e:	3b c8                	cmp    %eax,%ecx
40e970:	75 1e                	jne    0x40e990
40e972:	6a 08                	push   $0x8
40e974:	8d 45 ec             	lea    -0x14(%ebp),%eax
40e977:	c7 45 ec 01 00 00 00 	movl   $0x1,-0x14(%ebp)
40e97e:	50                   	push   %eax
40e97f:	b9 b0 48 42 00       	mov    $0x4248b0,%ecx
40e984:	89 7d f0             	mov    %edi,-0x10(%ebp)
40e987:	e8 ed 99 ff ff       	call   0x408379
40e98c:	84 c0                	test   %al,%al
40e98e:	75 06                	jne    0x40e996
40e990:	6a fd                	push   $0xfffffffd
40e992:	58                   	pop    %eax
40e993:	f0 21 07             	lock and %eax,(%edi)
40e996:	53                   	push   %ebx
40e997:	ff 15 6c 61 42 00    	call   *0x42616c
40e99d:	8b 55 e4             	mov    -0x1c(%ebp),%edx
40e9a0:	f6 06 01             	testb  $0x1,(%esi)
40e9a3:	5b                   	pop    %ebx
40e9a4:	75 0c                	jne    0x40e9b2
40e9a6:	8b 0e                	mov    (%esi),%ecx
40e9a8:	33 ca                	xor    %edx,%ecx
40e9aa:	81 e1 18 01 00 00    	and    $0x118,%ecx
40e9b0:	31 0e                	xor    %ecx,(%esi)
40e9b2:	5f                   	pop    %edi
40e9b3:	8b c6                	mov    %esi,%eax
40e9b5:	5e                   	pop    %esi
40e9b6:	c9                   	leave
40e9b7:	c2 04 00             	ret    $0x4
40e9ba:	8b ff                	mov    %edi,%edi
40e9bc:	51                   	push   %ecx
40e9bd:	51                   	push   %ecx
40e9be:	6a 01                	push   $0x1
40e9c0:	e8 05 00 00 00       	call   0x40e9ca
40e9c5:	b0 01                	mov    $0x1,%al
40e9c7:	c2 04 00             	ret    $0x4
40e9ca:	8b ff                	mov    %edi,%edi
40e9cc:	55                   	push   %ebp
40e9cd:	8b ec                	mov    %esp,%ebp
40e9cf:	83 ec 10             	sub    $0x10,%esp
40e9d2:	56                   	push   %esi
40e9d3:	8b f1                	mov    %ecx,%esi
40e9d5:	8b 16                	mov    (%esi),%edx
40e9d7:	f6 c2 02             	test   $0x2,%dl
40e9da:	75 0b                	jne    0x40e9e7
40e9dc:	8d 45 f0             	lea    -0x10(%ebp),%eax
40e9df:	50                   	push   %eax
40e9e0:	e8 e9 fe ff ff       	call   0x40e8ce
40e9e5:	8b 10                	mov    (%eax),%edx
40e9e7:	33 c0                	xor    %eax,%eax
40e9e9:	c6 45 fc 03          	movb   $0x3,-0x4(%ebp)
40e9ed:	51                   	push   %ecx
40e9ee:	89 45 f8             	mov    %eax,-0x8(%ebp)
40e9f1:	0f b6 45 08          	movzbl 0x8(%ebp),%eax
40e9f5:	51                   	push   %ecx
40e9f6:	50                   	push   %eax
40e9f7:	8d 45 f8             	lea    -0x8(%ebp),%eax
40e9fa:	50                   	push   %eax
40e9fb:	8b c2                	mov    %edx,%eax
40e9fd:	8d 4e 08             	lea    0x8(%esi),%ecx
40ea00:	c1 e8 08             	shr    $0x8,%eax
40ea03:	c1 ea 07             	shr    $0x7,%edx
40ea06:	83 e0 01             	and    $0x1,%eax
40ea09:	83 e2 01             	and    $0x1,%edx
40ea0c:	50                   	push   %eax
40ea0d:	52                   	push   %edx
40ea0e:	ba a0 cd 71 00       	mov    $0x71cda0,%edx
40ea13:	e8 ee 0f 00 00       	call   0x40fa06
40ea18:	5e                   	pop    %esi
40ea19:	c9                   	leave
40ea1a:	c2 0c 00             	ret    $0xc
40ea1d:	8b ff                	mov    %edi,%edi
40ea1f:	55                   	push   %ebp
40ea20:	8b ec                	mov    %esp,%ebp
40ea22:	83 ec 1c             	sub    $0x1c,%esp
40ea25:	56                   	push   %esi
40ea26:	8b 75 08             	mov    0x8(%ebp),%esi
40ea29:	57                   	push   %edi
40ea2a:	8b f9                	mov    %ecx,%edi
40ea2c:	8b 07                	mov    (%edi),%eax
40ea2e:	89 06                	mov    %eax,(%esi)
40ea30:	83 e0 03             	and    $0x3,%eax
40ea33:	3c 03                	cmp    $0x3,%al
40ea35:	0f 84 c6 00 00 00    	je     0x40eb01
40ea3b:	53                   	push   %ebx
40ea3c:	e8 5b b7 ff ff       	call   0x40a19c
40ea41:	89 45 f4             	mov    %eax,-0xc(%ebp)
40ea44:	8d 45 f8             	lea    -0x8(%ebp),%eax
40ea47:	50                   	push   %eax
40ea48:	8d 45 e4             	lea    -0x1c(%ebp),%eax
40ea4b:	50                   	push   %eax
40ea4c:	e8 0b 06 00 00       	call   0x40f05c
40ea51:	8b 06                	mov    (%esi),%eax
40ea53:	8b 55 e4             	mov    -0x1c(%ebp),%edx
40ea56:	83 7d f8 00          	cmpl   $0x0,-0x8(%ebp)
40ea5a:	8b d8                	mov    %eax,%ebx
40ea5c:	89 5d fc             	mov    %ebx,-0x4(%ebp)
40ea5f:	8b c8                	mov    %eax,%ecx
40ea61:	89 06                	mov    %eax,(%esi)
40ea63:	74 13                	je     0x40ea78
40ea65:	a8 01                	test   $0x1,%al
40ea67:	75 0f                	jne    0x40ea78
40ea69:	33 ca                	xor    %edx,%ecx
40ea6b:	81 e1 18 01 00 00    	and    $0x118,%ecx
40ea71:	33 c8                	xor    %eax,%ecx
40ea73:	83 c9 01             	or     $0x1,%ecx
40ea76:	89 0e                	mov    %ecx,(%esi)
40ea78:	83 e3 02             	and    $0x2,%ebx
40ea7b:	75 10                	jne    0x40ea8d
40ea7d:	8b c1                	mov    %ecx,%eax
40ea7f:	33 c2                	xor    %edx,%eax
40ea81:	25 80 00 00 00       	and    $0x80,%eax
40ea86:	33 c8                	xor    %eax,%ecx
40ea88:	83 c9 02             	or     $0x2,%ecx
40ea8b:	89 0e                	mov    %ecx,(%esi)
40ea8d:	8b 45 fc             	mov    -0x4(%ebp),%eax
40ea90:	f0 0f b1 0f          	lock cmpxchg %ecx,(%edi)
40ea94:	3b 45 fc             	cmp    -0x4(%ebp),%eax
40ea97:	75 bd                	jne    0x40ea56
40ea99:	85 db                	test   %ebx,%ebx
40ea9b:	75 52                	jne    0x40eaef
40ea9d:	38 1d 84 48 42 00    	cmp    %bl,0x424884
40eaa3:	74 4a                	je     0x40eaef
40eaa5:	bb 88 48 42 00       	mov    $0x424888,%ebx
40eaaa:	53                   	push   %ebx
40eaab:	ff 15 60 61 42 00    	call   *0x426160
40eab1:	8b 4d f4             	mov    -0xc(%ebp),%ecx
40eab4:	a1 94 48 42 00       	mov    0x424894,%eax
40eab9:	85 c9                	test   %ecx,%ecx
40eabb:	74 22                	je     0x40eadf
40eabd:	3b c8                	cmp    %eax,%ecx
40eabf:	75 1e                	jne    0x40eadf
40eac1:	6a 08                	push   $0x8
40eac3:	8d 45 ec             	lea    -0x14(%ebp),%eax
40eac6:	c7 45 ec 01 00 00 00 	movl   $0x1,-0x14(%ebp)
40eacd:	50                   	push   %eax
40eace:	b9 b0 48 42 00       	mov    $0x4248b0,%ecx
40ead3:	89 7d f0             	mov    %edi,-0x10(%ebp)
40ead6:	e8 9e 98 ff ff       	call   0x408379
40eadb:	84 c0                	test   %al,%al
40eadd:	75 06                	jne    0x40eae5
40eadf:	6a fd                	push   $0xfffffffd
40eae1:	58                   	pop    %eax
40eae2:	f0 21 07             	lock and %eax,(%edi)
40eae5:	53                   	push   %ebx
40eae6:	ff 15 6c 61 42 00    	call   *0x42616c
40eaec:	8b 55 e4             	mov    -0x1c(%ebp),%edx
40eaef:	f6 06 01             	testb  $0x1,(%esi)
40eaf2:	5b                   	pop    %ebx
40eaf3:	75 0c                	jne    0x40eb01
40eaf5:	8b 0e                	mov    (%esi),%ecx
40eaf7:	33 ca                	xor    %edx,%ecx
40eaf9:	81 e1 18 01 00 00    	and    $0x118,%ecx
40eaff:	31 0e                	xor    %ecx,(%esi)
40eb01:	5f                   	pop    %edi
40eb02:	8b c6                	mov    %esi,%eax
40eb04:	5e                   	pop    %esi
40eb05:	c9                   	leave
40eb06:	c2 04 00             	ret    $0x4
40eb09:	8b ff                	mov    %edi,%edi
40eb0b:	55                   	push   %ebp
40eb0c:	8b ec                	mov    %esp,%ebp
40eb0e:	83 ec 10             	sub    $0x10,%esp
40eb11:	56                   	push   %esi
40eb12:	8b f1                	mov    %ecx,%esi
40eb14:	8b 16                	mov    (%esi),%edx
40eb16:	f6 c2 02             	test   $0x2,%dl
40eb19:	75 0b                	jne    0x40eb26
40eb1b:	8d 45 f0             	lea    -0x10(%ebp),%eax
40eb1e:	50                   	push   %eax
40eb1f:	e8 f9 fe ff ff       	call   0x40ea1d
40eb24:	8b 10                	mov    (%eax),%edx
40eb26:	33 c0                	xor    %eax,%eax
40eb28:	c6 45 fc 03          	movb   $0x3,-0x4(%ebp)
40eb2c:	51                   	push   %ecx
40eb2d:	89 45 f8             	mov    %eax,-0x8(%ebp)
40eb30:	0f b6 45 08          	movzbl 0x8(%ebp),%eax
40eb34:	51                   	push   %ecx
40eb35:	50                   	push   %eax
40eb36:	8d 45 f8             	lea    -0x8(%ebp),%eax
40eb39:	50                   	push   %eax
40eb3a:	8b c2                	mov    %edx,%eax
40eb3c:	8d 4e 08             	lea    0x8(%esi),%ecx
40eb3f:	c1 e8 08             	shr    $0x8,%eax
40eb42:	c1 ea 07             	shr    $0x7,%edx
40eb45:	83 e0 01             	and    $0x1,%eax
40eb48:	83 e2 01             	and    $0x1,%edx
40eb4b:	50                   	push   %eax
40eb4c:	52                   	push   %edx
40eb4d:	ba 58 81 0d 01       	mov    $0x10d8158,%edx
40eb52:	e8 af 0e 00 00       	call   0x40fa06
40eb57:	5e                   	pop    %esi
40eb58:	c9                   	leave
40eb59:	c2 0c 00             	ret    $0xc
40eb5c:	8b ff                	mov    %edi,%edi
40eb5e:	55                   	push   %ebp
40eb5f:	8b ec                	mov    %esp,%ebp
40eb61:	83 ec 1c             	sub    $0x1c,%esp
40eb64:	56                   	push   %esi
40eb65:	8b 75 08             	mov    0x8(%ebp),%esi
40eb68:	57                   	push   %edi
40eb69:	8b f9                	mov    %ecx,%edi
40eb6b:	8b 07                	mov    (%edi),%eax