40e466:	6a 08                	push   $0x8
40e468:	8d 45 ec             	lea    -0x14(%ebp),%eax
40e46b:	c7 45 ec 01 00 00 00 	movl   $0x1,-0x14(%ebp)
40e472:	50                   	push   %eax
40e473:	b9 b0 48 42 00       	mov    $0x4248b0,%ecx
40e478:	89 7d f0             	mov    %edi,-0x10(%ebp)
40e47b:	e8 f9 9e ff ff       	call   0x408379
40e480:	84 c0                	test   %al,%al
40e482:	75 06                	jne    0x40e48a
40e484:	6a fd                	push   $0xfffffffd
40e486:	58                   	pop    %eax
40e487:	f0 21 07             	lock and %eax,(%edi)
40e48a:	53                   	push   %ebx
40e48b:	ff 15 6c 61 42 00    	call   *0x42616c
40e491:	8b 55 e4             	mov    -0x1c(%ebp),%edx
40e494:	f6 06 01             	testb  $0x1,(%esi)
40e497:	5b                   	pop    %ebx
40e498:	75 0c                	jne    0x40e4a6
40e49a:	8b 0e                	mov    (%esi),%ecx
40e49c:	33 ca                	xor    %edx,%ecx
40e49e:	81 e1 18 01 00 00    	and    $0x118,%ecx
40e4a4:	31 0e                	xor    %ecx,(%esi)
40e4a6:	5f                   	pop    %edi
40e4a7:	8b c6                	mov    %esi,%eax
40e4a9:	5e                   	pop    %esi
40e4aa:	c9                   	leave
40e4ab:	c2 04 00             	ret    $0x4
40e4ae:	8b ff                	mov    %edi,%edi
40e4b0:	55                   	push   %ebp
40e4b1:	8b ec                	mov    %esp,%ebp
40e4b3:	83 ec 10             	sub    $0x10,%esp
40e4b6:	56                   	push   %esi
40e4b7:	8b f1                	mov    %ecx,%esi
40e4b9:	8b 16                	mov    (%esi),%edx
40e4bb:	f6 c2 02             	test   $0x2,%dl
40e4be:	75 0b                	jne    0x40e4cb
40e4c0:	8d 45 f0             	lea    -0x10(%ebp),%eax
40e4c3:	50                   	push   %eax
40e4c4:	e8 f9 fe ff ff       	call   0x40e3c2
40e4c9:	8b 10                	mov    (%eax),%edx
40e4cb:	33 c0                	xor    %eax,%eax
40e4cd:	c6 45 fc 03          	movb   $0x3,-0x4(%ebp)
40e4d1:	51                   	push   %ecx
40e4d2:	89 45 f8             	mov    %eax,-0x8(%ebp)
40e4d5:	0f b6 45 08          	movzbl 0x8(%ebp),%eax
40e4d9:	51                   	push   %ecx
40e4da:	50                   	push   %eax
40e4db:	8d 45 f8             	lea    -0x8(%ebp),%eax
40e4de:	50                   	push   %eax
40e4df:	8b c2                	mov    %edx,%eax
40e4e1:	8d 4e 08             	lea    0x8(%esi),%ecx
40e4e4:	c1 e8 08             	shr    $0x8,%eax
40e4e7:	c1 ea 07             	shr    $0x7,%edx
40e4ea:	83 e0 01             	and    $0x1,%eax
40e4ed:	83 e2 01             	and    $0x1,%edx
40e4f0:	50                   	push   %eax
40e4f1:	52                   	push   %edx
40e4f2:	ba 05 61 0f 01       	mov    $0x10f6105,%edx
40e4f7:	e8 0a 15 00 00       	call   0x40fa06
40e4fc:	5e                   	pop    %esi
40e4fd:	c9                   	leave
40e4fe:	c2 0c 00             	ret    $0xc
40e501:	8b ff                	mov    %edi,%edi
40e503:	55                   	push   %ebp
40e504:	8b ec                	mov    %esp,%ebp
40e506:	83 ec 1c             	sub    $0x1c,%esp
40e509:	56                   	push   %esi
40e50a:	8b 75 08             	mov    0x8(%ebp),%esi
40e50d:	57                   	push   %edi
40e50e:	8b f9                	mov    %ecx,%edi
40e510:	8b 07                	mov    (%edi),%eax
40e512:	89 06                	mov    %eax,(%esi)
40e514:	83 e0 03             	and    $0x3,%eax
40e517:	3c 03                	cmp    $0x3,%al
40e519:	0f 84 c6 00 00 00    	je     0x40e5e5
40e51f:	53                   	push   %ebx
40e520:	e8 77 bc ff ff       	call   0x40a19c
40e525:	89 45 f4             	mov    %eax,-0xc(%ebp)
40e528:	8d 45 f8             	lea    -0x8(%ebp),%eax
40e52b:	50                   	push   %eax
40e52c:	8d 45 e4             	lea    -0x1c(%ebp),%eax
40e52f:	50                   	push   %eax
40e530:	e8 7b 09 00 00       	call   0x40eeb0
40e535:	8b 06                	mov    (%esi),%eax
40e537:	8b 55 e4             	mov    -0x1c(%ebp),%edx
40e53a:	83 7d f8 00          	cmpl   $0x0,-0x8(%ebp)
40e53e:	8b d8                	mov    %eax,%ebx
40e540:	89 5d fc             	mov    %ebx,-0x4(%ebp)
40e543:	8b c8                	mov    %eax,%ecx
40e545:	89 06                	mov    %eax,(%esi)
40e547:	74 13                	je     0x40e55c
40e549:	a8 01                	test   $0x1,%al
40e54b:	75 0f                	jne    0x40e55c
40e54d:	33 ca                	xor    %edx,%ecx
40e54f:	81 e1 18 01 00 00    	and    $0x118,%ecx
40e555:	33 c8                	xor    %eax,%ecx
40e557:	83 c9 01             	or     $0x1,%ecx
40e55a:	89 0e                	mov    %ecx,(%esi)
40e55c:	83 e3 02             	and    $0x2,%ebx
40e55f:	75 10                	jne    0x40e571
40e561:	8b c1                	mov    %ecx,%eax
40e563:	33 c2                	xor    %edx,%eax
40e565:	25 80 00 00 00       	and    $0x80,%eax
40e56a:	33 c8                	xor    %eax,%ecx
40e56c:	83 c9 02             	or     $0x2,%ecx
40e56f:	89 0e                	mov    %ecx,(%esi)
40e571:	8b 45 fc             	mov    -0x4(%ebp),%eax
40e574:	f0 0f b1 0f          	lock cmpxchg %ecx,(%edi)
40e578:	3b 45 fc             	cmp    -0x4(%ebp),%eax
40e57b:	75 bd                	jne    0x40e53a
40e57d:	85 db                	test   %ebx,%ebx
40e57f:	75 52                	jne    0x40e5d3
40e581:	38 1d 84 48 42 00    	cmp    %bl,0x424884
40e587:	74 4a                	je     0x40e5d3
40e589:	bb 88 48 42 00       	mov    $0x424888,%ebx
40e58e:	53                   	push   %ebx
40e58f:	ff 15 60 61 42 00    	call   *0x426160
40e595:	8b 4d f4             	mov    -0xc(%ebp),%ecx
40e598:	a1 94 48 42 00       	mov    0x424894,%eax
40e59d:	85 c9                	test   %ecx,%ecx
40e59f:	74 22                	je     0x40e5c3
40e5a1:	3b c8                	cmp    %eax,%ecx
40e5a3:	75 1e                	jne    0x40e5c3
40e5a5:	6a 08                	push   $0x8
40e5a7:	8d 45 ec             	lea    -0x14(%ebp),%eax
40e5aa:	c7 45 ec 01 00 00 00 	movl   $0x1,-0x14(%ebp)
40e5b1:	50                   	push   %eax
40e5b2:	b9 b0 48 42 00       	mov    $0x4248b0,%ecx
40e5b7:	89 7d f0             	mov    %edi,-0x10(%ebp)
40e5ba:	e8 ba 9d ff ff       	call   0x408379
40e5bf:	84 c0                	test   %al,%al
40e5c1:	75 06                	jne    0x40e5c9
40e5c3:	6a fd                	push   $0xfffffffd
40e5c5:	58                   	pop    %eax
40e5c6:	f0 21 07             	lock and %eax,(%edi)
40e5c9:	53                   	push   %ebx
40e5ca:	ff 15 6c 61 42 00    	call   *0x42616c
40e5d0:	8b 55 e4             	mov    -0x1c(%ebp),%edx
40e5d3:	f6 06 01             	testb  $0x1,(%esi)
40e5d6:	5b                   	pop    %ebx
40e5d7:	75 0c                	jne    0x40e5e5
40e5d9:	8b 0e                	mov    (%esi),%ecx
40e5db:	33 ca                	xor    %edx,%ecx
40e5dd:	81 e1 18 01 00 00    	and    $0x118,%ecx
40e5e3:	31 0e                	xor    %ecx,(%esi)
40e5e5:	5f                   	pop    %edi
40e5e6:	8b c6                	mov    %esi,%eax
40e5e8:	5e                   	pop    %esi
40e5e9:	c9                   	leave
40e5ea:	c2 04 00             	ret    $0x4
40e5ed:	8b ff                	mov    %edi,%edi
40e5ef:	55                   	push   %ebp
40e5f0:	8b ec                	mov    %esp,%ebp
40e5f2:	83 ec 10             	sub    $0x10,%esp
40e5f5:	56                   	push   %esi
40e5f6:	8b f1                	mov    %ecx,%esi
40e5f8:	8b 16                	mov    (%esi),%edx
40e5fa:	f6 c2 02             	test   $0x2,%dl
40e5fd:	75 0b                	jne    0x40e60a
40e5ff:	8d 45 f0             	lea    -0x10(%ebp),%eax
40e602:	50                   	push   %eax
40e603:	e8 f9 fe ff ff       	call   0x40e501
40e608:	8b 10                	mov    (%eax),%edx
40e60a:	33 c0                	xor    %eax,%eax
40e60c:	c6 45 fc 03          	movb   $0x3,-0x4(%ebp)
40e610:	51                   	push   %ecx
40e611:	89 45 f8             	mov    %eax,-0x8(%ebp)
40e614:	0f b6 45 08          	movzbl 0x8(%ebp),%eax
40e618:	51                   	push   %ecx
40e619:	50                   	push   %eax
40e61a:	8d 45 f8             	lea    -0x8(%ebp),%eax
40e61d:	50                   	push   %eax
40e61e:	8b c2                	mov    %edx,%eax
40e620:	8d 4e 08             	lea    0x8(%esi),%ecx
40e623:	c1 e8 08             	shr    $0x8,%eax
40e626:	c1 ea 07             	shr    $0x7,%edx
40e629:	83 e0 01             	and    $0x1,%eax
40e62c:	83 e2 01             	and    $0x1,%edx
40e62f:	50                   	push   %eax
40e630:	52                   	push   %edx
40e631:	ba 70 2a 07 01       	mov    $0x1072a70,%edx
40e636:	e8 cb 13 00 00       	call   0x40fa06
40e63b:	5e                   	pop    %esi
40e63c:	c9                   	leave
40e63d:	c2 0c 00             	ret    $0xc
40e640:	8b ff                	mov    %edi,%edi
40e642:	55                   	push   %ebp
40e643:	8b ec                	mov    %esp,%ebp
40e645:	83 ec 1c             	sub    $0x1c,%esp
40e648:	56                   	push   %esi
40e649:	8b 75 08             	mov    0x8(%ebp),%esi
40e64c:	57                   	push   %edi
40e64d:	8b f9                	mov    %ecx,%edi
40e64f:	8b 07                	mov    (%edi),%eax
40e651:	89 06                	mov    %eax,(%esi)
40e653:	83 e0 03             	and    $0x3,%eax
40e656:	3c 03                	cmp    $0x3,%al
40e658:	0f 84 c6 00 00 00    	je     0x40e724
40e65e:	53                   	push   %ebx
40e65f:	e8 38 bb ff ff       	call   0x40a19c
40e664:	89 45 f4             	mov    %eax,-0xc(%ebp)
40e667:	8d 45 f8             	lea    -0x8(%ebp),%eax
40e66a:	50                   	push   %eax
40e66b:	8d 45 e4             	lea    -0x1c(%ebp),%eax
40e66e:	50                   	push   %eax
40e66f:	e8 a7 08 00 00       	call   0x40ef1b
40e674:	8b 06                	mov    (%esi),%eax
40e676:	8b 55 e4             	mov    -0x1c(%ebp),%edx
40e679:	83 7d f8 00          	cmpl   $0x0,-0x8(%ebp)
40e67d:	8b d8                	mov    %eax,%ebx
40e67f:	89 5d fc             	mov    %ebx,-0x4(%ebp)
40e682:	8b c8                	mov    %eax,%ecx
40e684:	89 06                	mov    %eax,(%esi)
40e686:	74 13                	je     0x40e69b
40e688:	a8 01                	test   $0x1,%al
40e68a:	75 0f                	jne    0x40e69b
40e68c:	33 ca                	xor    %edx,%ecx
40e68e:	81 e1 18 01 00 00    	and    $0x118,%ecx
40e694:	33 c8                	xor    %eax,%ecx
40e696:	83 c9 01             	or     $0x1,%ecx
40e699:	89 0e                	mov    %ecx,(%esi)
40e69b:	83 e3 02             	and    $0x2,%ebx
40e69e:	75 10                	jne    0x40e6b0
40e6a0:	8b c1                	mov    %ecx,%eax
40e6a2:	33 c2                	xor    %edx,%eax
40e6a4:	25 80 00 00 00       	and    $0x80,%eax
40e6a9:	33 c8                	xor    %eax,%ecx
40e6ab:	83 c9 02             	or     $0x2,%ecx
40e6ae:	89 0e                	mov    %ecx,(%esi)
40e6b0:	8b 45 fc             	mov    -0x4(%ebp),%eax
40e6b3:	f0 0f b1 0f          	lock cmpxchg %ecx,(%edi)
40e6b7:	3b 45 fc             	cmp    -0x4(%ebp),%eax
40e6ba:	75 bd                	jne    0x40e679
40e6bc:	85 db                	test   %ebx,%ebx
40e6be:	75 52                	jne    0x40e712
40e6c0:	38 1d 84 48 42 00    	cmp    %bl,0x424884
40e6c6:	74 4a                	je     0x40e712
40e6c8:	bb 88 48 42 00       	mov    $0x424888,%ebx
40e6cd:	53                   	push   %ebx
40e6ce:	ff 15 60 61 42 00    	call   *0x426160
40e6d4:	8b 4d f4             	mov    -0xc(%ebp),%ecx
40e6d7:	a1 94 48 42 00       	mov    0x424894,%eax
40e6dc:	85 c9                	test   %ecx,%ecx
40e6de:	74 22                	je     0x40e702
40e6e0:	3b c8                	cmp    %eax,%ecx
40e6e2:	75 1e                	jne    0x40e702
40e6e4:	6a 08                	push   $0x8
40e6e6:	8d 45 ec             	lea    -0x14(%ebp),%eax
40e6e9:	c7 45 ec 01 00 00 00 	movl   $0x1,-0x14(%ebp)
40e6f0:	50                   	push   %eax
40e6f1:	b9 b0 48 42 00       	mov    $0x4248b0,%ecx
40e6f6:	89 7d f0             	mov    %edi,-0x10(%ebp)
40e6f9:	e8 7b 9c ff ff       	call   0x408379
40e6fe:	84 c0                	test   %al,%al
40e700:	75 06                	jne    0x40e708
40e702:	6a fd                	push   $0xfffffffd
40e704:	58                   	pop    %eax
40e705:	f0 21 07             	lock and %eax,(%edi)
40e708:	53                   	push   %ebx
40e709:	ff 15 6c 61 42 00    	call   *0x42616c
40e70f:	8b 55 e4             	mov    -0x1c(%ebp),%edx
40e712:	f6 06 01             	testb  $0x1,(%esi)
40e715:	5b                   	pop    %ebx
40e716:	75 0c                	jne    0x40e724
40e718:	8b 0e                	mov    (%esi),%ecx
40e71a:	33 ca                	xor    %edx,%ecx
40e71c:	81 e1 18 01 00 00    	and    $0x118,%ecx
40e722:	31 0e                	xor    %ecx,(%esi)
40e724:	5f                   	pop    %edi
40e725:	8b c6                	mov    %esi,%eax
40e727:	5e                   	pop    %esi
40e728:	c9                   	leave
40e729:	c2 04 00             	ret    $0x4
40e72c:	8b ff                	mov    %edi,%edi
40e72e:	55                   	push   %ebp
40e72f:	8b ec                	mov    %esp,%ebp
40e731:	83 ec 10             	sub    $0x10,%esp
40e734:	56                   	push   %esi
40e735:	8b f1                	mov    %ecx,%esi
40e737:	8b 16                	mov    (%esi),%edx
40e739:	f6 c2 02             	test   $0x2,%dl
40e73c:	75 0b                	jne    0x40e749
40e73e:	8d 45 f0             	lea    -0x10(%ebp),%eax
40e741:	50                   	push   %eax
40e742:	e8 f9 fe ff ff       	call   0x40e640
40e747:	8b 10                	mov    (%eax),%edx
40e749:	33 c0                	xor    %eax,%eax
40e74b:	c6 45 fc 03          	movb   $0x3,-0x4(%ebp)
40e74f:	51                   	push   %ecx
40e750:	89 45 f8             	mov    %eax,-0x8(%ebp)
40e753:	0f b6 45 08          	movzbl 0x8(%ebp),%eax
40e757:	51                   	push   %ecx
40e758:	50                   	push   %eax
40e759:	8d 45 f8             	lea    -0x8(%ebp),%eax
40e75c:	50                   	push   %eax
40e75d:	8b c2                	mov    %edx,%eax
40e75f:	8d 4e 08             	lea    0x8(%esi),%ecx
40e762:	c1 e8 08             	shr    $0x8,%eax
40e765:	c1 ea 07             	shr    $0x7,%edx
40e768:	83 e0 01             	and    $0x1,%eax
40e76b:	83 e2 01             	and    $0x1,%edx
40e76e:	50                   	push   %eax
40e76f:	52                   	push   %edx
40e770:	ba c4 66 27 01       	mov    $0x12766c4,%edx
40e775:	e8 8c 12 00 00       	call   0x40fa06
40e77a:	5e                   	pop    %esi
40e77b:	c9                   	leave
40e77c:	c2 0c 00             	ret    $0xc
40e77f:	8b ff                	mov    %edi,%edi
40e781:	55                   	push   %ebp
40e782:	8b ec                	mov    %esp,%ebp
40e784:	83 ec 1c             	sub    $0x1c,%esp
40e787:	56                   	push   %esi
40e788:	8b 75 08             	mov    0x8(%ebp),%esi
40e78b:	57                   	push   %edi
40e78c:	8b f9                	mov    %ecx,%edi
40e78e:	8b 07                	mov    (%edi),%eax
40e790:	89 06                	mov    %eax,(%esi)
40e792:	83 e0 03             	and    $0x3,%eax
40e795:	3c 03                	cmp    $0x3,%al
40e797:	0f 84 c6 00 00 00    	je     0x40e863
40e79d:	53                   	push   %ebx
40e79e:	e8 f9 b9 ff ff       	call   0x40a19c
40e7a3:	89 45 f4             	mov    %eax,-0xc(%ebp)
40e7a6:	8d 45 f8             	lea    -0x8(%ebp),%eax
40e7a9:	50                   	push   %eax
40e7aa:	8d 45 e4             	lea    -0x1c(%ebp),%eax
40e7ad:	50                   	push   %eax
40e7ae:	e8 d3 07 00 00       	call   0x40ef86
40e7b3:	8b 06                	mov    (%esi),%eax
40e7b5:	8b 55 e4             	mov    -0x1c(%ebp),%edx
40e7b8:	83 7d f8 00          	cmpl   $0x0,-0x8(%ebp)
40e7bc:	8b d8                	mov    %eax,%ebx
40e7be:	89 5d fc             	mov    %ebx,-0x4(%ebp)
40e7c1:	8b c8                	mov    %eax,%ecx
40e7c3:	89 06                	mov    %eax,(%esi)
40e7c5:	74 13                	je     0x40e7da
40e7c7:	a8 01                	test   $0x1,%al
40e7c9:	75 0f                	jne    0x40e7da
40e7cb:	33 ca                	xor    %edx,%ecx
40e7cd:	81 e1 18 01 00 00    	and    $0x118,%ecx
40e7d3:	33 c8                	xor    %eax,%ecx
40e7d5:	83 c9 01             	or     $0x1,%ecx
40e7d8:	89 0e                	mov    %ecx,(%esi)
40e7da:	83 e3 02             	and    $0x2,%ebx
40e7dd:	75 10                	jne    0x40e7ef
40e7df:	8b c1                	mov    %ecx,%eax
40e7e1:	33 c2                	xor    %edx,%eax
40e7e3:	25 80 00 00 00       	and    $0x80,%eax
40e7e8:	33 c8                	xor    %eax,%ecx