4793bf:	59                   	pop    %ecx
4793c0:	83 c0 0c             	add    $0xc,%eax
4793c3:	f0 09 08             	lock or %ecx,(%eax)
4793c6:	e9 17 01 00 00       	jmp    0x4794e2
4793cb:	83 c0 0c             	add    $0xc,%eax
4793ce:	f0 09 18             	lock or %ebx,(%eax)
4793d1:	8b 45 08             	mov    0x8(%ebp),%eax
4793d4:	8b 40 0c             	mov    0xc(%eax),%eax
4793d7:	a9 c0 04 00 00       	test   $0x4c0,%eax
4793dc:	75 09                	jne    0x4793e7
4793de:	ff 75 08             	push   0x8(%ebp)
4793e1:	e8 d1 d7 00 00       	call   0x486bb7
4793e6:	59                   	pop    %ecx
4793e7:	8b 45 08             	mov    0x8(%ebp),%eax
4793ea:	8b 48 04             	mov    0x4(%eax),%ecx
4793ed:	89 08                	mov    %ecx,(%eax)
4793ef:	8b 75 08             	mov    0x8(%ebp),%esi
4793f2:	ff 76 18             	push   0x18(%esi)
4793f5:	ff 76 04             	push   0x4(%esi)
4793f8:	56                   	push   %esi
4793f9:	e8 78 ed ff ff       	call   0x478176
4793fe:	59                   	pop    %ecx
4793ff:	50                   	push   %eax
479400:	e8 99 fa ff ff       	call   0x478e9e
479405:	89 46 08             	mov    %eax,0x8(%esi)
479408:	83 c4 0c             	add    $0xc,%esp
47940b:	8b 45 08             	mov    0x8(%ebp),%eax
47940e:	8b 50 08             	mov    0x8(%eax),%edx
479411:	85 d2                	test   %edx,%edx
479413:	0f 84 ae 00 00 00    	je     0x4794c7
479419:	83 fa ff             	cmp    $0xffffffff,%edx
47941c:	0f 84 a5 00 00 00    	je     0x4794c7
479422:	8b 40 0c             	mov    0xc(%eax),%eax
479425:	a8 06                	test   $0x6,%al
479427:	75 5f                	jne    0x479488
479429:	ff 75 08             	push   0x8(%ebp)
47942c:	e8 45 ed ff ff       	call   0x478176
479431:	59                   	pop    %ecx
479432:	83 f8 ff             	cmp    $0xffffffff,%eax
479435:	74 37                	je     0x47946e
479437:	ff 75 08             	push   0x8(%ebp)
47943a:	e8 37 ed ff ff       	call   0x478176
47943f:	59                   	pop    %ecx
479440:	83 f8 fe             	cmp    $0xfffffffe,%eax
479443:	74 29                	je     0x47946e
479445:	8b 75 08             	mov    0x8(%ebp),%esi
479448:	57                   	push   %edi
479449:	56                   	push   %esi
47944a:	e8 27 ed ff ff       	call   0x478176
47944f:	8b f8                	mov    %eax,%edi
479451:	56                   	push   %esi
479452:	c1 ff 06             	sar    $0x6,%edi
479455:	e8 1c ed ff ff       	call   0x478176
47945a:	59                   	pop    %ecx
47945b:	83 e0 3f             	and    $0x3f,%eax
47945e:	59                   	pop    %ecx
47945f:	6b c8 30             	imul   $0x30,%eax,%ecx
479462:	8b 04 bd 00 c0 4b 00 	mov    0x4bc000(,%edi,4),%eax
479469:	5f                   	pop    %edi
47946a:	03 c1                	add    %ecx,%eax
47946c:	eb 05                	jmp    0x479473
47946e:	b8 08 83 4b 00       	mov    $0x4b8308,%eax
479473:	8a 40 28             	mov    0x28(%eax),%al
479476:	24 82                	and    $0x82,%al
479478:	3c 82                	cmp    $0x82,%al
47947a:	75 0c                	jne    0x479488
47947c:	8b 45 08             	mov    0x8(%ebp),%eax
47947f:	6a 20                	push   $0x20
479481:	59                   	pop    %ecx
479482:	83 c0 0c             	add    $0xc,%eax
479485:	f0 09 08             	lock or %ecx,(%eax)
479488:	8b 45 08             	mov    0x8(%ebp),%eax
47948b:	81 78 18 00 02 00 00 	cmpl   $0x200,0x18(%eax)
479492:	75 24                	jne    0x4794b8
479494:	8b 40 0c             	mov    0xc(%eax),%eax
479497:	c1 e8 06             	shr    $0x6,%eax
47949a:	84 c3                	test   %al,%bl
47949c:	74 17                	je     0x4794b5
47949e:	8b 45 08             	mov    0x8(%ebp),%eax
4794a1:	8b 40 0c             	mov    0xc(%eax),%eax
4794a4:	c1 e8 08             	shr    $0x8,%eax
4794a7:	84 c3                	test   %al,%bl
4794a9:	75 0a                	jne    0x4794b5
4794ab:	8b 45 08             	mov    0x8(%ebp),%eax
4794ae:	c7 40 18 00 10 00 00 	movl   $0x1000,0x18(%eax)
4794b5:	8b 45 08             	mov    0x8(%ebp),%eax
4794b8:	ff 48 08             	decl   0x8(%eax)
4794bb:	8b 08                	mov    (%eax),%ecx
4794bd:	8a 11                	mov    (%ecx),%dl
4794bf:	41                   	inc    %ecx
4794c0:	89 08                	mov    %ecx,(%eax)
4794c2:	0f b6 c2             	movzbl %dl,%eax
4794c5:	eb 1e                	jmp    0x4794e5
4794c7:	33 c9                	xor    %ecx,%ecx
4794c9:	85 d2                	test   %edx,%edx
4794cb:	0f 95 c1             	setne  %cl
4794ce:	83 c0 0c             	add    $0xc,%eax
4794d1:	8d 0c cd 08 00 00 00 	lea    0x8(,%ecx,8),%ecx
4794d8:	f0 09 08             	lock or %ecx,(%eax)
4794db:	8b 4d 08             	mov    0x8(%ebp),%ecx
4794de:	83 61 08 00          	andl   $0x0,0x8(%ecx)
4794e2:	83 c8 ff             	or     $0xffffffff,%eax
4794e5:	5b                   	pop    %ebx
4794e6:	5e                   	pop    %esi
4794e7:	5d                   	pop    %ebp
4794e8:	c3                   	ret
4794e9:	8b ff                	mov    %edi,%edi
4794eb:	55                   	push   %ebp
4794ec:	8b ec                	mov    %esp,%ebp
4794ee:	8b 45 08             	mov    0x8(%ebp),%eax
4794f1:	56                   	push   %esi
4794f2:	85 c0                	test   %eax,%eax
4794f4:	75 1a                	jne    0x479510
4794f6:	e8 34 39 fd ff       	call   0x44ce2f
4794fb:	c7 00 16 00 00 00    	movl   $0x16,(%eax)
479501:	e8 d0 37 fd ff       	call   0x44ccd6
479506:	b8 ff ff 00 00       	mov    $0xffff,%eax
47950b:	e9 94 01 00 00       	jmp    0x4796a4
479510:	8b 40 0c             	mov    0xc(%eax),%eax
479513:	53                   	push   %ebx
479514:	33 db                	xor    %ebx,%ebx
479516:	c1 e8 0d             	shr    $0xd,%eax
479519:	43                   	inc    %ebx
47951a:	84 c3                	test   %al,%bl
47951c:	0f 84 7c 01 00 00    	je     0x47969e
479522:	8b 45 08             	mov    0x8(%ebp),%eax
479525:	8b 40 0c             	mov    0xc(%eax),%eax
479528:	c1 e8 0c             	shr    $0xc,%eax
47952b:	84 c3                	test   %al,%bl
47952d:	0f 85 6b 01 00 00    	jne    0x47969e
479533:	8b 45 08             	mov    0x8(%ebp),%eax
479536:	8b 40 0c             	mov    0xc(%eax),%eax
479539:	d1 e8                	shr    $1,%eax
47953b:	84 c3                	test   %al,%bl
47953d:	8b 45 08             	mov    0x8(%ebp),%eax
479540:	74 0e                	je     0x479550
479542:	6a 10                	push   $0x10
479544:	59                   	pop    %ecx
479545:	83 c0 0c             	add    $0xc,%eax
479548:	f0 09 08             	lock or %ecx,(%eax)
47954b:	e9 4e 01 00 00       	jmp    0x47969e
479550:	83 c0 0c             	add    $0xc,%eax
479553:	f0 09 18             	lock or %ebx,(%eax)
479556:	8b 45 08             	mov    0x8(%ebp),%eax
479559:	8b 40 0c             	mov    0xc(%eax),%eax
47955c:	a9 c0 04 00 00       	test   $0x4c0,%eax
479561:	75 09                	jne    0x47956c
479563:	ff 75 08             	push   0x8(%ebp)
479566:	e8 4c d6 00 00       	call   0x486bb7
47956b:	59                   	pop    %ecx
47956c:	8b 45 08             	mov    0x8(%ebp),%eax
47956f:	39 58 08             	cmp    %ebx,0x8(%eax)
479572:	75 06                	jne    0x47957a
479574:	8b 08                	mov    (%eax),%ecx
479576:	8a 39                	mov    (%ecx),%bh
479578:	eb 04                	jmp    0x47957e
47957a:	32 db                	xor    %bl,%bl
47957c:	32 ff                	xor    %bh,%bh
47957e:	8b 48 04             	mov    0x4(%eax),%ecx
479581:	89 08                	mov    %ecx,(%eax)
479583:	8b 75 08             	mov    0x8(%ebp),%esi
479586:	ff 76 18             	push   0x18(%esi)
479589:	ff 76 04             	push   0x4(%esi)
47958c:	56                   	push   %esi
47958d:	e8 e4 eb ff ff       	call   0x478176
479592:	59                   	pop    %ecx
479593:	50                   	push   %eax
479594:	e8 05 f9 ff ff       	call   0x478e9e
479599:	89 46 08             	mov    %eax,0x8(%esi)
47959c:	83 c4 0c             	add    $0xc,%esp
47959f:	8b 45 08             	mov    0x8(%ebp),%eax
4795a2:	8b 50 08             	mov    0x8(%eax),%edx
4795a5:	85 d2                	test   %edx,%edx
4795a7:	0f 84 d6 00 00 00    	je     0x479683
4795ad:	83 fa 01             	cmp    $0x1,%edx
4795b0:	0f 84 cd 00 00 00    	je     0x479683
4795b6:	83 fa ff             	cmp    $0xffffffff,%edx
4795b9:	0f 84 c4 00 00 00    	je     0x479683
4795bf:	8b 40 0c             	mov    0xc(%eax),%eax
4795c2:	a8 06                	test   $0x6,%al
4795c4:	75 5f                	jne    0x479625
4795c6:	ff 75 08             	push   0x8(%ebp)
4795c9:	e8 a8 eb ff ff       	call   0x478176
4795ce:	59                   	pop    %ecx
4795cf:	83 f8 ff             	cmp    $0xffffffff,%eax
4795d2:	74 37                	je     0x47960b
4795d4:	ff 75 08             	push   0x8(%ebp)
4795d7:	e8 9a eb ff ff       	call   0x478176
4795dc:	59                   	pop    %ecx
4795dd:	83 f8 fe             	cmp    $0xfffffffe,%eax
4795e0:	74 29                	je     0x47960b
4795e2:	8b 75 08             	mov    0x8(%ebp),%esi
4795e5:	57                   	push   %edi
4795e6:	56                   	push   %esi
4795e7:	e8 8a eb ff ff       	call   0x478176
4795ec:	8b f8                	mov    %eax,%edi
4795ee:	56                   	push   %esi
4795ef:	c1 ff 06             	sar    $0x6,%edi
4795f2:	e8 7f eb ff ff       	call   0x478176
4795f7:	59                   	pop    %ecx
4795f8:	83 e0 3f             	and    $0x3f,%eax
4795fb:	59                   	pop    %ecx
4795fc:	6b c8 30             	imul   $0x30,%eax,%ecx
4795ff:	8b 04 bd 00 c0 4b 00 	mov    0x4bc000(,%edi,4),%eax
479606:	5f                   	pop    %edi
479607:	03 c1                	add    %ecx,%eax
479609:	eb 05                	jmp    0x479610
47960b:	b8 08 83 4b 00       	mov    $0x4b8308,%eax
479610:	8a 40 28             	mov    0x28(%eax),%al
479613:	24 82                	and    $0x82,%al
479615:	3c 82                	cmp    $0x82,%al
479617:	75 0c                	jne    0x479625
479619:	8b 45 08             	mov    0x8(%ebp),%eax
47961c:	6a 20                	push   $0x20
47961e:	59                   	pop    %ecx
47961f:	83 c0 0c             	add    $0xc,%eax
479622:	f0 09 08             	lock or %ecx,(%eax)
479625:	8b 45 08             	mov    0x8(%ebp),%eax
479628:	81 78 18 00 02 00 00 	cmpl   $0x200,0x18(%eax)
47962f:	75 24                	jne    0x479655
479631:	8b 40 0c             	mov    0xc(%eax),%eax
479634:	c1 e8 06             	shr    $0x6,%eax
479637:	a8 01                	test   $0x1,%al
479639:	74 17                	je     0x479652
47963b:	8b 45 08             	mov    0x8(%ebp),%eax
47963e:	8b 40 0c             	mov    0xc(%eax),%eax
479641:	c1 e8 08             	shr    $0x8,%eax
479644:	a8 01                	test   $0x1,%al
479646:	75 0a                	jne    0x479652
479648:	8b 45 08             	mov    0x8(%ebp),%eax
47964b:	c7 40 18 00 10 00 00 	movl   $0x1000,0x18(%eax)
479652:	8b 45 08             	mov    0x8(%ebp),%eax
479655:	8b 08                	mov    (%eax),%ecx
479657:	84 db                	test   %bl,%bl
479659:	74 17                	je     0x479672
47965b:	0f b6 11             	movzbl (%ecx),%edx
47965e:	66 c1 e2 08          	shl    $0x8,%dx
479662:	0f b6 cf             	movzbl %bh,%ecx
479665:	66 0b d1             	or     %cx,%dx
479668:	ff 48 08             	decl   0x8(%eax)
47966b:	ff 00                	incl   (%eax)
47966d:	0f b7 ca             	movzwl %dx,%ecx
479670:	eb 0a                	jmp    0x47967c
479672:	0f b7 09             	movzwl (%ecx),%ecx
479675:	83 40 08 fe          	addl   $0xfffffffe,0x8(%eax)
479679:	83 00 02             	addl   $0x2,(%eax)
47967c:	8b c1                	mov    %ecx,%eax
47967e:	0f b7 c0             	movzwl %ax,%eax
479681:	eb 20                	jmp    0x4796a3
479683:	33 c9                	xor    %ecx,%ecx
479685:	85 d2                	test   %edx,%edx
479687:	0f 95 c1             	setne  %cl
47968a:	83 c0 0c             	add    $0xc,%eax
47968d:	8d 0c cd 08 00 00 00 	lea    0x8(,%ecx,8),%ecx
479694:	f0 09 08             	lock or %ecx,(%eax)
479697:	8b 45 08             	mov    0x8(%ebp),%eax
47969a:	83 60 08 00          	andl   $0x0,0x8(%eax)
47969e:	b8 ff ff 00 00       	mov    $0xffff,%eax
4796a3:	5b                   	pop    %ebx
4796a4:	5e                   	pop    %esi
4796a5:	5d                   	pop    %ebp
4796a6:	c3                   	ret
4796a7:	8b ff                	mov    %edi,%edi
4796a9:	55                   	push   %ebp
4796aa:	8b ec                	mov    %esp,%ebp
4796ac:	51                   	push   %ecx
4796ad:	8b 45 08             	mov    0x8(%ebp),%eax
4796b0:	83 78 08 01          	cmpl   $0x1,0x8(%eax)
4796b4:	75 0d                	jne    0x4796c3
4796b6:	8b 00                	mov    (%eax),%eax
4796b8:	c6 45 fc 01          	movb   $0x1,-0x4(%ebp)
4796bc:	8a 00                	mov    (%eax),%al
4796be:	88 45 fd             	mov    %al,-0x3(%ebp)
4796c1:	eb 06                	jmp    0x4796c9
4796c3:	66 c7 45 fc 00 00    	movw   $0x0,-0x4(%ebp)
4796c9:	66 8b 45 fc          	mov    -0x4(%ebp),%ax
4796cd:	8b e5                	mov    %ebp,%esp
4796cf:	5d                   	pop    %ebp
4796d0:	c3                   	ret
4796d1:	33 c0                	xor    %eax,%eax
4796d3:	c3                   	ret
4796d4:	8b ff                	mov    %edi,%edi
4796d6:	55                   	push   %ebp
4796d7:	8b ec                	mov    %esp,%ebp
4796d9:	8b 45 08             	mov    0x8(%ebp),%eax
4796dc:	83 78 08 00          	cmpl   $0x0,0x8(%eax)
4796e0:	74 0b                	je     0x4796ed
4796e2:	83 78 08 ff          	cmpl   $0xffffffff,0x8(%eax)
4796e6:	74 05                	je     0x4796ed
4796e8:	33 c0                	xor    %eax,%eax
4796ea:	40                   	inc    %eax
4796eb:	5d                   	pop    %ebp
4796ec:	c3                   	ret
4796ed:	33 c0                	xor    %eax,%eax
4796ef:	5d                   	pop    %ebp
4796f0:	c3                   	ret
4796f1:	8b ff                	mov    %edi,%edi
4796f3:	55                   	push   %ebp
4796f4:	8b ec                	mov    %esp,%ebp
4796f6:	8b 45 08             	mov    0x8(%ebp),%eax
4796f9:	8b 48 08             	mov    0x8(%eax),%ecx
4796fc:	85 c9                	test   %ecx,%ecx
4796fe:	74 0c                	je     0x47970c
479700:	33 c0                	xor    %eax,%eax
479702:	40                   	inc    %eax
479703:	3b c8                	cmp    %eax,%ecx
479705:	74 05                	je     0x47970c
479707:	83 f9 ff             	cmp    $0xffffffff,%ecx
47970a:	75 02                	jne    0x47970e
47970c:	33 c0                	xor    %eax,%eax
47970e:	5d                   	pop    %ebp
47970f:	c3                   	ret
479710:	8b ff                	mov    %edi,%edi
479712:	55                   	push   %ebp
479713:	8b ec                	mov    %esp,%ebp
479715:	8b 45 08             	mov    0x8(%ebp),%eax
479718:	ff 48 08             	decl   0x8(%eax)
47971b:	8b 4d 08             	mov    0x8(%ebp),%ecx
47971e:	8b 11                	mov    (%ecx),%edx
479720:	8a 02                	mov    (%edx),%al
479722:	42                   	inc    %edx
479723:	89 11                	mov    %edx,(%ecx)
479725:	5d                   	pop    %ebp
479726:	c3                   	ret
479727:	8b ff                	mov    %edi,%edi
479729:	55                   	push   %ebp
47972a:	8b ec                	mov    %esp,%ebp
47972c:	66 8b 45 0c          	mov    0xc(%ebp),%ax
479730:	8b 4d 08             	mov    0x8(%ebp),%ecx
479733:	84 c0                	test   %al,%al
479735:	74 1d                	je     0x479754
479737:	8b 11                	mov    (%ecx),%edx
479739:	66 c1 e8 08          	shr    $0x8,%ax
47973d:	0f b6 12             	movzbl (%edx),%edx
479740:	66 c1 e2 08          	shl    $0x8,%dx
479744:	66 0b d0             	or     %ax,%dx
479747:	ff 49 08             	decl   0x8(%ecx)
47974a:	8b 4d 08             	mov    0x8(%ebp),%ecx
47974d:	0f b7 c2             	movzwl %dx,%eax
479750:	ff 01                	incl   (%ecx)
479752:	5d                   	pop    %ebp
479753:	c3                   	ret
479754:	8b 01                	mov    (%ecx),%eax
479756:	0f b7 00             	movzwl (%eax),%eax
479759:	83 41 08 fe          	addl   $0xfffffffe,0x8(%ecx)
47975d:	8b 4d 08             	mov    0x8(%ebp),%ecx
479760:	83 01 02             	addl   $0x2,(%ecx)
479763:	5d                   	pop    %ebp
479764:	c3                   	ret
479765:	8b ff                	mov    %edi,%edi