40f8d6:	59                   	pop    %ecx
40f8d7:	89 45 fc             	mov    %eax,-0x4(%ebp)
40f8da:	7d 03                	jge    0x40f8df
40f8dc:	89 5f 04             	mov    %ebx,0x4(%edi)
40f8df:	6a 01                	push   $0x1
40f8e1:	53                   	push   %ebx
40f8e2:	50                   	push   %eax
40f8e3:	e8 d8 fe ff ff       	call   0x40f7c0
40f8e8:	83 c4 0c             	add    $0xc,%esp
40f8eb:	3b c3                	cmp    %ebx,%eax
40f8ed:	89 45 f8             	mov    %eax,-0x8(%ebp)
40f8f0:	7c d3                	jl     0x40f8c5
40f8f2:	8b 57 0c             	mov    0xc(%edi),%edx
40f8f5:	66 f7 c2 08 01       	test   $0x108,%dx
40f8fa:	75 08                	jne    0x40f904
40f8fc:	2b 47 04             	sub    0x4(%edi),%eax
40f8ff:	e9 2c 01 00 00       	jmp    0x40fa30
40f904:	8b 07                	mov    (%edi),%eax
40f906:	8b 4f 08             	mov    0x8(%edi),%ecx
40f909:	56                   	push   %esi
40f90a:	8b f0                	mov    %eax,%esi
40f90c:	2b f1                	sub    %ecx,%esi
40f90e:	f6 c2 03             	test   $0x3,%dl
40f911:	89 75 f4             	mov    %esi,-0xc(%ebp)
40f914:	74 41                	je     0x40f957
40f916:	8b 75 fc             	mov    -0x4(%ebp),%esi
40f919:	8b 55 fc             	mov    -0x4(%ebp),%edx
40f91c:	83 e6 1f             	and    $0x1f,%esi
40f91f:	6b f6 28             	imul   $0x28,%esi,%esi
40f922:	c1 fa 05             	sar    $0x5,%edx
40f925:	8b 14 95 c0 e4 41 00 	mov    0x41e4c0(,%edx,4),%edx
40f92c:	f6 44 32 04 80       	testb  $0x80,0x4(%edx,%esi,1)
40f931:	74 17                	je     0x40f94a
40f933:	8b d1                	mov    %ecx,%edx
40f935:	3b d0                	cmp    %eax,%edx
40f937:	73 11                	jae    0x40f94a
40f939:	8b f0                	mov    %eax,%esi
40f93b:	80 3a 0a             	cmpb   $0xa,(%edx)
40f93e:	75 05                	jne    0x40f945
40f940:	ff 45 f4             	incl   -0xc(%ebp)
40f943:	33 db                	xor    %ebx,%ebx
40f945:	42                   	inc    %edx
40f946:	3b d6                	cmp    %esi,%edx
40f948:	72 f1                	jb     0x40f93b
40f94a:	39 5d f8             	cmp    %ebx,-0x8(%ebp)
40f94d:	75 1c                	jne    0x40f96b
40f94f:	8b 45 f4             	mov    -0xc(%ebp),%eax
40f952:	e9 d8 00 00 00       	jmp    0x40fa2f
40f957:	84 d2                	test   %dl,%dl
40f959:	78 ef                	js     0x40f94a
40f95b:	e8 9a 9a ff ff       	call   0x4093fa
40f960:	c7 00 16 00 00 00    	movl   $0x16,(%eax)
40f966:	e9 86 00 00 00       	jmp    0x40f9f1
40f96b:	f6 47 0c 01          	testb  $0x1,0xc(%edi)
40f96f:	0f 84 b2 00 00 00    	je     0x40fa27
40f975:	8b 57 04             	mov    0x4(%edi),%edx
40f978:	3b d3                	cmp    %ebx,%edx
40f97a:	75 08                	jne    0x40f984
40f97c:	89 5d f4             	mov    %ebx,-0xc(%ebp)
40f97f:	e9 a3 00 00 00       	jmp    0x40fa27
40f984:	8b 75 fc             	mov    -0x4(%ebp),%esi
40f987:	8b 5d fc             	mov    -0x4(%ebp),%ebx
40f98a:	83 e6 1f             	and    $0x1f,%esi
40f98d:	6b f6 28             	imul   $0x28,%esi,%esi
40f990:	2b c1                	sub    %ecx,%eax
40f992:	03 c2                	add    %edx,%eax
40f994:	c1 fb 05             	sar    $0x5,%ebx
40f997:	8d 1c 9d c0 e4 41 00 	lea    0x41e4c0(,%ebx,4),%ebx
40f99e:	89 45 08             	mov    %eax,0x8(%ebp)
40f9a1:	8b 03                	mov    (%ebx),%eax
40f9a3:	f6 44 30 04 80       	testb  $0x80,0x4(%eax,%esi,1)
40f9a8:	74 77                	je     0x40fa21
40f9aa:	6a 02                	push   $0x2
40f9ac:	6a 00                	push   $0x0
40f9ae:	ff 75 fc             	push   -0x4(%ebp)
40f9b1:	e8 0a fe ff ff       	call   0x40f7c0
40f9b6:	83 c4 0c             	add    $0xc,%esp
40f9b9:	3b 45 f8             	cmp    -0x8(%ebp),%eax
40f9bc:	75 1f                	jne    0x40f9dd
40f9be:	8b 47 08             	mov    0x8(%edi),%eax
40f9c1:	8b 4d 08             	mov    0x8(%ebp),%ecx
40f9c4:	03 c8                	add    %eax,%ecx
40f9c6:	eb 09                	jmp    0x40f9d1
40f9c8:	80 38 0a             	cmpb   $0xa,(%eax)
40f9cb:	75 03                	jne    0x40f9d0
40f9cd:	ff 45 08             	incl   0x8(%ebp)
40f9d0:	40                   	inc    %eax
40f9d1:	3b c1                	cmp    %ecx,%eax
40f9d3:	72 f3                	jb     0x40f9c8
40f9d5:	66 f7 47 0c 00 20    	testw  $0x2000,0xc(%edi)
40f9db:	eb 3f                	jmp    0x40fa1c
40f9dd:	6a 00                	push   $0x0
40f9df:	ff 75 f8             	push   -0x8(%ebp)
40f9e2:	ff 75 fc             	push   -0x4(%ebp)
40f9e5:	e8 d6 fd ff ff       	call   0x40f7c0
40f9ea:	83 c4 0c             	add    $0xc,%esp
40f9ed:	85 c0                	test   %eax,%eax
40f9ef:	7d 05                	jge    0x40f9f6
40f9f1:	83 c8 ff             	or     $0xffffffff,%eax
40f9f4:	eb 39                	jmp    0x40fa2f
40f9f6:	b8 00 02 00 00       	mov    $0x200,%eax
40f9fb:	39 45 08             	cmp    %eax,0x8(%ebp)
40f9fe:	77 0f                	ja     0x40fa0f
40fa00:	8b 4f 0c             	mov    0xc(%edi),%ecx
40fa03:	f6 c1 08             	test   $0x8,%cl
40fa06:	74 07                	je     0x40fa0f
40fa08:	66 f7 c1 00 04       	test   $0x400,%cx
40fa0d:	74 03                	je     0x40fa12
40fa0f:	8b 47 18             	mov    0x18(%edi),%eax
40fa12:	89 45 08             	mov    %eax,0x8(%ebp)
40fa15:	8b 03                	mov    (%ebx),%eax
40fa17:	f6 44 30 04 04       	testb  $0x4,0x4(%eax,%esi,1)
40fa1c:	74 03                	je     0x40fa21
40fa1e:	ff 45 08             	incl   0x8(%ebp)
40fa21:	8b 45 08             	mov    0x8(%ebp),%eax
40fa24:	29 45 f8             	sub    %eax,-0x8(%ebp)
40fa27:	8b 45 f4             	mov    -0xc(%ebp),%eax
40fa2a:	8b 4d f8             	mov    -0x8(%ebp),%ecx
40fa2d:	03 c1                	add    %ecx,%eax
40fa2f:	5e                   	pop    %esi
40fa30:	5f                   	pop    %edi
40fa31:	5b                   	pop    %ebx
40fa32:	c9                   	leave
40fa33:	c3                   	ret
40fa34:	55                   	push   %ebp
40fa35:	8b ec                	mov    %esp,%ebp
40fa37:	56                   	push   %esi
40fa38:	8b 75 08             	mov    0x8(%ebp),%esi
40fa3b:	8b 46 0c             	mov    0xc(%esi),%eax
40fa3e:	a8 83                	test   $0x83,%al
40fa40:	57                   	push   %edi
40fa41:	74 78                	je     0x40fabb
40fa43:	8b 7d 14             	mov    0x14(%ebp),%edi
40fa46:	85 ff                	test   %edi,%edi
40fa48:	74 0a                	je     0x40fa54
40fa4a:	83 ff 01             	cmp    $0x1,%edi
40fa4d:	74 05                	je     0x40fa54
40fa4f:	83 ff 02             	cmp    $0x2,%edi
40fa52:	75 67                	jne    0x40fabb
40fa54:	83 e0 ef             	and    $0xffffffef,%eax
40fa57:	83 ff 01             	cmp    $0x1,%edi
40fa5a:	89 46 0c             	mov    %eax,0xc(%esi)
40fa5d:	75 0f                	jne    0x40fa6e
40fa5f:	56                   	push   %esi
40fa60:	e8 eb fa ff ff       	call   0x40f550
40fa65:	01 45 0c             	add    %eax,0xc(%ebp)
40fa68:	59                   	pop    %ecx
40fa69:	11 55 10             	adc    %edx,0x10(%ebp)
40fa6c:	33 ff                	xor    %edi,%edi
40fa6e:	56                   	push   %esi
40fa6f:	e8 a2 82 ff ff       	call   0x407d16
40fa74:	8b 46 0c             	mov    0xc(%esi),%eax
40fa77:	84 c0                	test   %al,%al
40fa79:	59                   	pop    %ecx
40fa7a:	79 08                	jns    0x40fa84
40fa7c:	83 e0 fc             	and    $0xfffffffc,%eax
40fa7f:	89 46 0c             	mov    %eax,0xc(%esi)
40fa82:	eb 15                	jmp    0x40fa99
40fa84:	a8 01                	test   $0x1,%al
40fa86:	74 11                	je     0x40fa99
40fa88:	a8 08                	test   $0x8,%al
40fa8a:	74 0d                	je     0x40fa99
40fa8c:	66 a9 00 04          	test   $0x400,%ax
40fa90:	75 07                	jne    0x40fa99
40fa92:	c7 46 18 00 02 00 00 	movl   $0x200,0x18(%esi)
40fa99:	57                   	push   %edi
40fa9a:	ff 75 10             	push   0x10(%ebp)
40fa9d:	ff 75 0c             	push   0xc(%ebp)
40faa0:	56                   	push   %esi
40faa1:	e8 a0 ef ff ff       	call   0x40ea46
40faa6:	59                   	pop    %ecx
40faa7:	50                   	push   %eax
40faa8:	e8 c8 42 00 00       	call   0x413d75
40faad:	23 c2                	and    %edx,%eax
40faaf:	83 c4 10             	add    $0x10,%esp
40fab2:	83 f8 ff             	cmp    $0xffffffff,%eax
40fab5:	74 0f                	je     0x40fac6
40fab7:	33 c0                	xor    %eax,%eax
40fab9:	eb 0e                	jmp    0x40fac9
40fabb:	e8 3a 99 ff ff       	call   0x4093fa
40fac0:	c7 00 16 00 00 00    	movl   $0x16,(%eax)
40fac6:	83 c8 ff             	or     $0xffffffff,%eax
40fac9:	5f                   	pop    %edi
40faca:	5e                   	pop    %esi
40facb:	5d                   	pop    %ebp
40facc:	c3                   	ret
40facd:	6a 0c                	push   $0xc
40facf:	68 78 ad 41 00       	push   $0x41ad78
40fad4:	e8 6f db ff ff       	call   0x40d648
40fad9:	ff 75 08             	push   0x8(%ebp)
40fadc:	e8 24 8e ff ff       	call   0x408905
40fae1:	59                   	pop    %ecx
40fae2:	83 65 fc 00          	andl   $0x0,-0x4(%ebp)
40fae6:	ff 75 14             	push   0x14(%ebp)
40fae9:	ff 75 10             	push   0x10(%ebp)
40faec:	ff 75 0c             	push   0xc(%ebp)
40faef:	ff 75 08             	push   0x8(%ebp)
40faf2:	e8 3d ff ff ff       	call   0x40fa34
40faf7:	83 c4 10             	add    $0x10,%esp
40fafa:	89 45 e4             	mov    %eax,-0x1c(%ebp)
40fafd:	c7 45 fc fe ff ff ff 	movl   $0xfffffffe,-0x4(%ebp)
40fb04:	e8 09 00 00 00       	call   0x40fb12
40fb09:	8b 45 e4             	mov    -0x1c(%ebp),%eax
40fb0c:	e8 7c db ff ff       	call   0x40d68d
40fb11:	c3                   	ret
40fb12:	ff 75 08             	push   0x8(%ebp)
40fb15:	e8 3d 8e ff ff       	call   0x408957
40fb1a:	59                   	pop    %ecx
40fb1b:	c3                   	ret
40fb1c:	56                   	push   %esi
40fb1d:	8b 74 24 08          	mov    0x8(%esp),%esi
40fb21:	57                   	push   %edi
40fb22:	56                   	push   %esi
40fb23:	e8 59 52 00 00       	call   0x414d81
40fb28:	83 f8 ff             	cmp    $0xffffffff,%eax
40fb2b:	59                   	pop    %ecx
40fb2c:	74 4d                	je     0x40fb7b
40fb2e:	83 fe 01             	cmp    $0x1,%esi
40fb31:	a1 c0 e4 41 00       	mov    0x41e4c0,%eax
40fb36:	75 06                	jne    0x40fb3e
40fb38:	f6 40 54 01          	testb  $0x1,0x54(%eax)
40fb3c:	75 0b                	jne    0x40fb49
40fb3e:	83 fe 02             	cmp    $0x2,%esi
40fb41:	75 1c                	jne    0x40fb5f
40fb43:	f6 40 2c 01          	testb  $0x1,0x2c(%eax)
40fb47:	74 16                	je     0x40fb5f
40fb49:	6a 02                	push   $0x2
40fb4b:	e8 31 52 00 00       	call   0x414d81
40fb50:	6a 01                	push   $0x1
40fb52:	8b f8                	mov    %eax,%edi
40fb54:	e8 28 52 00 00       	call   0x414d81
40fb59:	3b c7                	cmp    %edi,%eax
40fb5b:	59                   	pop    %ecx
40fb5c:	59                   	pop    %ecx
40fb5d:	74 1c                	je     0x40fb7b
40fb5f:	56                   	push   %esi
40fb60:	e8 1c 52 00 00       	call   0x414d81
40fb65:	59                   	pop    %ecx
40fb66:	50                   	push   %eax
40fb67:	ff 15 20 70 41 00    	call   *0x417020
40fb6d:	85 c0                	test   %eax,%eax
40fb6f:	75 0a                	jne    0x40fb7b
40fb71:	ff 15 b0 70 41 00    	call   *0x4170b0
40fb77:	8b f8                	mov    %eax,%edi
40fb79:	eb 02                	jmp    0x40fb7d
40fb7b:	33 ff                	xor    %edi,%edi
40fb7d:	56                   	push   %esi
40fb7e:	e8 7d 51 00 00       	call   0x414d00
40fb83:	8b c6                	mov    %esi,%eax
40fb85:	83 e6 1f             	and    $0x1f,%esi
40fb88:	6b f6 28             	imul   $0x28,%esi,%esi
40fb8b:	c1 f8 05             	sar    $0x5,%eax
40fb8e:	85 ff                	test   %edi,%edi
40fb90:	8b 04 85 c0 e4 41 00 	mov    0x41e4c0(,%eax,4),%eax
40fb97:	59                   	pop    %ecx
40fb98:	c6 44 30 04 00       	movb   $0x0,0x4(%eax,%esi,1)
40fb9d:	74 0c                	je     0x40fbab
40fb9f:	57                   	push   %edi
40fba0:	e8 7b 98 ff ff       	call   0x409420
40fba5:	59                   	pop    %ecx
40fba6:	83 c8 ff             	or     $0xffffffff,%eax
40fba9:	eb 02                	jmp    0x40fbad
40fbab:	33 c0                	xor    %eax,%eax
40fbad:	5f                   	pop    %edi
40fbae:	5e                   	pop    %esi
40fbaf:	c3                   	ret
40fbb0:	6a 10                	push   $0x10
40fbb2:	68 98 ad 41 00       	push   $0x41ad98
40fbb7:	e8 8c da ff ff       	call   0x40d648
40fbbc:	8b 45 08             	mov    0x8(%ebp),%eax
40fbbf:	83 f8 fe             	cmp    $0xfffffffe,%eax
40fbc2:	75 1b                	jne    0x40fbdf
40fbc4:	e8 44 98 ff ff       	call   0x40940d
40fbc9:	83 20 00             	andl   $0x0,(%eax)
40fbcc:	e8 29 98 ff ff       	call   0x4093fa
40fbd1:	c7 00 09 00 00 00    	movl   $0x9,(%eax)
40fbd7:	83 c8 ff             	or     $0xffffffff,%eax
40fbda:	e9 8e 00 00 00       	jmp    0x40fc6d
40fbdf:	33 ff                	xor    %edi,%edi
40fbe1:	3b c7                	cmp    %edi,%eax
40fbe3:	7c 08                	jl     0x40fbed
40fbe5:	3b 05 b4 e4 41 00    	cmp    0x41e4b4,%eax
40fbeb:	72 21                	jb     0x40fc0e
40fbed:	e8 1b 98 ff ff       	call   0x40940d
40fbf2:	89 38                	mov    %edi,(%eax)
40fbf4:	e8 01 98 ff ff       	call   0x4093fa
40fbf9:	c7 00 09 00 00 00    	movl   $0x9,(%eax)
40fbff:	57                   	push   %edi
40fc00:	57                   	push   %edi
40fc01:	57                   	push   %edi
40fc02:	57                   	push   %edi
40fc03:	57                   	push   %edi
40fc04:	e8 47 7a ff ff       	call   0x407650
40fc09:	83 c4 14             	add    $0x14,%esp
40fc0c:	eb c9                	jmp    0x40fbd7
40fc0e:	8b c8                	mov    %eax,%ecx
40fc10:	c1 f9 05             	sar    $0x5,%ecx
40fc13:	8d 1c 8d c0 e4 41 00 	lea    0x41e4c0(,%ecx,4),%ebx
40fc1a:	8b f0                	mov    %eax,%esi
40fc1c:	83 e6 1f             	and    $0x1f,%esi
40fc1f:	6b f6 28             	imul   $0x28,%esi,%esi
40fc22:	8b 0b                	mov    (%ebx),%ecx
40fc24:	0f b6 4c 31 04       	movzbl 0x4(%ecx,%esi,1),%ecx
40fc29:	83 e1 01             	and    $0x1,%ecx
40fc2c:	74 bf                	je     0x40fbed
40fc2e:	50                   	push   %eax
40fc2f:	e8 be 51 00 00       	call   0x414df2
40fc34:	59                   	pop    %ecx
40fc35:	89 7d fc             	mov    %edi,-0x4(%ebp)
40fc38:	8b 03                	mov    (%ebx),%eax
40fc3a:	f6 44 30 04 01       	testb  $0x1,0x4(%eax,%esi,1)
40fc3f:	74 0e                	je     0x40fc4f
40fc41:	ff 75 08             	push   0x8(%ebp)
40fc44:	e8 d3 fe ff ff       	call   0x40fb1c
40fc49:	59                   	pop    %ecx
40fc4a:	89 45 e4             	mov    %eax,-0x1c(%ebp)
40fc4d:	eb 0f                	jmp    0x40fc5e
40fc4f:	e8 a6 97 ff ff       	call   0x4093fa
40fc54:	c7 00 09 00 00 00    	movl   $0x9,(%eax)
40fc5a:	83 4d e4 ff          	orl    $0xffffffff,-0x1c(%ebp)
40fc5e:	c7 45 fc fe ff ff ff 	movl   $0xfffffffe,-0x4(%ebp)
40fc65:	e8 09 00 00 00       	call   0x40fc73
40fc6a:	8b 45 e4             	mov    -0x1c(%ebp),%eax
40fc6d:	e8 1b da ff ff       	call   0x40d68d
40fc72:	c3                   	ret
40fc73:	ff 75 08             	push   0x8(%ebp)
40fc76:	e8 17 52 00 00       	call   0x414e92
40fc7b:	59                   	pop    %ecx
40fc7c:	c3                   	ret
40fc7d:	6a 10                	push   $0x10
40fc7f:	68 b8 ad 41 00       	push   $0x41adb8
40fc84:	e8 bf d9 ff ff       	call   0x40d648
40fc89:	33 c0                	xor    %eax,%eax
40fc8b:	8b 5d 08             	mov    0x8(%ebp),%ebx
40fc8e:	33 ff                	xor    %edi,%edi
40fc90:	3b df                	cmp    %edi,%ebx
40fc92:	0f 95 c0             	setne  %al
40fc95:	3b c7                	cmp    %edi,%eax
40fc97:	75 1d                	jne    0x40fcb6
40fc99:	e8 5c 97 ff ff       	call   0x4093fa
40fc9e:	c7 00 16 00 00 00    	movl   $0x16,(%eax)
40fca4:	57                   	push   %edi
40fca5:	57                   	push   %edi
40fca6:	57                   	push   %edi
40fca7:	57                   	push   %edi
40fca8:	57                   	push   %edi
40fca9:	e8 a2 79 ff ff       	call   0x407650
40fcae:	83 c4 14             	add    $0x14,%esp
40fcb1:	83 c8 ff             	or     $0xffffffff,%eax
40fcb4:	eb 53                	jmp    0x40fd09