40a22e:	b8 01 00 00 00       	mov    $0x1,%eax
40a233:	91                   	xchg   %eax,%ecx
40a234:	e8 af e0 ff ff       	call   0x4082e8
40a239:	83 c4 10             	add    $0x10,%esp
40a23c:	5b                   	pop    %ebx
40a23d:	c3                   	ret
40a23e:	8b c0                	mov    %eax,%eax
40a240:	53                   	push   %ebx
40a241:	31 db                	xor    %ebx,%ebx
40a243:	50                   	push   %eax
40a244:	e8 b7 ff ff ff       	call   0x40a200
40a249:	58                   	pop    %eax
40a24a:	8b 08                	mov    (%eax),%ecx
40a24c:	8b 40 04             	mov    0x4(%eax),%eax
40a24f:	2d 5a 95 0a 00       	sub    $0xa955a,%eax
40a254:	f7 ab 80 d1 48 00    	imull  0x48d180(%ebx)
40a25a:	09 d2                	or     %edx,%edx
40a25c:	79 07                	jns    0x40a265
40a25e:	29 c8                	sub    %ecx,%eax
40a260:	83 da 00             	sbb    $0x0,%edx
40a263:	eb 05                	jmp    0x40a26a
40a265:	01 c8                	add    %ecx,%eax
40a267:	83 d2 00             	adc    $0x0,%edx
40a26a:	52                   	push   %edx
40a26b:	50                   	push   %eax
40a26c:	df 2c 24             	fildll (%esp)
40a26f:	d8 b3 7c d1 48 00    	fdivs  0x48d17c(%ebx)
40a275:	83 c4 08             	add    $0x8,%esp
40a278:	5b                   	pop    %ebx
40a279:	c3                   	ret
40a27a:	8b c0                	mov    %eax,%eax
40a27c:	55                   	push   %ebp
40a27d:	8b ec                	mov    %esp,%ebp
40a27f:	53                   	push   %ebx
40a280:	31 db                	xor    %ebx,%ebx
40a282:	89 c1                	mov    %eax,%ecx
40a284:	8b 45 08             	mov    0x8(%ebp),%eax
40a287:	8b 55 0c             	mov    0xc(%ebp),%edx
40a28a:	f7 b3 80 d1 48 00    	divl   0x48d180(%ebx)
40a290:	89 11                	mov    %edx,(%ecx)
40a292:	89 41 04             	mov    %eax,0x4(%ecx)
40a295:	5b                   	pop    %ebx
40a296:	5d                   	pop    %ebp
40a297:	c2 08 00             	ret    $0x8
40a29a:	8b c0                	mov    %eax,%eax
40a29c:	53                   	push   %ebx
40a29d:	31 db                	xor    %ebx,%ebx
40a29f:	50                   	push   %eax
40a2a0:	e8 5b ff ff ff       	call   0x40a200
40a2a5:	58                   	pop    %eax
40a2a6:	db 40 04             	fildl  0x4(%eax)
40a2a9:	d8 8b 7c d1 48 00    	fmuls  0x48d17c(%ebx)
40a2af:	da 00                	fiaddl (%eax)
40a2b1:	5b                   	pop    %ebx
40a2b2:	c3                   	ret
40a2b3:	90                   	nop
40a2b4:	55                   	push   %ebp
40a2b5:	8b ec                	mov    %esp,%ebp
40a2b7:	83 c4 f8             	add    $0xfffffff8,%esp
40a2ba:	56                   	push   %esi
40a2bb:	8b 75 0c             	mov    0xc(%ebp),%esi
40a2be:	c6 45 ff 00          	movb   $0x0,-0x1(%ebp)
40a2c2:	66 83 f8 18          	cmp    $0x18,%ax
40a2c6:	73 4d                	jae    0x40a315
40a2c8:	66 83 fa 3c          	cmp    $0x3c,%dx
40a2cc:	73 47                	jae    0x40a315
40a2ce:	66 83 f9 3c          	cmp    $0x3c,%cx
40a2d2:	73 41                	jae    0x40a315
40a2d4:	66 81 fe e8 03       	cmp    $0x3e8,%si
40a2d9:	73 3a                	jae    0x40a315
40a2db:	0f b7 c0             	movzwl %ax,%eax
40a2de:	69 c0 80 ee 36 00    	imul   $0x36ee80,%eax,%eax
40a2e4:	0f b7 d2             	movzwl %dx,%edx
40a2e7:	69 d2 60 ea 00 00    	imul   $0xea60,%edx,%edx
40a2ed:	03 c2                	add    %edx,%eax
40a2ef:	0f b7 d1             	movzwl %cx,%edx
40a2f2:	69 d2 e8 03 00 00    	imul   $0x3e8,%edx,%edx
40a2f8:	03 c2                	add    %edx,%eax
40a2fa:	0f b7 d6             	movzwl %si,%edx
40a2fd:	03 c2                	add    %edx,%eax
40a2ff:	89 45 f8             	mov    %eax,-0x8(%ebp)
40a302:	db 45 f8             	fildl  -0x8(%ebp)
40a305:	d8 35 20 a3 40 00    	fdivs  0x40a320
40a30b:	8b 45 08             	mov    0x8(%ebp),%eax
40a30e:	dd 18                	fstpl  (%eax)
40a310:	9b                   	fwait
40a311:	c6 45 ff 01          	movb   $0x1,-0x1(%ebp)
40a315:	8a 45 ff             	mov    -0x1(%ebp),%al
40a318:	5e                   	pop    %esi
40a319:	59                   	pop    %ecx
40a31a:	59                   	pop    %ecx
40a31b:	5d                   	pop    %ebp
40a31c:	c2 08 00             	ret    $0x8
40a31f:	00 80 cb a4 4c 55    	add    %al,0x554ca4cb(%eax)
40a325:	8b ec                	mov    %esp,%ebp
40a327:	83 c4 f8             	add    $0xfffffff8,%esp
40a32a:	53                   	push   %ebx
40a32b:	56                   	push   %esi
40a32c:	57                   	push   %edi
40a32d:	8b f9                	mov    %ecx,%edi
40a32f:	8b f2                	mov    %edx,%esi
40a331:	8b d8                	mov    %eax,%ebx
40a333:	66 8b 45 08          	mov    0x8(%ebp),%ax
40a337:	50                   	push   %eax
40a338:	8d 45 f8             	lea    -0x8(%ebp),%eax
40a33b:	50                   	push   %eax
40a33c:	8b cf                	mov    %edi,%ecx
40a33e:	8b d6                	mov    %esi,%edx
40a340:	8b c3                	mov    %ebx,%eax
40a342:	e8 6d ff ff ff       	call   0x40a2b4
40a347:	84 c0                	test   %al,%al
40a349:	75 0a                	jne    0x40a355
40a34b:	a1 10 b2 49 00       	mov    0x49b210,%eax
40a350:	e8 7b df ff ff       	call   0x4082d0
40a355:	dd 45 f8             	fldl   -0x8(%ebp)
40a358:	5f                   	pop    %edi
40a359:	5e                   	pop    %esi
40a35a:	5b                   	pop    %ebx
40a35b:	59                   	pop    %ecx
40a35c:	59                   	pop    %ecx
40a35d:	5d                   	pop    %ebp
40a35e:	c2 04 00             	ret    $0x4
40a361:	8d 40 00             	lea    0x0(%eax),%eax
40a364:	55                   	push   %ebp
40a365:	8b ec                	mov    %esp,%ebp
40a367:	83 c4 f4             	add    $0xfffffff4,%esp
40a36a:	53                   	push   %ebx
40a36b:	56                   	push   %esi
40a36c:	57                   	push   %edi
40a36d:	8b f9                	mov    %ecx,%edi
40a36f:	8b f2                	mov    %edx,%esi
40a371:	8b d8                	mov    %eax,%ebx
40a373:	8d 45 fc             	lea    -0x4(%ebp),%eax
40a376:	50                   	push   %eax
40a377:	ff 75 10             	push   0x10(%ebp)
40a37a:	ff 75 0c             	push   0xc(%ebp)
40a37d:	8d 45 f4             	lea    -0xc(%ebp),%eax
40a380:	e8 37 fe ff ff       	call   0x40a1bc
40a385:	8b 45 f4             	mov    -0xc(%ebp),%eax
40a388:	8d 4d fe             	lea    -0x2(%ebp),%ecx
40a38b:	66 ba 60 ea          	mov    $0xea60,%dx
40a38f:	e8 20 df ff ff       	call   0x4082b4
40a394:	56                   	push   %esi
40a395:	8b cb                	mov    %ebx,%ecx
40a397:	0f b7 45 fe          	movzwl -0x2(%ebp),%eax
40a39b:	66 ba 3c 00          	mov    $0x3c,%dx
40a39f:	e8 10 df ff ff       	call   0x4082b4
40a3a4:	8b 45 08             	mov    0x8(%ebp),%eax
40a3a7:	50                   	push   %eax
40a3a8:	8b cf                	mov    %edi,%ecx
40a3aa:	0f b7 45 fc          	movzwl -0x4(%ebp),%eax
40a3ae:	66 ba e8 03          	mov    $0x3e8,%dx
40a3b2:	e8 fd de ff ff       	call   0x4082b4
40a3b7:	5f                   	pop    %edi
40a3b8:	5e                   	pop    %esi
40a3b9:	5b                   	pop    %ebx
40a3ba:	8b e5                	mov    %ebp,%esp
40a3bc:	5d                   	pop    %ebp
40a3bd:	c2 0c 00             	ret    $0xc
40a3c0:	53                   	push   %ebx
40a3c1:	56                   	push   %esi
40a3c2:	8b c8                	mov    %eax,%ecx
40a3c4:	0f b7 c1             	movzwl %cx,%eax
40a3c7:	83 e0 03             	and    $0x3,%eax
40a3ca:	85 c0                	test   %eax,%eax
40a3cc:	75 21                	jne    0x40a3ef
40a3ce:	0f b7 d9             	movzwl %cx,%ebx
40a3d1:	8b c3                	mov    %ebx,%eax
40a3d3:	be 64 00 00 00       	mov    $0x64,%esi
40a3d8:	33 d2                	xor    %edx,%edx
40a3da:	f7 f6                	div    %esi
40a3dc:	85 d2                	test   %edx,%edx
40a3de:	75 14                	jne    0x40a3f4
40a3e0:	8b c3                	mov    %ebx,%eax
40a3e2:	b9 90 01 00 00       	mov    $0x190,%ecx
40a3e7:	33 d2                	xor    %edx,%edx
40a3e9:	f7 f1                	div    %ecx
40a3eb:	85 d2                	test   %edx,%edx
40a3ed:	74 05                	je     0x40a3f4
40a3ef:	33 c0                	xor    %eax,%eax
40a3f1:	5e                   	pop    %esi
40a3f2:	5b                   	pop    %ebx
40a3f3:	c3                   	ret
40a3f4:	b0 01                	mov    $0x1,%al
40a3f6:	5e                   	pop    %esi
40a3f7:	5b                   	pop    %ebx
40a3f8:	c3                   	ret
40a3f9:	8d 40 00             	lea    0x0(%eax),%eax
40a3fc:	55                   	push   %ebp
40a3fd:	8b ec                	mov    %esp,%ebp
40a3ff:	83 c4 f8             	add    $0xfffffff8,%esp
40a402:	53                   	push   %ebx
40a403:	56                   	push   %esi
40a404:	57                   	push   %edi
40a405:	8b d9                	mov    %ecx,%ebx
40a407:	8b fa                	mov    %edx,%edi
40a409:	66 89 45 fe          	mov    %ax,-0x2(%ebp)
40a40d:	c6 45 fd 00          	movb   $0x0,-0x3(%ebp)
40a411:	66 8b 45 fe          	mov    -0x2(%ebp),%ax
40a415:	e8 a6 ff ff ff       	call   0x40a3c0
40a41a:	83 e0 7f             	and    $0x7f,%eax
40a41d:	8d 04 40             	lea    (%eax,%eax,2),%eax
40a420:	8d 34 c5 dc d0 48 00 	lea    0x48d0dc(,%eax,8),%esi
40a427:	66 83 7d fe 01       	cmpw   $0x1,-0x2(%ebp)
40a42c:	0f 82 86 00 00 00    	jb     0x40a4b8
40a432:	66 81 7d fe 0f 27    	cmpw   $0x270f,-0x2(%ebp)
40a438:	77 7e                	ja     0x40a4b8
40a43a:	66 83 ff 01          	cmp    $0x1,%di
40a43e:	72 78                	jb     0x40a4b8
40a440:	66 83 ff 0c          	cmp    $0xc,%di
40a444:	77 72                	ja     0x40a4b8
40a446:	66 83 fb 01          	cmp    $0x1,%bx
40a44a:	72 6c                	jb     0x40a4b8
40a44c:	0f b7 c7             	movzwl %di,%eax
40a44f:	66 3b 5c 46 fe       	cmp    -0x2(%esi,%eax,2),%bx
40a454:	77 62                	ja     0x40a4b8
40a456:	0f b7 c7             	movzwl %di,%eax
40a459:	48                   	dec    %eax
40a45a:	85 c0                	test   %eax,%eax
40a45c:	7e 0e                	jle    0x40a46c
40a45e:	b9 01 00 00 00       	mov    $0x1,%ecx
40a463:	66 03 5c 4e fe       	add    -0x2(%esi,%ecx,2),%bx
40a468:	41                   	inc    %ecx
40a469:	48                   	dec    %eax
40a46a:	75 f7                	jne    0x40a463
40a46c:	0f b7 4d fe          	movzwl -0x2(%ebp),%ecx
40a470:	49                   	dec    %ecx
40a471:	8b c1                	mov    %ecx,%eax
40a473:	be 64 00 00 00       	mov    $0x64,%esi
40a478:	99                   	cltd
40a479:	f7 fe                	idiv   %esi
40a47b:	69 f1 6d 01 00 00    	imul   $0x16d,%ecx,%esi
40a481:	8b d1                	mov    %ecx,%edx
40a483:	85 d2                	test   %edx,%edx
40a485:	79 03                	jns    0x40a48a
40a487:	83 c2 03             	add    $0x3,%edx
40a48a:	c1 fa 02             	sar    $0x2,%edx
40a48d:	03 f2                	add    %edx,%esi
40a48f:	2b f0                	sub    %eax,%esi
40a491:	8b c1                	mov    %ecx,%eax
40a493:	b9 90 01 00 00       	mov    $0x190,%ecx
40a498:	99                   	cltd
40a499:	f7 f9                	idiv   %ecx
40a49b:	03 f0                	add    %eax,%esi
40a49d:	0f b7 c3             	movzwl %bx,%eax
40a4a0:	03 f0                	add    %eax,%esi
40a4a2:	81 ee 5a 95 0a 00    	sub    $0xa955a,%esi
40a4a8:	89 75 f8             	mov    %esi,-0x8(%ebp)
40a4ab:	db 45 f8             	fildl  -0x8(%ebp)
40a4ae:	8b 45 08             	mov    0x8(%ebp),%eax
40a4b1:	dd 18                	fstpl  (%eax)
40a4b3:	9b                   	fwait
40a4b4:	c6 45 fd 01          	movb   $0x1,-0x3(%ebp)
40a4b8:	8a 45 fd             	mov    -0x3(%ebp),%al
40a4bb:	5f                   	pop    %edi
40a4bc:	5e                   	pop    %esi
40a4bd:	5b                   	pop    %ebx
40a4be:	59                   	pop    %ecx
40a4bf:	59                   	pop    %ecx
40a4c0:	5d                   	pop    %ebp
40a4c1:	c2 04 00             	ret    $0x4
40a4c4:	53                   	push   %ebx
40a4c5:	56                   	push   %esi
40a4c6:	57                   	push   %edi
40a4c7:	83 c4 f8             	add    $0xfffffff8,%esp
40a4ca:	8b f9                	mov    %ecx,%edi
40a4cc:	8b f2                	mov    %edx,%esi
40a4ce:	8b d8                	mov    %eax,%ebx
40a4d0:	54                   	push   %esp
40a4d1:	8b cf                	mov    %edi,%ecx
40a4d3:	8b d6                	mov    %esi,%edx
40a4d5:	8b c3                	mov    %ebx,%eax
40a4d7:	e8 20 ff ff ff       	call   0x40a3fc
40a4dc:	84 c0                	test   %al,%al
40a4de:	75 0a                	jne    0x40a4ea
40a4e0:	a1 58 b3 49 00       	mov    0x49b358,%eax
40a4e5:	e8 e6 dd ff ff       	call   0x4082d0
40a4ea:	dd 04 24             	fldl   (%esp)
40a4ed:	59                   	pop    %ecx
40a4ee:	5a                   	pop    %edx
40a4ef:	5f                   	pop    %edi
40a4f0:	5e                   	pop    %esi
40a4f1:	5b                   	pop    %ebx
40a4f2:	c3                   	ret
40a4f3:	90                   	nop
40a4f4:	55                   	push   %ebp
40a4f5:	8b ec                	mov    %esp,%ebp
40a4f7:	83 c4 e8             	add    $0xffffffe8,%esp
40a4fa:	53                   	push   %ebx
40a4fb:	56                   	push   %esi
40a4fc:	89 4d f4             	mov    %ecx,-0xc(%ebp)
40a4ff:	89 55 f8             	mov    %edx,-0x8(%ebp)
40a502:	89 45 fc             	mov    %eax,-0x4(%ebp)
40a505:	8b 5d 08             	mov    0x8(%ebp),%ebx
40a508:	ff 75 10             	push   0x10(%ebp)
40a50b:	ff 75 0c             	push   0xc(%ebp)
40a50e:	8d 45 e8             	lea    -0x18(%ebp),%eax
40a511:	e8 a6 fc ff ff       	call   0x40a1bc
40a516:	8b 4d ec             	mov    -0x14(%ebp),%ecx
40a519:	85 c9                	test   %ecx,%ecx
40a51b:	7f 24                	jg     0x40a541
40a51d:	8b 45 fc             	mov    -0x4(%ebp),%eax
40a520:	66 c7 00 00 00       	movw   $0x0,(%eax)
40a525:	8b 45 f8             	mov    -0x8(%ebp),%eax
40a528:	66 c7 00 00 00       	movw   $0x0,(%eax)
40a52d:	8b 45 f4             	mov    -0xc(%ebp),%eax
40a530:	66 c7 00 00 00       	movw   $0x0,(%eax)
40a535:	66 c7 03 00 00       	movw   $0x0,(%ebx)
40a53a:	33 d2                	xor    %edx,%edx
40a53c:	e9 f2 00 00 00       	jmp    0x40a633
40a541:	8b c1                	mov    %ecx,%eax
40a543:	be 07 00 00 00       	mov    $0x7,%esi
40a548:	99                   	cltd
40a549:	f7 fe                	idiv   %esi
40a54b:	42                   	inc    %edx
40a54c:	66 89 13             	mov    %dx,(%ebx)
40a54f:	49                   	dec    %ecx
40a550:	66 bb 01 00          	mov    $0x1,%bx
40a554:	81 f9 b1 3a 02 00    	cmp    $0x23ab1,%ecx
40a55a:	7c 13                	jl     0x40a56f
40a55c:	81 e9 b1 3a 02 00    	sub    $0x23ab1,%ecx
40a562:	66 81 c3 90 01       	add    $0x190,%bx
40a567:	81 f9 b1 3a 02 00    	cmp    $0x23ab1,%ecx
40a56d:	7d ed                	jge    0x40a55c
40a56f:	8d 45 f2             	lea    -0xe(%ebp),%eax
40a572:	50                   	push   %eax
40a573:	8d 45 f0             	lea    -0x10(%ebp),%eax
40a576:	66 ba ac 8e          	mov    $0x8eac,%dx
40a57a:	91                   	xchg   %eax,%ecx
40a57b:	e8 34 dd ff ff       	call   0x4082b4
40a580:	66 83 7d f0 04       	cmpw   $0x4,-0x10(%ebp)
40a585:	75 0a                	jne    0x40a591
40a587:	66 ff 4d f0          	decw   -0x10(%ebp)
40a58b:	66 81 45 f2 ac 8e    	addw   $0x8eac,-0xe(%ebp)
40a591:	66 6b 45 f0 64       	imul   $0x64,-0x10(%ebp),%ax
40a596:	66 03 d8             	add    %ax,%bx
40a599:	8d 45 f2             	lea    -0xe(%ebp),%eax
40a59c:	50                   	push   %eax
40a59d:	8d 4d f0             	lea    -0x10(%ebp),%ecx
40a5a0:	0f b7 45 f2          	movzwl -0xe(%ebp),%eax
40a5a4:	66 ba b5 05          	mov    $0x5b5,%dx
40a5a8:	e8 07 dd ff ff       	call   0x4082b4
40a5ad:	66 8b 45 f0          	mov    -0x10(%ebp),%ax
40a5b1:	c1 e0 02             	shl    $0x2,%eax
40a5b4:	66 03 d8             	add    %ax,%bx
40a5b7:	8d 45 f2             	lea    -0xe(%ebp),%eax
40a5ba:	50                   	push   %eax
40a5bb:	8d 4d f0             	lea    -0x10(%ebp),%ecx
40a5be:	0f b7 45 f2          	movzwl -0xe(%ebp),%eax
40a5c2:	66 ba 6d 01          	mov    $0x16d,%dx