40f0c0:	5b                   	pop    %ebx
40f0c1:	c9                   	leave
40f0c2:	c2 0c 00             	ret    $0xc
40f0c5:	8b ff                	mov    %edi,%edi
40f0c7:	55                   	push   %ebp
40f0c8:	8b ec                	mov    %esp,%ebp
40f0ca:	83 ec 10             	sub    $0x10,%esp
40f0cd:	53                   	push   %ebx
40f0ce:	56                   	push   %esi
40f0cf:	8b f1                	mov    %ecx,%esi
40f0d1:	57                   	push   %edi
40f0d2:	8d 4e 3c             	lea    0x3c(%esi),%ecx
40f0d5:	8b b9 04 04 00 00    	mov    0x404(%ecx),%edi
40f0db:	85 ff                	test   %edi,%edi
40f0dd:	75 02                	jne    0x40f0e1
40f0df:	8b f9                	mov    %ecx,%edi
40f0e1:	e8 20 e9 ff ff       	call   0x40da06
40f0e6:	8b 55 0c             	mov    0xc(%ebp),%edx
40f0e9:	8b 5d 08             	mov    0x8(%ebp),%ebx
40f0ec:	8d 48 ff             	lea    -0x1(%eax),%ecx
40f0ef:	8d 0c 4f             	lea    (%edi,%ecx,2),%ecx
40f0f2:	89 4d f8             	mov    %ecx,-0x8(%ebp)
40f0f5:	8b f9                	mov    %ecx,%edi
40f0f7:	89 4e 30             	mov    %ecx,0x30(%esi)
40f0fa:	89 4d fc             	mov    %ecx,-0x4(%ebp)
40f0fd:	8b 46 24             	mov    0x24(%esi),%eax
40f100:	89 5d fc             	mov    %ebx,-0x4(%ebp)
40f103:	89 55 f4             	mov    %edx,-0xc(%ebp)
40f106:	85 c0                	test   %eax,%eax
40f108:	7f 09                	jg     0x40f113
40f10a:	8b c3                	mov    %ebx,%eax
40f10c:	0b c2                	or     %edx,%eax
40f10e:	74 25                	je     0x40f135
40f110:	8b 46 24             	mov    0x24(%esi),%eax
40f113:	48                   	dec    %eax
40f114:	89 46 24             	mov    %eax,0x24(%esi)
40f117:	8b 45 fc             	mov    -0x4(%ebp),%eax
40f11a:	83 e0 07             	and    $0x7,%eax
40f11d:	0f ac d3 03          	shrd   $0x3,%edx,%ebx
40f121:	83 c0 30             	add    $0x30,%eax
40f124:	66 89 01             	mov    %ax,(%ecx)
40f127:	c1 ea 03             	shr    $0x3,%edx
40f12a:	83 46 30 fe          	addl   $0xfffffffe,0x30(%esi)
40f12e:	8b 7e 30             	mov    0x30(%esi),%edi
40f131:	8b cf                	mov    %edi,%ecx
40f133:	eb c8                	jmp    0x40f0fd
40f135:	8b 4d f8             	mov    -0x8(%ebp),%ecx
40f138:	8d 47 02             	lea    0x2(%edi),%eax
40f13b:	2b cf                	sub    %edi,%ecx
40f13d:	d1 f9                	sar    $1,%ecx
40f13f:	89 4e 34             	mov    %ecx,0x34(%esi)
40f142:	5f                   	pop    %edi
40f143:	89 46 30             	mov    %eax,0x30(%esi)
40f146:	5e                   	pop    %esi
40f147:	5b                   	pop    %ebx
40f148:	c9                   	leave
40f149:	c2 0c 00             	ret    $0xc
40f14c:	8b ff                	mov    %edi,%edi
40f14e:	55                   	push   %ebp
40f14f:	8b ec                	mov    %esp,%ebp
40f151:	83 ec 0c             	sub    $0xc,%esp
40f154:	53                   	push   %ebx
40f155:	56                   	push   %esi
40f156:	8b f1                	mov    %ecx,%esi
40f158:	57                   	push   %edi
40f159:	8d 4e 3c             	lea    0x3c(%esi),%ecx
40f15c:	8b b9 04 04 00 00    	mov    0x404(%ecx),%edi
40f162:	85 ff                	test   %edi,%edi
40f164:	75 02                	jne    0x40f168
40f166:	8b f9                	mov    %ecx,%edi
40f168:	e8 81 e8 ff ff       	call   0x40d9ee
40f16d:	48                   	dec    %eax
40f16e:	03 f8                	add    %eax,%edi
40f170:	8b 45 08             	mov    0x8(%ebp),%eax
40f173:	89 7d f4             	mov    %edi,-0xc(%ebp)
40f176:	8b cf                	mov    %edi,%ecx
40f178:	89 7e 30             	mov    %edi,0x30(%esi)
40f17b:	89 7d f8             	mov    %edi,-0x8(%ebp)
40f17e:	8b 7d 0c             	mov    0xc(%ebp),%edi
40f181:	89 45 fc             	mov    %eax,-0x4(%ebp)
40f184:	8b 56 24             	mov    0x24(%esi),%edx
40f187:	85 d2                	test   %edx,%edx
40f189:	7f 04                	jg     0x40f18f
40f18b:	0b c7                	or     %edi,%eax
40f18d:	74 4f                	je     0x40f1de
40f18f:	6a 00                	push   $0x0
40f191:	6a 0a                	push   $0xa
40f193:	57                   	push   %edi
40f194:	ff 75 fc             	push   -0x4(%ebp)
40f197:	8d 42 ff             	lea    -0x1(%edx),%eax
40f19a:	89 46 24             	mov    %eax,0x24(%esi)
40f19d:	e8 ee eb 01 00       	call   0x42dd90
40f1a2:	6a 00                	push   $0x0
40f1a4:	6a 0a                	push   $0xa
40f1a6:	8a d8                	mov    %al,%bl
40f1a8:	57                   	push   %edi
40f1a9:	ff 75 fc             	push   -0x4(%ebp)
40f1ac:	80 c3 30             	add    $0x30,%bl
40f1af:	8a fb                	mov    %bl,%bh
40f1b1:	e8 6a eb 01 00       	call   0x42dd20
40f1b6:	89 45 fc             	mov    %eax,-0x4(%ebp)
40f1b9:	8b fa                	mov    %edx,%edi
40f1bb:	80 fb 39             	cmp    $0x39,%bl
40f1be:	7e 0e                	jle    0x40f1ce
40f1c0:	8a 5d 10             	mov    0x10(%ebp),%bl
40f1c3:	80 f3 01             	xor    $0x1,%bl
40f1c6:	c0 e3 05             	shl    $0x5,%bl
40f1c9:	80 c3 07             	add    $0x7,%bl
40f1cc:	02 df                	add    %bh,%bl
40f1ce:	8b 4d f8             	mov    -0x8(%ebp),%ecx
40f1d1:	88 19                	mov    %bl,(%ecx)
40f1d3:	ff 4e 30             	decl   0x30(%esi)
40f1d6:	8b 4e 30             	mov    0x30(%esi),%ecx
40f1d9:	89 4d f8             	mov    %ecx,-0x8(%ebp)
40f1dc:	eb a6                	jmp    0x40f184
40f1de:	8b 7d f4             	mov    -0xc(%ebp),%edi
40f1e1:	8d 41 01             	lea    0x1(%ecx),%eax
40f1e4:	2b f9                	sub    %ecx,%edi
40f1e6:	89 7e 34             	mov    %edi,0x34(%esi)
40f1e9:	5f                   	pop    %edi
40f1ea:	89 46 30             	mov    %eax,0x30(%esi)
40f1ed:	5e                   	pop    %esi
40f1ee:	5b                   	pop    %ebx
40f1ef:	c9                   	leave
40f1f0:	c2 0c 00             	ret    $0xc
40f1f3:	8b ff                	mov    %edi,%edi
40f1f5:	55                   	push   %ebp
40f1f6:	8b ec                	mov    %esp,%ebp
40f1f8:	83 ec 0c             	sub    $0xc,%esp
40f1fb:	53                   	push   %ebx
40f1fc:	56                   	push   %esi
40f1fd:	8b f1                	mov    %ecx,%esi
40f1ff:	57                   	push   %edi
40f200:	8d 4e 3c             	lea    0x3c(%esi),%ecx
40f203:	8b b9 04 04 00 00    	mov    0x404(%ecx),%edi
40f209:	85 ff                	test   %edi,%edi
40f20b:	75 02                	jne    0x40f20f
40f20d:	8b f9                	mov    %ecx,%edi
40f20f:	e8 f2 e7 ff ff       	call   0x40da06
40f214:	8b 5d 08             	mov    0x8(%ebp),%ebx
40f217:	89 5d fc             	mov    %ebx,-0x4(%ebp)
40f21a:	8d 3c 47             	lea    (%edi,%eax,2),%edi
40f21d:	83 c7 fe             	add    $0xfffffffe,%edi
40f220:	89 7d f4             	mov    %edi,-0xc(%ebp)
40f223:	8b cf                	mov    %edi,%ecx
40f225:	89 7e 30             	mov    %edi,0x30(%esi)
40f228:	89 7d f8             	mov    %edi,-0x8(%ebp)
40f22b:	8b 7d 0c             	mov    0xc(%ebp),%edi
40f22e:	8b 56 24             	mov    0x24(%esi),%edx
40f231:	85 d2                	test   %edx,%edx
40f233:	7f 06                	jg     0x40f23b
40f235:	8b c3                	mov    %ebx,%eax
40f237:	0b c7                	or     %edi,%eax
40f239:	74 5e                	je     0x40f299
40f23b:	6a 00                	push   $0x0
40f23d:	6a 0a                	push   $0xa
40f23f:	57                   	push   %edi
40f240:	8d 42 ff             	lea    -0x1(%edx),%eax
40f243:	53                   	push   %ebx
40f244:	89 46 24             	mov    %eax,0x24(%esi)
40f247:	e8 44 eb 01 00       	call   0x42dd90
40f24c:	6a 00                	push   $0x0
40f24e:	66 83 c0 30          	add    $0x30,%ax
40f252:	6a 0a                	push   $0xa
40f254:	0f b7 d8             	movzwl %ax,%ebx
40f257:	8b 45 fc             	mov    -0x4(%ebp),%eax
40f25a:	57                   	push   %edi
40f25b:	50                   	push   %eax
40f25c:	e8 bf ea 01 00       	call   0x42dd20
40f261:	89 45 fc             	mov    %eax,-0x4(%ebp)
40f264:	8b fa                	mov    %edx,%edi
40f266:	83 fb 39             	cmp    $0x39,%ebx
40f269:	76 15                	jbe    0x40f280
40f26b:	8a 4d 10             	mov    0x10(%ebp),%cl
40f26e:	80 f1 01             	xor    $0x1,%cl
40f271:	c0 e1 05             	shl    $0x5,%cl
40f274:	80 c1 07             	add    $0x7,%cl
40f277:	02 cb                	add    %bl,%cl
40f279:	66 0f be c1          	movsbw %cl,%ax
40f27d:	0f b7 d8             	movzwl %ax,%ebx
40f280:	8b 4d f8             	mov    -0x8(%ebp),%ecx
40f283:	66 0f be c3          	movsbw %bl,%ax
40f287:	8b 5d fc             	mov    -0x4(%ebp),%ebx
40f28a:	66 89 01             	mov    %ax,(%ecx)
40f28d:	83 46 30 fe          	addl   $0xfffffffe,0x30(%esi)
40f291:	8b 4e 30             	mov    0x30(%esi),%ecx
40f294:	89 4d f8             	mov    %ecx,-0x8(%ebp)
40f297:	eb 95                	jmp    0x40f22e
40f299:	8b 7d f4             	mov    -0xc(%ebp),%edi
40f29c:	8d 41 02             	lea    0x2(%ecx),%eax
40f29f:	2b f9                	sub    %ecx,%edi
40f2a1:	d1 ff                	sar    $1,%edi
40f2a3:	89 7e 34             	mov    %edi,0x34(%esi)
40f2a6:	5f                   	pop    %edi
40f2a7:	89 46 30             	mov    %eax,0x30(%esi)
40f2aa:	5e                   	pop    %esi
40f2ab:	5b                   	pop    %ebx
40f2ac:	c9                   	leave
40f2ad:	c2 0c 00             	ret    $0xc
40f2b0:	8b ff                	mov    %edi,%edi
40f2b2:	55                   	push   %ebp
40f2b3:	8b ec                	mov    %esp,%ebp
40f2b5:	51                   	push   %ecx
40f2b6:	51                   	push   %ecx
40f2b7:	53                   	push   %ebx
40f2b8:	56                   	push   %esi
40f2b9:	8b f1                	mov    %ecx,%esi
40f2bb:	57                   	push   %edi
40f2bc:	8d 4e 3c             	lea    0x3c(%esi),%ecx
40f2bf:	8b b9 04 04 00 00    	mov    0x404(%ecx),%edi
40f2c5:	85 ff                	test   %edi,%edi
40f2c7:	75 02                	jne    0x40f2cb
40f2c9:	8b f9                	mov    %ecx,%edi
40f2cb:	e8 1e e7 ff ff       	call   0x40d9ee
40f2d0:	8b 5d 08             	mov    0x8(%ebp),%ebx
40f2d3:	8d 48 ff             	lea    -0x1(%eax),%ecx
40f2d6:	03 cf                	add    %edi,%ecx
40f2d8:	8b 7d 0c             	mov    0xc(%ebp),%edi
40f2db:	89 4d f8             	mov    %ecx,-0x8(%ebp)
40f2de:	8b d1                	mov    %ecx,%edx
40f2e0:	89 4e 30             	mov    %ecx,0x30(%esi)
40f2e3:	89 4d fc             	mov    %ecx,-0x4(%ebp)
40f2e6:	8b 46 24             	mov    0x24(%esi),%eax
40f2e9:	85 c0                	test   %eax,%eax
40f2eb:	7f 09                	jg     0x40f2f6
40f2ed:	8b c3                	mov    %ebx,%eax
40f2ef:	0b c7                	or     %edi,%eax
40f2f1:	74 32                	je     0x40f325
40f2f3:	8b 46 24             	mov    0x24(%esi),%eax
40f2f6:	48                   	dec    %eax
40f2f7:	89 46 24             	mov    %eax,0x24(%esi)
40f2fa:	8a c3                	mov    %bl,%al
40f2fc:	24 0f                	and    $0xf,%al
40f2fe:	0f ac fb 04          	shrd   $0x4,%edi,%ebx
40f302:	04 30                	add    $0x30,%al
40f304:	c1 ef 04             	shr    $0x4,%edi
40f307:	8a d0                	mov    %al,%dl
40f309:	3c 39                	cmp    $0x39,%al
40f30b:	76 0c                	jbe    0x40f319
40f30d:	8a 45 10             	mov    0x10(%ebp),%al
40f310:	34 01                	xor    $0x1,%al
40f312:	c0 e0 05             	shl    $0x5,%al
40f315:	04 07                	add    $0x7,%al
40f317:	02 c2                	add    %dl,%al
40f319:	88 01                	mov    %al,(%ecx)
40f31b:	ff 4e 30             	decl   0x30(%esi)
40f31e:	8b 56 30             	mov    0x30(%esi),%edx
40f321:	8b ca                	mov    %edx,%ecx
40f323:	eb c1                	jmp    0x40f2e6
40f325:	8b 4d f8             	mov    -0x8(%ebp),%ecx
40f328:	8d 42 01             	lea    0x1(%edx),%eax
40f32b:	2b ca                	sub    %edx,%ecx
40f32d:	89 4e 34             	mov    %ecx,0x34(%esi)
40f330:	5f                   	pop    %edi
40f331:	89 46 30             	mov    %eax,0x30(%esi)
40f334:	5e                   	pop    %esi
40f335:	5b                   	pop    %ebx
40f336:	c9                   	leave
40f337:	c2 0c 00             	ret    $0xc
40f33a:	8b ff                	mov    %edi,%edi
40f33c:	55                   	push   %ebp
40f33d:	8b ec                	mov    %esp,%ebp
40f33f:	51                   	push   %ecx
40f340:	51                   	push   %ecx
40f341:	53                   	push   %ebx
40f342:	56                   	push   %esi
40f343:	8b f1                	mov    %ecx,%esi
40f345:	57                   	push   %edi
40f346:	8d 4e 3c             	lea    0x3c(%esi),%ecx
40f349:	8b b9 04 04 00 00    	mov    0x404(%ecx),%edi
40f34f:	85 ff                	test   %edi,%edi
40f351:	75 02                	jne    0x40f355
40f353:	8b f9                	mov    %ecx,%edi
40f355:	e8 ac e6 ff ff       	call   0x40da06
40f35a:	8b 5d 08             	mov    0x8(%ebp),%ebx
40f35d:	8d 48 ff             	lea    -0x1(%eax),%ecx
40f360:	8d 0c 4f             	lea    (%edi,%ecx,2),%ecx
40f363:	8b 7d 0c             	mov    0xc(%ebp),%edi
40f366:	89 4d f8             	mov    %ecx,-0x8(%ebp)
40f369:	8b d1                	mov    %ecx,%edx
40f36b:	89 4e 30             	mov    %ecx,0x30(%esi)
40f36e:	89 4d fc             	mov    %ecx,-0x4(%ebp)
40f371:	8b 46 24             	mov    0x24(%esi),%eax
40f374:	85 c0                	test   %eax,%eax
40f376:	7f 09                	jg     0x40f381
40f378:	8b c3                	mov    %ebx,%eax
40f37a:	0b c7                	or     %edi,%eax
40f37c:	74 3b                	je     0x40f3b9
40f37e:	8b 46 24             	mov    0x24(%esi),%eax
40f381:	48                   	dec    %eax
40f382:	89 46 24             	mov    %eax,0x24(%esi)
40f385:	8b c3                	mov    %ebx,%eax
40f387:	83 e0 0f             	and    $0xf,%eax
40f38a:	83 c0 30             	add    $0x30,%eax
40f38d:	0f ac fb 04          	shrd   $0x4,%edi,%ebx
40f391:	0f b7 d0             	movzwl %ax,%edx
40f394:	c1 ef 04             	shr    $0x4,%edi
40f397:	83 fa 39             	cmp    $0x39,%edx
40f39a:	76 0f                	jbe    0x40f3ab
40f39c:	8a 45 10             	mov    0x10(%ebp),%al
40f39f:	34 01                	xor    $0x1,%al
40f3a1:	c0 e0 05             	shl    $0x5,%al
40f3a4:	04 07                	add    $0x7,%al
40f3a6:	02 c2                	add    %dl,%al
40f3a8:	0f b6 d0             	movzbl %al,%edx
40f3ab:	66 89 11             	mov    %dx,(%ecx)
40f3ae:	83 46 30 fe          	addl   $0xfffffffe,0x30(%esi)
40f3b2:	8b 56 30             	mov    0x30(%esi),%edx
40f3b5:	8b ca                	mov    %edx,%ecx
40f3b7:	eb b8                	jmp    0x40f371
40f3b9:	8b 4d f8             	mov    -0x8(%ebp),%ecx
40f3bc:	8d 42 02             	lea    0x2(%edx),%eax
40f3bf:	2b ca                	sub    %edx,%ecx
40f3c1:	d1 f9                	sar    $1,%ecx
40f3c3:	89 4e 34             	mov    %ecx,0x34(%esi)
40f3c6:	5f                   	pop    %edi
40f3c7:	89 46 30             	mov    %eax,0x30(%esi)
40f3ca:	5e                   	pop    %esi
40f3cb:	5b                   	pop    %ebx
40f3cc:	c9                   	leave
40f3cd:	c2 0c 00             	ret    $0xc
40f3d0:	8b ff                	mov    %edi,%edi
40f3d2:	55                   	push   %ebp
40f3d3:	8b ec                	mov    %esp,%ebp
40f3d5:	8b 45 18             	mov    0x18(%ebp),%eax
40f3d8:	8b d1                	mov    %ecx,%edx
40f3da:	33 c9                	xor    %ecx,%ecx
40f3dc:	89 42 08             	mov    %eax,0x8(%edx)
40f3df:	8b 45 08             	mov    0x8(%ebp),%eax
40f3e2:	89 0a                	mov    %ecx,(%edx)
40f3e4:	89 4a 04             	mov    %ecx,0x4(%edx)
40f3e7:	89 4a 0c             	mov    %ecx,0xc(%edx)
40f3ea:	89 4a 10             	mov    %ecx,0x10(%edx)
40f3ed:	89 8a 3c 04 00 00    	mov    %ecx,0x43c(%edx)
40f3f3:	89 8a 40 04 00 00    	mov    %ecx,0x440(%edx)
40f3f9:	89 4a 14             	mov    %ecx,0x14(%edx)
40f3fc:	88 4a 18             	mov    %cl,0x18(%edx)
40f3ff:	89 4a 1c             	mov    %ecx,0x1c(%edx)
40f402:	89 4a 20             	mov    %ecx,0x20(%edx)
40f405:	89 4a 24             	mov    %ecx,0x24(%edx)
40f408:	66 89 4a 2c          	mov    %cx,0x2c(%edx)
40f40c:	89 4a 34             	mov    %ecx,0x34(%edx)
40f40f:	88 4a 38             	mov    %cl,0x38(%edx)
40f412:	8b 00                	mov    (%eax),%eax
40f414:	8b 4d 10             	mov    0x10(%ebp),%ecx
40f417:	89 82 48 04 00 00    	mov    %eax,0x448(%edx)
40f41d:	8b 45 0c             	mov    0xc(%ebp),%eax
40f420:	89 02                	mov    %eax,(%edx)
40f422:	8b 45 14             	mov    0x14(%ebp),%eax
40f425:	89 42 0c             	mov    %eax,0xc(%edx)