40a1ac:	b9 84 00 00 00       	mov    $0x84,%ecx
40a1b1:	e8 f9 03 00 00       	call   0x40a5af
40a1b6:	33 c0                	xor    %eax,%eax
40a1b8:	8b f0                	mov    %eax,%esi
40a1ba:	57                   	push   %edi
40a1bb:	ff 15 48 00 41 00    	call   *0x410048
40a1c1:	8b c6                	mov    %esi,%eax
40a1c3:	5f                   	pop    %edi
40a1c4:	5e                   	pop    %esi
40a1c5:	5b                   	pop    %ebx
40a1c6:	c9                   	leave
40a1c7:	c2 08 00             	ret    $0x8
40a1ca:	8b ff                	mov    %edi,%edi
40a1cc:	55                   	push   %ebp
40a1cd:	8b ec                	mov    %esp,%ebp
40a1cf:	83 ec 10             	sub    $0x10,%esp
40a1d2:	56                   	push   %esi
40a1d3:	6a 08                	push   $0x8
40a1d5:	52                   	push   %edx
40a1d6:	33 f6                	xor    %esi,%esi
40a1d8:	51                   	push   %ecx
40a1d9:	89 75 f4             	mov    %esi,-0xc(%ebp)
40a1dc:	ff 15 3c 00 41 00    	call   *0x41003c
40a1e2:	89 45 f8             	mov    %eax,-0x8(%ebp)
40a1e5:	85 c0                	test   %eax,%eax
40a1e7:	75 17                	jne    0x40a200
40a1e9:	ff 15 40 f0 40 00    	call   *0x40f040
40a1ef:	8b d0                	mov    %eax,%edx
40a1f1:	b9 88 14 40 00       	mov    $0x401488,%ecx
40a1f6:	e8 85 e7 ff ff       	call   0x408980
40a1fb:	e9 ea 00 00 00       	jmp    0x40a2ea
40a200:	53                   	push   %ebx
40a201:	8b 5d 08             	mov    0x8(%ebp),%ebx
40a204:	57                   	push   %edi
40a205:	85 db                	test   %ebx,%ebx
40a207:	74 31                	je     0x40a23a
40a209:	53                   	push   %ebx
40a20a:	6a 00                	push   $0x0
40a20c:	ff 15 64 f0 40 00    	call   *0x40f064
40a212:	8b f8                	mov    %eax,%edi
40a214:	85 ff                	test   %edi,%edi
40a216:	75 26                	jne    0x40a23e
40a218:	ff 15 40 f0 40 00    	call   *0x40f040
40a21e:	8b d0                	mov    %eax,%edx
40a220:	b9 a8 46 40 00       	mov    $0x4046a8,%ecx
40a225:	e8 56 e7 ff ff       	call   0x408980
40a22a:	ff 75 f8             	push   -0x8(%ebp)
40a22d:	8b f0                	mov    %eax,%esi
40a22f:	ff 15 48 00 41 00    	call   *0x410048
40a235:	e9 ac 00 00 00       	jmp    0x40a2e6
40a23a:	33 ff                	xor    %edi,%edi
40a23c:	eb 03                	jmp    0x40a241
40a23e:	8b 45 f8             	mov    -0x8(%ebp),%eax
40a241:	8d 4d fc             	lea    -0x4(%ebp),%ecx
40a244:	51                   	push   %ecx
40a245:	8d 4d f0             	lea    -0x10(%ebp),%ecx
40a248:	51                   	push   %ecx
40a249:	53                   	push   %ebx
40a24a:	57                   	push   %edi
40a24b:	6a 03                	push   $0x3
40a24d:	50                   	push   %eax
40a24e:	ff 15 1c 00 41 00    	call   *0x41001c
40a254:	85 c0                	test   %eax,%eax
40a256:	75 25                	jne    0x40a27d
40a258:	ff 15 40 f0 40 00    	call   *0x40f040
40a25e:	8b f0                	mov    %eax,%esi
40a260:	89 75 f4             	mov    %esi,-0xc(%ebp)
40a263:	85 f6                	test   %esi,%esi
40a265:	74 16                	je     0x40a27d
40a267:	81 fe ea 00 00 00    	cmp    $0xea,%esi
40a26d:	74 0e                	je     0x40a27d
40a26f:	8b d6                	mov    %esi,%edx
40a271:	b9 d8 46 40 00       	mov    $0x4046d8,%ecx
40a276:	e8 05 e7 ff ff       	call   0x408980
40a27b:	eb 5e                	jmp    0x40a2db
40a27d:	6a 00                	push   $0x0
40a27f:	ff 75 fc             	push   -0x4(%ebp)
40a282:	b9 d8 46 40 00       	mov    $0x4046d8,%ecx
40a287:	6a 2a                	push   $0x2a
40a289:	5a                   	pop    %edx
40a28a:	e8 84 e7 ff ff       	call   0x408a13
40a28f:	83 65 f8 00          	andl   $0x0,-0x8(%ebp)
40a293:	83 7d fc 00          	cmpl   $0x0,-0x4(%ebp)
40a297:	76 28                	jbe    0x40a2c1
40a299:	8b 75 f8             	mov    -0x8(%ebp),%esi
40a29c:	8d 5f 04             	lea    0x4(%edi),%ebx
40a29f:	8b 13                	mov    (%ebx),%edx
40a2a1:	8d 43 04             	lea    0x4(%ebx),%eax
40a2a4:	8b 4b fc             	mov    -0x4(%ebx),%ecx
40a2a7:	89 45 f8             	mov    %eax,-0x8(%ebp)
40a2aa:	8d 45 f8             	lea    -0x8(%ebp),%eax
40a2ad:	6a 01                	push   $0x1
40a2af:	50                   	push   %eax
40a2b0:	e8 db b7 ff ff       	call   0x405a90
40a2b5:	46                   	inc    %esi
40a2b6:	8d 5b 24             	lea    0x24(%ebx),%ebx
40a2b9:	3b 75 fc             	cmp    -0x4(%ebp),%esi
40a2bc:	72 e1                	jb     0x40a29f
40a2be:	8b 75 f4             	mov    -0xc(%ebp),%esi
40a2c1:	81 fe ea 00 00 00    	cmp    $0xea,%esi
40a2c7:	75 12                	jne    0x40a2db
40a2c9:	6a 00                	push   $0x0
40a2cb:	ff 75 f0             	push   -0x10(%ebp)
40a2ce:	b9 d8 46 40 00       	mov    $0x4046d8,%ecx
40a2d3:	6a 68                	push   $0x68
40a2d5:	5a                   	pop    %edx
40a2d6:	e8 38 e7 ff ff       	call   0x408a13
40a2db:	85 ff                	test   %edi,%edi
40a2dd:	74 07                	je     0x40a2e6
40a2df:	57                   	push   %edi
40a2e0:	ff 15 68 f0 40 00    	call   *0x40f068
40a2e6:	5f                   	pop    %edi
40a2e7:	8b c6                	mov    %esi,%eax
40a2e9:	5b                   	pop    %ebx
40a2ea:	5e                   	pop    %esi
40a2eb:	c9                   	leave
40a2ec:	c2 04 00             	ret    $0x4
40a2ef:	8b ff                	mov    %edi,%edi
40a2f1:	55                   	push   %ebp
40a2f2:	8b ec                	mov    %esp,%ebp
40a2f4:	51                   	push   %ecx
40a2f5:	56                   	push   %esi
40a2f6:	8b 35 c0 eb 40 00    	mov    0x40ebc0,%esi
40a2fc:	56                   	push   %esi
40a2fd:	ff 15 50 f0 40 00    	call   *0x40f050
40a303:	25 ff 7f ff ff       	and    $0xffff7fff,%eax
40a308:	83 f8 02             	cmp    $0x2,%eax
40a30b:	75 14                	jne    0x40a321
40a30d:	8d 45 fc             	lea    -0x4(%ebp),%eax
40a310:	50                   	push   %eax
40a311:	56                   	push   %esi
40a312:	ff 15 24 f0 40 00    	call   *0x40f024
40a318:	85 c0                	test   %eax,%eax
40a31a:	74 05                	je     0x40a321
40a31c:	33 c0                	xor    %eax,%eax
40a31e:	40                   	inc    %eax
40a31f:	eb 02                	jmp    0x40a323
40a321:	33 c0                	xor    %eax,%eax
40a323:	5e                   	pop    %esi
40a324:	c9                   	leave
40a325:	c3                   	ret
40a326:	8b ff                	mov    %edi,%edi
40a328:	55                   	push   %ebp
40a329:	8b ec                	mov    %esp,%ebp
40a32b:	83 ec 38             	sub    $0x38,%esp
40a32e:	8b c2                	mov    %edx,%eax
40a330:	c7 45 e8 02 00 00 00 	movl   $0x2,-0x18(%ebp)
40a337:	8b 55 08             	mov    0x8(%ebp),%edx
40a33a:	53                   	push   %ebx
40a33b:	56                   	push   %esi
40a33c:	57                   	push   %edi
40a33d:	89 02                	mov    %eax,(%edx)
40a33f:	8b d9                	mov    %ecx,%ebx
40a341:	8b 55 0c             	mov    0xc(%ebp),%edx
40a344:	33 f6                	xor    %esi,%esi
40a346:	33 c9                	xor    %ecx,%ecx
40a348:	89 45 f4             	mov    %eax,-0xc(%ebp)
40a34b:	6a 02                	push   $0x2
40a34d:	89 5d dc             	mov    %ebx,-0x24(%ebp)
40a350:	8b f9                	mov    %ecx,%edi
40a352:	89 32                	mov    %esi,(%edx)
40a354:	5e                   	pop    %esi
40a355:	89 4d e4             	mov    %ecx,-0x1c(%ebp)
40a358:	88 4d ff             	mov    %cl,-0x1(%ebp)
40a35b:	89 4d f8             	mov    %ecx,-0x8(%ebp)
40a35e:	39 33                	cmp    %esi,(%ebx)
40a360:	0f 86 42 02 00 00    	jbe    0x40a5a8
40a366:	8b 04 b0             	mov    (%eax,%esi,4),%eax
40a369:	8b d0                	mov    %eax,%edx
40a36b:	89 45 e0             	mov    %eax,-0x20(%ebp)
40a36e:	8d 42 02             	lea    0x2(%edx),%eax
40a371:	89 45 d8             	mov    %eax,-0x28(%ebp)
40a374:	66 8b 02             	mov    (%edx),%ax
40a377:	83 c2 02             	add    $0x2,%edx
40a37a:	66 3b 45 e4          	cmp    -0x1c(%ebp),%ax
40a37e:	75 f4                	jne    0x40a374
40a380:	2b 55 d8             	sub    -0x28(%ebp),%edx
40a383:	8d 45 f8             	lea    -0x8(%ebp),%eax
40a386:	d1 fa                	sar    $1,%edx
40a388:	50                   	push   %eax
40a389:	8d 14 55 02 00 00 00 	lea    0x2(,%edx,2),%edx
40a390:	e8 e6 25 00 00       	call   0x40c97b
40a395:	85 c0                	test   %eax,%eax
40a397:	0f 88 fc 01 00 00    	js     0x40a599
40a39d:	6a 3d                	push   $0x3d
40a39f:	ff 75 e0             	push   -0x20(%ebp)
40a3a2:	ff 15 18 f1 40 00    	call   *0x40f118
40a3a8:	59                   	pop    %ecx
40a3a9:	59                   	pop    %ecx
40a3aa:	85 c0                	test   %eax,%eax
40a3ac:	74 27                	je     0x40a3d5
40a3ae:	33 c9                	xor    %ecx,%ecx
40a3b0:	66 39 48 02          	cmp    %cx,0x2(%eax)
40a3b4:	74 1f                	je     0x40a3d5
40a3b6:	8b 4d f8             	mov    -0x8(%ebp),%ecx
40a3b9:	8d 45 f8             	lea    -0x8(%ebp),%eax
40a3bc:	50                   	push   %eax
40a3bd:	6a 02                	push   $0x2
40a3bf:	5a                   	pop    %edx
40a3c0:	e8 b6 25 00 00       	call   0x40c97b
40a3c5:	85 c0                	test   %eax,%eax
40a3c7:	0f 88 cc 01 00 00    	js     0x40a599
40a3cd:	b0 01                	mov    $0x1,%al
40a3cf:	47                   	inc    %edi
40a3d0:	88 45 ff             	mov    %al,-0x1(%ebp)
40a3d3:	eb 03                	jmp    0x40a3d8
40a3d5:	8a 45 ff             	mov    -0x1(%ebp),%al
40a3d8:	8b 0b                	mov    (%ebx),%ecx
40a3da:	46                   	inc    %esi
40a3db:	3b f1                	cmp    %ecx,%esi
40a3dd:	73 0b                	jae    0x40a3ea
40a3df:	8b 4d f8             	mov    -0x8(%ebp),%ecx
40a3e2:	8b 45 f4             	mov    -0xc(%ebp),%eax
40a3e5:	e9 7c ff ff ff       	jmp    0x40a366
40a3ea:	84 c0                	test   %al,%al
40a3ec:	0f 84 b6 01 00 00    	je     0x40a5a8
40a3f2:	8d 45 d8             	lea    -0x28(%ebp),%eax
40a3f5:	8b d7                	mov    %edi,%edx
40a3f7:	50                   	push   %eax
40a3f8:	e8 7e 25 00 00       	call   0x40c97b
40a3fd:	85 c0                	test   %eax,%eax
40a3ff:	0f 88 94 01 00 00    	js     0x40a599
40a405:	8b 45 d8             	mov    -0x28(%ebp),%eax
40a408:	33 ff                	xor    %edi,%edi
40a40a:	c1 e0 02             	shl    $0x2,%eax
40a40d:	50                   	push   %eax
40a40e:	57                   	push   %edi
40a40f:	ff 15 64 f0 40 00    	call   *0x40f064
40a415:	8b d8                	mov    %eax,%ebx
40a417:	89 5d cc             	mov    %ebx,-0x34(%ebp)
40a41a:	85 db                	test   %ebx,%ebx
40a41c:	75 12                	jne    0x40a430
40a41e:	ff 15 40 f0 40 00    	call   *0x40f040
40a424:	8b d0                	mov    %eax,%edx
40a426:	b9 9c 4e 40 00       	mov    $0x404e9c,%ecx
40a42b:	e9 73 01 00 00       	jmp    0x40a5a3
40a430:	8b 75 f8             	mov    -0x8(%ebp),%esi
40a433:	56                   	push   %esi
40a434:	57                   	push   %edi
40a435:	ff 15 64 f0 40 00    	call   *0x40f064
40a43b:	8b f8                	mov    %eax,%edi
40a43d:	89 7d c8             	mov    %edi,-0x38(%ebp)
40a440:	85 ff                	test   %edi,%edi
40a442:	75 1e                	jne    0x40a462
40a444:	ff 15 40 f0 40 00    	call   *0x40f040
40a44a:	8b d0                	mov    %eax,%edx
40a44c:	b9 9c 4e 40 00       	mov    $0x404e9c,%ecx
40a451:	e8 2a e5 ff ff       	call   0x408980
40a456:	53                   	push   %ebx
40a457:	ff 15 68 f0 40 00    	call   *0x40f068
40a45d:	e9 46 01 00 00       	jmp    0x40a5a8
40a462:	8b 4d f4             	mov    -0xc(%ebp),%ecx
40a465:	6a 02                	push   $0x2
40a467:	5a                   	pop    %edx
40a468:	89 55 f8             	mov    %edx,-0x8(%ebp)
40a46b:	8b 01                	mov    (%ecx),%eax
40a46d:	89 03                	mov    %eax,(%ebx)
40a46f:	8b 41 04             	mov    0x4(%ecx),%eax
40a472:	89 43 04             	mov    %eax,0x4(%ebx)
40a475:	8b 45 dc             	mov    -0x24(%ebp),%eax
40a478:	39 10                	cmp    %edx,(%eax)
40a47a:	0f 86 05 01 00 00    	jbe    0x40a585
40a480:	8d 43 0c             	lea    0xc(%ebx),%eax
40a483:	89 45 ec             	mov    %eax,-0x14(%ebp)
40a486:	6a 3d                	push   $0x3d
40a488:	ff 34 91             	push   (%ecx,%edx,4)
40a48b:	ff 15 18 f1 40 00    	call   *0x40f118
40a491:	8b d0                	mov    %eax,%edx
40a493:	8b 45 e8             	mov    -0x18(%ebp),%eax
40a496:	59                   	pop    %ecx
40a497:	59                   	pop    %ecx
40a498:	8b 4d f4             	mov    -0xc(%ebp),%ecx
40a49b:	89 3c 83             	mov    %edi,(%ebx,%eax,4)
40a49e:	8b 45 f8             	mov    -0x8(%ebp),%eax
40a4a1:	89 55 d4             	mov    %edx,-0x2c(%ebp)
40a4a4:	8b 04 81             	mov    (%ecx,%eax,4),%eax
40a4a7:	8b c8                	mov    %eax,%ecx
40a4a9:	89 45 e0             	mov    %eax,-0x20(%ebp)
40a4ac:	8d 41 02             	lea    0x2(%ecx),%eax
40a4af:	89 45 f0             	mov    %eax,-0x10(%ebp)
40a4b2:	66 8b 01             	mov    (%ecx),%ax
40a4b5:	83 c1 02             	add    $0x2,%ecx
40a4b8:	66 3b 45 e4          	cmp    -0x1c(%ebp),%ax
40a4bc:	75 f4                	jne    0x40a4b2
40a4be:	2b 4d f0             	sub    -0x10(%ebp),%ecx
40a4c1:	d1 f9                	sar    $1,%ecx
40a4c3:	8d 04 4d 02 00 00 00 	lea    0x2(,%ecx,2),%eax
40a4ca:	89 45 f0             	mov    %eax,-0x10(%ebp)
40a4cd:	85 d2                	test   %edx,%edx
40a4cf:	74 74                	je     0x40a545
40a4d1:	8d 42 02             	lea    0x2(%edx),%eax
40a4d4:	33 c9                	xor    %ecx,%ecx
40a4d6:	89 45 d0             	mov    %eax,-0x30(%ebp)
40a4d9:	66 39 08             	cmp    %cx,(%eax)
40a4dc:	74 67                	je     0x40a545
40a4de:	8b 4d e0             	mov    -0x20(%ebp),%ecx
40a4e1:	8b c2                	mov    %edx,%eax
40a4e3:	2b c1                	sub    %ecx,%eax
40a4e5:	8b d6                	mov    %esi,%edx
40a4e7:	d1 f8                	sar    $1,%eax
40a4e9:	8d 1c 45 02 00 00 00 	lea    0x2(,%eax,2),%ebx
40a4f0:	53                   	push   %ebx
40a4f1:	51                   	push   %ecx
40a4f2:	8b cf                	mov    %edi,%ecx
40a4f4:	e8 08 23 00 00       	call   0x40c801
40a4f9:	8b 45 f4             	mov    -0xc(%ebp),%eax
40a4fc:	2b f3                	sub    %ebx,%esi
40a4fe:	8b 4d f8             	mov    -0x8(%ebp),%ecx
40a501:	8b 55 d4             	mov    -0x2c(%ebp),%edx
40a504:	89 75 e0             	mov    %esi,-0x20(%ebp)
40a507:	8b 75 f0             	mov    -0x10(%ebp),%esi
40a50a:	2b 14 88             	sub    (%eax,%ecx,4),%edx
40a50d:	2b f3                	sub    %ebx,%esi
40a50f:	8b 45 ec             	mov    -0x14(%ebp),%eax
40a512:	d1 fa                	sar    $1,%edx
40a514:	56                   	push   %esi
40a515:	ff 75 d0             	push   -0x30(%ebp)
40a518:	8d 3c 57             	lea    (%edi,%edx,2),%edi
40a51b:	8b 55 e0             	mov    -0x20(%ebp),%edx
40a51e:	83 c7 04             	add    $0x4,%edi
40a521:	8b cf                	mov    %edi,%ecx
40a523:	89 38                	mov    %edi,(%eax)
40a525:	e8 d7 22 00 00       	call   0x40c801
40a52a:	d1 ee                	shr    $1,%esi
40a52c:	6a 08                	push   $0x8
40a52e:	8d 3c 77             	lea    (%edi,%esi,2),%edi
40a531:	8b 75 e0             	mov    -0x20(%ebp),%esi
40a534:	2b 75 f0             	sub    -0x10(%ebp),%esi
40a537:	03 f3                	add    %ebx,%esi
40a539:	c7 45 e0 02 00 00 00 	movl   $0x2,-0x20(%ebp)
40a540:	8b 5d cc             	mov    -0x34(%ebp),%ebx
40a543:	eb 21                	jmp    0x40a566
40a545:	8b 4d e0             	mov    -0x20(%ebp),%ecx
40a548:	8b d6                	mov    %esi,%edx
40a54a:	51                   	push   %ecx
40a54b:	8b cf                	mov    %edi,%ecx
40a54d:	e8 f1 22 00 00       	call   0x40c843
40a552:	8b 45 f0             	mov    -0x10(%ebp),%eax
40a555:	d1 e8                	shr    $1,%eax
40a557:	2b 75 f0             	sub    -0x10(%ebp),%esi
40a55a:	6a 04                	push   $0x4
40a55c:	c7 45 e0 01 00 00 00 	movl   $0x1,-0x20(%ebp)
40a563:	8d 3c 47             	lea    (%edi,%eax,2),%edi
40a566:	8b 45 e0             	mov    -0x20(%ebp),%eax
40a569:	01 45 e8             	add    %eax,-0x18(%ebp)
40a56c:	8b 55 f8             	mov    -0x8(%ebp),%edx
40a56f:	8b 45 dc             	mov    -0x24(%ebp),%eax
40a572:	42                   	inc    %edx
40a573:	59                   	pop    %ecx
40a574:	01 4d ec             	add    %ecx,-0x14(%ebp)