40df8b:	c3                   	ret
40df8c:	8b ff                	mov    %edi,%edi
40df8e:	55                   	push   %ebp
40df8f:	8b ec                	mov    %esp,%ebp
40df91:	6b 45 08 18          	imul   $0x18,0x8(%ebp),%eax
40df95:	05 c8 23 42 00       	add    $0x4223c8,%eax
40df9a:	50                   	push   %eax
40df9b:	ff 15 90 90 41 00    	call   *0x419090
40dfa1:	5d                   	pop    %ebp
40dfa2:	c3                   	ret
40dfa3:	8b ff                	mov    %edi,%edi
40dfa5:	56                   	push   %esi
40dfa6:	8b 35 18 25 42 00    	mov    0x422518,%esi
40dfac:	85 f6                	test   %esi,%esi
40dfae:	74 20                	je     0x40dfd0
40dfb0:	6b c6 18             	imul   $0x18,%esi,%eax
40dfb3:	57                   	push   %edi
40dfb4:	8d b8 b0 23 42 00    	lea    0x4223b0(%eax),%edi
40dfba:	57                   	push   %edi
40dfbb:	ff 15 98 90 41 00    	call   *0x419098
40dfc1:	ff 0d 18 25 42 00    	decl   0x422518
40dfc7:	83 ef 18             	sub    $0x18,%edi
40dfca:	83 ee 01             	sub    $0x1,%esi
40dfcd:	75 eb                	jne    0x40dfba
40dfcf:	5f                   	pop    %edi
40dfd0:	b0 01                	mov    $0x1,%al
40dfd2:	5e                   	pop    %esi
40dfd3:	c3                   	ret
40dfd4:	8b ff                	mov    %edi,%edi
40dfd6:	55                   	push   %ebp
40dfd7:	8b ec                	mov    %esp,%ebp
40dfd9:	6b 45 08 18          	imul   $0x18,0x8(%ebp),%eax
40dfdd:	05 c8 23 42 00       	add    $0x4223c8,%eax
40dfe2:	50                   	push   %eax
40dfe3:	ff 15 94 90 41 00    	call   *0x419094
40dfe9:	5d                   	pop    %ebp
40dfea:	c3                   	ret
40dfeb:	8b ff                	mov    %edi,%edi
40dfed:	55                   	push   %ebp
40dfee:	8b ec                	mov    %esp,%ebp
40dff0:	8b 55 08             	mov    0x8(%ebp),%edx
40dff3:	56                   	push   %esi
40dff4:	57                   	push   %edi
40dff5:	85 d2                	test   %edx,%edx
40dff7:	74 13                	je     0x40e00c
40dff9:	8b 4d 0c             	mov    0xc(%ebp),%ecx
40dffc:	85 c9                	test   %ecx,%ecx
40dffe:	74 0c                	je     0x40e00c
40e000:	8b 75 10             	mov    0x10(%ebp),%esi
40e003:	85 f6                	test   %esi,%esi
40e005:	75 1a                	jne    0x40e021
40e007:	33 c0                	xor    %eax,%eax
40e009:	66 89 02             	mov    %ax,(%edx)
40e00c:	e8 1e c7 ff ff       	call   0x40a72f
40e011:	6a 16                	push   $0x16
40e013:	5e                   	pop    %esi
40e014:	89 30                	mov    %esi,(%eax)
40e016:	e8 ae 94 ff ff       	call   0x4074c9
40e01b:	5f                   	pop    %edi
40e01c:	8b c6                	mov    %esi,%eax
40e01e:	5e                   	pop    %esi
40e01f:	5d                   	pop    %ebp
40e020:	c3                   	ret
40e021:	8b fa                	mov    %edx,%edi
40e023:	2b f2                	sub    %edx,%esi
40e025:	0f b7 04 3e          	movzwl (%esi,%edi,1),%eax
40e029:	66 89 07             	mov    %ax,(%edi)
40e02c:	8d 7f 02             	lea    0x2(%edi),%edi
40e02f:	66 85 c0             	test   %ax,%ax
40e032:	74 17                	je     0x40e04b
40e034:	83 e9 01             	sub    $0x1,%ecx
40e037:	75 ec                	jne    0x40e025
40e039:	85 c9                	test   %ecx,%ecx
40e03b:	75 0e                	jne    0x40e04b
40e03d:	33 c0                	xor    %eax,%eax
40e03f:	66 89 02             	mov    %ax,(%edx)
40e042:	e8 e8 c6 ff ff       	call   0x40a72f
40e047:	6a 22                	push   $0x22
40e049:	eb c8                	jmp    0x40e013
40e04b:	33 f6                	xor    %esi,%esi
40e04d:	eb cc                	jmp    0x40e01b
40e04f:	8b ff                	mov    %edi,%edi
40e051:	55                   	push   %ebp
40e052:	8b ec                	mov    %esp,%ebp
40e054:	51                   	push   %ecx
40e055:	8b 4d 08             	mov    0x8(%ebp),%ecx
40e058:	53                   	push   %ebx
40e059:	8b 5d 10             	mov    0x10(%ebp),%ebx
40e05c:	56                   	push   %esi
40e05d:	8b 75 14             	mov    0x14(%ebp),%esi
40e060:	57                   	push   %edi
40e061:	85 f6                	test   %esi,%esi
40e063:	75 1f                	jne    0x40e084
40e065:	85 c9                	test   %ecx,%ecx
40e067:	75 1f                	jne    0x40e088
40e069:	39 75 0c             	cmp    %esi,0xc(%ebp)
40e06c:	74 2a                	je     0x40e098
40e06e:	e8 bc c6 ff ff       	call   0x40a72f
40e073:	6a 16                	push   $0x16
40e075:	5e                   	pop    %esi
40e076:	89 30                	mov    %esi,(%eax)
40e078:	e8 4c 94 ff ff       	call   0x4074c9
40e07d:	8b c6                	mov    %esi,%eax
40e07f:	5f                   	pop    %edi
40e080:	5e                   	pop    %esi
40e081:	5b                   	pop    %ebx
40e082:	c9                   	leave
40e083:	c3                   	ret
40e084:	85 c9                	test   %ecx,%ecx
40e086:	74 e6                	je     0x40e06e
40e088:	8b 45 0c             	mov    0xc(%ebp),%eax
40e08b:	85 c0                	test   %eax,%eax
40e08d:	74 df                	je     0x40e06e
40e08f:	85 f6                	test   %esi,%esi
40e091:	75 09                	jne    0x40e09c
40e093:	33 c0                	xor    %eax,%eax
40e095:	66 89 01             	mov    %ax,(%ecx)
40e098:	33 c0                	xor    %eax,%eax
40e09a:	eb e3                	jmp    0x40e07f
40e09c:	85 db                	test   %ebx,%ebx
40e09e:	75 07                	jne    0x40e0a7
40e0a0:	33 c0                	xor    %eax,%eax
40e0a2:	66 89 01             	mov    %ax,(%ecx)
40e0a5:	eb c7                	jmp    0x40e06e
40e0a7:	2b d9                	sub    %ecx,%ebx
40e0a9:	89 75 fc             	mov    %esi,-0x4(%ebp)
40e0ac:	8b d1                	mov    %ecx,%edx
40e0ae:	8b f8                	mov    %eax,%edi
40e0b0:	83 fe ff             	cmp    $0xffffffff,%esi
40e0b3:	75 16                	jne    0x40e0cb
40e0b5:	0f b7 04 13          	movzwl (%ebx,%edx,1),%eax
40e0b9:	66 89 02             	mov    %ax,(%edx)
40e0bc:	8d 52 02             	lea    0x2(%edx),%edx
40e0bf:	66 85 c0             	test   %ax,%ax
40e0c2:	74 d4                	je     0x40e098
40e0c4:	83 ef 01             	sub    $0x1,%edi
40e0c7:	75 ec                	jne    0x40e0b5
40e0c9:	eb 26                	jmp    0x40e0f1
40e0cb:	0f b7 04 13          	movzwl (%ebx,%edx,1),%eax
40e0cf:	66 89 02             	mov    %ax,(%edx)
40e0d2:	8d 52 02             	lea    0x2(%edx),%edx
40e0d5:	66 85 c0             	test   %ax,%ax
40e0d8:	74 be                	je     0x40e098
40e0da:	8b 45 fc             	mov    -0x4(%ebp),%eax
40e0dd:	83 ef 01             	sub    $0x1,%edi
40e0e0:	74 08                	je     0x40e0ea
40e0e2:	83 e8 01             	sub    $0x1,%eax
40e0e5:	89 45 fc             	mov    %eax,-0x4(%ebp)
40e0e8:	75 e1                	jne    0x40e0cb
40e0ea:	85 c0                	test   %eax,%eax
40e0ec:	75 03                	jne    0x40e0f1
40e0ee:	66 89 02             	mov    %ax,(%edx)
40e0f1:	85 ff                	test   %edi,%edi
40e0f3:	75 a3                	jne    0x40e098
40e0f5:	83 fe ff             	cmp    $0xffffffff,%esi
40e0f8:	75 12                	jne    0x40e10c
40e0fa:	8b 45 0c             	mov    0xc(%ebp),%eax
40e0fd:	33 d2                	xor    %edx,%edx
40e0ff:	6a 50                	push   $0x50
40e101:	66 89 54 41 fe       	mov    %dx,-0x2(%ecx,%eax,2)
40e106:	58                   	pop    %eax
40e107:	e9 73 ff ff ff       	jmp    0x40e07f
40e10c:	33 c0                	xor    %eax,%eax
40e10e:	66 89 01             	mov    %ax,(%ecx)
40e111:	e8 19 c6 ff ff       	call   0x40a72f
40e116:	6a 22                	push   $0x22
40e118:	e9 58 ff ff ff       	jmp    0x40e075
40e11d:	8b ff                	mov    %edi,%edi
40e11f:	55                   	push   %ebp
40e120:	8b ec                	mov    %esp,%ebp
40e122:	5d                   	pop    %ebp
40e123:	e9 27 ff ff ff       	jmp    0x40e04f
40e128:	8b ff                	mov    %edi,%edi
40e12a:	55                   	push   %ebp
40e12b:	8b ec                	mov    %esp,%ebp
40e12d:	8b 45 0c             	mov    0xc(%ebp),%eax
40e130:	3b 45 08             	cmp    0x8(%ebp),%eax
40e133:	76 05                	jbe    0x40e13a
40e135:	83 c8 ff             	or     $0xffffffff,%eax
40e138:	5d                   	pop    %ebp
40e139:	c3                   	ret
40e13a:	1b c0                	sbb    %eax,%eax
40e13c:	f7 d8                	neg    %eax
40e13e:	5d                   	pop    %ebp
40e13f:	c3                   	ret
40e140:	8b ff                	mov    %edi,%edi
40e142:	55                   	push   %ebp
40e143:	8b ec                	mov    %esp,%ebp
40e145:	83 ec 30             	sub    $0x30,%esp
40e148:	a1 c0 10 42 00       	mov    0x4210c0,%eax
40e14d:	33 c5                	xor    %ebp,%eax
40e14f:	89 45 fc             	mov    %eax,-0x4(%ebp)
40e152:	8b 45 0c             	mov    0xc(%ebp),%eax
40e155:	89 45 d0             	mov    %eax,-0x30(%ebp)
40e158:	56                   	push   %esi
40e159:	8b 75 08             	mov    0x8(%ebp),%esi
40e15c:	85 c0                	test   %eax,%eax
40e15e:	75 16                	jne    0x40e176
40e160:	e8 ca c5 ff ff       	call   0x40a72f
40e165:	6a 16                	push   $0x16
40e167:	5e                   	pop    %esi
40e168:	89 30                	mov    %esi,(%eax)
40e16a:	e8 5a 93 ff ff       	call   0x4074c9
40e16f:	8b c6                	mov    %esi,%eax
40e171:	e9 68 01 00 00       	jmp    0x40e2de
40e176:	53                   	push   %ebx
40e177:	33 db                	xor    %ebx,%ebx
40e179:	57                   	push   %edi
40e17a:	89 18                	mov    %ebx,(%eax)
40e17c:	8b fb                	mov    %ebx,%edi
40e17e:	8b 06                	mov    (%esi),%eax
40e180:	8b d3                	mov    %ebx,%edx
40e182:	89 5d d8             	mov    %ebx,-0x28(%ebp)
40e185:	89 7d dc             	mov    %edi,-0x24(%ebp)
40e188:	89 55 e0             	mov    %edx,-0x20(%ebp)
40e18b:	89 5d e4             	mov    %ebx,-0x1c(%ebp)
40e18e:	85 c0                	test   %eax,%eax
40e190:	74 5e                	je     0x40e1f0
40e192:	6a 2a                	push   $0x2a
40e194:	59                   	pop    %ecx
40e195:	66 89 4d f4          	mov    %cx,-0xc(%ebp)
40e199:	6a 3f                	push   $0x3f
40e19b:	59                   	pop    %ecx
40e19c:	66 89 4d f6          	mov    %cx,-0xa(%ebp)
40e1a0:	33 c9                	xor    %ecx,%ecx
40e1a2:	66 89 4d f8          	mov    %cx,-0x8(%ebp)
40e1a6:	8d 4d f4             	lea    -0xc(%ebp),%ecx
40e1a9:	51                   	push   %ecx
40e1aa:	50                   	push   %eax
40e1ab:	e8 5f 1a 00 00       	call   0x40fc0f
40e1b0:	59                   	pop    %ecx
40e1b1:	59                   	pop    %ecx
40e1b2:	85 c0                	test   %eax,%eax
40e1b4:	75 18                	jne    0x40e1ce
40e1b6:	8d 45 dc             	lea    -0x24(%ebp),%eax
40e1b9:	50                   	push   %eax
40e1ba:	53                   	push   %ebx
40e1bb:	53                   	push   %ebx
40e1bc:	ff 36                	push   (%esi)
40e1be:	e8 35 01 00 00       	call   0x40e2f8
40e1c3:	8b f8                	mov    %eax,%edi
40e1c5:	83 c4 10             	add    $0x10,%esp
40e1c8:	85 ff                	test   %edi,%edi
40e1ca:	75 7b                	jne    0x40e247
40e1cc:	eb 13                	jmp    0x40e1e1
40e1ce:	8d 4d dc             	lea    -0x24(%ebp),%ecx
40e1d1:	51                   	push   %ecx
40e1d2:	50                   	push   %eax
40e1d3:	ff 36                	push   (%esi)
40e1d5:	e8 d2 01 00 00       	call   0x40e3ac
40e1da:	83 c4 0c             	add    $0xc,%esp
40e1dd:	85 c0                	test   %eax,%eax
40e1df:	75 1d                	jne    0x40e1fe
40e1e1:	83 c6 04             	add    $0x4,%esi
40e1e4:	8b 06                	mov    (%esi),%eax
40e1e6:	85 c0                	test   %eax,%eax
40e1e8:	75 a8                	jne    0x40e192
40e1ea:	8b 7d dc             	mov    -0x24(%ebp),%edi
40e1ed:	8b 55 e0             	mov    -0x20(%ebp),%edx
40e1f0:	8b da                	mov    %edx,%ebx
40e1f2:	8b f7                	mov    %edi,%esi
40e1f4:	2b df                	sub    %edi,%ebx
40e1f6:	c1 fb 02             	sar    $0x2,%ebx
40e1f9:	43                   	inc    %ebx
40e1fa:	33 c0                	xor    %eax,%eax
40e1fc:	eb 26                	jmp    0x40e224
40e1fe:	8b f8                	mov    %eax,%edi
40e200:	eb 45                	jmp    0x40e247
40e202:	8b 0e                	mov    (%esi),%ecx
40e204:	8d 41 02             	lea    0x2(%ecx),%eax
40e207:	89 45 f0             	mov    %eax,-0x10(%ebp)
40e20a:	66 8b 01             	mov    (%ecx),%ax
40e20d:	83 c1 02             	add    $0x2,%ecx
40e210:	66 3b 45 d8          	cmp    -0x28(%ebp),%ax
40e214:	75 f4                	jne    0x40e20a
40e216:	2b 4d f0             	sub    -0x10(%ebp),%ecx
40e219:	8b 45 ec             	mov    -0x14(%ebp),%eax
40e21c:	d1 f9                	sar    $1,%ecx
40e21e:	40                   	inc    %eax
40e21f:	03 c1                	add    %ecx,%eax
40e221:	83 c6 04             	add    $0x4,%esi
40e224:	89 45 ec             	mov    %eax,-0x14(%ebp)
40e227:	3b f2                	cmp    %edx,%esi
40e229:	75 d7                	jne    0x40e202
40e22b:	6a 02                	push   $0x2
40e22d:	50                   	push   %eax
40e22e:	53                   	push   %ebx
40e22f:	e8 82 b4 ff ff       	call   0x4096b6
40e234:	8b f0                	mov    %eax,%esi
40e236:	83 c4 0c             	add    $0xc,%esp
40e239:	85 f6                	test   %esi,%esi
40e23b:	75 19                	jne    0x40e256
40e23d:	50                   	push   %eax
40e23e:	e8 5c c5 ff ff       	call   0x40a79f
40e243:	59                   	pop    %ecx
40e244:	83 cf ff             	or     $0xffffffff,%edi
40e247:	8d 4d dc             	lea    -0x24(%ebp),%ecx
40e24a:	e8 55 03 00 00       	call   0x40e5a4
40e24f:	8b c7                	mov    %edi,%eax
40e251:	e9 86 00 00 00       	jmp    0x40e2dc
40e256:	8d 04 9e             	lea    (%esi,%ebx,4),%eax
40e259:	8b 5d e0             	mov    -0x20(%ebp),%ebx
40e25c:	89 45 d4             	mov    %eax,-0x2c(%ebp)
40e25f:	8b d0                	mov    %eax,%edx
40e261:	89 55 f0             	mov    %edx,-0x10(%ebp)
40e264:	3b fb                	cmp    %ebx,%edi
40e266:	74 5c                	je     0x40e2c4
40e268:	8b c6                	mov    %esi,%eax
40e26a:	2b c7                	sub    %edi,%eax
40e26c:	89 45 f4             	mov    %eax,-0xc(%ebp)
40e26f:	8b 0f                	mov    (%edi),%ecx
40e271:	8d 41 02             	lea    0x2(%ecx),%eax
40e274:	89 45 e8             	mov    %eax,-0x18(%ebp)
40e277:	66 8b 01             	mov    (%ecx),%ax
40e27a:	83 c1 02             	add    $0x2,%ecx
40e27d:	66 3b 45 d8          	cmp    -0x28(%ebp),%ax
40e281:	75 f4                	jne    0x40e277
40e283:	2b 4d e8             	sub    -0x18(%ebp),%ecx
40e286:	d1 f9                	sar    $1,%ecx
40e288:	8d 41 01             	lea    0x1(%ecx),%eax
40e28b:	8b ca                	mov    %edx,%ecx
40e28d:	2b 4d d4             	sub    -0x2c(%ebp),%ecx
40e290:	50                   	push   %eax
40e291:	ff 37                	push   (%edi)
40e293:	89 45 e8             	mov    %eax,-0x18(%ebp)
40e296:	8b 45 ec             	mov    -0x14(%ebp),%eax
40e299:	d1 f9                	sar    $1,%ecx
40e29b:	2b c1                	sub    %ecx,%eax
40e29d:	50                   	push   %eax
40e29e:	52                   	push   %edx
40e29f:	e8 79 fe ff ff       	call   0x40e11d
40e2a4:	83 c4 10             	add    $0x10,%esp
40e2a7:	85 c0                	test   %eax,%eax
40e2a9:	75 40                	jne    0x40e2eb
40e2ab:	8b 45 f4             	mov    -0xc(%ebp),%eax
40e2ae:	8b 55 f0             	mov    -0x10(%ebp),%edx
40e2b1:	89 14 38             	mov    %edx,(%eax,%edi,1)
40e2b4:	83 c7 04             	add    $0x4,%edi
40e2b7:	8b 45 e8             	mov    -0x18(%ebp),%eax
40e2ba:	8d 14 42             	lea    (%edx,%eax,2),%edx
40e2bd:	89 55 f0             	mov    %edx,-0x10(%ebp)
40e2c0:	3b fb                	cmp    %ebx,%edi
40e2c2:	75 ab                	jne    0x40e26f
40e2c4:	8b 45 d0             	mov    -0x30(%ebp),%eax
40e2c7:	89 30                	mov    %esi,(%eax)
40e2c9:	33 c0                	xor    %eax,%eax
40e2cb:	50                   	push   %eax
40e2cc:	e8 ce c4 ff ff       	call   0x40a79f
40e2d1:	59                   	pop    %ecx
40e2d2:	8d 4d dc             	lea    -0x24(%ebp),%ecx