40ea2a:	c9                   	leave
40ea2b:	c2 04 00             	ret    $0x4
40ea2e:	8b ff                	mov    %edi,%edi
40ea30:	55                   	push   %ebp
40ea31:	8b ec                	mov    %esp,%ebp
40ea33:	83 ec 0c             	sub    $0xc,%esp
40ea36:	53                   	push   %ebx
40ea37:	56                   	push   %esi
40ea38:	8b f1                	mov    %ecx,%esi
40ea3a:	57                   	push   %edi
40ea3b:	ff 76 28             	push   0x28(%esi)
40ea3e:	e8 6a 26 00 00       	call   0x4110ad
40ea43:	59                   	pop    %ecx
40ea44:	8b c8                	mov    %eax,%ecx
40ea46:	89 45 f4             	mov    %eax,-0xc(%ebp)
40ea49:	6a 00                	push   $0x0
40ea4b:	5b                   	pop    %ebx
40ea4c:	83 e9 01             	sub    $0x1,%ecx
40ea4f:	0f 84 99 00 00 00    	je     0x40eaee
40ea55:	83 e9 01             	sub    $0x1,%ecx
40ea58:	74 75                	je     0x40eacf
40ea5a:	49                   	dec    %ecx
40ea5b:	83 e9 01             	sub    $0x1,%ecx
40ea5e:	74 46                	je     0x40eaa6
40ea60:	83 e9 04             	sub    $0x4,%ecx
40ea63:	74 27                	je     0x40ea8c
40ea65:	8b 46 08             	mov    0x8(%esi),%eax
40ea68:	83 c0 18             	add    $0x18,%eax
40ea6b:	c6 40 04 01          	movb   $0x1,0x4(%eax)
40ea6f:	c7 00 16 00 00 00    	movl   $0x16,(%eax)
40ea75:	ff 76 08             	push   0x8(%esi)
40ea78:	53                   	push   %ebx
40ea79:	53                   	push   %ebx
40ea7a:	53                   	push   %ebx
40ea7b:	53                   	push   %ebx
40ea7c:	53                   	push   %ebx
40ea7d:	e8 ef e8 ff ff       	call   0x40d371
40ea82:	83 c4 18             	add    $0x18,%esp
40ea85:	32 c0                	xor    %al,%al
40ea87:	e9 28 01 00 00       	jmp    0x40ebb4
40ea8c:	8b 4e 10             	mov    0x10(%esi),%ecx
40ea8f:	8b 7e 1c             	mov    0x1c(%esi),%edi
40ea92:	8b c7                	mov    %edi,%eax
40ea94:	c1 e8 04             	shr    $0x4,%eax
40ea97:	a8 01                	test   $0x1,%al
40ea99:	8d 41 08             	lea    0x8(%ecx),%eax
40ea9c:	89 46 10             	mov    %eax,0x10(%esi)
40ea9f:	8b 01                	mov    (%ecx),%eax
40eaa1:	8b 51 04             	mov    0x4(%ecx),%edx
40eaa4:	eb 66                	jmp    0x40eb0c
40eaa6:	8b 7e 1c             	mov    0x1c(%esi),%edi
40eaa9:	8b c7                	mov    %edi,%eax
40eaab:	c1 e8 04             	shr    $0x4,%eax
40eaae:	a8 01                	test   $0x1,%al
40eab0:	74 0d                	je     0x40eabf
40eab2:	8b 46 10             	mov    0x10(%esi),%eax
40eab5:	8d 48 04             	lea    0x4(%eax),%ecx
40eab8:	89 4e 10             	mov    %ecx,0x10(%esi)
40eabb:	8b 00                	mov    (%eax),%eax
40eabd:	eb 4c                	jmp    0x40eb0b
40eabf:	8b 4e 10             	mov    0x10(%esi),%ecx
40eac2:	89 5d f8             	mov    %ebx,-0x8(%ebp)
40eac5:	8d 41 04             	lea    0x4(%ecx),%eax
40eac8:	89 46 10             	mov    %eax,0x10(%esi)
40eacb:	8b 01                	mov    (%ecx),%eax
40eacd:	eb 40                	jmp    0x40eb0f
40eacf:	8b 7e 1c             	mov    0x1c(%esi),%edi
40ead2:	8b c7                	mov    %edi,%eax
40ead4:	8b 4e 10             	mov    0x10(%esi),%ecx
40ead7:	c1 e8 04             	shr    $0x4,%eax
40eada:	a8 01                	test   $0x1,%al
40eadc:	8d 41 04             	lea    0x4(%ecx),%eax
40eadf:	89 46 10             	mov    %eax,0x10(%esi)
40eae2:	74 05                	je     0x40eae9
40eae4:	0f bf 01             	movswl (%ecx),%eax
40eae7:	eb 22                	jmp    0x40eb0b
40eae9:	0f b7 01             	movzwl (%ecx),%eax
40eaec:	eb 1d                	jmp    0x40eb0b
40eaee:	8b 7e 1c             	mov    0x1c(%esi),%edi
40eaf1:	8b c7                	mov    %edi,%eax
40eaf3:	8b 4e 10             	mov    0x10(%esi),%ecx
40eaf6:	c1 e8 04             	shr    $0x4,%eax
40eaf9:	a8 01                	test   $0x1,%al
40eafb:	8d 41 04             	lea    0x4(%ecx),%eax
40eafe:	89 46 10             	mov    %eax,0x10(%esi)
40eb01:	74 05                	je     0x40eb08
40eb03:	0f be 01             	movsbl (%ecx),%eax
40eb06:	eb 03                	jmp    0x40eb0b
40eb08:	0f b6 01             	movzbl (%ecx),%eax
40eb0b:	99                   	cltd
40eb0c:	89 55 f8             	mov    %edx,-0x8(%ebp)
40eb0f:	8b 55 f8             	mov    -0x8(%ebp),%edx
40eb12:	89 45 fc             	mov    %eax,-0x4(%ebp)
40eb15:	8b c7                	mov    %edi,%eax
40eb17:	8b 4d fc             	mov    -0x4(%ebp),%ecx
40eb1a:	c1 e8 04             	shr    $0x4,%eax
40eb1d:	a8 01                	test   $0x1,%al
40eb1f:	74 16                	je     0x40eb37
40eb21:	3b d3                	cmp    %ebx,%edx
40eb23:	7f 12                	jg     0x40eb37
40eb25:	7c 04                	jl     0x40eb2b
40eb27:	3b cb                	cmp    %ebx,%ecx
40eb29:	73 0c                	jae    0x40eb37
40eb2b:	f7 d9                	neg    %ecx
40eb2d:	13 d3                	adc    %ebx,%edx
40eb2f:	f7 da                	neg    %edx
40eb31:	83 cf 40             	or     $0x40,%edi
40eb34:	89 7e 1c             	mov    %edi,0x1c(%esi)
40eb37:	83 7e 24 00          	cmpl   $0x0,0x24(%esi)
40eb3b:	89 55 f8             	mov    %edx,-0x8(%ebp)
40eb3e:	89 4d fc             	mov    %ecx,-0x4(%ebp)
40eb41:	7d 09                	jge    0x40eb4c
40eb43:	c7 46 24 01 00 00 00 	movl   $0x1,0x24(%esi)
40eb4a:	eb 1a                	jmp    0x40eb66
40eb4c:	ff 76 08             	push   0x8(%esi)
40eb4f:	83 e7 f7             	and    $0xfffffff7,%edi
40eb52:	8d 4e 3c             	lea    0x3c(%esi),%ecx
40eb55:	ff 76 24             	push   0x24(%esi)
40eb58:	89 7e 1c             	mov    %edi,0x1c(%esi)
40eb5b:	e8 bf ee ff ff       	call   0x40da1f
40eb60:	8b 4d fc             	mov    -0x4(%ebp),%ecx
40eb63:	8b 55 f8             	mov    -0x8(%ebp),%edx
40eb66:	8b c1                	mov    %ecx,%eax
40eb68:	0b c2                	or     %edx,%eax
40eb6a:	75 04                	jne    0x40eb70
40eb6c:	83 66 1c df          	andl   $0xffffffdf,0x1c(%esi)
40eb70:	83 7d f4 08          	cmpl   $0x8,-0xc(%ebp)
40eb74:	ff 75 08             	push   0x8(%ebp)
40eb77:	88 5e 38             	mov    %bl,0x38(%esi)
40eb7a:	75 0b                	jne    0x40eb87
40eb7c:	52                   	push   %edx
40eb7d:	51                   	push   %ecx
40eb7e:	8b ce                	mov    %esi,%ecx
40eb80:	e8 2b 07 00 00       	call   0x40f2b0
40eb85:	eb 08                	jmp    0x40eb8f
40eb87:	51                   	push   %ecx
40eb88:	8b ce                	mov    %esi,%ecx
40eb8a:	e8 b7 03 00 00       	call   0x40ef46
40eb8f:	8b 46 1c             	mov    0x1c(%esi),%eax
40eb92:	c1 e8 07             	shr    $0x7,%eax
40eb95:	a8 01                	test   $0x1,%al
40eb97:	74 19                	je     0x40ebb2
40eb99:	39 5e 34             	cmp    %ebx,0x34(%esi)
40eb9c:	74 08                	je     0x40eba6
40eb9e:	8b 46 30             	mov    0x30(%esi),%eax
40eba1:	80 38 30             	cmpb   $0x30,(%eax)
40eba4:	74 0c                	je     0x40ebb2
40eba6:	ff 4e 30             	decl   0x30(%esi)
40eba9:	8b 4e 30             	mov    0x30(%esi),%ecx
40ebac:	c6 01 30             	movb   $0x30,(%ecx)
40ebaf:	ff 46 34             	incl   0x34(%esi)
40ebb2:	b0 01                	mov    $0x1,%al
40ebb4:	5f                   	pop    %edi
40ebb5:	5e                   	pop    %esi
40ebb6:	5b                   	pop    %ebx
40ebb7:	c9                   	leave
40ebb8:	c2 04 00             	ret    $0x4
40ebbb:	8b ff                	mov    %edi,%edi
40ebbd:	55                   	push   %ebp
40ebbe:	8b ec                	mov    %esp,%ebp
40ebc0:	83 ec 0c             	sub    $0xc,%esp
40ebc3:	53                   	push   %ebx
40ebc4:	56                   	push   %esi
40ebc5:	8b f1                	mov    %ecx,%esi
40ebc7:	57                   	push   %edi
40ebc8:	ff 76 28             	push   0x28(%esi)
40ebcb:	e8 dd 24 00 00       	call   0x4110ad
40ebd0:	59                   	pop    %ecx
40ebd1:	8b c8                	mov    %eax,%ecx
40ebd3:	89 45 f4             	mov    %eax,-0xc(%ebp)
40ebd6:	6a 00                	push   $0x0
40ebd8:	5b                   	pop    %ebx
40ebd9:	83 e9 01             	sub    $0x1,%ecx
40ebdc:	0f 84 99 00 00 00    	je     0x40ec7b
40ebe2:	83 e9 01             	sub    $0x1,%ecx
40ebe5:	74 75                	je     0x40ec5c
40ebe7:	49                   	dec    %ecx
40ebe8:	83 e9 01             	sub    $0x1,%ecx
40ebeb:	74 46                	je     0x40ec33
40ebed:	83 e9 04             	sub    $0x4,%ecx
40ebf0:	74 27                	je     0x40ec19
40ebf2:	8b 46 08             	mov    0x8(%esi),%eax
40ebf5:	83 c0 18             	add    $0x18,%eax
40ebf8:	c6 40 04 01          	movb   $0x1,0x4(%eax)
40ebfc:	c7 00 16 00 00 00    	movl   $0x16,(%eax)
40ec02:	ff 76 08             	push   0x8(%esi)
40ec05:	53                   	push   %ebx
40ec06:	53                   	push   %ebx
40ec07:	53                   	push   %ebx
40ec08:	53                   	push   %ebx
40ec09:	53                   	push   %ebx
40ec0a:	e8 62 e7 ff ff       	call   0x40d371
40ec0f:	83 c4 18             	add    $0x18,%esp
40ec12:	32 c0                	xor    %al,%al
40ec14:	e9 2d 01 00 00       	jmp    0x40ed46
40ec19:	8b 4e 10             	mov    0x10(%esi),%ecx
40ec1c:	8b 7e 1c             	mov    0x1c(%esi),%edi
40ec1f:	8b c7                	mov    %edi,%eax
40ec21:	c1 e8 04             	shr    $0x4,%eax
40ec24:	a8 01                	test   $0x1,%al
40ec26:	8d 41 08             	lea    0x8(%ecx),%eax
40ec29:	89 46 10             	mov    %eax,0x10(%esi)
40ec2c:	8b 01                	mov    (%ecx),%eax
40ec2e:	8b 51 04             	mov    0x4(%ecx),%edx
40ec31:	eb 66                	jmp    0x40ec99
40ec33:	8b 7e 1c             	mov    0x1c(%esi),%edi
40ec36:	8b c7                	mov    %edi,%eax
40ec38:	c1 e8 04             	shr    $0x4,%eax
40ec3b:	a8 01                	test   $0x1,%al
40ec3d:	74 0d                	je     0x40ec4c
40ec3f:	8b 46 10             	mov    0x10(%esi),%eax
40ec42:	8d 48 04             	lea    0x4(%eax),%ecx
40ec45:	89 4e 10             	mov    %ecx,0x10(%esi)
40ec48:	8b 00                	mov    (%eax),%eax
40ec4a:	eb 4c                	jmp    0x40ec98
40ec4c:	8b 4e 10             	mov    0x10(%esi),%ecx
40ec4f:	89 5d f8             	mov    %ebx,-0x8(%ebp)
40ec52:	8d 41 04             	lea    0x4(%ecx),%eax
40ec55:	89 46 10             	mov    %eax,0x10(%esi)
40ec58:	8b 01                	mov    (%ecx),%eax
40ec5a:	eb 40                	jmp    0x40ec9c
40ec5c:	8b 7e 1c             	mov    0x1c(%esi),%edi
40ec5f:	8b c7                	mov    %edi,%eax
40ec61:	8b 4e 10             	mov    0x10(%esi),%ecx
40ec64:	c1 e8 04             	shr    $0x4,%eax
40ec67:	a8 01                	test   $0x1,%al
40ec69:	8d 41 04             	lea    0x4(%ecx),%eax
40ec6c:	89 46 10             	mov    %eax,0x10(%esi)
40ec6f:	74 05                	je     0x40ec76
40ec71:	0f bf 01             	movswl (%ecx),%eax
40ec74:	eb 22                	jmp    0x40ec98
40ec76:	0f b7 01             	movzwl (%ecx),%eax
40ec79:	eb 1d                	jmp    0x40ec98
40ec7b:	8b 7e 1c             	mov    0x1c(%esi),%edi
40ec7e:	8b c7                	mov    %edi,%eax
40ec80:	8b 4e 10             	mov    0x10(%esi),%ecx
40ec83:	c1 e8 04             	shr    $0x4,%eax
40ec86:	a8 01                	test   $0x1,%al
40ec88:	8d 41 04             	lea    0x4(%ecx),%eax
40ec8b:	89 46 10             	mov    %eax,0x10(%esi)
40ec8e:	74 05                	je     0x40ec95
40ec90:	0f be 01             	movsbl (%ecx),%eax
40ec93:	eb 03                	jmp    0x40ec98
40ec95:	0f b6 01             	movzbl (%ecx),%eax
40ec98:	99                   	cltd
40ec99:	89 55 f8             	mov    %edx,-0x8(%ebp)
40ec9c:	8b 55 f8             	mov    -0x8(%ebp),%edx
40ec9f:	89 45 fc             	mov    %eax,-0x4(%ebp)
40eca2:	8b c7                	mov    %edi,%eax
40eca4:	8b 4d fc             	mov    -0x4(%ebp),%ecx
40eca7:	c1 e8 04             	shr    $0x4,%eax
40ecaa:	a8 01                	test   $0x1,%al
40ecac:	74 16                	je     0x40ecc4
40ecae:	3b d3                	cmp    %ebx,%edx
40ecb0:	7f 12                	jg     0x40ecc4
40ecb2:	7c 04                	jl     0x40ecb8
40ecb4:	3b cb                	cmp    %ebx,%ecx
40ecb6:	73 0c                	jae    0x40ecc4
40ecb8:	f7 d9                	neg    %ecx
40ecba:	13 d3                	adc    %ebx,%edx
40ecbc:	f7 da                	neg    %edx
40ecbe:	83 cf 40             	or     $0x40,%edi
40ecc1:	89 7e 1c             	mov    %edi,0x1c(%esi)
40ecc4:	83 7e 24 00          	cmpl   $0x0,0x24(%esi)
40ecc8:	89 55 f8             	mov    %edx,-0x8(%ebp)
40eccb:	89 4d fc             	mov    %ecx,-0x4(%ebp)
40ecce:	7d 09                	jge    0x40ecd9
40ecd0:	c7 46 24 01 00 00 00 	movl   $0x1,0x24(%esi)
40ecd7:	eb 1a                	jmp    0x40ecf3
40ecd9:	ff 76 08             	push   0x8(%esi)
40ecdc:	83 e7 f7             	and    $0xfffffff7,%edi
40ecdf:	8d 4e 3c             	lea    0x3c(%esi),%ecx
40ece2:	ff 76 24             	push   0x24(%esi)
40ece5:	89 7e 1c             	mov    %edi,0x1c(%esi)
40ece8:	e8 b3 ed ff ff       	call   0x40daa0
40eced:	8b 4d fc             	mov    -0x4(%ebp),%ecx
40ecf0:	8b 55 f8             	mov    -0x8(%ebp),%edx
40ecf3:	8b c1                	mov    %ecx,%eax
40ecf5:	0b c2                	or     %edx,%eax
40ecf7:	75 04                	jne    0x40ecfd
40ecf9:	83 66 1c df          	andl   $0xffffffdf,0x1c(%esi)
40ecfd:	83 7d f4 08          	cmpl   $0x8,-0xc(%ebp)
40ed01:	ff 75 08             	push   0x8(%ebp)
40ed04:	c6 46 38 01          	movb   $0x1,0x38(%esi)
40ed08:	75 0b                	jne    0x40ed15
40ed0a:	52                   	push   %edx
40ed0b:	51                   	push   %ecx
40ed0c:	8b ce                	mov    %esi,%ecx
40ed0e:	e8 27 06 00 00       	call   0x40f33a
40ed13:	eb 08                	jmp    0x40ed1d
40ed15:	51                   	push   %ecx
40ed16:	8b ce                	mov    %esi,%ecx
40ed18:	e8 a6 02 00 00       	call   0x40efc3
40ed1d:	8b 46 1c             	mov    0x1c(%esi),%eax
40ed20:	c1 e8 07             	shr    $0x7,%eax
40ed23:	a8 01                	test   $0x1,%al
40ed25:	74 1d                	je     0x40ed44
40ed27:	6a 30                	push   $0x30
40ed29:	5a                   	pop    %edx
40ed2a:	39 5e 34             	cmp    %ebx,0x34(%esi)
40ed2d:	74 08                	je     0x40ed37
40ed2f:	8b 46 30             	mov    0x30(%esi),%eax
40ed32:	66 39 10             	cmp    %dx,(%eax)
40ed35:	74 0d                	je     0x40ed44
40ed37:	83 46 30 fe          	addl   $0xfffffffe,0x30(%esi)
40ed3b:	8b 4e 30             	mov    0x30(%esi),%ecx
40ed3e:	66 89 11             	mov    %dx,(%ecx)
40ed41:	ff 46 34             	incl   0x34(%esi)
40ed44:	b0 01                	mov    $0x1,%al
40ed46:	5f                   	pop    %edi
40ed47:	5e                   	pop    %esi
40ed48:	5b                   	pop    %ebx
40ed49:	c9                   	leave
40ed4a:	c2 04 00             	ret    $0x4
40ed4d:	8b ff                	mov    %edi,%edi
40ed4f:	55                   	push   %ebp
40ed50:	8b ec                	mov    %esp,%ebp
40ed52:	53                   	push   %ebx
40ed53:	56                   	push   %esi
40ed54:	8b f1                	mov    %ecx,%esi
40ed56:	57                   	push   %edi
40ed57:	8d 4e 3c             	lea    0x3c(%esi),%ecx
40ed5a:	8b b9 04 04 00 00    	mov    0x404(%ecx),%edi
40ed60:	85 ff                	test   %edi,%edi
40ed62:	75 02                	jne    0x40ed66
40ed64:	8b f9                	mov    %ecx,%edi
40ed66:	e8 83 ec ff ff       	call   0x40d9ee
40ed6b:	8b 55 08             	mov    0x8(%ebp),%edx
40ed6e:	8d 48 ff             	lea    -0x1(%eax),%ecx
40ed71:	03 cf                	add    %edi,%ecx
40ed73:	89 4e 30             	mov    %ecx,0x30(%esi)
40ed76:	8b c1                	mov    %ecx,%eax
40ed78:	8b d9                	mov    %ecx,%ebx
40ed7a:	8b 7e 24             	mov    0x24(%esi),%edi
40ed7d:	85 ff                	test   %edi,%edi
40ed7f:	7f 04                	jg     0x40ed85
40ed81:	85 d2                	test   %edx,%edx
40ed83:	74 1b                	je     0x40eda0
40ed85:	8d 47 ff             	lea    -0x1(%edi),%eax
40ed88:	89 46 24             	mov    %eax,0x24(%esi)
40ed8b:	8a c2                	mov    %dl,%al
40ed8d:	24 07                	and    $0x7,%al
40ed8f:	c1 ea 03             	shr    $0x3,%edx
40ed92:	04 30                	add    $0x30,%al
40ed94:	88 03                	mov    %al,(%ebx)
40ed96:	ff 4e 30             	decl   0x30(%esi)
40ed99:	8b 46 30             	mov    0x30(%esi),%eax
40ed9c:	8b d8                	mov    %eax,%ebx
40ed9e:	eb da                	jmp    0x40ed7a
40eda0:	2b c8                	sub    %eax,%ecx