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
40eb6d:	89 06                	mov    %eax,(%esi)
40eb6f:	83 e0 03             	and    $0x3,%eax
40eb72:	3c 03                	cmp    $0x3,%al
40eb74:	0f 84 c6 00 00 00    	je     0x40ec40
40eb7a:	53                   	push   %ebx
40eb7b:	e8 1c b6 ff ff       	call   0x40a19c
40eb80:	89 45 f4             	mov    %eax,-0xc(%ebp)
40eb83:	8d 45 f8             	lea    -0x8(%ebp),%eax
40eb86:	50                   	push   %eax
40eb87:	8d 45 e4             	lea    -0x1c(%ebp),%eax
40eb8a:	50                   	push   %eax
40eb8b:	e8 37 05 00 00       	call   0x40f0c7
40eb90:	8b 06                	mov    (%esi),%eax
40eb92:	8b 55 e4             	mov    -0x1c(%ebp),%edx
40eb95:	83 7d f8 00          	cmpl   $0x0,-0x8(%ebp)
40eb99:	8b d8                	mov    %eax,%ebx
40eb9b:	89 5d fc             	mov    %ebx,-0x4(%ebp)
40eb9e:	8b c8                	mov    %eax,%ecx
40eba0:	89 06                	mov    %eax,(%esi)
40eba2:	74 13                	je     0x40ebb7
40eba4:	a8 01                	test   $0x1,%al
40eba6:	75 0f                	jne    0x40ebb7
40eba8:	33 ca                	xor    %edx,%ecx
40ebaa:	81 e1 18 01 00 00    	and    $0x118,%ecx
40ebb0:	33 c8                	xor    %eax,%ecx
40ebb2:	83 c9 01             	or     $0x1,%ecx
40ebb5:	89 0e                	mov    %ecx,(%esi)
40ebb7:	83 e3 02             	and    $0x2,%ebx
40ebba:	75 10                	jne    0x40ebcc
40ebbc:	8b c1                	mov    %ecx,%eax
40ebbe:	33 c2                	xor    %edx,%eax
40ebc0:	25 80 00 00 00       	and    $0x80,%eax
40ebc5:	33 c8                	xor    %eax,%ecx
40ebc7:	83 c9 02             	or     $0x2,%ecx
40ebca:	89 0e                	mov    %ecx,(%esi)
40ebcc:	8b 45 fc             	mov    -0x4(%ebp),%eax
40ebcf:	f0 0f b1 0f          	lock cmpxchg %ecx,(%edi)
40ebd3:	3b 45 fc             	cmp    -0x4(%ebp),%eax
40ebd6:	75 bd                	jne    0x40eb95
40ebd8:	85 db                	test   %ebx,%ebx
40ebda:	75 52                	jne    0x40ec2e
40ebdc:	38 1d 84 48 42 00    	cmp    %bl,0x424884
40ebe2:	74 4a                	je     0x40ec2e
40ebe4:	bb 88 48 42 00       	mov    $0x424888,%ebx
40ebe9:	53                   	push   %ebx
40ebea:	ff 15 60 61 42 00    	call   *0x426160
40ebf0:	8b 4d f4             	mov    -0xc(%ebp),%ecx
40ebf3:	a1 94 48 42 00       	mov    0x424894,%eax
40ebf8:	85 c9                	test   %ecx,%ecx
40ebfa:	74 22                	je     0x40ec1e
40ebfc:	3b c8                	cmp    %eax,%ecx
40ebfe:	75 1e                	jne    0x40ec1e
40ec00:	6a 08                	push   $0x8
40ec02:	8d 45 ec             	lea    -0x14(%ebp),%eax
40ec05:	c7 45 ec 01 00 00 00 	movl   $0x1,-0x14(%ebp)
40ec0c:	50                   	push   %eax
40ec0d:	b9 b0 48 42 00       	mov    $0x4248b0,%ecx
40ec12:	89 7d f0             	mov    %edi,-0x10(%ebp)
40ec15:	e8 5f 97 ff ff       	call   0x408379
40ec1a:	84 c0                	test   %al,%al
40ec1c:	75 06                	jne    0x40ec24
40ec1e:	6a fd                	push   $0xfffffffd
40ec20:	58                   	pop    %eax
40ec21:	f0 21 07             	lock and %eax,(%edi)
40ec24:	53                   	push   %ebx
40ec25:	ff 15 6c 61 42 00    	call   *0x42616c
40ec2b:	8b 55 e4             	mov    -0x1c(%ebp),%edx
40ec2e:	f6 06 01             	testb  $0x1,(%esi)
40ec31:	5b                   	pop    %ebx
40ec32:	75 0c                	jne    0x40ec40
40ec34:	8b 0e                	mov    (%esi),%ecx
40ec36:	33 ca                	xor    %edx,%ecx
40ec38:	81 e1 18 01 00 00    	and    $0x118,%ecx
40ec3e:	31 0e                	xor    %ecx,(%esi)
40ec40:	5f                   	pop    %edi
40ec41:	8b c6                	mov    %esi,%eax
40ec43:	5e                   	pop    %esi
40ec44:	c9                   	leave
40ec45:	c2 04 00             	ret    $0x4
40ec48:	8b ff                	mov    %edi,%edi
40ec4a:	55                   	push   %ebp
40ec4b:	8b ec                	mov    %esp,%ebp
40ec4d:	83 ec 10             	sub    $0x10,%esp
40ec50:	56                   	push   %esi
40ec51:	8b f1                	mov    %ecx,%esi
40ec53:	8b 16                	mov    (%esi),%edx
40ec55:	f6 c2 02             	test   $0x2,%dl
40ec58:	75 0b                	jne    0x40ec65
40ec5a:	8d 45 f0             	lea    -0x10(%ebp),%eax
40ec5d:	50                   	push   %eax
40ec5e:	e8 f9 fe ff ff       	call   0x40eb5c
40ec63:	8b 10                	mov    (%eax),%edx
40ec65:	33 c0                	xor    %eax,%eax
40ec67:	c6 45 fc 03          	movb   $0x3,-0x4(%ebp)
40ec6b:	51                   	push   %ecx
40ec6c:	89 45 f8             	mov    %eax,-0x8(%ebp)
40ec6f:	0f b6 45 08          	movzbl 0x8(%ebp),%eax
40ec73:	51                   	push   %ecx
40ec74:	50                   	push   %eax
40ec75:	8d 45 f8             	lea    -0x8(%ebp),%eax
40ec78:	50                   	push   %eax
40ec79:	8b c2                	mov    %edx,%eax
40ec7b:	8d 4e 08             	lea    0x8(%esi),%ecx
40ec7e:	c1 e8 08             	shr    $0x8,%eax
40ec81:	c1 ea 07             	shr    $0x7,%edx
40ec84:	83 e0 01             	and    $0x1,%eax
40ec87:	83 e2 01             	and    $0x1,%edx
40ec8a:	50                   	push   %eax
40ec8b:	52                   	push   %edx
40ec8c:	ba 5e 65 27 01       	mov    $0x127655e,%edx
40ec91:	e8 70 0d 00 00       	call   0x40fa06
40ec96:	5e                   	pop    %esi
40ec97:	c9                   	leave
40ec98:	c2 0c 00             	ret    $0xc
40ec9b:	8b ff                	mov    %edi,%edi
40ec9d:	55                   	push   %ebp
40ec9e:	8b ec                	mov    %esp,%ebp
40eca0:	83 ec 1c             	sub    $0x1c,%esp
40eca3:	56                   	push   %esi
40eca4:	8b 75 08             	mov    0x8(%ebp),%esi
40eca7:	57                   	push   %edi
40eca8:	8b f9                	mov    %ecx,%edi
40ecaa:	8b 07                	mov    (%edi),%eax
40ecac:	89 06                	mov    %eax,(%esi)
40ecae:	83 e0 03             	and    $0x3,%eax
40ecb1:	3c 03                	cmp    $0x3,%al
40ecb3:	0f 84 c6 00 00 00    	je     0x40ed7f
40ecb9:	53                   	push   %ebx
40ecba:	e8 dd b4 ff ff       	call   0x40a19c
40ecbf:	89 45 f4             	mov    %eax,-0xc(%ebp)
40ecc2:	8d 45 f8             	lea    -0x8(%ebp),%eax
40ecc5:	50                   	push   %eax
40ecc6:	8d 45 e4             	lea    -0x1c(%ebp),%eax
40ecc9:	50                   	push   %eax
40ecca:	e8 63 04 00 00       	call   0x40f132
40eccf:	8b 06                	mov    (%esi),%eax
40ecd1:	8b 55 e4             	mov    -0x1c(%ebp),%edx
40ecd4:	83 7d f8 00          	cmpl   $0x0,-0x8(%ebp)
40ecd8:	8b d8                	mov    %eax,%ebx
40ecda:	89 5d fc             	mov    %ebx,-0x4(%ebp)
40ecdd:	8b c8                	mov    %eax,%ecx
40ecdf:	89 06                	mov    %eax,(%esi)
40ece1:	74 13                	je     0x40ecf6
40ece3:	a8 01                	test   $0x1,%al
40ece5:	75 0f                	jne    0x40ecf6
40ece7:	33 ca                	xor    %edx,%ecx
40ece9:	81 e1 18 01 00 00    	and    $0x118,%ecx
40ecef:	33 c8                	xor    %eax,%ecx
40ecf1:	83 c9 01             	or     $0x1,%ecx
40ecf4:	89 0e                	mov    %ecx,(%esi)
40ecf6:	83 e3 02             	and    $0x2,%ebx
40ecf9:	75 10                	jne    0x40ed0b
40ecfb:	8b c1                	mov    %ecx,%eax
40ecfd:	33 c2                	xor    %edx,%eax
40ecff:	25 80 00 00 00       	and    $0x80,%eax
40ed04:	33 c8                	xor    %eax,%ecx
40ed06:	83 c9 02             	or     $0x2,%ecx
40ed09:	89 0e                	mov    %ecx,(%esi)
40ed0b:	8b 45 fc             	mov    -0x4(%ebp),%eax
40ed0e:	f0 0f b1 0f          	lock cmpxchg %ecx,(%edi)
40ed12:	3b 45 fc             	cmp    -0x4(%ebp),%eax
40ed15:	75 bd                	jne    0x40ecd4
40ed17:	85 db                	test   %ebx,%ebx
40ed19:	75 52                	jne    0x40ed6d
40ed1b:	38 1d 84 48 42 00    	cmp    %bl,0x424884
40ed21:	74 4a                	je     0x40ed6d
40ed23:	bb 88 48 42 00       	mov    $0x424888,%ebx
40ed28:	53                   	push   %ebx
40ed29:	ff 15 60 61 42 00    	call   *0x426160
40ed2f:	8b 4d f4             	mov    -0xc(%ebp),%ecx
40ed32:	a1 94 48 42 00       	mov    0x424894,%eax
40ed37:	85 c9                	test   %ecx,%ecx
40ed39:	74 22                	je     0x40ed5d
40ed3b:	3b c8                	cmp    %eax,%ecx
40ed3d:	75 1e                	jne    0x40ed5d