40e12d:	8b 45 0c             	mov    0xc(%ebp),%eax
40e130:	3b 45 08             	cmp    0x8(%ebp),%eax
40e133:	76 05                	jbe    0x40e13a
40e135:	83 c8 ff             	or     $0xffffffff,%eax
40e138:	5d                   	pop    %ebp
40e139:	c3                   	ret
40e13a:	1b c0                	sbb    %eax,%eax
40e13c:	f7 d8                	neg    %eax
40e13e:	5d                   	pop    %ebp
40e13f:	c3                   	ret
40e140:	8b ff                	mov    %edi,%edi
40e142:	55                   	push   %ebp
40e143:	8b ec                	mov    %esp,%ebp
40e145:	83 ec 30             	sub    $0x30,%esp
40e148:	a1 c0 10 42 00       	mov    0x4210c0,%eax
40e14d:	33 c5                	xor    %ebp,%eax
40e14f:	89 45 fc             	mov    %eax,-0x4(%ebp)
40e152:	8b 45 0c             	mov    0xc(%ebp),%eax
40e155:	89 45 d0             	mov    %eax,-0x30(%ebp)
40e158:	56                   	push   %esi
40e159:	8b 75 08             	mov    0x8(%ebp),%esi
40e15c:	85 c0                	test   %eax,%eax
40e15e:	75 16                	jne    0x40e176
40e160:	e8 ca c5 ff ff       	call   0x40a72f
40e165:	6a 16                	push   $0x16
40e167:	5e                   	pop    %esi
40e168:	89 30                	mov    %esi,(%eax)
40e16a:	e8 5a 93 ff ff       	call   0x4074c9
40e16f:	8b c6                	mov    %esi,%eax
40e171:	e9 68 01 00 00       	jmp    0x40e2de
40e176:	53                   	push   %ebx
40e177:	33 db                	xor    %ebx,%ebx
40e179:	57                   	push   %edi
40e17a:	89 18                	mov    %ebx,(%eax)
40e17c:	8b fb                	mov    %ebx,%edi
40e17e:	8b 06                	mov    (%esi),%eax
40e180:	8b d3                	mov    %ebx,%edx
40e182:	89 5d d8             	mov    %ebx,-0x28(%ebp)
40e185:	89 7d dc             	mov    %edi,-0x24(%ebp)
40e188:	89 55 e0             	mov    %edx,-0x20(%ebp)
40e18b:	89 5d e4             	mov    %ebx,-0x1c(%ebp)
40e18e:	85 c0                	test   %eax,%eax
40e190:	74 5e                	je     0x40e1f0
40e192:	6a 2a                	push   $0x2a
40e194:	59                   	pop    %ecx
40e195:	66 89 4d f4          	mov    %cx,-0xc(%ebp)
40e199:	6a 3f                	push   $0x3f
40e19b:	59                   	pop    %ecx
40e19c:	66 89 4d f6          	mov    %cx,-0xa(%ebp)
40e1a0:	33 c9                	xor    %ecx,%ecx
40e1a2:	66 89 4d f8          	mov    %cx,-0x8(%ebp)
40e1a6:	8d 4d f4             	lea    -0xc(%ebp),%ecx
40e1a9:	51                   	push   %ecx
40e1aa:	50                   	push   %eax
40e1ab:	e8 5f 1a 00 00       	call   0x40fc0f
40e1b0:	59                   	pop    %ecx
40e1b1:	59                   	pop    %ecx
40e1b2:	85 c0                	test   %eax,%eax
40e1b4:	75 18                	jne    0x40e1ce
40e1b6:	8d 45 dc             	lea    -0x24(%ebp),%eax
40e1b9:	50                   	push   %eax
40e1ba:	53                   	push   %ebx
40e1bb:	53                   	push   %ebx
40e1bc:	ff 36                	push   (%esi)
40e1be:	e8 35 01 00 00       	call   0x40e2f8
40e1c3:	8b f8                	mov    %eax,%edi
40e1c5:	83 c4 10             	add    $0x10,%esp
40e1c8:	85 ff                	test   %edi,%edi
40e1ca:	75 7b                	jne    0x40e247
40e1cc:	eb 13                	jmp    0x40e1e1
40e1ce:	8d 4d dc             	lea    -0x24(%ebp),%ecx
40e1d1:	51                   	push   %ecx
40e1d2:	50                   	push   %eax
40e1d3:	ff 36                	push   (%esi)
40e1d5:	e8 d2 01 00 00       	call   0x40e3ac
40e1da:	83 c4 0c             	add    $0xc,%esp
40e1dd:	85 c0                	test   %eax,%eax
40e1df:	75 1d                	jne    0x40e1fe
40e1e1:	83 c6 04             	add    $0x4,%esi
40e1e4:	8b 06                	mov    (%esi),%eax
40e1e6:	85 c0                	test   %eax,%eax
40e1e8:	75 a8                	jne    0x40e192
40e1ea:	8b 7d dc             	mov    -0x24(%ebp),%edi
40e1ed:	8b 55 e0             	mov    -0x20(%ebp),%edx
40e1f0:	8b da                	mov    %edx,%ebx
40e1f2:	8b f7                	mov    %edi,%esi
40e1f4:	2b df                	sub    %edi,%ebx
40e1f6:	c1 fb 02             	sar    $0x2,%ebx
40e1f9:	43                   	inc    %ebx
40e1fa:	33 c0                	xor    %eax,%eax
40e1fc:	eb 26                	jmp    0x40e224
40e1fe:	8b f8                	mov    %eax,%edi
40e200:	eb 45                	jmp    0x40e247
40e202:	8b 0e                	mov    (%esi),%ecx
40e204:	8d 41 02             	lea    0x2(%ecx),%eax
40e207:	89 45 f0             	mov    %eax,-0x10(%ebp)
40e20a:	66 8b 01             	mov    (%ecx),%ax
40e20d:	83 c1 02             	add    $0x2,%ecx
40e210:	66 3b 45 d8          	cmp    -0x28(%ebp),%ax
40e214:	75 f4                	jne    0x40e20a
40e216:	2b 4d f0             	sub    -0x10(%ebp),%ecx
40e219:	8b 45 ec             	mov    -0x14(%ebp),%eax
40e21c:	d1 f9                	sar    $1,%ecx
40e21e:	40                   	inc    %eax
40e21f:	03 c1                	add    %ecx,%eax
40e221:	83 c6 04             	add    $0x4,%esi
40e224:	89 45 ec             	mov    %eax,-0x14(%ebp)
40e227:	3b f2                	cmp    %edx,%esi
40e229:	75 d7                	jne    0x40e202
40e22b:	6a 02                	push   $0x2
40e22d:	50                   	push   %eax
40e22e:	53                   	push   %ebx
40e22f:	e8 82 b4 ff ff       	call   0x4096b6
40e234:	8b f0                	mov    %eax,%esi
40e236:	83 c4 0c             	add    $0xc,%esp
40e239:	85 f6                	test   %esi,%esi
40e23b:	75 19                	jne    0x40e256
40e23d:	50                   	push   %eax
40e23e:	e8 5c c5 ff ff       	call   0x40a79f
40e243:	59                   	pop    %ecx
40e244:	83 cf ff             	or     $0xffffffff,%edi
40e247:	8d 4d dc             	lea    -0x24(%ebp),%ecx
40e24a:	e8 55 03 00 00       	call   0x40e5a4
40e24f:	8b c7                	mov    %edi,%eax
40e251:	e9 86 00 00 00       	jmp    0x40e2dc
40e256:	8d 04 9e             	lea    (%esi,%ebx,4),%eax
40e259:	8b 5d e0             	mov    -0x20(%ebp),%ebx
40e25c:	89 45 d4             	mov    %eax,-0x2c(%ebp)
40e25f:	8b d0                	mov    %eax,%edx
40e261:	89 55 f0             	mov    %edx,-0x10(%ebp)
40e264:	3b fb                	cmp    %ebx,%edi
40e266:	74 5c                	je     0x40e2c4
40e268:	8b c6                	mov    %esi,%eax
40e26a:	2b c7                	sub    %edi,%eax
40e26c:	89 45 f4             	mov    %eax,-0xc(%ebp)
40e26f:	8b 0f                	mov    (%edi),%ecx
40e271:	8d 41 02             	lea    0x2(%ecx),%eax
40e274:	89 45 e8             	mov    %eax,-0x18(%ebp)
40e277:	66 8b 01             	mov    (%ecx),%ax
40e27a:	83 c1 02             	add    $0x2,%ecx
40e27d:	66 3b 45 d8          	cmp    -0x28(%ebp),%ax
40e281:	75 f4                	jne    0x40e277
40e283:	2b 4d e8             	sub    -0x18(%ebp),%ecx
40e286:	d1 f9                	sar    $1,%ecx
40e288:	8d 41 01             	lea    0x1(%ecx),%eax
40e28b:	8b ca                	mov    %edx,%ecx
40e28d:	2b 4d d4             	sub    -0x2c(%ebp),%ecx
40e290:	50                   	push   %eax
40e291:	ff 37                	push   (%edi)
40e293:	89 45 e8             	mov    %eax,-0x18(%ebp)
40e296:	8b 45 ec             	mov    -0x14(%ebp),%eax
40e299:	d1 f9                	sar    $1,%ecx
40e29b:	2b c1                	sub    %ecx,%eax
40e29d:	50                   	push   %eax
40e29e:	52                   	push   %edx
40e29f:	e8 79 fe ff ff       	call   0x40e11d
40e2a4:	83 c4 10             	add    $0x10,%esp
40e2a7:	85 c0                	test   %eax,%eax
40e2a9:	75 40                	jne    0x40e2eb
40e2ab:	8b 45 f4             	mov    -0xc(%ebp),%eax
40e2ae:	8b 55 f0             	mov    -0x10(%ebp),%edx
40e2b1:	89 14 38             	mov    %edx,(%eax,%edi,1)
40e2b4:	83 c7 04             	add    $0x4,%edi
40e2b7:	8b 45 e8             	mov    -0x18(%ebp),%eax
40e2ba:	8d 14 42             	lea    (%edx,%eax,2),%edx
40e2bd:	89 55 f0             	mov    %edx,-0x10(%ebp)
40e2c0:	3b fb                	cmp    %ebx,%edi
40e2c2:	75 ab                	jne    0x40e26f
40e2c4:	8b 45 d0             	mov    -0x30(%ebp),%eax
40e2c7:	89 30                	mov    %esi,(%eax)
40e2c9:	33 c0                	xor    %eax,%eax
40e2cb:	50                   	push   %eax
40e2cc:	e8 ce c4 ff ff       	call   0x40a79f
40e2d1:	59                   	pop    %ecx
40e2d2:	8d 4d dc             	lea    -0x24(%ebp),%ecx
40e2d5:	e8 ca 02 00 00       	call   0x40e5a4
40e2da:	33 c0                	xor    %eax,%eax
40e2dc:	5f                   	pop    %edi
40e2dd:	5b                   	pop    %ebx
40e2de:	8b 4d fc             	mov    -0x4(%ebp),%ecx
40e2e1:	33 cd                	xor    %ebp,%ecx
40e2e3:	5e                   	pop    %esi
40e2e4:	e8 df 5d ff ff       	call   0x4040c8
40e2e9:	c9                   	leave
40e2ea:	c3                   	ret
40e2eb:	33 c0                	xor    %eax,%eax
40e2ed:	50                   	push   %eax
40e2ee:	50                   	push   %eax
40e2ef:	50                   	push   %eax
40e2f0:	50                   	push   %eax
40e2f1:	50                   	push   %eax
40e2f2:	e8 ff 91 ff ff       	call   0x4074f6
40e2f7:	cc                   	int3
40e2f8:	8b ff                	mov    %edi,%edi
40e2fa:	55                   	push   %ebp
40e2fb:	8b ec                	mov    %esp,%ebp
40e2fd:	51                   	push   %ecx
40e2fe:	8b 4d 08             	mov    0x8(%ebp),%ecx
40e301:	53                   	push   %ebx
40e302:	57                   	push   %edi
40e303:	33 db                	xor    %ebx,%ebx
40e305:	8d 51 02             	lea    0x2(%ecx),%edx
40e308:	66 8b 01             	mov    (%ecx),%ax
40e30b:	83 c1 02             	add    $0x2,%ecx
40e30e:	66 3b c3             	cmp    %bx,%ax
40e311:	75 f5                	jne    0x40e308
40e313:	8b 7d 10             	mov    0x10(%ebp),%edi
40e316:	2b ca                	sub    %edx,%ecx
40e318:	d1 f9                	sar    $1,%ecx
40e31a:	8b c7                	mov    %edi,%eax
40e31c:	41                   	inc    %ecx
40e31d:	f7 d0                	not    %eax
40e31f:	89 4d fc             	mov    %ecx,-0x4(%ebp)
40e322:	3b c8                	cmp    %eax,%ecx
40e324:	76 07                	jbe    0x40e32d
40e326:	6a 0c                	push   $0xc
40e328:	58                   	pop    %eax
40e329:	5f                   	pop    %edi
40e32a:	5b                   	pop    %ebx
40e32b:	c9                   	leave
40e32c:	c3                   	ret
40e32d:	56                   	push   %esi
40e32e:	8d 5f 01             	lea    0x1(%edi),%ebx
40e331:	03 d9                	add    %ecx,%ebx
40e333:	6a 02                	push   $0x2
40e335:	53                   	push   %ebx
40e336:	e8 07 c4 ff ff       	call   0x40a742
40e33b:	8b f0                	mov    %eax,%esi
40e33d:	59                   	pop    %ecx
40e33e:	59                   	pop    %ecx
40e33f:	85 ff                	test   %edi,%edi
40e341:	74 12                	je     0x40e355
40e343:	57                   	push   %edi
40e344:	ff 75 0c             	push   0xc(%ebp)
40e347:	53                   	push   %ebx
40e348:	56                   	push   %esi
40e349:	e8 cf fd ff ff       	call   0x40e11d
40e34e:	83 c4 10             	add    $0x10,%esp
40e351:	85 c0                	test   %eax,%eax
40e353:	75 4a                	jne    0x40e39f
40e355:	ff 75 fc             	push   -0x4(%ebp)
40e358:	2b df                	sub    %edi,%ebx
40e35a:	8d 04 7e             	lea    (%esi,%edi,2),%eax
40e35d:	ff 75 08             	push   0x8(%ebp)
40e360:	53                   	push   %ebx
40e361:	50                   	push   %eax
40e362:	e8 b6 fd ff ff       	call   0x40e11d
40e367:	83 c4 10             	add    $0x10,%esp
40e36a:	85 c0                	test   %eax,%eax
40e36c:	75 31                	jne    0x40e39f
40e36e:	8b 7d 14             	mov    0x14(%ebp),%edi
40e371:	8b cf                	mov    %edi,%ecx
40e373:	e8 75 02 00 00       	call   0x40e5ed
40e378:	8b d8                	mov    %eax,%ebx
40e37a:	85 db                	test   %ebx,%ebx
40e37c:	74 09                	je     0x40e387
40e37e:	56                   	push   %esi
40e37f:	e8 1b c4 ff ff       	call   0x40a79f
40e384:	59                   	pop    %ecx
40e385:	eb 0b                	jmp    0x40e392
40e387:	8b 47 04             	mov    0x4(%edi),%eax
40e38a:	89 30                	mov    %esi,(%eax)
40e38c:	83 47 04 04          	addl   $0x4,0x4(%edi)
40e390:	33 db                	xor    %ebx,%ebx
40e392:	6a 00                	push   $0x0
40e394:	e8 06 c4 ff ff       	call   0x40a79f
40e399:	59                   	pop    %ecx
40e39a:	8b c3                	mov    %ebx,%eax
40e39c:	5e                   	pop    %esi
40e39d:	eb 8a                	jmp    0x40e329
40e39f:	33 c0                	xor    %eax,%eax
40e3a1:	50                   	push   %eax
40e3a2:	50                   	push   %eax
40e3a3:	50                   	push   %eax
40e3a4:	50                   	push   %eax
40e3a5:	50                   	push   %eax
40e3a6:	e8 4b 91 ff ff       	call   0x4074f6
40e3ab:	cc                   	int3
40e3ac:	8b ff                	mov    %edi,%edi
40e3ae:	55                   	push   %ebp
40e3af:	8b ec                	mov    %esp,%ebp
40e3b1:	81 ec 64 02 00 00    	sub    $0x264,%esp
40e3b7:	a1 c0 10 42 00       	mov    0x4210c0,%eax
40e3bc:	33 c5                	xor    %ebp,%eax
40e3be:	89 45 fc             	mov    %eax,-0x4(%ebp)
40e3c1:	8b 55 0c             	mov    0xc(%ebp),%edx
40e3c4:	8b 4d 10             	mov    0x10(%ebp),%ecx
40e3c7:	53                   	push   %ebx
40e3c8:	56                   	push   %esi
40e3c9:	57                   	push   %edi
40e3ca:	8b 7d 08             	mov    0x8(%ebp),%edi
40e3cd:	89 8d a4 fd ff ff    	mov    %ecx,-0x25c(%ebp)
40e3d3:	3b d7                	cmp    %edi,%edx
40e3d5:	74 20                	je     0x40e3f7
40e3d7:	0f b7 02             	movzwl (%edx),%eax
40e3da:	8d 8d ab fd ff ff    	lea    -0x255(%ebp),%ecx
40e3e0:	50                   	push   %eax
40e3e1:	e8 e3 01 00 00       	call   0x40e5c9
40e3e6:	84 c0                	test   %al,%al
40e3e8:	75 07                	jne    0x40e3f1
40e3ea:	83 ea 02             	sub    $0x2,%edx
40e3ed:	3b d7                	cmp    %edi,%edx
40e3ef:	75 e6                	jne    0x40e3d7
40e3f1:	8b 8d a4 fd ff ff    	mov    -0x25c(%ebp),%ecx
40e3f7:	0f b7 32             	movzwl (%edx),%esi
40e3fa:	83 fe 3a             	cmp    $0x3a,%esi
40e3fd:	75 1a                	jne    0x40e419
40e3ff:	8d 47 02             	lea    0x2(%edi),%eax
40e402:	3b d0                	cmp    %eax,%edx
40e404:	74 13                	je     0x40e419
40e406:	51                   	push   %ecx
40e407:	33 db                	xor    %ebx,%ebx
40e409:	53                   	push   %ebx
40e40a:	53                   	push   %ebx
40e40b:	57                   	push   %edi
40e40c:	e8 e7 fe ff ff       	call   0x40e2f8
40e411:	83 c4 10             	add    $0x10,%esp
40e414:	e9 fa 00 00 00       	jmp    0x40e513
40e419:	56                   	push   %esi
40e41a:	8d 8d ab fd ff ff    	lea    -0x255(%ebp),%ecx
40e420:	e8 a4 01 00 00       	call   0x40e5c9
40e425:	2b d7                	sub    %edi,%edx
40e427:	0f b6 c0             	movzbl %al,%eax
40e42a:	d1 fa                	sar    $1,%edx
40e42c:	42                   	inc    %edx
40e42d:	f7 d8                	neg    %eax
40e42f:	1b c0                	sbb    %eax,%eax
40e431:	33 db                	xor    %ebx,%ebx
40e433:	53                   	push   %ebx
40e434:	53                   	push   %ebx
40e435:	23 c2                	and    %edx,%eax
40e437:	53                   	push   %ebx
40e438:	89 85 a0 fd ff ff    	mov    %eax,-0x260(%ebp)
40e43e:	8d 85 ac fd ff ff    	lea    -0x254(%ebp),%eax
40e444:	50                   	push   %eax
40e445:	53                   	push   %ebx
40e446:	57                   	push   %edi
40e447:	ff 15 f8 90 41 00    	call   *0x4190f8
40e44d:	8b f0                	mov    %eax,%esi
40e44f:	83 fe ff             	cmp    $0xffffffff,%esi
40e452:	75 08                	jne    0x40e45c
40e454:	ff b5 a4 fd ff ff    	push   -0x25c(%ebp)
40e45a:	eb ad                	jmp    0x40e409
40e45c:	8b 9d a4 fd ff ff    	mov    -0x25c(%ebp),%ebx
40e462:	6a 2e                	push   $0x2e
40e464:	8b 43 04             	mov    0x4(%ebx),%eax
40e467:	2b 03                	sub    (%ebx),%eax
40e469:	c1 f8 02             	sar    $0x2,%eax
40e46c:	89 85 a4 fd ff ff    	mov    %eax,-0x25c(%ebp)
40e472:	58                   	pop    %eax