407327:	3b f8                	cmp    %eax,%edi
407329:	0f 87 90 00 00 00    	ja     0x4073bf
40732f:	8b c7                	mov    %edi,%eax
407331:	0b 44 24 18          	or     0x18(%esp),%eax
407335:	74 15                	je     0x40734c
407337:	f6 c3 01             	test   $0x1,%bl
40733a:	74 07                	je     0x407343
40733c:	83 7c 24 10 00       	cmpl   $0x0,0x10(%esp)
407341:	74 7c                	je     0x4073bf
407343:	f6 c3 02             	test   $0x2,%bl
407346:	74 04                	je     0x40734c
407348:	85 c9                	test   %ecx,%ecx
40734a:	74 73                	je     0x4073bf
40734c:	8b 54 24 24          	mov    0x24(%esp),%edx
407350:	8d 04 7a             	lea    (%edx,%edi,2),%eax
407353:	89 44 24 14          	mov    %eax,0x14(%esp)
407357:	f6 c3 01             	test   $0x1,%bl
40735a:	74 28                	je     0x407384
40735c:	83 7c 24 10 00       	cmpl   $0x0,0x10(%esp)
407361:	74 21                	je     0x407384
407363:	8b 46 0c             	mov    0xc(%esi),%eax
407366:	89 10                	mov    %edx,(%eax)
407368:	8b 46 1c             	mov    0x1c(%esi),%eax
40736b:	8b 54 24 14          	mov    0x14(%esp),%edx
40736f:	89 10                	mov    %edx,(%eax)
407371:	8b 54 24 2c          	mov    0x2c(%esp),%edx
407375:	2b 54 24 14          	sub    0x14(%esp),%edx
407379:	8b 46 2c             	mov    0x2c(%esi),%eax
40737c:	d1 fa                	sar    $1,%edx
40737e:	89 10                	mov    %edx,(%eax)
407380:	8b 54 24 24          	mov    0x24(%esp),%edx
407384:	f6 c3 02             	test   $0x2,%bl
407387:	74 28                	je     0x4073b1
407389:	85 c9                	test   %ecx,%ecx
40738b:	74 24                	je     0x4073b1
40738d:	8b 46 30             	mov    0x30(%esi),%eax
407390:	8b 08                	mov    (%eax),%ecx
407392:	8b 46 20             	mov    0x20(%esi),%eax
407395:	8b 00                	mov    (%eax),%eax
407397:	8d 0c 48             	lea    (%eax,%ecx,2),%ecx
40739a:	8b 46 10             	mov    0x10(%esi),%eax
40739d:	89 10                	mov    %edx,(%eax)
40739f:	8b 46 20             	mov    0x20(%esi),%eax
4073a2:	8b 54 24 14          	mov    0x14(%esp),%edx
4073a6:	2b ca                	sub    %edx,%ecx
4073a8:	d1 f9                	sar    $1,%ecx
4073aa:	89 10                	mov    %edx,(%eax)
4073ac:	8b 46 30             	mov    0x30(%esi),%eax
4073af:	89 08                	mov    %ecx,(%eax)
4073b1:	8b 45 08             	mov    0x8(%ebp),%eax
4073b4:	8b 4c 24 18          	mov    0x18(%esp),%ecx
4073b8:	89 38                	mov    %edi,(%eax)
4073ba:	89 48 04             	mov    %ecx,0x4(%eax)
4073bd:	eb 10                	jmp    0x4073cf
4073bf:	8b 45 08             	mov    0x8(%ebp),%eax
4073c2:	c7 00 ff ff ff ff    	movl   $0xffffffff,(%eax)
4073c8:	c7 40 04 ff ff ff ff 	movl   $0xffffffff,0x4(%eax)
4073cf:	5f                   	pop    %edi
4073d0:	0f 57 c0             	xorps  %xmm0,%xmm0
4073d3:	c7 40 08 00 00 00 00 	movl   $0x0,0x8(%eax)
4073da:	5e                   	pop    %esi
4073db:	c7 40 0c 00 00 00 00 	movl   $0x0,0xc(%eax)
4073e2:	66 0f d6 40 10       	movq   %xmm0,0x10(%eax)
4073e7:	5b                   	pop    %ebx
4073e8:	8b e5                	mov    %ebp,%esp
4073ea:	5d                   	pop    %ebp
4073eb:	c2 14 00             	ret    $0x14
4073ee:	cc                   	int3
4073ef:	cc                   	int3
4073f0:	55                   	push   %ebp
4073f1:	8b ec                	mov    %esp,%ebp
4073f3:	51                   	push   %ecx
4073f4:	8b d1                	mov    %ecx,%edx
4073f6:	53                   	push   %ebx
4073f7:	56                   	push   %esi
4073f8:	57                   	push   %edi
4073f9:	8b 5a 1c             	mov    0x1c(%edx),%ebx
4073fc:	8b 33                	mov    (%ebx),%esi
4073fe:	85 f6                	test   %esi,%esi
407400:	74 52                	je     0x407454
407402:	8b 4a 2c             	mov    0x2c(%edx),%ecx
407405:	8b 09                	mov    (%ecx),%ecx
407407:	8d 0c 4e             	lea    (%esi,%ecx,2),%ecx
40740a:	3b f1                	cmp    %ecx,%esi
40740c:	73 0a                	jae    0x407418
40740e:	66 8b 06             	mov    (%esi),%ax
407411:	5f                   	pop    %edi
407412:	5e                   	pop    %esi
407413:	5b                   	pop    %ebx
407414:	8b e5                	mov    %ebp,%esp
407416:	5d                   	pop    %ebp
407417:	c3                   	ret
407418:	8b 42 20             	mov    0x20(%edx),%eax
40741b:	8b 00                	mov    (%eax),%eax
40741d:	85 c0                	test   %eax,%eax
40741f:	74 33                	je     0x407454
407421:	f6 42 3c 04          	testb  $0x4,0x3c(%edx)
407425:	75 2d                	jne    0x407454
407427:	8b 7a 38             	mov    0x38(%edx),%edi
40742a:	3b f8                	cmp    %eax,%edi
40742c:	0f 42 f8             	cmovb  %eax,%edi
40742f:	3b fe                	cmp    %esi,%edi
407431:	76 21                	jbe    0x407454
407433:	89 7a 38             	mov    %edi,0x38(%edx)
407436:	8b c3                	mov    %ebx,%eax
407438:	8b 0b                	mov    (%ebx),%ecx
40743a:	2b f9                	sub    %ecx,%edi
40743c:	d1 ff                	sar    $1,%edi
40743e:	89 08                	mov    %ecx,(%eax)
407440:	8b 42 2c             	mov    0x2c(%edx),%eax
407443:	89 38                	mov    %edi,(%eax)
407445:	8b 42 1c             	mov    0x1c(%edx),%eax
407448:	5f                   	pop    %edi
407449:	5e                   	pop    %esi
40744a:	5b                   	pop    %ebx
40744b:	8b 00                	mov    (%eax),%eax
40744d:	66 8b 00             	mov    (%eax),%ax
407450:	8b e5                	mov    %ebp,%esp
407452:	5d                   	pop    %ebp
407453:	c3                   	ret
407454:	5f                   	pop    %edi
407455:	5e                   	pop    %esi
407456:	b8 ff ff 00 00       	mov    $0xffff,%eax
40745b:	5b                   	pop    %ebx
40745c:	8b e5                	mov    %ebp,%esp
40745e:	5d                   	pop    %ebp
40745f:	c3                   	ret
407460:	55                   	push   %ebp
407461:	8b ec                	mov    %esp,%ebp
407463:	8b 41 1c             	mov    0x1c(%ecx),%eax
407466:	66 8b 55 08          	mov    0x8(%ebp),%dx
40746a:	53                   	push   %ebx
40746b:	56                   	push   %esi
40746c:	8b 30                	mov    (%eax),%esi
40746e:	bb ff ff 00 00       	mov    $0xffff,%ebx
407473:	57                   	push   %edi
407474:	0f b7 fa             	movzwl %dx,%edi
407477:	85 f6                	test   %esi,%esi
407479:	74 41                	je     0x4074bc
40747b:	8b 41 0c             	mov    0xc(%ecx),%eax
40747e:	3b 30                	cmp    (%eax),%esi
407480:	76 3a                	jbe    0x4074bc
407482:	66 3b da             	cmp    %dx,%bx
407485:	74 0c                	je     0x407493
407487:	66 3b 56 fe          	cmp    -0x2(%esi),%dx
40748b:	74 06                	je     0x407493
40748d:	f6 41 3c 02          	testb  $0x2,0x3c(%ecx)
407491:	75 29                	jne    0x4074bc
407493:	8b 41 2c             	mov    0x2c(%ecx),%eax
407496:	ff 00                	incl   (%eax)
407498:	8b 41 1c             	mov    0x1c(%ecx),%eax
40749b:	83 00 fe             	addl   $0xfffffffe,(%eax)
40749e:	66 3b da             	cmp    %dx,%bx
4074a1:	74 08                	je     0x4074ab
4074a3:	8b 41 1c             	mov    0x1c(%ecx),%eax
4074a6:	8b 00                	mov    (%eax),%eax
4074a8:	66 89 10             	mov    %dx,(%eax)
4074ab:	8b c7                	mov    %edi,%eax
4074ad:	33 c9                	xor    %ecx,%ecx
4074af:	5f                   	pop    %edi
4074b0:	66 3b d3             	cmp    %bx,%dx
4074b3:	5e                   	pop    %esi
4074b4:	0f 44 c1             	cmove  %ecx,%eax
4074b7:	5b                   	pop    %ebx
4074b8:	5d                   	pop    %ebp
4074b9:	c2 04 00             	ret    $0x4
4074bc:	5f                   	pop    %edi
4074bd:	5e                   	pop    %esi
4074be:	66 8b c3             	mov    %bx,%ax
4074c1:	5b                   	pop    %ebx
4074c2:	5d                   	pop    %ebp
4074c3:	c2 04 00             	ret    $0x4
4074c6:	cc                   	int3
4074c7:	cc                   	int3
4074c8:	cc                   	int3
4074c9:	cc                   	int3
4074ca:	cc                   	int3
4074cb:	cc                   	int3
4074cc:	cc                   	int3
4074cd:	cc                   	int3
4074ce:	cc                   	int3
4074cf:	cc                   	int3
4074d0:	55                   	push   %ebp
4074d1:	8b ec                	mov    %esp,%ebp
4074d3:	83 ec 0c             	sub    $0xc,%esp
4074d6:	b8 ff ff 00 00       	mov    $0xffff,%eax
4074db:	53                   	push   %ebx
4074dc:	56                   	push   %esi
4074dd:	57                   	push   %edi
4074de:	8b f9                	mov    %ecx,%edi
4074e0:	f6 47 3c 02          	testb  $0x2,0x3c(%edi)
4074e4:	0f 85 65 01 00 00    	jne    0x40764f
4074ea:	66 3b 45 08          	cmp    0x8(%ebp),%ax
4074ee:	75 0b                	jne    0x4074fb
4074f0:	5f                   	pop    %edi
4074f1:	5e                   	pop    %esi
4074f2:	33 c0                	xor    %eax,%eax
4074f4:	5b                   	pop    %ebx
4074f5:	8b e5                	mov    %ebp,%esp
4074f7:	5d                   	pop    %ebp
4074f8:	c2 04 00             	ret    $0x4
4074fb:	8b 47 20             	mov    0x20(%edi),%eax
4074fe:	8b 57 30             	mov    0x30(%edi),%edx
407501:	8b 00                	mov    (%eax),%eax
407503:	8b 0a                	mov    (%edx),%ecx
407505:	89 45 fc             	mov    %eax,-0x4(%ebp)
407508:	8d 1c 48             	lea    (%eax,%ecx,2),%ebx
40750b:	85 c0                	test   %eax,%eax
40750d:	74 58                	je     0x407567
40750f:	3b c3                	cmp    %ebx,%eax
407511:	73 26                	jae    0x407539
407513:	66 8b 45 08          	mov    0x8(%ebp),%ax
407517:	49                   	dec    %ecx
407518:	89 0a                	mov    %ecx,(%edx)
40751a:	8b 57 20             	mov    0x20(%edi),%edx
40751d:	8b 32                	mov    (%edx),%esi
40751f:	8d 4e 02             	lea    0x2(%esi),%ecx
407522:	89 0a                	mov    %ecx,(%edx)
407524:	8b 4d fc             	mov    -0x4(%ebp),%ecx
407527:	66 89 06             	mov    %ax,(%esi)
40752a:	83 c1 02             	add    $0x2,%ecx
40752d:	89 4f 38             	mov    %ecx,0x38(%edi)
407530:	5f                   	pop    %edi
407531:	5e                   	pop    %esi
407532:	5b                   	pop    %ebx
407533:	8b e5                	mov    %ebp,%esp
407535:	5d                   	pop    %ebp
407536:	c2 04 00             	ret    $0x4
407539:	8b 47 0c             	mov    0xc(%edi),%eax
40753c:	8b 30                	mov    (%eax),%esi
40753e:	2b de                	sub    %esi,%ebx
407540:	d1 fb                	sar    $1,%ebx
407542:	83 fb 20             	cmp    $0x20,%ebx
407545:	72 27                	jb     0x40756e
407547:	81 fb ff ff ff 3f    	cmp    $0x3fffffff,%ebx
40754d:	73 05                	jae    0x407554
40754f:	8d 04 1b             	lea    (%ebx,%ebx,1),%eax
407552:	eb 1f                	jmp    0x407573
407554:	81 fb ff ff ff 7f    	cmp    $0x7fffffff,%ebx
40755a:	0f 83 ea 00 00 00    	jae    0x40764a
407560:	b8 ff ff ff 7f       	mov    $0x7fffffff,%eax
407565:	eb 0c                	jmp    0x407573
407567:	8b 47 0c             	mov    0xc(%edi),%eax
40756a:	33 db                	xor    %ebx,%ebx
40756c:	8b 30                	mov    (%eax),%esi
40756e:	b8 20 00 00 00       	mov    $0x20,%eax
407573:	50                   	push   %eax
407574:	8d 4f 40             	lea    0x40(%edi),%ecx
407577:	89 45 f8             	mov    %eax,-0x8(%ebp)
40757a:	e8 31 bb ff ff       	call   0x4030b0
40757f:	89 45 f4             	mov    %eax,-0xc(%ebp)
407582:	8d 04 1b             	lea    (%ebx,%ebx,1),%eax
407585:	8b 5d f4             	mov    -0xc(%ebp),%ebx
407588:	50                   	push   %eax
407589:	56                   	push   %esi
40758a:	53                   	push   %ebx
40758b:	89 45 fc             	mov    %eax,-0x4(%ebp)
40758e:	e8 ed 40 01 00       	call   0x41b680
407593:	8b 55 fc             	mov    -0x4(%ebp),%edx
407596:	83 c4 0c             	add    $0xc,%esp
407599:	8b 4d f8             	mov    -0x8(%ebp),%ecx
40759c:	03 d3                	add    %ebx,%edx
40759e:	03 c9                	add    %ecx,%ecx
4075a0:	2b ca                	sub    %edx,%ecx
4075a2:	03 cb                	add    %ebx,%ecx
4075a4:	8d 42 02             	lea    0x2(%edx),%eax
4075a7:	d1 f9                	sar    $1,%ecx
4075a9:	89 47 38             	mov    %eax,0x38(%edi)
4075ac:	8b 47 10             	mov    0x10(%edi),%eax
4075af:	89 18                	mov    %ebx,(%eax)
4075b1:	8b 47 20             	mov    0x20(%edi),%eax
4075b4:	89 10                	mov    %edx,(%eax)
4075b6:	8b 47 30             	mov    0x30(%edi),%eax
4075b9:	89 08                	mov    %ecx,(%eax)
4075bb:	f6 47 3c 04          	testb  $0x4,0x3c(%edi)
4075bf:	74 17                	je     0x4075d8
4075c1:	8b 47 0c             	mov    0xc(%edi),%eax
4075c4:	89 18                	mov    %ebx,(%eax)
4075c6:	8b 47 1c             	mov    0x1c(%edi),%eax
4075c9:	d1 fb                	sar    $1,%ebx
4075cb:	c7 00 00 00 00 00    	movl   $0x0,(%eax)
4075d1:	8b 47 2c             	mov    0x2c(%edi),%eax
4075d4:	89 18                	mov    %ebx,(%eax)
4075d6:	eb 22                	jmp    0x4075fa
4075d8:	8b 47 1c             	mov    0x1c(%edi),%eax
4075db:	8b 57 38             	mov    0x38(%edi),%edx
4075de:	8b 00                	mov    (%eax),%eax
4075e0:	2b c6                	sub    %esi,%eax
4075e2:	d1 f8                	sar    $1,%eax
4075e4:	8d 0c 43             	lea    (%ebx,%eax,2),%ecx
4075e7:	8b 47 0c             	mov    0xc(%edi),%eax
4075ea:	2b d1                	sub    %ecx,%edx
4075ec:	d1 fa                	sar    $1,%edx
4075ee:	89 18                	mov    %ebx,(%eax)
4075f0:	8b 47 1c             	mov    0x1c(%edi),%eax
4075f3:	89 08                	mov    %ecx,(%eax)
4075f5:	8b 47 2c             	mov    0x2c(%edi),%eax
4075f8:	89 10                	mov    %edx,(%eax)
4075fa:	f6 47 3c 01          	testb  $0x1,0x3c(%edi)
4075fe:	74 27                	je     0x407627
407600:	8b 4d fc             	mov    -0x4(%ebp),%ecx
407603:	81 f9 00 10 00 00    	cmp    $0x1000,%ecx
407609:	72 12                	jb     0x40761d
40760b:	8b 56 fc             	mov    -0x4(%esi),%edx
40760e:	83 c1 23             	add    $0x23,%ecx
407611:	2b f2                	sub    %edx,%esi
407613:	8d 46 fc             	lea    -0x4(%esi),%eax
407616:	83 f8 1f             	cmp    $0x1f,%eax
407619:	77 3d                	ja     0x407658
40761b:	8b f2                	mov    %edx,%esi
40761d:	51                   	push   %ecx
40761e:	56                   	push   %esi
40761f:	e8 94 25 01 00       	call   0x419bb8
407624:	83 c4 08             	add    $0x8,%esp
407627:	8b 47 30             	mov    0x30(%edi),%eax
40762a:	83 4f 3c 01          	orl    $0x1,0x3c(%edi)
40762e:	ff 08                	decl   (%eax)
407630:	8b 4f 20             	mov    0x20(%edi),%ecx
407633:	5f                   	pop    %edi
407634:	5e                   	pop    %esi
407635:	5b                   	pop    %ebx
407636:	8b 11                	mov    (%ecx),%edx
407638:	8d 42 02             	lea    0x2(%edx),%eax
40763b:	89 01                	mov    %eax,(%ecx)
40763d:	66 8b 45 08          	mov    0x8(%ebp),%ax
407641:	66 89 02             	mov    %ax,(%edx)
407644:	8b e5                	mov    %ebp,%esp
407646:	5d                   	pop    %ebp
407647:	c2 04 00             	ret    $0x4
40764a:	b8 ff ff 00 00       	mov    $0xffff,%eax
40764f:	5f                   	pop    %edi
407650:	5e                   	pop    %esi
407651:	5b                   	pop    %ebx
407652:	8b e5                	mov    %ebp,%esp
407654:	5d                   	pop    %ebp
407655:	c2 04 00             	ret    $0x4
407658:	e8 36 83 01 00       	call   0x41f993
40765d:	cc                   	int3
40765e:	cc                   	int3
40765f:	cc                   	int3
407660:	53                   	push   %ebx
407661:	56                   	push   %esi
407662:	8b f1                	mov    %ecx,%esi
407664:	f6 46 3c 01          	testb  $0x1,0x3c(%esi)
407668:	c7 06 e0 ee 44 00    	movl   $0x44eee0,(%esi)
40766e:	74 52                	je     0x4076c2
407670:	8b 46 20             	mov    0x20(%esi),%eax
407673:	8b 08                	mov    (%eax),%ecx
407675:	85 c9                	test   %ecx,%ecx
407677:	74 0a                	je     0x407683