40d3cb:	c3                   	ret
40d3cc:	6a 0c                	push   $0xc
40d3ce:	68 18 15 43 00       	push   $0x431518
40d3d3:	e8 e8 ab ff ff       	call   0x407fc0
40d3d8:	83 65 e4 00          	andl   $0x0,-0x1c(%ebp)
40d3dc:	8b 45 08             	mov    0x8(%ebp),%eax
40d3df:	ff 30                	push   (%eax)
40d3e1:	e8 a0 e3 ff ff       	call   0x40b786
40d3e6:	59                   	pop    %ecx
40d3e7:	83 65 fc 00          	andl   $0x0,-0x4(%ebp)
40d3eb:	8b 45 0c             	mov    0xc(%ebp),%eax
40d3ee:	8b 00                	mov    (%eax),%eax
40d3f0:	ff 30                	push   (%eax)
40d3f2:	e8 3f 01 00 00       	call   0x40d536
40d3f7:	59                   	pop    %ecx
40d3f8:	8b f0                	mov    %eax,%esi
40d3fa:	89 75 e4             	mov    %esi,-0x1c(%ebp)
40d3fd:	c7 45 fc fe ff ff ff 	movl   $0xfffffffe,-0x4(%ebp)
40d404:	e8 17 00 00 00       	call   0x40d420
40d409:	8b c6                	mov    %esi,%eax
40d40b:	8b 4d f0             	mov    -0x10(%ebp),%ecx
40d40e:	64 89 0d 00 00 00 00 	mov    %ecx,%fs:0x0
40d415:	59                   	pop    %ecx
40d416:	5f                   	pop    %edi
40d417:	5e                   	pop    %esi
40d418:	5b                   	pop    %ebx
40d419:	c9                   	leave
40d41a:	c2 0c 00             	ret    $0xc
40d41d:	8b 75 e4             	mov    -0x1c(%ebp),%esi
40d420:	8b 45 10             	mov    0x10(%ebp),%eax
40d423:	ff 30                	push   (%eax)
40d425:	e8 70 e3 ff ff       	call   0x40b79a
40d42a:	59                   	pop    %ecx
40d42b:	c3                   	ret
40d42c:	8b ff                	mov    %edi,%edi
40d42e:	55                   	push   %ebp
40d42f:	8b ec                	mov    %esp,%ebp
40d431:	83 ec 20             	sub    $0x20,%esp
40d434:	83 65 f8 00          	andl   $0x0,-0x8(%ebp)
40d438:	8d 45 f8             	lea    -0x8(%ebp),%eax
40d43b:	83 65 f4 00          	andl   $0x0,-0xc(%ebp)
40d43f:	8d 4d ff             	lea    -0x1(%ebp),%ecx
40d442:	89 45 e0             	mov    %eax,-0x20(%ebp)
40d445:	8d 45 08             	lea    0x8(%ebp),%eax
40d448:	89 45 e4             	mov    %eax,-0x1c(%ebp)
40d44b:	8d 45 f4             	lea    -0xc(%ebp),%eax
40d44e:	6a 08                	push   $0x8
40d450:	89 45 e8             	mov    %eax,-0x18(%ebp)
40d453:	58                   	pop    %eax
40d454:	89 45 f0             	mov    %eax,-0x10(%ebp)
40d457:	89 45 ec             	mov    %eax,-0x14(%ebp)
40d45a:	8d 45 f0             	lea    -0x10(%ebp),%eax
40d45d:	50                   	push   %eax
40d45e:	8d 45 e0             	lea    -0x20(%ebp),%eax
40d461:	50                   	push   %eax
40d462:	8d 45 ec             	lea    -0x14(%ebp),%eax
40d465:	50                   	push   %eax
40d466:	e8 b5 fe ff ff       	call   0x40d320
40d46b:	80 7d 08 00          	cmpb   $0x0,0x8(%ebp)
40d46f:	8b 45 f8             	mov    -0x8(%ebp),%eax
40d472:	75 03                	jne    0x40d477
40d474:	8b 45 f4             	mov    -0xc(%ebp),%eax
40d477:	c9                   	leave
40d478:	c3                   	ret
40d479:	8b ff                	mov    %edi,%edi
40d47b:	55                   	push   %ebp
40d47c:	8b ec                	mov    %esp,%ebp
40d47e:	8b 45 08             	mov    0x8(%ebp),%eax
40d481:	85 c0                	test   %eax,%eax
40d483:	74 1f                	je     0x40d4a4
40d485:	8b 48 0c             	mov    0xc(%eax),%ecx
40d488:	90                   	nop
40d489:	8b c1                	mov    %ecx,%eax
40d48b:	c1 e8 0d             	shr    $0xd,%eax
40d48e:	a8 01                	test   $0x1,%al
40d490:	74 12                	je     0x40d4a4
40d492:	51                   	push   %ecx
40d493:	e8 14 00 00 00       	call   0x40d4ac
40d498:	83 c4 04             	add    $0x4,%esp
40d49b:	84 c0                	test   %al,%al
40d49d:	75 09                	jne    0x40d4a8
40d49f:	8b 45 0c             	mov    0xc(%ebp),%eax
40d4a2:	ff 00                	incl   (%eax)
40d4a4:	32 c0                	xor    %al,%al
40d4a6:	5d                   	pop    %ebp
40d4a7:	c3                   	ret
40d4a8:	b0 01                	mov    $0x1,%al
40d4aa:	5d                   	pop    %ebp
40d4ab:	c3                   	ret
40d4ac:	8b ff                	mov    %edi,%edi
40d4ae:	55                   	push   %ebp
40d4af:	8b ec                	mov    %esp,%ebp
40d4b1:	8b 45 08             	mov    0x8(%ebp),%eax
40d4b4:	24 03                	and    $0x3,%al
40d4b6:	3c 02                	cmp    $0x2,%al
40d4b8:	75 06                	jne    0x40d4c0
40d4ba:	f6 45 08 c0          	testb  $0xc0,0x8(%ebp)
40d4be:	75 09                	jne    0x40d4c9
40d4c0:	f7 45 08 00 08 00 00 	testl  $0x800,0x8(%ebp)
40d4c7:	74 04                	je     0x40d4cd
40d4c9:	b0 01                	mov    $0x1,%al
40d4cb:	5d                   	pop    %ebp
40d4cc:	c3                   	ret
40d4cd:	32 c0                	xor    %al,%al
40d4cf:	5d                   	pop    %ebp
40d4d0:	c3                   	ret
40d4d1:	8b ff                	mov    %edi,%edi
40d4d3:	55                   	push   %ebp
40d4d4:	8b ec                	mov    %esp,%ebp
40d4d6:	8b 4d 08             	mov    0x8(%ebp),%ecx
40d4d9:	56                   	push   %esi
40d4da:	57                   	push   %edi
40d4db:	8d 71 0c             	lea    0xc(%ecx),%esi
40d4de:	8b 16                	mov    (%esi),%edx
40d4e0:	90                   	nop
40d4e1:	8b c2                	mov    %edx,%eax
40d4e3:	24 03                	and    $0x3,%al
40d4e5:	3c 02                	cmp    $0x2,%al
40d4e7:	75 47                	jne    0x40d530
40d4e9:	f6 c2 c0             	test   $0xc0,%dl
40d4ec:	74 42                	je     0x40d530
40d4ee:	8b 39                	mov    (%ecx),%edi
40d4f0:	8b 41 04             	mov    0x4(%ecx),%eax
40d4f3:	2b f8                	sub    %eax,%edi
40d4f5:	89 01                	mov    %eax,(%ecx)
40d4f7:	83 61 08 00          	andl   $0x0,0x8(%ecx)
40d4fb:	85 ff                	test   %edi,%edi
40d4fd:	7e 31                	jle    0x40d530
40d4ff:	57                   	push   %edi
40d500:	50                   	push   %eax
40d501:	51                   	push   %ecx
40d502:	e8 87 7a 00 00       	call   0x414f8e
40d507:	59                   	pop    %ecx
40d508:	50                   	push   %eax
40d509:	e8 6f 90 00 00       	call   0x41657d
40d50e:	83 c4 0c             	add    $0xc,%esp
40d511:	3b f8                	cmp    %eax,%edi
40d513:	74 0b                	je     0x40d520
40d515:	6a 10                	push   $0x10
40d517:	58                   	pop    %eax
40d518:	f0 09 06             	lock or %eax,(%esi)
40d51b:	83 c8 ff             	or     $0xffffffff,%eax
40d51e:	eb 12                	jmp    0x40d532
40d520:	8b 06                	mov    (%esi),%eax
40d522:	90                   	nop
40d523:	c1 e8 02             	shr    $0x2,%eax
40d526:	a8 01                	test   $0x1,%al
40d528:	74 06                	je     0x40d530
40d52a:	6a fd                	push   $0xfffffffd
40d52c:	58                   	pop    %eax
40d52d:	f0 21 06             	lock and %eax,(%esi)
40d530:	33 c0                	xor    %eax,%eax
40d532:	5f                   	pop    %edi
40d533:	5e                   	pop    %esi
40d534:	5d                   	pop    %ebp
40d535:	c3                   	ret
40d536:	8b ff                	mov    %edi,%edi
40d538:	55                   	push   %ebp
40d539:	8b ec                	mov    %esp,%ebp
40d53b:	56                   	push   %esi
40d53c:	8b 75 08             	mov    0x8(%ebp),%esi
40d53f:	85 f6                	test   %esi,%esi
40d541:	75 09                	jne    0x40d54c
40d543:	56                   	push   %esi
40d544:	e8 e3 fe ff ff       	call   0x40d42c
40d549:	59                   	pop    %ecx
40d54a:	eb 2f                	jmp    0x40d57b
40d54c:	56                   	push   %esi
40d54d:	e8 7f ff ff ff       	call   0x40d4d1
40d552:	59                   	pop    %ecx
40d553:	85 c0                	test   %eax,%eax
40d555:	75 21                	jne    0x40d578
40d557:	8b 46 0c             	mov    0xc(%esi),%eax
40d55a:	90                   	nop
40d55b:	c1 e8 0b             	shr    $0xb,%eax
40d55e:	a8 01                	test   $0x1,%al
40d560:	74 12                	je     0x40d574
40d562:	56                   	push   %esi
40d563:	e8 26 7a 00 00       	call   0x414f8e
40d568:	50                   	push   %eax
40d569:	e8 17 88 00 00       	call   0x415d85
40d56e:	59                   	pop    %ecx
40d56f:	59                   	pop    %ecx
40d570:	85 c0                	test   %eax,%eax
40d572:	75 04                	jne    0x40d578
40d574:	33 c0                	xor    %eax,%eax
40d576:	eb 03                	jmp    0x40d57b
40d578:	83 c8 ff             	or     $0xffffffff,%eax
40d57b:	5e                   	pop    %esi
40d57c:	5d                   	pop    %ebp
40d57d:	c3                   	ret
40d57e:	6a 01                	push   $0x1
40d580:	e8 a7 fe ff ff       	call   0x40d42c
40d585:	59                   	pop    %ecx
40d586:	c3                   	ret
40d587:	8b ff                	mov    %edi,%edi
40d589:	55                   	push   %ebp
40d58a:	8b ec                	mov    %esp,%ebp
40d58c:	83 ec 14             	sub    $0x14,%esp
40d58f:	8b 45 08             	mov    0x8(%ebp),%eax
40d592:	89 45 f8             	mov    %eax,-0x8(%ebp)
40d595:	85 c0                	test   %eax,%eax
40d597:	75 09                	jne    0x40d5a2
40d599:	50                   	push   %eax
40d59a:	e8 8d fe ff ff       	call   0x40d42c
40d59f:	59                   	pop    %ecx
40d5a0:	c9                   	leave
40d5a1:	c3                   	ret
40d5a2:	8b 40 0c             	mov    0xc(%eax),%eax
40d5a5:	90                   	nop
40d5a6:	50                   	push   %eax
40d5a7:	e8 00 ff ff ff       	call   0x40d4ac
40d5ac:	83 c4 04             	add    $0x4,%esp
40d5af:	84 c0                	test   %al,%al
40d5b1:	75 04                	jne    0x40d5b7
40d5b3:	33 c0                	xor    %eax,%eax
40d5b5:	c9                   	leave
40d5b6:	c3                   	ret
40d5b7:	8d 45 f8             	lea    -0x8(%ebp),%eax
40d5ba:	89 45 f0             	mov    %eax,-0x10(%ebp)
40d5bd:	8d 4d ff             	lea    -0x1(%ebp),%ecx
40d5c0:	8b 45 f8             	mov    -0x8(%ebp),%eax
40d5c3:	89 45 f4             	mov    %eax,-0xc(%ebp)
40d5c6:	89 45 ec             	mov    %eax,-0x14(%ebp)
40d5c9:	8d 45 f4             	lea    -0xc(%ebp),%eax
40d5cc:	50                   	push   %eax
40d5cd:	8d 45 f0             	lea    -0x10(%ebp),%eax
40d5d0:	50                   	push   %eax
40d5d1:	8d 45 ec             	lea    -0x14(%ebp),%eax
40d5d4:	50                   	push   %eax
40d5d5:	e8 f2 fd ff ff       	call   0x40d3cc
40d5da:	c9                   	leave
40d5db:	c3                   	ret
40d5dc:	8b ff                	mov    %edi,%edi
40d5de:	55                   	push   %ebp
40d5df:	8b ec                	mov    %esp,%ebp
40d5e1:	8b 55 08             	mov    0x8(%ebp),%edx
40d5e4:	85 d2                	test   %edx,%edx
40d5e6:	75 15                	jne    0x40d5fd
40d5e8:	e8 0e 18 00 00       	call   0x40edfb
40d5ed:	c7 00 16 00 00 00    	movl   $0x16,(%eax)
40d5f3:	e8 89 fa ff ff       	call   0x40d081
40d5f8:	83 c8 ff             	or     $0xffffffff,%eax
40d5fb:	5d                   	pop    %ebp
40d5fc:	c3                   	ret
40d5fd:	83 6a 08 01          	subl   $0x1,0x8(%edx)
40d601:	79 09                	jns    0x40d60c
40d603:	52                   	push   %edx
40d604:	e8 ca 93 00 00       	call   0x4169d3
40d609:	59                   	pop    %ecx
40d60a:	5d                   	pop    %ebp
40d60b:	c3                   	ret
40d60c:	8b 02                	mov    (%edx),%eax
40d60e:	8a 08                	mov    (%eax),%cl
40d610:	40                   	inc    %eax
40d611:	89 02                	mov    %eax,(%edx)
40d613:	0f b6 c1             	movzbl %cl,%eax
40d616:	5d                   	pop    %ebp
40d617:	c3                   	ret
40d618:	6a 10                	push   $0x10
40d61a:	68 38 15 43 00       	push   $0x431538
40d61f:	e8 9c a9 ff ff       	call   0x407fc0
40d624:	8b 75 08             	mov    0x8(%ebp),%esi
40d627:	89 75 e0             	mov    %esi,-0x20(%ebp)
40d62a:	85 f6                	test   %esi,%esi
40d62c:	75 18                	jne    0x40d646
40d62e:	e8 c8 17 00 00       	call   0x40edfb
40d633:	c7 00 16 00 00 00    	movl   $0x16,(%eax)
40d639:	e8 43 fa ff ff       	call   0x40d081
40d63e:	83 c8 ff             	or     $0xffffffff,%eax
40d641:	e9 bd 00 00 00       	jmp    0x40d703
40d646:	83 65 e4 00          	andl   $0x0,-0x1c(%ebp)
40d64a:	56                   	push   %esi
40d64b:	e8 36 e1 ff ff       	call   0x40b786
40d650:	59                   	pop    %ecx
40d651:	83 65 fc 00          	andl   $0x0,-0x4(%ebp)
40d655:	8b 46 0c             	mov    0xc(%esi),%eax
40d658:	90                   	nop
40d659:	c1 e8 0c             	shr    $0xc,%eax
40d65c:	a8 01                	test   $0x1,%al
40d65e:	0f 85 85 00 00 00    	jne    0x40d6e9
40d664:	56                   	push   %esi
40d665:	e8 24 79 00 00       	call   0x414f8e
40d66a:	59                   	pop    %ecx
40d66b:	83 f8 ff             	cmp    $0xffffffff,%eax
40d66e:	74 20                	je     0x40d690
40d670:	83 f8 fe             	cmp    $0xfffffffe,%eax
40d673:	74 1b                	je     0x40d690
40d675:	8b d0                	mov    %eax,%edx
40d677:	c1 fa 06             	sar    $0x6,%edx
40d67a:	8b f8                	mov    %eax,%edi
40d67c:	83 e7 3f             	and    $0x3f,%edi
40d67f:	6b df 38             	imul   $0x38,%edi,%ebx
40d682:	03 1c 95 c0 4a 43 00 	add    0x434ac0(,%edx,4),%ebx
40d689:	b9 90 31 43 00       	mov    $0x433190,%ecx
40d68e:	eb 11                	jmp    0x40d6a1
40d690:	b9 90 31 43 00       	mov    $0x433190,%ecx
40d695:	8b d9                	mov    %ecx,%ebx
40d697:	8b d0                	mov    %eax,%edx
40d699:	c1 fa 06             	sar    $0x6,%edx
40d69c:	8b f8                	mov    %eax,%edi
40d69e:	83 e7 3f             	and    $0x3f,%edi
40d6a1:	80 7b 29 00          	cmpb   $0x0,0x29(%ebx)
40d6a5:	75 1a                	jne    0x40d6c1
40d6a7:	83 f8 ff             	cmp    $0xffffffff,%eax
40d6aa:	74 0f                	je     0x40d6bb
40d6ac:	83 f8 fe             	cmp    $0xfffffffe,%eax
40d6af:	74 0a                	je     0x40d6bb
40d6b1:	6b cf 38             	imul   $0x38,%edi,%ecx
40d6b4:	03 0c 95 c0 4a 43 00 	add    0x434ac0(,%edx,4),%ecx
40d6bb:	f6 41 2d 01          	testb  $0x1,0x2d(%ecx)
40d6bf:	74 28                	je     0x40d6e9
40d6c1:	e8 35 17 00 00       	call   0x40edfb
40d6c6:	c7 00 16 00 00 00    	movl   $0x16,(%eax)
40d6cc:	e8 b0 f9 ff ff       	call   0x40d081
40d6d1:	6a fe                	push   $0xfffffffe
40d6d3:	8d 4d f0             	lea    -0x10(%ebp),%ecx
40d6d6:	51                   	push   %ecx
40d6d7:	68 14 30 43 00       	push   $0x433014
40d6dc:	e8 8f d9 ff ff       	call   0x40b070
40d6e1:	83 c4 0c             	add    $0xc,%esp
40d6e4:	e9 55 ff ff ff       	jmp    0x40d63e
40d6e9:	56                   	push   %esi
40d6ea:	e8 ed fe ff ff       	call   0x40d5dc
40d6ef:	59                   	pop    %ecx
40d6f0:	8b f0                	mov    %eax,%esi
40d6f2:	89 75 e4             	mov    %esi,-0x1c(%ebp)
40d6f5:	c7 45 fc fe ff ff ff 	movl   $0xfffffffe,-0x4(%ebp)
40d6fc:	e8 15 00 00 00       	call   0x40d716
40d701:	8b c6                	mov    %esi,%eax
40d703:	8b 4d f0             	mov    -0x10(%ebp),%ecx
40d706:	64 89 0d 00 00 00 00 	mov    %ecx,%fs:0x0
40d70d:	59                   	pop    %ecx
40d70e:	5f                   	pop    %edi
40d70f:	5e                   	pop    %esi
40d710:	5b                   	pop    %ebx
40d711:	c9                   	leave
40d712:	c3                   	ret
40d713:	8b 75 e4             	mov    -0x1c(%ebp),%esi
40d716:	ff 75 e0             	push   -0x20(%ebp)
40d719:	e8 7c e0 ff ff       	call   0x40b79a
40d71e:	59                   	pop    %ecx
40d71f:	c3                   	ret
40d720:	8b ff                	mov    %edi,%edi
40d722:	55                   	push   %ebp
40d723:	8b ec                	mov    %esp,%ebp
40d725:	83 7d 08 00          	cmpl   $0x0,0x8(%ebp)
40d729:	75 15                	jne    0x40d740
40d72b:	e8 cb 16 00 00       	call   0x40edfb
40d730:	c7 00 16 00 00 00    	movl   $0x16,(%eax)