40e86b:	e8 b3 05 00 00       	call   0x40ee23
40e870:	8b 46 1c             	mov    0x1c(%esi),%eax
40e873:	c1 e8 07             	shr    $0x7,%eax
40e876:	a8 01                	test   $0x1,%al
40e878:	74 19                	je     0x40e893
40e87a:	39 5e 34             	cmp    %ebx,0x34(%esi)
40e87d:	74 08                	je     0x40e887
40e87f:	8b 46 30             	mov    0x30(%esi),%eax
40e882:	80 38 30             	cmpb   $0x30,(%eax)
40e885:	74 0c                	je     0x40e893
40e887:	ff 4e 30             	decl   0x30(%esi)
40e88a:	8b 4e 30             	mov    0x30(%esi),%ecx
40e88d:	c6 01 30             	movb   $0x30,(%ecx)
40e890:	ff 46 34             	incl   0x34(%esi)
40e893:	b0 01                	mov    $0x1,%al
40e895:	5f                   	pop    %edi
40e896:	5e                   	pop    %esi
40e897:	5b                   	pop    %ebx
40e898:	c9                   	leave
40e899:	c2 04 00             	ret    $0x4
40e89c:	8b ff                	mov    %edi,%edi
40e89e:	55                   	push   %ebp
40e89f:	8b ec                	mov    %esp,%ebp
40e8a1:	83 ec 0c             	sub    $0xc,%esp
40e8a4:	53                   	push   %ebx
40e8a5:	56                   	push   %esi
40e8a6:	8b f1                	mov    %ecx,%esi
40e8a8:	57                   	push   %edi
40e8a9:	ff 76 28             	push   0x28(%esi)
40e8ac:	e8 fc 27 00 00       	call   0x4110ad
40e8b1:	59                   	pop    %ecx
40e8b2:	8b c8                	mov    %eax,%ecx
40e8b4:	89 45 f4             	mov    %eax,-0xc(%ebp)
40e8b7:	6a 00                	push   $0x0
40e8b9:	5b                   	pop    %ebx
40e8ba:	83 e9 01             	sub    $0x1,%ecx
40e8bd:	0f 84 99 00 00 00    	je     0x40e95c
40e8c3:	83 e9 01             	sub    $0x1,%ecx
40e8c6:	74 75                	je     0x40e93d
40e8c8:	49                   	dec    %ecx
40e8c9:	83 e9 01             	sub    $0x1,%ecx
40e8cc:	74 46                	je     0x40e914
40e8ce:	83 e9 04             	sub    $0x4,%ecx
40e8d1:	74 27                	je     0x40e8fa
40e8d3:	8b 46 08             	mov    0x8(%esi),%eax
40e8d6:	83 c0 18             	add    $0x18,%eax
40e8d9:	c6 40 04 01          	movb   $0x1,0x4(%eax)
40e8dd:	c7 00 16 00 00 00    	movl   $0x16,(%eax)
40e8e3:	ff 76 08             	push   0x8(%esi)
40e8e6:	53                   	push   %ebx
40e8e7:	53                   	push   %ebx
40e8e8:	53                   	push   %ebx
40e8e9:	53                   	push   %ebx
40e8ea:	53                   	push   %ebx
40e8eb:	e8 81 ea ff ff       	call   0x40d371
40e8f0:	83 c4 18             	add    $0x18,%esp
40e8f3:	32 c0                	xor    %al,%al
40e8f5:	e9 2d 01 00 00       	jmp    0x40ea27
40e8fa:	8b 4e 10             	mov    0x10(%esi),%ecx
40e8fd:	8b 7e 1c             	mov    0x1c(%esi),%edi
40e900:	8b c7                	mov    %edi,%eax
40e902:	c1 e8 04             	shr    $0x4,%eax
40e905:	a8 01                	test   $0x1,%al
40e907:	8d 41 08             	lea    0x8(%ecx),%eax
40e90a:	89 46 10             	mov    %eax,0x10(%esi)
40e90d:	8b 01                	mov    (%ecx),%eax
40e90f:	8b 51 04             	mov    0x4(%ecx),%edx
40e912:	eb 66                	jmp    0x40e97a
40e914:	8b 7e 1c             	mov    0x1c(%esi),%edi
40e917:	8b c7                	mov    %edi,%eax
40e919:	c1 e8 04             	shr    $0x4,%eax
40e91c:	a8 01                	test   $0x1,%al
40e91e:	74 0d                	je     0x40e92d
40e920:	8b 46 10             	mov    0x10(%esi),%eax
40e923:	8d 48 04             	lea    0x4(%eax),%ecx
40e926:	89 4e 10             	mov    %ecx,0x10(%esi)
40e929:	8b 00                	mov    (%eax),%eax
40e92b:	eb 4c                	jmp    0x40e979
40e92d:	8b 4e 10             	mov    0x10(%esi),%ecx
40e930:	89 5d f8             	mov    %ebx,-0x8(%ebp)
40e933:	8d 41 04             	lea    0x4(%ecx),%eax
40e936:	89 46 10             	mov    %eax,0x10(%esi)
40e939:	8b 01                	mov    (%ecx),%eax
40e93b:	eb 40                	jmp    0x40e97d
40e93d:	8b 7e 1c             	mov    0x1c(%esi),%edi
40e940:	8b c7                	mov    %edi,%eax
40e942:	8b 4e 10             	mov    0x10(%esi),%ecx
40e945:	c1 e8 04             	shr    $0x4,%eax
40e948:	a8 01                	test   $0x1,%al
40e94a:	8d 41 04             	lea    0x4(%ecx),%eax
40e94d:	89 46 10             	mov    %eax,0x10(%esi)
40e950:	74 05                	je     0x40e957
40e952:	0f bf 01             	movswl (%ecx),%eax
40e955:	eb 22                	jmp    0x40e979
40e957:	0f b7 01             	movzwl (%ecx),%eax
40e95a:	eb 1d                	jmp    0x40e979
40e95c:	8b 7e 1c             	mov    0x1c(%esi),%edi
40e95f:	8b c7                	mov    %edi,%eax
40e961:	8b 4e 10             	mov    0x10(%esi),%ecx
40e964:	c1 e8 04             	shr    $0x4,%eax
40e967:	a8 01                	test   $0x1,%al
40e969:	8d 41 04             	lea    0x4(%ecx),%eax
40e96c:	89 46 10             	mov    %eax,0x10(%esi)
40e96f:	74 05                	je     0x40e976
40e971:	0f be 01             	movsbl (%ecx),%eax
40e974:	eb 03                	jmp    0x40e979
40e976:	0f b6 01             	movzbl (%ecx),%eax
40e979:	99                   	cltd
40e97a:	89 55 f8             	mov    %edx,-0x8(%ebp)
40e97d:	8b 55 f8             	mov    -0x8(%ebp),%edx
40e980:	89 45 fc             	mov    %eax,-0x4(%ebp)
40e983:	8b c7                	mov    %edi,%eax
40e985:	8b 4d fc             	mov    -0x4(%ebp),%ecx
40e988:	c1 e8 04             	shr    $0x4,%eax
40e98b:	a8 01                	test   $0x1,%al
40e98d:	74 16                	je     0x40e9a5
40e98f:	3b d3                	cmp    %ebx,%edx
40e991:	7f 12                	jg     0x40e9a5
40e993:	7c 04                	jl     0x40e999
40e995:	3b cb                	cmp    %ebx,%ecx
40e997:	73 0c                	jae    0x40e9a5
40e999:	f7 d9                	neg    %ecx
40e99b:	13 d3                	adc    %ebx,%edx
40e99d:	f7 da                	neg    %edx
40e99f:	83 cf 40             	or     $0x40,%edi
40e9a2:	89 7e 1c             	mov    %edi,0x1c(%esi)
40e9a5:	83 7e 24 00          	cmpl   $0x0,0x24(%esi)
40e9a9:	89 55 f8             	mov    %edx,-0x8(%ebp)
40e9ac:	89 4d fc             	mov    %ecx,-0x4(%ebp)
40e9af:	7d 09                	jge    0x40e9ba
40e9b1:	c7 46 24 01 00 00 00 	movl   $0x1,0x24(%esi)
40e9b8:	eb 1a                	jmp    0x40e9d4
40e9ba:	ff 76 08             	push   0x8(%esi)
40e9bd:	83 e7 f7             	and    $0xfffffff7,%edi
40e9c0:	8d 4e 3c             	lea    0x3c(%esi),%ecx
40e9c3:	ff 76 24             	push   0x24(%esi)
40e9c6:	89 7e 1c             	mov    %edi,0x1c(%esi)
40e9c9:	e8 d2 f0 ff ff       	call   0x40daa0
40e9ce:	8b 4d fc             	mov    -0x4(%ebp),%ecx
40e9d1:	8b 55 f8             	mov    -0x8(%ebp),%edx
40e9d4:	8b c1                	mov    %ecx,%eax
40e9d6:	0b c2                	or     %edx,%eax
40e9d8:	75 04                	jne    0x40e9de
40e9da:	83 66 1c df          	andl   $0xffffffdf,0x1c(%esi)
40e9de:	83 7d f4 08          	cmpl   $0x8,-0xc(%ebp)
40e9e2:	ff 75 08             	push   0x8(%ebp)
40e9e5:	c6 46 38 01          	movb   $0x1,0x38(%esi)
40e9e9:	75 0b                	jne    0x40e9f6
40e9eb:	52                   	push   %edx
40e9ec:	51                   	push   %ecx
40e9ed:	8b ce                	mov    %esi,%ecx
40e9ef:	e8 ff 07 00 00       	call   0x40f1f3
40e9f4:	eb 08                	jmp    0x40e9fe
40e9f6:	51                   	push   %ecx
40e9f7:	8b ce                	mov    %esi,%ecx
40e9f9:	e8 ac 04 00 00       	call   0x40eeaa
40e9fe:	8b 46 1c             	mov    0x1c(%esi),%eax
40ea01:	c1 e8 07             	shr    $0x7,%eax
40ea04:	a8 01                	test   $0x1,%al
40ea06:	74 1d                	je     0x40ea25
40ea08:	6a 30                	push   $0x30
40ea0a:	5a                   	pop    %edx
40ea0b:	39 5e 34             	cmp    %ebx,0x34(%esi)
40ea0e:	74 08                	je     0x40ea18
40ea10:	8b 46 30             	mov    0x30(%esi),%eax
40ea13:	66 39 10             	cmp    %dx,(%eax)
40ea16:	74 0d                	je     0x40ea25
40ea18:	83 46 30 fe          	addl   $0xfffffffe,0x30(%esi)
40ea1c:	8b 4e 30             	mov    0x30(%esi),%ecx
40ea1f:	66 89 11             	mov    %dx,(%ecx)
40ea22:	ff 46 34             	incl   0x34(%esi)
40ea25:	b0 01                	mov    $0x1,%al
40ea27:	5f                   	pop    %edi
40ea28:	5e                   	pop    %esi
40ea29:	5b                   	pop    %ebx
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