407229:	74 30                	je     0x40725b
40722b:	56                   	push   %esi
40722c:	e8 7f b8 ff ff       	call   0x402ab0
407231:	59                   	pop    %ecx
407232:	83 f8 fe             	cmp    $0xfffffffe,%eax
407235:	74 24                	je     0x40725b
407237:	57                   	push   %edi
407238:	56                   	push   %esi
407239:	e8 72 b8 ff ff       	call   0x402ab0
40723e:	c1 f8 05             	sar    $0x5,%eax
407241:	56                   	push   %esi
407242:	8d 3c 85 20 46 41 00 	lea    0x414620(,%eax,4),%edi
407249:	e8 62 b8 ff ff       	call   0x402ab0
40724e:	83 e0 1f             	and    $0x1f,%eax
407251:	59                   	pop    %ecx
407252:	c1 e0 06             	shl    $0x6,%eax
407255:	03 07                	add    (%edi),%eax
407257:	59                   	pop    %ecx
407258:	5f                   	pop    %edi
407259:	eb 05                	jmp    0x407260
40725b:	b8 78 2b 41 00       	mov    $0x412b78,%eax
407260:	8a 40 04             	mov    0x4(%eax),%al
407263:	24 82                	and    $0x82,%al
407265:	3c 82                	cmp    $0x82,%al
407267:	75 07                	jne    0x407270
407269:	81 4e 0c 00 20 00 00 	orl    $0x2000,0xc(%esi)
407270:	81 7e 18 00 02 00 00 	cmpl   $0x200,0x18(%esi)
407277:	75 15                	jne    0x40728e
407279:	8b 46 0c             	mov    0xc(%esi),%eax
40727c:	a8 08                	test   $0x8,%al
40727e:	74 0e                	je     0x40728e
407280:	a9 00 04 00 00       	test   $0x400,%eax
407285:	75 07                	jne    0x40728e
407287:	c7 46 18 00 10 00 00 	movl   $0x1000,0x18(%esi)
40728e:	8b 0e                	mov    (%esi),%ecx
407290:	ff 4e 04             	decl   0x4(%esi)
407293:	0f b6 01             	movzbl (%ecx),%eax
407296:	41                   	inc    %ecx
407297:	89 0e                	mov    %ecx,(%esi)
407299:	eb 14                	jmp    0x4072af
40729b:	f7 d8                	neg    %eax
40729d:	1b c0                	sbb    %eax,%eax
40729f:	83 e0 10             	and    $0x10,%eax
4072a2:	83 c0 10             	add    $0x10,%eax
4072a5:	09 46 0c             	or     %eax,0xc(%esi)
4072a8:	83 66 04 00          	andl   $0x0,0x4(%esi)
4072ac:	83 c8 ff             	or     $0xffffffff,%eax
4072af:	5e                   	pop    %esi
4072b0:	5d                   	pop    %ebp
4072b1:	c3                   	ret
4072b2:	8b ff                	mov    %edi,%edi
4072b4:	55                   	push   %ebp
4072b5:	8b ec                	mov    %esp,%ebp
4072b7:	83 ec 1c             	sub    $0x1c,%esp
4072ba:	8b 55 10             	mov    0x10(%ebp),%edx
4072bd:	56                   	push   %esi
4072be:	8b 75 08             	mov    0x8(%ebp),%esi
4072c1:	6a fe                	push   $0xfffffffe
4072c3:	58                   	pop    %eax
4072c4:	89 45 ec             	mov    %eax,-0x14(%ebp)
4072c7:	89 55 e4             	mov    %edx,-0x1c(%ebp)
4072ca:	3b f0                	cmp    %eax,%esi
4072cc:	75 1b                	jne    0x4072e9
4072ce:	e8 67 ce ff ff       	call   0x40413a
4072d3:	83 20 00             	andl   $0x0,(%eax)
4072d6:	e8 4c ce ff ff       	call   0x404127
4072db:	c7 00 09 00 00 00    	movl   $0x9,(%eax)
4072e1:	83 c8 ff             	or     $0xffffffff,%eax
4072e4:	e9 7d 05 00 00       	jmp    0x407866
4072e9:	53                   	push   %ebx
4072ea:	33 db                	xor    %ebx,%ebx
4072ec:	3b f3                	cmp    %ebx,%esi
4072ee:	7c 08                	jl     0x4072f8
4072f0:	3b 35 00 46 41 00    	cmp    0x414600,%esi
4072f6:	72 1f                	jb     0x407317
4072f8:	e8 3d ce ff ff       	call   0x40413a
4072fd:	89 18                	mov    %ebx,(%eax)
4072ff:	e8 23 ce ff ff       	call   0x404127
407304:	c7 00 09 00 00 00    	movl   $0x9,(%eax)
40730a:	e8 78 b9 ff ff       	call   0x402c87
40730f:	83 c8 ff             	or     $0xffffffff,%eax
407312:	e9 4e 05 00 00       	jmp    0x407865
407317:	8b c6                	mov    %esi,%eax
407319:	c1 f8 05             	sar    $0x5,%eax
40731c:	57                   	push   %edi
40731d:	83 e6 1f             	and    $0x1f,%esi
407320:	8d 3c 85 20 46 41 00 	lea    0x414620(,%eax,4),%edi
407327:	8b 07                	mov    (%edi),%eax
407329:	c1 e6 06             	shl    $0x6,%esi
40732c:	8a 4c 30 04          	mov    0x4(%eax,%esi,1),%cl
407330:	f6 c1 01             	test   $0x1,%cl
407333:	75 14                	jne    0x407349
407335:	e8 00 ce ff ff       	call   0x40413a
40733a:	89 18                	mov    %ebx,(%eax)
40733c:	e8 e6 cd ff ff       	call   0x404127
407341:	c7 00 09 00 00 00    	movl   $0x9,(%eax)
407347:	eb 68                	jmp    0x4073b1
407349:	81 fa ff ff ff 7f    	cmp    $0x7fffffff,%edx
40734f:	77 4e                	ja     0x40739f
407351:	89 5d f4             	mov    %ebx,-0xc(%ebp)
407354:	3b d3                	cmp    %ebx,%edx
407356:	0f 84 06 05 00 00    	je     0x407862
40735c:	f6 c1 02             	test   $0x2,%cl
40735f:	0f 85 fd 04 00 00    	jne    0x407862
407365:	39 5d 0c             	cmp    %ebx,0xc(%ebp)
407368:	74 35                	je     0x40739f
40736a:	8a 44 30 24          	mov    0x24(%eax,%esi,1),%al
40736e:	02 c0                	add    %al,%al
407370:	d0 f8                	sar    $1,%al
407372:	88 45 fe             	mov    %al,-0x2(%ebp)
407375:	0f be c0             	movsbl %al,%eax
407378:	48                   	dec    %eax
407379:	6a 04                	push   $0x4
40737b:	59                   	pop    %ecx
40737c:	74 19                	je     0x407397
40737e:	48                   	dec    %eax
40737f:	75 0e                	jne    0x40738f
407381:	8b c2                	mov    %edx,%eax
407383:	f7 d0                	not    %eax
407385:	a8 01                	test   $0x1,%al
407387:	74 16                	je     0x40739f
407389:	83 e2 fe             	and    $0xfffffffe,%edx
40738c:	89 55 10             	mov    %edx,0x10(%ebp)
40738f:	8b 5d 0c             	mov    0xc(%ebp),%ebx
407392:	89 5d f0             	mov    %ebx,-0x10(%ebp)
407395:	eb 7a                	jmp    0x407411
407397:	8b c2                	mov    %edx,%eax
407399:	f7 d0                	not    %eax
40739b:	a8 01                	test   $0x1,%al
40739d:	75 19                	jne    0x4073b8
40739f:	e8 96 cd ff ff       	call   0x40413a
4073a4:	89 18                	mov    %ebx,(%eax)
4073a6:	e8 7c cd ff ff       	call   0x404127
4073ab:	c7 00 16 00 00 00    	movl   $0x16,(%eax)
4073b1:	e8 d1 b8 ff ff       	call   0x402c87
4073b6:	eb 36                	jmp    0x4073ee
4073b8:	8b c2                	mov    %edx,%eax
4073ba:	d1 e8                	shr    $1,%eax
4073bc:	89 4d 10             	mov    %ecx,0x10(%ebp)
4073bf:	3b c1                	cmp    %ecx,%eax
4073c1:	72 03                	jb     0x4073c6
4073c3:	89 45 10             	mov    %eax,0x10(%ebp)
4073c6:	ff 75 10             	push   0x10(%ebp)
4073c9:	e8 f1 f4 ff ff       	call   0x4068bf
4073ce:	8b d8                	mov    %eax,%ebx
4073d0:	59                   	pop    %ecx
4073d1:	89 5d f0             	mov    %ebx,-0x10(%ebp)
4073d4:	85 db                	test   %ebx,%ebx
4073d6:	75 1e                	jne    0x4073f6
4073d8:	e8 4a cd ff ff       	call   0x404127
4073dd:	c7 00 0c 00 00 00    	movl   $0xc,(%eax)
4073e3:	e8 52 cd ff ff       	call   0x40413a
4073e8:	c7 00 08 00 00 00    	movl   $0x8,(%eax)
4073ee:	83 c8 ff             	or     $0xffffffff,%eax
4073f1:	e9 6e 04 00 00       	jmp    0x407864
4073f6:	6a 01                	push   $0x1
4073f8:	6a 00                	push   $0x0
4073fa:	6a 00                	push   $0x0
4073fc:	ff 75 08             	push   0x8(%ebp)
4073ff:	e8 27 64 00 00       	call   0x40d82b
407404:	8b 0f                	mov    (%edi),%ecx
407406:	89 44 0e 28          	mov    %eax,0x28(%esi,%ecx,1)
40740a:	83 c4 10             	add    $0x10,%esp
40740d:	89 54 0e 2c          	mov    %edx,0x2c(%esi,%ecx,1)
407411:	8b 0f                	mov    (%edi),%ecx
407413:	03 ce                	add    %esi,%ecx
407415:	f6 41 04 48          	testb  $0x48,0x4(%ecx)
407419:	8b c3                	mov    %ebx,%eax
40741b:	74 7a                	je     0x407497
40741d:	8a 49 05             	mov    0x5(%ecx),%cl
407420:	80 f9 0a             	cmp    $0xa,%cl
407423:	74 72                	je     0x407497
407425:	83 7d 10 00          	cmpl   $0x0,0x10(%ebp)
407429:	74 6c                	je     0x407497
40742b:	ff 4d 10             	decl   0x10(%ebp)
40742e:	80 7d fe 00          	cmpb   $0x0,-0x2(%ebp)
407432:	88 0b                	mov    %cl,(%ebx)
407434:	8b 0f                	mov    (%edi),%ecx
407436:	8d 43 01             	lea    0x1(%ebx),%eax
407439:	c7 45 f4 01 00 00 00 	movl   $0x1,-0xc(%ebp)
407440:	c6 44 0e 05 0a       	movb   $0xa,0x5(%esi,%ecx,1)
407445:	74 50                	je     0x407497
407447:	8b 0f                	mov    (%edi),%ecx
407449:	8a 4c 0e 25          	mov    0x25(%esi,%ecx,1),%cl
40744d:	80 f9 0a             	cmp    $0xa,%cl
407450:	74 45                	je     0x407497
407452:	83 7d 10 00          	cmpl   $0x0,0x10(%ebp)
407456:	74 3f                	je     0x407497
407458:	88 08                	mov    %cl,(%eax)
40745a:	8b 0f                	mov    (%edi),%ecx
40745c:	40                   	inc    %eax
40745d:	ff 4d 10             	decl   0x10(%ebp)
407460:	80 7d fe 01          	cmpb   $0x1,-0x2(%ebp)
407464:	c7 45 f4 02 00 00 00 	movl   $0x2,-0xc(%ebp)
40746b:	c6 44 0e 25 0a       	movb   $0xa,0x25(%esi,%ecx,1)
407470:	75 25                	jne    0x407497
407472:	8b 0f                	mov    (%edi),%ecx
407474:	8a 4c 0e 26          	mov    0x26(%esi,%ecx,1),%cl
407478:	80 f9 0a             	cmp    $0xa,%cl
40747b:	74 1a                	je     0x407497
40747d:	83 7d 10 00          	cmpl   $0x0,0x10(%ebp)
407481:	74 14                	je     0x407497
407483:	88 08                	mov    %cl,(%eax)
407485:	8b 0f                	mov    (%edi),%ecx
407487:	40                   	inc    %eax
407488:	ff 4d 10             	decl   0x10(%ebp)
40748b:	c7 45 f4 03 00 00 00 	movl   $0x3,-0xc(%ebp)
407492:	c6 44 0e 26 0a       	movb   $0xa,0x26(%esi,%ecx,1)
407497:	6a 00                	push   $0x0
407499:	8d 4d e8             	lea    -0x18(%ebp),%ecx
40749c:	51                   	push   %ecx
40749d:	ff 75 10             	push   0x10(%ebp)
4074a0:	50                   	push   %eax
4074a1:	8b 07                	mov    (%edi),%eax
4074a3:	ff 34 06             	push   (%esi,%eax,1)
4074a6:	ff 15 fc f0 40 00    	call   *0x40f0fc
4074ac:	85 c0                	test   %eax,%eax
4074ae:	0f 84 78 03 00 00    	je     0x40782c
4074b4:	8b 4d e8             	mov    -0x18(%ebp),%ecx
4074b7:	85 c9                	test   %ecx,%ecx
4074b9:	0f 88 6d 03 00 00    	js     0x40782c
4074bf:	3b 4d 10             	cmp    0x10(%ebp),%ecx
4074c2:	0f 87 64 03 00 00    	ja     0x40782c
4074c8:	8b 07                	mov    (%edi),%eax
4074ca:	01 4d f4             	add    %ecx,-0xc(%ebp)
4074cd:	8d 44 06 04          	lea    0x4(%esi,%eax,1),%eax
4074d1:	f6 00 80             	testb  $0x80,(%eax)
4074d4:	0f 84 e4 01 00 00    	je     0x4076be
4074da:	80 7d fe 02          	cmpb   $0x2,-0x2(%ebp)
4074de:	0f 84 14 02 00 00    	je     0x4076f8
4074e4:	85 c9                	test   %ecx,%ecx
4074e6:	74 0a                	je     0x4074f2
4074e8:	80 3b 0a             	cmpb   $0xa,(%ebx)
4074eb:	75 05                	jne    0x4074f2
4074ed:	80 08 04             	orb    $0x4,(%eax)
4074f0:	eb 03                	jmp    0x4074f5
4074f2:	80 20 fb             	andb   $0xfb,(%eax)
4074f5:	8b 5d f0             	mov    -0x10(%ebp),%ebx
4074f8:	8b 45 f4             	mov    -0xc(%ebp),%eax
4074fb:	03 c3                	add    %ebx,%eax
4074fd:	89 5d 10             	mov    %ebx,0x10(%ebp)
407500:	89 45 f4             	mov    %eax,-0xc(%ebp)
407503:	3b d8                	cmp    %eax,%ebx
407505:	0f 83 d1 00 00 00    	jae    0x4075dc
40750b:	8b 4d 10             	mov    0x10(%ebp),%ecx
40750e:	8a 01                	mov    (%ecx),%al
407510:	3c 1a                	cmp    $0x1a,%al
407512:	0f 84 af 00 00 00    	je     0x4075c7
407518:	3c 0d                	cmp    $0xd,%al
40751a:	74 0c                	je     0x407528
40751c:	88 03                	mov    %al,(%ebx)
40751e:	43                   	inc    %ebx
40751f:	41                   	inc    %ecx
407520:	89 4d 10             	mov    %ecx,0x10(%ebp)
407523:	e9 91 00 00 00       	jmp    0x4075b9
407528:	8b 45 f4             	mov    -0xc(%ebp),%eax
40752b:	48                   	dec    %eax
40752c:	3b c8                	cmp    %eax,%ecx
40752e:	73 18                	jae    0x407548
407530:	8d 41 01             	lea    0x1(%ecx),%eax
407533:	80 38 0a             	cmpb   $0xa,(%eax)
407536:	75 0b                	jne    0x407543
407538:	83 c1 02             	add    $0x2,%ecx
40753b:	89 4d 10             	mov    %ecx,0x10(%ebp)
40753e:	c6 03 0a             	movb   $0xa,(%ebx)
407541:	eb 75                	jmp    0x4075b8
407543:	89 45 10             	mov    %eax,0x10(%ebp)
407546:	eb 6d                	jmp    0x4075b5
407548:	ff 45 10             	incl   0x10(%ebp)
40754b:	6a 00                	push   $0x0
40754d:	8d 45 e8             	lea    -0x18(%ebp),%eax
407550:	50                   	push   %eax
407551:	6a 01                	push   $0x1
407553:	8d 45 ff             	lea    -0x1(%ebp),%eax
407556:	50                   	push   %eax
407557:	8b 07                	mov    (%edi),%eax
407559:	ff 34 06             	push   (%esi,%eax,1)
40755c:	ff 15 fc f0 40 00    	call   *0x40f0fc
407562:	85 c0                	test   %eax,%eax
407564:	75 0a                	jne    0x407570
407566:	ff 15 44 f0 40 00    	call   *0x40f044
40756c:	85 c0                	test   %eax,%eax
40756e:	75 45                	jne    0x4075b5
407570:	83 7d e8 00          	cmpl   $0x0,-0x18(%ebp)
407574:	74 3f                	je     0x4075b5
407576:	8b 07                	mov    (%edi),%eax
407578:	f6 44 06 04 48       	testb  $0x48,0x4(%esi,%eax,1)
40757d:	74 14                	je     0x407593
40757f:	80 7d ff 0a          	cmpb   $0xa,-0x1(%ebp)
407583:	74 b9                	je     0x40753e
407585:	c6 03 0d             	movb   $0xd,(%ebx)
407588:	8b 07                	mov    (%edi),%eax
40758a:	8a 4d ff             	mov    -0x1(%ebp),%cl
40758d:	88 4c 06 05          	mov    %cl,0x5(%esi,%eax,1)
407591:	eb 25                	jmp    0x4075b8
407593:	3b 5d f0             	cmp    -0x10(%ebp),%ebx
407596:	75 06                	jne    0x40759e
407598:	80 7d ff 0a          	cmpb   $0xa,-0x1(%ebp)
40759c:	74 a0                	je     0x40753e
40759e:	6a 01                	push   $0x1
4075a0:	6a ff                	push   $0xffffffff
4075a2:	6a ff                	push   $0xffffffff
4075a4:	ff 75 08             	push   0x8(%ebp)
4075a7:	e8 7f 62 00 00       	call   0x40d82b
4075ac:	83 c4 10             	add    $0x10,%esp
4075af:	80 7d ff 0a          	cmpb   $0xa,-0x1(%ebp)
4075b3:	74 04                	je     0x4075b9
4075b5:	c6 03 0d             	movb   $0xd,(%ebx)
4075b8:	43                   	inc    %ebx
4075b9:	8b 45 f4             	mov    -0xc(%ebp),%eax
4075bc:	39 45 10             	cmp    %eax,0x10(%ebp)
4075bf:	0f 82 46 ff ff ff    	jb     0x40750b
4075c5:	eb 15                	jmp    0x4075dc
4075c7:	8b 07                	mov    (%edi),%eax
4075c9:	8d 44 06 04          	lea    0x4(%esi,%eax,1),%eax
4075cd:	f6 00 40             	testb  $0x40,(%eax)
4075d0:	75 05                	jne    0x4075d7
4075d2:	80 08 02             	orb    $0x2,(%eax)
4075d5:	eb 05                	jmp    0x4075dc
4075d7:	8a 01                	mov    (%ecx),%al
4075d9:	88 03                	mov    %al,(%ebx)
4075db:	43                   	inc    %ebx
4075dc:	8b c3                	mov    %ebx,%eax
4075de:	2b 45 f0             	sub    -0x10(%ebp),%eax
4075e1:	80 7d fe 01          	cmpb   $0x1,-0x2(%ebp)
4075e5:	89 45 f4             	mov    %eax,-0xc(%ebp)
4075e8:	0f 85 d0 00 00 00    	jne    0x4076be
4075ee:	85 c0                	test   %eax,%eax
4075f0:	0f 84 c8 00 00 00    	je     0x4076be
4075f6:	4b                   	dec    %ebx
4075f7:	8a 0b                	mov    (%ebx),%cl
4075f9:	84 c9                	test   %cl,%cl
4075fb:	78 06                	js     0x407603
4075fd:	43                   	inc    %ebx
4075fe:	e9 86 00 00 00       	jmp    0x407689
407603:	33 c0                	xor    %eax,%eax
407605:	40                   	inc    %eax
407606:	0f b6 c9             	movzbl %cl,%ecx
407609:	eb 0f                	jmp    0x40761a
40760b:	83 f8 04             	cmp    $0x4,%eax
40760e:	7f 13                	jg     0x407623
407610:	3b 5d f0             	cmp    -0x10(%ebp),%ebx
407613:	72 0e                	jb     0x407623
407615:	4b                   	dec    %ebx
407616:	0f b6 0b             	movzbl (%ebx),%ecx
407619:	40                   	inc    %eax
40761a:	80 b9 e0 2c 41 00 00 	cmpb   $0x0,0x412ce0(%ecx)
407621:	74 e8                	je     0x40760b
407623:	8a 13                	mov    (%ebx),%dl
407625:	0f b6 ca             	movzbl %dl,%ecx