40ea6d:	84 db                	test   %bl,%bl
40ea6f:	74 22                	je     0x40ea93
40ea71:	fe cb                	dec    %bl
40ea73:	80 fb 01             	cmp    $0x1,%bl
40ea76:	0f 87 ee 00 00 00    	ja     0x40eb6a
40ea7c:	ff 75 f8             	push   -0x8(%ebp)
40ea7f:	8d 45 ec             	lea    -0x14(%ebp),%eax
40ea82:	57                   	push   %edi
40ea83:	50                   	push   %eax
40ea84:	e8 56 fa ff ff       	call   0x40e4df
40ea89:	83 c4 0c             	add    $0xc,%esp
40ea8c:	8b f0                	mov    %eax,%esi
40ea8e:	e9 9c 00 00 00       	jmp    0x40eb2f
40ea93:	ff 75 f8             	push   -0x8(%ebp)
40ea96:	8d 45 ec             	lea    -0x14(%ebp),%eax
40ea99:	57                   	push   %edi
40ea9a:	56                   	push   %esi
40ea9b:	50                   	push   %eax
40ea9c:	e8 8b f8 ff ff       	call   0x40e32c
40eaa1:	83 c4 10             	add    $0x10,%esp
40eaa4:	eb e6                	jmp    0x40ea8c
40eaa6:	8b 45 e4             	mov    -0x1c(%ebp),%eax
40eaa9:	8b 0c 85 c0 41 42 00 	mov    0x4241c0(,%eax,4),%ecx
40eab0:	8b 45 e8             	mov    -0x18(%ebp),%eax
40eab3:	f6 44 01 28 80       	testb  $0x80,0x28(%ecx,%eax,1)
40eab8:	74 46                	je     0x40eb00
40eaba:	0f be c3             	movsbl %bl,%eax
40eabd:	83 e8 00             	sub    $0x0,%eax
40eac0:	74 2e                	je     0x40eaf0
40eac2:	83 e8 01             	sub    $0x1,%eax
40eac5:	74 19                	je     0x40eae0
40eac7:	83 e8 01             	sub    $0x1,%eax
40eaca:	0f 85 9a 00 00 00    	jne    0x40eb6a
40ead0:	ff 75 f8             	push   -0x8(%ebp)
40ead3:	8d 45 ec             	lea    -0x14(%ebp),%eax
40ead6:	57                   	push   %edi
40ead7:	56                   	push   %esi
40ead8:	50                   	push   %eax
40ead9:	e8 c3 fb ff ff       	call   0x40e6a1
40eade:	eb c1                	jmp    0x40eaa1
40eae0:	ff 75 f8             	push   -0x8(%ebp)
40eae3:	8d 45 ec             	lea    -0x14(%ebp),%eax
40eae6:	57                   	push   %edi
40eae7:	56                   	push   %esi
40eae8:	50                   	push   %eax
40eae9:	e8 a1 fc ff ff       	call   0x40e78f
40eaee:	eb b1                	jmp    0x40eaa1
40eaf0:	ff 75 f8             	push   -0x8(%ebp)
40eaf3:	8d 45 ec             	lea    -0x14(%ebp),%eax
40eaf6:	57                   	push   %edi
40eaf7:	56                   	push   %esi
40eaf8:	50                   	push   %eax
40eaf9:	e8 c4 fa ff ff       	call   0x40e5c2
40eafe:	eb a1                	jmp    0x40eaa1
40eb00:	8b 44 01 18          	mov    0x18(%ecx,%eax,1),%eax
40eb04:	33 c9                	xor    %ecx,%ecx
40eb06:	51                   	push   %ecx
40eb07:	89 4d ec             	mov    %ecx,-0x14(%ebp)
40eb0a:	89 4d f0             	mov    %ecx,-0x10(%ebp)
40eb0d:	89 4d f4             	mov    %ecx,-0xc(%ebp)
40eb10:	8d 4d f0             	lea    -0x10(%ebp),%ecx
40eb13:	51                   	push   %ecx
40eb14:	ff 75 f8             	push   -0x8(%ebp)
40eb17:	57                   	push   %edi
40eb18:	50                   	push   %eax
40eb19:	ff 15 38 b1 41 00    	call   *0x41b138
40eb1f:	85 c0                	test   %eax,%eax
40eb21:	75 09                	jne    0x40eb2c
40eb23:	ff 15 48 b0 41 00    	call   *0x41b048
40eb29:	89 45 ec             	mov    %eax,-0x14(%ebp)
40eb2c:	8d 75 ec             	lea    -0x14(%ebp),%esi
40eb2f:	8d 7d d8             	lea    -0x28(%ebp),%edi
40eb32:	a5                   	movsl  %ds:(%esi),%es:(%edi)
40eb33:	a5                   	movsl  %ds:(%esi),%es:(%edi)
40eb34:	a5                   	movsl  %ds:(%esi),%es:(%edi)
40eb35:	8b 45 dc             	mov    -0x24(%ebp),%eax
40eb38:	85 c0                	test   %eax,%eax
40eb3a:	75 63                	jne    0x40eb9f
40eb3c:	8b 45 d8             	mov    -0x28(%ebp),%eax
40eb3f:	85 c0                	test   %eax,%eax
40eb41:	74 24                	je     0x40eb67
40eb43:	6a 05                	push   $0x5
40eb45:	5e                   	pop    %esi
40eb46:	3b c6                	cmp    %esi,%eax
40eb48:	75 14                	jne    0x40eb5e
40eb4a:	e8 b8 91 ff ff       	call   0x407d07
40eb4f:	c7 00 09 00 00 00    	movl   $0x9,(%eax)
40eb55:	e8 9a 91 ff ff       	call   0x407cf4
40eb5a:	89 30                	mov    %esi,(%eax)
40eb5c:	eb 3c                	jmp    0x40eb9a
40eb5e:	50                   	push   %eax
40eb5f:	e8 6d 91 ff ff       	call   0x407cd1
40eb64:	59                   	pop    %ecx
40eb65:	eb 33                	jmp    0x40eb9a
40eb67:	8b 7d d0             	mov    -0x30(%ebp),%edi
40eb6a:	8b 45 e4             	mov    -0x1c(%ebp),%eax
40eb6d:	8b 4d e8             	mov    -0x18(%ebp),%ecx
40eb70:	8b 04 85 c0 41 42 00 	mov    0x4241c0(,%eax,4),%eax
40eb77:	f6 44 08 28 40       	testb  $0x40,0x28(%eax,%ecx,1)
40eb7c:	74 09                	je     0x40eb87
40eb7e:	80 3f 1a             	cmpb   $0x1a,(%edi)
40eb81:	75 04                	jne    0x40eb87
40eb83:	33 c0                	xor    %eax,%eax
40eb85:	eb 1b                	jmp    0x40eba2
40eb87:	e8 7b 91 ff ff       	call   0x407d07
40eb8c:	c7 00 1c 00 00 00    	movl   $0x1c,(%eax)
40eb92:	e8 5d 91 ff ff       	call   0x407cf4
40eb97:	83 20 00             	andl   $0x0,(%eax)
40eb9a:	83 c8 ff             	or     $0xffffffff,%eax
40eb9d:	eb 03                	jmp    0x40eba2
40eb9f:	2b 45 e0             	sub    -0x20(%ebp),%eax
40eba2:	5b                   	pop    %ebx
40eba3:	8b 4d fc             	mov    -0x4(%ebp),%ecx
40eba6:	5f                   	pop    %edi
40eba7:	33 cd                	xor    %ebp,%ecx
40eba9:	5e                   	pop    %esi
40ebaa:	e8 a7 43 ff ff       	call   0x402f56
40ebaf:	8b e5                	mov    %ebp,%esp
40ebb1:	5d                   	pop    %ebp
40ebb2:	c3                   	ret
40ebb3:	8b ff                	mov    %edi,%edi
40ebb5:	55                   	push   %ebp
40ebb6:	8b ec                	mov    %esp,%ebp
40ebb8:	57                   	push   %edi
40ebb9:	ff 75 0c             	push   0xc(%ebp)
40ebbc:	e8 1f ca ff ff       	call   0x40b5e0
40ebc1:	59                   	pop    %ecx
40ebc2:	8b 4d 0c             	mov    0xc(%ebp),%ecx
40ebc5:	8b f8                	mov    %eax,%edi
40ebc7:	8b 49 0c             	mov    0xc(%ecx),%ecx
40ebca:	f6 c1 06             	test   $0x6,%cl
40ebcd:	75 1f                	jne    0x40ebee
40ebcf:	e8 33 91 ff ff       	call   0x407d07
40ebd4:	c7 00 09 00 00 00    	movl   $0x9,(%eax)
40ebda:	8b 45 0c             	mov    0xc(%ebp),%eax
40ebdd:	6a 10                	push   $0x10
40ebdf:	59                   	pop    %ecx
40ebe0:	83 c0 0c             	add    $0xc,%eax
40ebe3:	f0 09 08             	lock or %ecx,(%eax)
40ebe6:	83 c8 ff             	or     $0xffffffff,%eax
40ebe9:	e9 d3 00 00 00       	jmp    0x40ecc1
40ebee:	8b 45 0c             	mov    0xc(%ebp),%eax
40ebf1:	8b 40 0c             	mov    0xc(%eax),%eax
40ebf4:	c1 e8 0c             	shr    $0xc,%eax
40ebf7:	a8 01                	test   $0x1,%al
40ebf9:	74 0d                	je     0x40ec08
40ebfb:	e8 07 91 ff ff       	call   0x407d07
40ec00:	c7 00 22 00 00 00    	movl   $0x22,(%eax)
40ec06:	eb d2                	jmp    0x40ebda
40ec08:	8b 45 0c             	mov    0xc(%ebp),%eax
40ec0b:	8b 40 0c             	mov    0xc(%eax),%eax
40ec0e:	a8 01                	test   $0x1,%al
40ec10:	74 28                	je     0x40ec3a
40ec12:	8b 45 0c             	mov    0xc(%ebp),%eax
40ec15:	83 60 08 00          	andl   $0x0,0x8(%eax)
40ec19:	8b 45 0c             	mov    0xc(%ebp),%eax
40ec1c:	8b 40 0c             	mov    0xc(%eax),%eax
40ec1f:	c1 e8 03             	shr    $0x3,%eax
40ec22:	a8 01                	test   $0x1,%al
40ec24:	8b 45 0c             	mov    0xc(%ebp),%eax
40ec27:	74 b4                	je     0x40ebdd
40ec29:	8b 48 04             	mov    0x4(%eax),%ecx
40ec2c:	89 08                	mov    %ecx,(%eax)
40ec2e:	8b 45 0c             	mov    0xc(%ebp),%eax
40ec31:	6a fe                	push   $0xfffffffe
40ec33:	59                   	pop    %ecx
40ec34:	83 c0 0c             	add    $0xc,%eax
40ec37:	f0 21 08             	lock and %ecx,(%eax)
40ec3a:	8b 45 0c             	mov    0xc(%ebp),%eax
40ec3d:	53                   	push   %ebx
40ec3e:	6a 02                	push   $0x2
40ec40:	5b                   	pop    %ebx
40ec41:	83 c0 0c             	add    $0xc,%eax
40ec44:	f0 09 18             	lock or %ebx,(%eax)
40ec47:	8b 45 0c             	mov    0xc(%ebp),%eax
40ec4a:	6a f7                	push   $0xfffffff7
40ec4c:	59                   	pop    %ecx
40ec4d:	83 c0 0c             	add    $0xc,%eax
40ec50:	f0 21 08             	lock and %ecx,(%eax)
40ec53:	8b 45 0c             	mov    0xc(%ebp),%eax
40ec56:	83 60 08 00          	andl   $0x0,0x8(%eax)
40ec5a:	8b 45 0c             	mov    0xc(%ebp),%eax
40ec5d:	8b 40 0c             	mov    0xc(%eax),%eax
40ec60:	a9 c0 04 00 00       	test   $0x4c0,%eax
40ec65:	75 33                	jne    0x40ec9a
40ec67:	56                   	push   %esi
40ec68:	8b 75 0c             	mov    0xc(%ebp),%esi
40ec6b:	6a 01                	push   $0x1
40ec6d:	e8 5c ca ff ff       	call   0x40b6ce
40ec72:	59                   	pop    %ecx
40ec73:	3b f0                	cmp    %eax,%esi
40ec75:	74 0e                	je     0x40ec85
40ec77:	8b 75 0c             	mov    0xc(%ebp),%esi
40ec7a:	53                   	push   %ebx
40ec7b:	e8 4e ca ff ff       	call   0x40b6ce
40ec80:	59                   	pop    %ecx
40ec81:	3b f0                	cmp    %eax,%esi
40ec83:	75 0b                	jne    0x40ec90
40ec85:	57                   	push   %edi
40ec86:	e8 df 47 00 00       	call   0x41346a
40ec8b:	59                   	pop    %ecx
40ec8c:	85 c0                	test   %eax,%eax
40ec8e:	75 09                	jne    0x40ec99
40ec90:	ff 75 0c             	push   0xc(%ebp)
40ec93:	e8 47 64 00 00       	call   0x4150df
40ec98:	59                   	pop    %ecx
40ec99:	5e                   	pop    %esi
40ec9a:	ff 75 0c             	push   0xc(%ebp)
40ec9d:	8b 5d 08             	mov    0x8(%ebp),%ebx
40eca0:	53                   	push   %ebx
40eca1:	e8 1e 00 00 00       	call   0x40ecc4
40eca6:	59                   	pop    %ecx
40eca7:	59                   	pop    %ecx
40eca8:	84 c0                	test   %al,%al
40ecaa:	75 11                	jne    0x40ecbd
40ecac:	8b 45 0c             	mov    0xc(%ebp),%eax
40ecaf:	6a 10                	push   $0x10
40ecb1:	59                   	pop    %ecx
40ecb2:	83 c0 0c             	add    $0xc,%eax
40ecb5:	f0 09 08             	lock or %ecx,(%eax)
40ecb8:	83 c8 ff             	or     $0xffffffff,%eax
40ecbb:	eb 03                	jmp    0x40ecc0
40ecbd:	0f b6 c3             	movzbl %bl,%eax
40ecc0:	5b                   	pop    %ebx
40ecc1:	5f                   	pop    %edi
40ecc2:	5d                   	pop    %ebp
40ecc3:	c3                   	ret
40ecc4:	8b ff                	mov    %edi,%edi
40ecc6:	55                   	push   %ebp
40ecc7:	8b ec                	mov    %esp,%ebp
40ecc9:	56                   	push   %esi
40ecca:	57                   	push   %edi
40eccb:	ff 75 0c             	push   0xc(%ebp)
40ecce:	e8 0d c9 ff ff       	call   0x40b5e0
40ecd3:	59                   	pop    %ecx
40ecd4:	8b 4d 0c             	mov    0xc(%ebp),%ecx
40ecd7:	8b d0                	mov    %eax,%edx
40ecd9:	8b 49 0c             	mov    0xc(%ecx),%ecx
40ecdc:	f6 c1 c0             	test   $0xc0,%cl
40ecdf:	0f 84 92 00 00 00    	je     0x40ed77
40ece5:	8b 4d 0c             	mov    0xc(%ebp),%ecx
40ece8:	33 ff                	xor    %edi,%edi
40ecea:	8b 41 04             	mov    0x4(%ecx),%eax
40eced:	8b 31                	mov    (%ecx),%esi
40ecef:	2b f0                	sub    %eax,%esi
40ecf1:	40                   	inc    %eax
40ecf2:	89 01                	mov    %eax,(%ecx)
40ecf4:	8b 45 0c             	mov    0xc(%ebp),%eax
40ecf7:	8b 48 18             	mov    0x18(%eax),%ecx
40ecfa:	49                   	dec    %ecx
40ecfb:	89 48 08             	mov    %ecx,0x8(%eax)
40ecfe:	85 f6                	test   %esi,%esi
40ed00:	7e 26                	jle    0x40ed28
40ed02:	8b 45 0c             	mov    0xc(%ebp),%eax
40ed05:	56                   	push   %esi
40ed06:	ff 70 04             	push   0x4(%eax)
40ed09:	52                   	push   %edx
40ed0a:	e8 ad fb ff ff       	call   0x40e8bc
40ed0f:	83 c4 0c             	add    $0xc,%esp
40ed12:	8b f8                	mov    %eax,%edi
40ed14:	8b 45 0c             	mov    0xc(%ebp),%eax
40ed17:	8b 48 04             	mov    0x4(%eax),%ecx
40ed1a:	8a 45 08             	mov    0x8(%ebp),%al
40ed1d:	88 01                	mov    %al,(%ecx)
40ed1f:	33 c0                	xor    %eax,%eax
40ed21:	3b fe                	cmp    %esi,%edi
40ed23:	0f 94 c0             	sete   %al
40ed26:	eb 64                	jmp    0x40ed8c
40ed28:	83 fa ff             	cmp    $0xffffffff,%edx
40ed2b:	74 1b                	je     0x40ed48
40ed2d:	83 fa fe             	cmp    $0xfffffffe,%edx
40ed30:	74 16                	je     0x40ed48
40ed32:	8b c2                	mov    %edx,%eax
40ed34:	8b ca                	mov    %edx,%ecx
40ed36:	83 e0 3f             	and    $0x3f,%eax
40ed39:	c1 f9 06             	sar    $0x6,%ecx
40ed3c:	6b c0 30             	imul   $0x30,%eax,%eax
40ed3f:	03 04 8d c0 41 42 00 	add    0x4241c0(,%ecx,4),%eax
40ed46:	eb 05                	jmp    0x40ed4d
40ed48:	b8 d0 31 42 00       	mov    $0x4231d0,%eax
40ed4d:	f6 40 28 20          	testb  $0x20,0x28(%eax)
40ed51:	74 c1                	je     0x40ed14
40ed53:	6a 02                	push   $0x2
40ed55:	57                   	push   %edi
40ed56:	57                   	push   %edi
40ed57:	52                   	push   %edx
40ed58:	e8 99 f5 ff ff       	call   0x40e2f6
40ed5d:	23 c2                	and    %edx,%eax
40ed5f:	83 c4 10             	add    $0x10,%esp
40ed62:	83 f8 ff             	cmp    $0xffffffff,%eax
40ed65:	75 ad                	jne    0x40ed14
40ed67:	8b 45 0c             	mov    0xc(%ebp),%eax
40ed6a:	6a 10                	push   $0x10
40ed6c:	59                   	pop    %ecx
40ed6d:	83 c0 0c             	add    $0xc,%eax
40ed70:	f0 09 08             	lock or %ecx,(%eax)
40ed73:	b0 01                	mov    $0x1,%al
40ed75:	eb 15                	jmp    0x40ed8c
40ed77:	6a 01                	push   $0x1
40ed79:	8d 45 08             	lea    0x8(%ebp),%eax
40ed7c:	50                   	push   %eax
40ed7d:	52                   	push   %edx
40ed7e:	e8 39 fb ff ff       	call   0x40e8bc
40ed83:	83 c4 0c             	add    $0xc,%esp
40ed86:	48                   	dec    %eax
40ed87:	f7 d8                	neg    %eax
40ed89:	1b c0                	sbb    %eax,%eax
40ed8b:	40                   	inc    %eax
40ed8c:	5f                   	pop    %edi
40ed8d:	5e                   	pop    %esi
40ed8e:	5d                   	pop    %ebp
40ed8f:	c3                   	ret
40ed90:	8b ff                	mov    %edi,%edi
40ed92:	55                   	push   %ebp
40ed93:	8b ec                	mov    %esp,%ebp
40ed95:	5d                   	pop    %ebp
40ed96:	e9 18 fe ff ff       	jmp    0x40ebb3
40ed9b:	8b ff                	mov    %edi,%edi
40ed9d:	55                   	push   %ebp
40ed9e:	8b ec                	mov    %esp,%ebp
40eda0:	b8 ff ff 00 00       	mov    $0xffff,%eax
40eda5:	83 ec 18             	sub    $0x18,%esp
40eda8:	66 39 45 08          	cmp    %ax,0x8(%ebp)
40edac:	0f 84 ae 00 00 00    	je     0x40ee60
40edb2:	ff 75 0c             	push   0xc(%ebp)
40edb5:	8d 4d e8             	lea    -0x18(%ebp),%ecx
40edb8:	e8 f4 68 ff ff       	call   0x4056b1
40edbd:	8b 45 ec             	mov    -0x14(%ebp),%eax
40edc0:	8b 80 a8 00 00 00    	mov    0xa8(%eax),%eax
40edc6:	85 c0                	test   %eax,%eax
40edc8:	75 21                	jne    0x40edeb
40edca:	8b 4d 08             	mov    0x8(%ebp),%ecx
40edcd:	8d 41 bf             	lea    -0x41(%ecx),%eax
40edd0:	66 83 f8 19          	cmp    $0x19,%ax
40edd4:	77 0d                	ja     0x40ede3
40edd6:	66 83 c1 20          	add    $0x20,%cx
40edda:	0f b7 c1             	movzwl %cx,%eax
40eddd:	89 45 f8             	mov    %eax,-0x8(%ebp)
40ede0:	66 8b c8             	mov    %ax,%cx
40ede3:	0f b7 c1             	movzwl %cx,%eax
40ede6:	89 45 f8             	mov    %eax,-0x8(%ebp)
40ede9:	eb 1f                	jmp    0x40ee0a
40edeb:	ba 00 01 00 00       	mov    $0x100,%edx
40edf0:	6a 01                	push   $0x1
40edf2:	66 39 55 08          	cmp    %dx,0x8(%ebp)
40edf6:	73 30                	jae    0x40ee28
40edf8:	ff 75 08             	push   0x8(%ebp)
40edfb:	e8 c6 28 00 00       	call   0x4116c6
40ee00:	59                   	pop    %ecx
40ee01:	59                   	pop    %ecx