40e0a8:	51                   	push   %ecx
40e0a9:	dd 1c 24             	fstpl  (%esp)
40e0ac:	e8 b4 fe ff ff       	call   0x40df65
40e0b1:	d9 ee                	fldz
40e0b3:	dd 45 10             	fldl   0x10(%ebp)
40e0b6:	59                   	pop    %ecx
40e0b7:	59                   	pop    %ecx
40e0b8:	d8 d1                	fcom   %st(1)
40e0ba:	8b c8                	mov    %eax,%ecx
40e0bc:	df e0                	fnstsw %ax
40e0be:	f6 c4 41             	test   $0x41,%ah
40e0c1:	75 13                	jne    0x40e0d6
40e0c3:	dd d9                	fstp   %st(1)
40e0c5:	dd d8                	fstp   %st(0)
40e0c7:	dd 05 f0 3c 41 00    	fldl   0x413cf0
40e0cd:	83 f9 01             	cmp    $0x1,%ecx
40e0d0:	75 20                	jne    0x40e0f2
40e0d2:	d9 e0                	fchs
40e0d4:	eb 1c                	jmp    0x40e0f2
40e0d6:	d8 d9                	fcomp  %st(1)
40e0d8:	df e0                	fnstsw %ax
40e0da:	f6 c4 05             	test   $0x5,%ah
40e0dd:	7a 0f                	jp     0x40e0ee
40e0df:	83 f9 01             	cmp    $0x1,%ecx
40e0e2:	75 0e                	jne    0x40e0f2
40e0e4:	dd d8                	fstp   %st(0)
40e0e6:	dd 05 00 3d 41 00    	fldl   0x413d00
40e0ec:	eb 04                	jmp    0x40e0f2
40e0ee:	dd d8                	fstp   %st(0)
40e0f0:	d9 e8                	fld1
40e0f2:	8b 45 18             	mov    0x18(%ebp),%eax
40e0f5:	dd 18                	fstpl  (%eax)
40e0f7:	33 c0                	xor    %eax,%eax
40e0f9:	5d                   	pop    %ebp
40e0fa:	c3                   	ret
40e0fb:	8b ff                	mov    %edi,%edi
40e0fd:	53                   	push   %ebx
40e0fe:	8b dc                	mov    %esp,%ebx
40e100:	51                   	push   %ecx
40e101:	51                   	push   %ecx
40e102:	83 e4 f0             	and    $0xfffffff0,%esp
40e105:	83 c4 04             	add    $0x4,%esp
40e108:	55                   	push   %ebp
40e109:	8b 6b 04             	mov    0x4(%ebx),%ebp
40e10c:	89 6c 24 04          	mov    %ebp,0x4(%esp)
40e110:	8b ec                	mov    %esp,%ebp
40e112:	81 ec 88 00 00 00    	sub    $0x88,%esp
40e118:	a1 14 60 41 00       	mov    0x416014,%eax
40e11d:	33 c5                	xor    %ebp,%eax
40e11f:	89 45 fc             	mov    %eax,-0x4(%ebp)
40e122:	8b 43 10             	mov    0x10(%ebx),%eax
40e125:	56                   	push   %esi
40e126:	8b 73 0c             	mov    0xc(%ebx),%esi
40e129:	57                   	push   %edi
40e12a:	0f b7 08             	movzwl (%eax),%ecx
40e12d:	89 8d 7c ff ff ff    	mov    %ecx,-0x84(%ebp)
40e133:	8b 06                	mov    (%esi),%eax
40e135:	83 e8 01             	sub    $0x1,%eax
40e138:	74 2f                	je     0x40e169
40e13a:	83 e8 01             	sub    $0x1,%eax
40e13d:	74 26                	je     0x40e165
40e13f:	83 e8 01             	sub    $0x1,%eax
40e142:	74 1d                	je     0x40e161
40e144:	83 e8 01             	sub    $0x1,%eax
40e147:	74 14                	je     0x40e15d
40e149:	83 e8 01             	sub    $0x1,%eax
40e14c:	74 1b                	je     0x40e169
40e14e:	48                   	dec    %eax
40e14f:	83 e8 01             	sub    $0x1,%eax
40e152:	74 71                	je     0x40e1c5
40e154:	83 e8 01             	sub    $0x1,%eax
40e157:	75 6c                	jne    0x40e1c5
40e159:	6a 10                	push   $0x10
40e15b:	eb 0e                	jmp    0x40e16b
40e15d:	6a 12                	push   $0x12
40e15f:	eb 0a                	jmp    0x40e16b
40e161:	6a 11                	push   $0x11
40e163:	eb 06                	jmp    0x40e16b
40e165:	6a 04                	push   $0x4
40e167:	eb 02                	jmp    0x40e16b
40e169:	6a 08                	push   $0x8
40e16b:	5f                   	pop    %edi
40e16c:	51                   	push   %ecx
40e16d:	8d 46 18             	lea    0x18(%esi),%eax
40e170:	50                   	push   %eax
40e171:	57                   	push   %edi
40e172:	e8 aa 01 00 00       	call   0x40e321
40e177:	83 c4 0c             	add    $0xc,%esp
40e17a:	85 c0                	test   %eax,%eax
40e17c:	75 47                	jne    0x40e1c5
40e17e:	8b 4b 08             	mov    0x8(%ebx),%ecx
40e181:	83 f9 10             	cmp    $0x10,%ecx
40e184:	74 10                	je     0x40e196
40e186:	83 f9 16             	cmp    $0x16,%ecx
40e189:	74 0b                	je     0x40e196
40e18b:	83 f9 1d             	cmp    $0x1d,%ecx
40e18e:	74 06                	je     0x40e196
40e190:	83 65 c0 fe          	andl   $0xfffffffe,-0x40(%ebp)
40e194:	eb 12                	jmp    0x40e1a8
40e196:	8b 45 c0             	mov    -0x40(%ebp),%eax
40e199:	dd 46 10             	fldl   0x10(%esi)
40e19c:	83 e0 e3             	and    $0xffffffe3,%eax
40e19f:	83 c8 03             	or     $0x3,%eax
40e1a2:	dd 5d b0             	fstpl  -0x50(%ebp)
40e1a5:	89 45 c0             	mov    %eax,-0x40(%ebp)
40e1a8:	8d 46 18             	lea    0x18(%esi),%eax
40e1ab:	50                   	push   %eax
40e1ac:	8d 46 08             	lea    0x8(%esi),%eax
40e1af:	50                   	push   %eax
40e1b0:	51                   	push   %ecx
40e1b1:	57                   	push   %edi
40e1b2:	8d 85 7c ff ff ff    	lea    -0x84(%ebp),%eax
40e1b8:	50                   	push   %eax
40e1b9:	8d 45 80             	lea    -0x80(%ebp),%eax
40e1bc:	50                   	push   %eax
40e1bd:	e8 df 03 00 00       	call   0x40e5a1
40e1c2:	83 c4 18             	add    $0x18,%esp
40e1c5:	68 ff ff 00 00       	push   $0xffff
40e1ca:	ff b5 7c ff ff ff    	push   -0x84(%ebp)
40e1d0:	e8 4d e4 ff ff       	call   0x40c622
40e1d5:	83 3e 08             	cmpl   $0x8,(%esi)
40e1d8:	59                   	pop    %ecx
40e1d9:	59                   	pop    %ecx
40e1da:	74 14                	je     0x40e1f0
40e1dc:	e8 e9 7d ff ff       	call   0x405fca
40e1e1:	84 c0                	test   %al,%al
40e1e3:	74 0b                	je     0x40e1f0
40e1e5:	56                   	push   %esi
40e1e6:	e8 0e 7e ff ff       	call   0x405ff9
40e1eb:	59                   	pop    %ecx
40e1ec:	85 c0                	test   %eax,%eax
40e1ee:	75 08                	jne    0x40e1f8
40e1f0:	ff 36                	push   (%esi)
40e1f2:	e8 be 06 00 00       	call   0x40e8b5
40e1f7:	59                   	pop    %ecx
40e1f8:	8b 4d fc             	mov    -0x4(%ebp),%ecx
40e1fb:	5f                   	pop    %edi
40e1fc:	33 cd                	xor    %ebp,%ecx
40e1fe:	5e                   	pop    %esi
40e1ff:	e8 31 54 ff ff       	call   0x403635
40e204:	8b e5                	mov    %ebp,%esp
40e206:	5d                   	pop    %ebp
40e207:	8b e3                	mov    %ebx,%esp
40e209:	5b                   	pop    %ebx
40e20a:	c3                   	ret
40e20b:	8b ff                	mov    %edi,%edi
40e20d:	55                   	push   %ebp
40e20e:	8b ec                	mov    %esp,%ebp
40e210:	51                   	push   %ecx
40e211:	51                   	push   %ecx
40e212:	dd 45 08             	fldl   0x8(%ebp)
40e215:	d9 fc                	frndint
40e217:	dd 5d f8             	fstpl  -0x8(%ebp)
40e21a:	dd 45 f8             	fldl   -0x8(%ebp)
40e21d:	c9                   	leave
40e21e:	c3                   	ret
40e21f:	8b ff                	mov    %edi,%edi
40e221:	55                   	push   %ebp
40e222:	8b ec                	mov    %esp,%ebp
40e224:	8b 45 08             	mov    0x8(%ebp),%eax
40e227:	a8 20                	test   $0x20,%al
40e229:	74 04                	je     0x40e22f
40e22b:	6a 05                	push   $0x5
40e22d:	eb 17                	jmp    0x40e246
40e22f:	a8 08                	test   $0x8,%al
40e231:	74 05                	je     0x40e238
40e233:	33 c0                	xor    %eax,%eax
40e235:	40                   	inc    %eax
40e236:	5d                   	pop    %ebp
40e237:	c3                   	ret
40e238:	a8 04                	test   $0x4,%al
40e23a:	74 04                	je     0x40e240
40e23c:	6a 02                	push   $0x2
40e23e:	eb 06                	jmp    0x40e246
40e240:	a8 01                	test   $0x1,%al
40e242:	74 05                	je     0x40e249
40e244:	6a 03                	push   $0x3
40e246:	58                   	pop    %eax
40e247:	5d                   	pop    %ebp
40e248:	c3                   	ret
40e249:	0f b6 c0             	movzbl %al,%eax
40e24c:	83 e0 02             	and    $0x2,%eax
40e24f:	03 c0                	add    %eax,%eax
40e251:	5d                   	pop    %ebp
40e252:	c3                   	ret
40e253:	8b ff                	mov    %edi,%edi
40e255:	53                   	push   %ebx
40e256:	8b dc                	mov    %esp,%ebx
40e258:	51                   	push   %ecx
40e259:	51                   	push   %ecx
40e25a:	83 e4 f0             	and    $0xfffffff0,%esp
40e25d:	83 c4 04             	add    $0x4,%esp
40e260:	55                   	push   %ebp
40e261:	8b 6b 04             	mov    0x4(%ebx),%ebp
40e264:	89 6c 24 04          	mov    %ebp,0x4(%esp)
40e268:	8b ec                	mov    %esp,%ebp
40e26a:	81 ec 88 00 00 00    	sub    $0x88,%esp
40e270:	a1 14 60 41 00       	mov    0x416014,%eax
40e275:	33 c5                	xor    %ebp,%eax
40e277:	89 45 fc             	mov    %eax,-0x4(%ebp)
40e27a:	56                   	push   %esi
40e27b:	8b 73 20             	mov    0x20(%ebx),%esi
40e27e:	8d 43 18             	lea    0x18(%ebx),%eax
40e281:	57                   	push   %edi
40e282:	56                   	push   %esi
40e283:	50                   	push   %eax
40e284:	ff 73 08             	push   0x8(%ebx)
40e287:	e8 95 00 00 00       	call   0x40e321
40e28c:	83 c4 0c             	add    $0xc,%esp
40e28f:	85 c0                	test   %eax,%eax
40e291:	75 26                	jne    0x40e2b9
40e293:	83 65 c0 fe          	andl   $0xfffffffe,-0x40(%ebp)
40e297:	50                   	push   %eax
40e298:	8d 43 18             	lea    0x18(%ebx),%eax
40e29b:	50                   	push   %eax
40e29c:	8d 43 10             	lea    0x10(%ebx),%eax
40e29f:	50                   	push   %eax
40e2a0:	ff 73 0c             	push   0xc(%ebx)
40e2a3:	8d 43 20             	lea    0x20(%ebx),%eax
40e2a6:	ff 73 08             	push   0x8(%ebx)
40e2a9:	50                   	push   %eax
40e2aa:	8d 45 80             	lea    -0x80(%ebp),%eax
40e2ad:	50                   	push   %eax
40e2ae:	e8 11 03 00 00       	call   0x40e5c4
40e2b3:	8b 73 20             	mov    0x20(%ebx),%esi
40e2b6:	83 c4 1c             	add    $0x1c,%esp
40e2b9:	ff 73 08             	push   0x8(%ebx)
40e2bc:	e8 5e ff ff ff       	call   0x40e21f
40e2c1:	59                   	pop    %ecx
40e2c2:	8b f8                	mov    %eax,%edi
40e2c4:	e8 01 7d ff ff       	call   0x405fca
40e2c9:	84 c0                	test   %al,%al
40e2cb:	74 29                	je     0x40e2f6
40e2cd:	85 ff                	test   %edi,%edi
40e2cf:	74 25                	je     0x40e2f6
40e2d1:	dd 43 18             	fldl   0x18(%ebx)
40e2d4:	56                   	push   %esi
40e2d5:	83 ec 18             	sub    $0x18,%esp
40e2d8:	dd 5c 24 10          	fstpl  0x10(%esp)
40e2dc:	d9 ee                	fldz
40e2de:	dd 5c 24 08          	fstpl  0x8(%esp)
40e2e2:	dd 43 10             	fldl   0x10(%ebx)
40e2e5:	dd 1c 24             	fstpl  (%esp)
40e2e8:	ff 73 0c             	push   0xc(%ebx)
40e2eb:	57                   	push   %edi
40e2ec:	e8 f5 05 00 00       	call   0x40e8e6
40e2f1:	83 c4 24             	add    $0x24,%esp
40e2f4:	eb 18                	jmp    0x40e30e
40e2f6:	57                   	push   %edi
40e2f7:	e8 b9 05 00 00       	call   0x40e8b5
40e2fc:	c7 04 24 ff ff 00 00 	movl   $0xffff,(%esp)
40e303:	56                   	push   %esi
40e304:	e8 19 e3 ff ff       	call   0x40c622
40e309:	dd 43 18             	fldl   0x18(%ebx)
40e30c:	59                   	pop    %ecx
40e30d:	59                   	pop    %ecx
40e30e:	8b 4d fc             	mov    -0x4(%ebp),%ecx
40e311:	5f                   	pop    %edi
40e312:	33 cd                	xor    %ebp,%ecx
40e314:	5e                   	pop    %esi
40e315:	e8 1b 53 ff ff       	call   0x403635
40e31a:	8b e5                	mov    %ebp,%esp
40e31c:	5d                   	pop    %ebp
40e31d:	8b e3                	mov    %ebx,%esp
40e31f:	5b                   	pop    %ebx
40e320:	c3                   	ret
40e321:	8b ff                	mov    %edi,%edi
40e323:	55                   	push   %ebp
40e324:	8b ec                	mov    %esp,%ebp
40e326:	83 ec 20             	sub    $0x20,%esp
40e329:	33 c9                	xor    %ecx,%ecx
40e32b:	41                   	inc    %ecx
40e32c:	53                   	push   %ebx
40e32d:	8b 5d 08             	mov    0x8(%ebp),%ebx
40e330:	56                   	push   %esi
40e331:	8b f3                	mov    %ebx,%esi
40e333:	83 e6 1f             	and    $0x1f,%esi
40e336:	f6 c3 08             	test   $0x8,%bl
40e339:	74 14                	je     0x40e34f
40e33b:	84 4d 10             	test   %cl,0x10(%ebp)
40e33e:	74 0f                	je     0x40e34f
40e340:	51                   	push   %ecx
40e341:	e8 06 e3 ff ff       	call   0x40c64c
40e346:	59                   	pop    %ecx
40e347:	83 e6 f7             	and    $0xfffffff7,%esi
40e34a:	e9 31 02 00 00       	jmp    0x40e580
40e34f:	8b c3                	mov    %ebx,%eax
40e351:	23 45 10             	and    0x10(%ebp),%eax
40e354:	a8 04                	test   $0x4,%al
40e356:	74 10                	je     0x40e368
40e358:	6a 04                	push   $0x4
40e35a:	e8 ed e2 ff ff       	call   0x40c64c
40e35f:	59                   	pop    %ecx
40e360:	83 e6 fb             	and    $0xfffffffb,%esi
40e363:	e9 18 02 00 00       	jmp    0x40e580
40e368:	84 d9                	test   %bl,%cl
40e36a:	0f 84 9a 00 00 00    	je     0x40e40a
40e370:	f6 45 10 08          	testb  $0x8,0x10(%ebp)
40e374:	0f 84 90 00 00 00    	je     0x40e40a
40e37a:	6a 08                	push   $0x8
40e37c:	e8 cb e2 ff ff       	call   0x40c64c
40e381:	8b 45 10             	mov    0x10(%ebp),%eax
40e384:	59                   	pop    %ecx
40e385:	b9 00 0c 00 00       	mov    $0xc00,%ecx
40e38a:	23 c1                	and    %ecx,%eax
40e38c:	74 54                	je     0x40e3e2
40e38e:	3d 00 04 00 00       	cmp    $0x400,%eax
40e393:	74 37                	je     0x40e3cc
40e395:	3d 00 08 00 00       	cmp    $0x800,%eax
40e39a:	74 1a                	je     0x40e3b6
40e39c:	3b c1                	cmp    %ecx,%eax
40e39e:	75 62                	jne    0x40e402
40e3a0:	8b 4d 0c             	mov    0xc(%ebp),%ecx
40e3a3:	d9 ee                	fldz
40e3a5:	dc 19                	fcompl (%ecx)
40e3a7:	df e0                	fnstsw %ax
40e3a9:	dd 05 f8 3c 41 00    	fldl   0x413cf8
40e3af:	f6 c4 05             	test   $0x5,%ah
40e3b2:	7b 4c                	jnp    0x40e400
40e3b4:	eb 48                	jmp    0x40e3fe
40e3b6:	8b 4d 0c             	mov    0xc(%ebp),%ecx
40e3b9:	d9 ee                	fldz
40e3bb:	dc 19                	fcompl (%ecx)
40e3bd:	df e0                	fnstsw %ax
40e3bf:	f6 c4 05             	test   $0x5,%ah
40e3c2:	7b 2c                	jnp    0x40e3f0
40e3c4:	dd 05 f8 3c 41 00    	fldl   0x413cf8
40e3ca:	eb 32                	jmp    0x40e3fe
40e3cc:	8b 4d 0c             	mov    0xc(%ebp),%ecx
40e3cf:	d9 ee                	fldz
40e3d1:	dc 19                	fcompl (%ecx)
40e3d3:	df e0                	fnstsw %ax
40e3d5:	f6 c4 05             	test   $0x5,%ah
40e3d8:	7a 1e                	jp     0x40e3f8
40e3da:	dd 05 f8 3c 41 00    	fldl   0x413cf8
40e3e0:	eb 1e                	jmp    0x40e400
40e3e2:	8b 4d 0c             	mov    0xc(%ebp),%ecx
40e3e5:	d9 ee                	fldz
40e3e7:	dc 19                	fcompl (%ecx)
40e3e9:	df e0                	fnstsw %ax
40e3eb:	f6 c4 05             	test   $0x5,%ah
40e3ee:	7a 08                	jp     0x40e3f8
40e3f0:	dd 05 f0 3c 41 00    	fldl   0x413cf0
40e3f6:	eb 08                	jmp    0x40e400
40e3f8:	dd 05 f0 3c 41 00    	fldl   0x413cf0
40e3fe:	d9 e0                	fchs
40e400:	dd 19                	fstpl  (%ecx)
40e402:	83 e6 fe             	and    $0xfffffffe,%esi
40e405:	e9 76 01 00 00       	jmp    0x40e580
40e40a:	f6 c3 02             	test   $0x2,%bl