40b070:	8b d8                	mov    %eax,%ebx
40b072:	8b f2                	mov    %edx,%esi
40b074:	3b fa                	cmp    %edx,%edi
40b076:	74 2d                	je     0x40b0a5
40b078:	8b c7                	mov    %edi,%eax
40b07a:	2b c2                	sub    %edx,%eax
40b07c:	89 85 ec fe ff ff    	mov    %eax,-0x114(%ebp)
40b082:	8b d0                	mov    %eax,%edx
40b084:	8a 06                	mov    (%esi),%al
40b086:	8d 76 01             	lea    0x1(%esi),%esi
40b089:	8a 4c 32 ff          	mov    -0x1(%edx,%esi,1),%cl
40b08d:	88 44 32 ff          	mov    %al,-0x1(%edx,%esi,1)
40b091:	88 4e ff             	mov    %cl,-0x1(%esi)
40b094:	83 eb 01             	sub    $0x1,%ebx
40b097:	75 eb                	jne    0x40b084
40b099:	8b 85 00 ff ff ff    	mov    -0x100(%ebp),%eax
40b09f:	8b 95 08 ff ff ff    	mov    -0xf8(%ebp),%edx
40b0a5:	8b b5 fc fe ff ff    	mov    -0x104(%ebp),%esi
40b0ab:	8b da                	mov    %edx,%ebx
40b0ad:	89 95 04 ff ff ff    	mov    %edx,-0xfc(%ebp)
40b0b3:	3b fe                	cmp    %esi,%edi
40b0b5:	76 3e                	jbe    0x40b0f5
40b0b7:	eb 07                	jmp    0x40b0c0
40b0b9:	8d a4 24 00 00 00 00 	lea    0x0(%esp),%esp
40b0c0:	03 f0                	add    %eax,%esi
40b0c2:	89 b5 f4 fe ff ff    	mov    %esi,-0x10c(%ebp)
40b0c8:	3b f7                	cmp    %edi,%esi
40b0ca:	73 23                	jae    0x40b0ef
40b0cc:	8b 8d f8 fe ff ff    	mov    -0x108(%ebp),%ecx
40b0d2:	57                   	push   %edi
40b0d3:	56                   	push   %esi
40b0d4:	ff 15 18 f1 40 00    	call   *0x40f118
40b0da:	ff 95 f8 fe ff ff    	call   *-0x108(%ebp)
40b0e0:	83 c4 08             	add    $0x8,%esp
40b0e3:	85 c0                	test   %eax,%eax
40b0e5:	8b 85 00 ff ff ff    	mov    -0x100(%ebp),%eax
40b0eb:	7e d3                	jle    0x40b0c0
40b0ed:	eb 42                	jmp    0x40b131
40b0ef:	8b 95 08 ff ff ff    	mov    -0xf8(%ebp),%edx
40b0f5:	8b 9d f8 fe ff ff    	mov    -0x108(%ebp),%ebx
40b0fb:	eb 03                	jmp    0x40b100
40b0fd:	8d 49 00             	lea    0x0(%ecx),%ecx
40b100:	03 f0                	add    %eax,%esi
40b102:	3b f2                	cmp    %edx,%esi
40b104:	77 1f                	ja     0x40b125
40b106:	57                   	push   %edi
40b107:	56                   	push   %esi
40b108:	8b cb                	mov    %ebx,%ecx
40b10a:	ff 15 18 f1 40 00    	call   *0x40f118
40b110:	ff d3                	call   *%ebx
40b112:	8b 95 08 ff ff ff    	mov    -0xf8(%ebp),%edx
40b118:	83 c4 08             	add    $0x8,%esp
40b11b:	85 c0                	test   %eax,%eax
40b11d:	8b 85 00 ff ff ff    	mov    -0x100(%ebp),%eax
40b123:	7e db                	jle    0x40b100
40b125:	8b 9d 04 ff ff ff    	mov    -0xfc(%ebp),%ebx
40b12b:	89 b5 f4 fe ff ff    	mov    %esi,-0x10c(%ebp)
40b131:	8b b5 f8 fe ff ff    	mov    -0x108(%ebp),%esi
40b137:	eb 07                	jmp    0x40b140
40b139:	8d a4 24 00 00 00 00 	lea    0x0(%esp),%esp
40b140:	8b 85 00 ff ff ff    	mov    -0x100(%ebp),%eax
40b146:	8b cb                	mov    %ebx,%ecx
40b148:	2b d8                	sub    %eax,%ebx
40b14a:	89 8d 04 ff ff ff    	mov    %ecx,-0xfc(%ebp)
40b150:	3b df                	cmp    %edi,%ebx
40b152:	76 1f                	jbe    0x40b173
40b154:	57                   	push   %edi
40b155:	53                   	push   %ebx
40b156:	8b ce                	mov    %esi,%ecx
40b158:	ff 15 18 f1 40 00    	call   *0x40f118
40b15e:	ff d6                	call   *%esi
40b160:	83 c4 08             	add    $0x8,%esp
40b163:	85 c0                	test   %eax,%eax
40b165:	7f d9                	jg     0x40b140
40b167:	8b 85 00 ff ff ff    	mov    -0x100(%ebp),%eax
40b16d:	8b 8d 04 ff ff ff    	mov    -0xfc(%ebp),%ecx
40b173:	8b b5 f4 fe ff ff    	mov    -0x10c(%ebp),%esi
40b179:	89 9d 04 ff ff ff    	mov    %ebx,-0xfc(%ebp)
40b17f:	3b de                	cmp    %esi,%ebx
40b181:	72 4a                	jb     0x40b1cd
40b183:	89 85 f0 fe ff ff    	mov    %eax,-0x110(%ebp)
40b189:	8b d3                	mov    %ebx,%edx
40b18b:	74 2b                	je     0x40b1b8
40b18d:	2b f3                	sub    %ebx,%esi
40b18f:	8b d8                	mov    %eax,%ebx
40b191:	8a 02                	mov    (%edx),%al
40b193:	8d 52 01             	lea    0x1(%edx),%edx
40b196:	8a 4c 16 ff          	mov    -0x1(%esi,%edx,1),%cl
40b19a:	88 44 16 ff          	mov    %al,-0x1(%esi,%edx,1)
40b19e:	88 4a ff             	mov    %cl,-0x1(%edx)
40b1a1:	83 eb 01             	sub    $0x1,%ebx
40b1a4:	75 eb                	jne    0x40b191
40b1a6:	8b b5 f4 fe ff ff    	mov    -0x10c(%ebp),%esi
40b1ac:	8b 9d 04 ff ff ff    	mov    -0xfc(%ebp),%ebx
40b1b2:	8b 85 00 ff ff ff    	mov    -0x100(%ebp),%eax
40b1b8:	8b 95 08 ff ff ff    	mov    -0xf8(%ebp),%edx
40b1be:	3b fb                	cmp    %ebx,%edi
40b1c0:	0f 85 ed fe ff ff    	jne    0x40b0b3
40b1c6:	8b fe                	mov    %esi,%edi
40b1c8:	e9 e6 fe ff ff       	jmp    0x40b0b3
40b1cd:	3b f9                	cmp    %ecx,%edi
40b1cf:	73 3c                	jae    0x40b20d
40b1d1:	8b 9d f8 fe ff ff    	mov    -0x108(%ebp),%ebx
40b1d7:	eb 07                	jmp    0x40b1e0
40b1d9:	8d a4 24 00 00 00 00 	lea    0x0(%esp),%esp
40b1e0:	2b c8                	sub    %eax,%ecx
40b1e2:	89 8d 04 ff ff ff    	mov    %ecx,-0xfc(%ebp)
40b1e8:	3b cf                	cmp    %edi,%ecx
40b1ea:	76 21                	jbe    0x40b20d
40b1ec:	57                   	push   %edi
40b1ed:	51                   	push   %ecx
40b1ee:	8b cb                	mov    %ebx,%ecx
40b1f0:	ff 15 18 f1 40 00    	call   *0x40f118
40b1f6:	ff d3                	call   *%ebx
40b1f8:	8b 8d 04 ff ff ff    	mov    -0xfc(%ebp),%ecx
40b1fe:	83 c4 08             	add    $0x8,%esp
40b201:	85 c0                	test   %eax,%eax
40b203:	8b 85 00 ff ff ff    	mov    -0x100(%ebp),%eax
40b209:	74 d5                	je     0x40b1e0
40b20b:	eb 44                	jmp    0x40b251
40b20d:	8b 9d f8 fe ff ff    	mov    -0x108(%ebp),%ebx
40b213:	8b b5 fc fe ff ff    	mov    -0x104(%ebp),%esi
40b219:	8d a4 24 00 00 00 00 	lea    0x0(%esp),%esp
40b220:	2b c8                	sub    %eax,%ecx
40b222:	89 8d 04 ff ff ff    	mov    %ecx,-0xfc(%ebp)
40b228:	3b ce                	cmp    %esi,%ecx
40b22a:	76 1f                	jbe    0x40b24b
40b22c:	57                   	push   %edi
40b22d:	51                   	push   %ecx
40b22e:	8b cb                	mov    %ebx,%ecx
40b230:	ff 15 18 f1 40 00    	call   *0x40f118
40b236:	ff d3                	call   *%ebx
40b238:	8b 8d 04 ff ff ff    	mov    -0xfc(%ebp),%ecx
40b23e:	83 c4 08             	add    $0x8,%esp
40b241:	85 c0                	test   %eax,%eax
40b243:	8b 85 00 ff ff ff    	mov    -0x100(%ebp),%eax
40b249:	74 d5                	je     0x40b220
40b24b:	8b b5 f4 fe ff ff    	mov    -0x10c(%ebp),%esi
40b251:	8b 95 08 ff ff ff    	mov    -0xf8(%ebp),%edx
40b257:	8b ca                	mov    %edx,%ecx
40b259:	8b bd 04 ff ff ff    	mov    -0xfc(%ebp),%edi
40b25f:	2b ce                	sub    %esi,%ecx
40b261:	8b c7                	mov    %edi,%eax
40b263:	2b 85 fc fe ff ff    	sub    -0x104(%ebp),%eax
40b269:	3b c1                	cmp    %ecx,%eax
40b26b:	7c 3d                	jl     0x40b2aa
40b26d:	8b 85 fc fe ff ff    	mov    -0x104(%ebp),%eax
40b273:	3b c7                	cmp    %edi,%eax
40b275:	73 18                	jae    0x40b28f
40b277:	8b 8d e8 fe ff ff    	mov    -0x118(%ebp),%ecx
40b27d:	89 44 8d 84          	mov    %eax,-0x7c(%ebp,%ecx,4)
40b281:	89 bc 8d 0c ff ff ff 	mov    %edi,-0xf4(%ebp,%ecx,4)
40b288:	41                   	inc    %ecx
40b289:	89 8d e8 fe ff ff    	mov    %ecx,-0x118(%ebp)
40b28f:	8b 8d 08 ff ff ff    	mov    -0xf8(%ebp),%ecx
40b295:	8b bd 00 ff ff ff    	mov    -0x100(%ebp),%edi
40b29b:	3b f1                	cmp    %ecx,%esi
40b29d:	73 44                	jae    0x40b2e3
40b29f:	89 b5 fc fe ff ff    	mov    %esi,-0x104(%ebp)
40b2a5:	e9 f8 fb ff ff       	jmp    0x40aea2
40b2aa:	3b f2                	cmp    %edx,%esi
40b2ac:	73 18                	jae    0x40b2c6
40b2ae:	8b 85 e8 fe ff ff    	mov    -0x118(%ebp),%eax
40b2b4:	89 74 85 84          	mov    %esi,-0x7c(%ebp,%eax,4)
40b2b8:	89 94 85 0c ff ff ff 	mov    %edx,-0xf4(%ebp,%eax,4)
40b2bf:	40                   	inc    %eax
40b2c0:	89 85 e8 fe ff ff    	mov    %eax,-0x118(%ebp)
40b2c6:	8b b5 fc fe ff ff    	mov    -0x104(%ebp),%esi
40b2cc:	3b f7                	cmp    %edi,%esi
40b2ce:	73 0d                	jae    0x40b2dd
40b2d0:	8b cf                	mov    %edi,%ecx
40b2d2:	8b bd 00 ff ff ff    	mov    -0x100(%ebp),%edi
40b2d8:	e9 bf fb ff ff       	jmp    0x40ae9c
40b2dd:	8b bd 00 ff ff ff    	mov    -0x100(%ebp),%edi
40b2e3:	8b 85 e8 fe ff ff    	mov    -0x118(%ebp),%eax
40b2e9:	83 e8 01             	sub    $0x1,%eax
40b2ec:	89 85 e8 fe ff ff    	mov    %eax,-0x118(%ebp)
40b2f2:	0f 88 76 fb ff ff    	js     0x40ae6e
40b2f8:	8b 74 85 84          	mov    -0x7c(%ebp,%eax,4),%esi
40b2fc:	8b 8c 85 0c ff ff ff 	mov    -0xf4(%ebp,%eax,4),%ecx
40b303:	89 b5 fc fe ff ff    	mov    %esi,-0x104(%ebp)
40b309:	e9 8e fb ff ff       	jmp    0x40ae9c
40b30e:	8b ff                	mov    %edi,%edi
40b310:	55                   	push   %ebp
40b311:	8b ec                	mov    %esp,%ebp
40b313:	51                   	push   %ecx
40b314:	8b 4d 08             	mov    0x8(%ebp),%ecx
40b317:	53                   	push   %ebx
40b318:	8b 5d 10             	mov    0x10(%ebp),%ebx
40b31b:	56                   	push   %esi
40b31c:	8b 75 14             	mov    0x14(%ebp),%esi
40b31f:	57                   	push   %edi
40b320:	85 f6                	test   %esi,%esi
40b322:	75 1f                	jne    0x40b343
40b324:	85 c9                	test   %ecx,%ecx
40b326:	75 1f                	jne    0x40b347
40b328:	39 75 0c             	cmp    %esi,0xc(%ebp)
40b32b:	74 28                	je     0x40b355
40b32d:	e8 1e c6 ff ff       	call   0x407950
40b332:	6a 16                	push   $0x16
40b334:	5e                   	pop    %esi
40b335:	89 30                	mov    %esi,(%eax)
40b337:	e8 e0 a9 ff ff       	call   0x405d1c
40b33c:	8b c6                	mov    %esi,%eax
40b33e:	5f                   	pop    %edi
40b33f:	5e                   	pop    %esi
40b340:	5b                   	pop    %ebx
40b341:	c9                   	leave
40b342:	c3                   	ret
40b343:	85 c9                	test   %ecx,%ecx
40b345:	74 e6                	je     0x40b32d
40b347:	8b 45 0c             	mov    0xc(%ebp),%eax
40b34a:	85 c0                	test   %eax,%eax
40b34c:	74 df                	je     0x40b32d
40b34e:	85 f6                	test   %esi,%esi
40b350:	75 07                	jne    0x40b359
40b352:	c6 01 00             	movb   $0x0,(%ecx)
40b355:	33 c0                	xor    %eax,%eax
40b357:	eb e5                	jmp    0x40b33e
40b359:	85 db                	test   %ebx,%ebx
40b35b:	75 04                	jne    0x40b361
40b35d:	88 19                	mov    %bl,(%ecx)
40b35f:	eb cc                	jmp    0x40b32d
40b361:	2b d9                	sub    %ecx,%ebx
40b363:	89 75 fc             	mov    %esi,-0x4(%ebp)
40b366:	8b d1                	mov    %ecx,%edx
40b368:	8b f8                	mov    %eax,%edi
40b36a:	83 fe ff             	cmp    $0xffffffff,%esi
40b36d:	75 11                	jne    0x40b380
40b36f:	8a 04 13             	mov    (%ebx,%edx,1),%al
40b372:	88 02                	mov    %al,(%edx)
40b374:	42                   	inc    %edx
40b375:	84 c0                	test   %al,%al
40b377:	74 dc                	je     0x40b355
40b379:	83 ef 01             	sub    $0x1,%edi
40b37c:	75 f1                	jne    0x40b36f
40b37e:	eb 20                	jmp    0x40b3a0
40b380:	8a 04 13             	mov    (%ebx,%edx,1),%al
40b383:	88 02                	mov    %al,(%edx)
40b385:	42                   	inc    %edx
40b386:	84 c0                	test   %al,%al
40b388:	74 cb                	je     0x40b355
40b38a:	8b 45 fc             	mov    -0x4(%ebp),%eax
40b38d:	83 ef 01             	sub    $0x1,%edi
40b390:	74 08                	je     0x40b39a
40b392:	83 e8 01             	sub    $0x1,%eax
40b395:	89 45 fc             	mov    %eax,-0x4(%ebp)
40b398:	75 e6                	jne    0x40b380
40b39a:	85 c0                	test   %eax,%eax
40b39c:	75 02                	jne    0x40b3a0
40b39e:	88 02                	mov    %al,(%edx)
40b3a0:	85 ff                	test   %edi,%edi
40b3a2:	75 b1                	jne    0x40b355
40b3a4:	83 fe ff             	cmp    $0xffffffff,%esi
40b3a7:	75 0d                	jne    0x40b3b6
40b3a9:	8b 45 0c             	mov    0xc(%ebp),%eax
40b3ac:	6a 50                	push   $0x50
40b3ae:	c6 44 01 ff 00       	movb   $0x0,-0x1(%ecx,%eax,1)
40b3b3:	58                   	pop    %eax
40b3b4:	eb 88                	jmp    0x40b33e
40b3b6:	c6 01 00             	movb   $0x0,(%ecx)
40b3b9:	e8 92 c5 ff ff       	call   0x407950
40b3be:	6a 22                	push   $0x22
40b3c0:	e9 6f ff ff ff       	jmp    0x40b334
40b3c5:	8b ff                	mov    %edi,%edi
40b3c7:	55                   	push   %ebp
40b3c8:	8b ec                	mov    %esp,%ebp
40b3ca:	5d                   	pop    %ebp
40b3cb:	e9 3e ff ff ff       	jmp    0x40b30e
40b3d0:	55                   	push   %ebp
40b3d1:	8b ec                	mov    %esp,%ebp
40b3d3:	56                   	push   %esi
40b3d4:	33 c0                	xor    %eax,%eax
40b3d6:	50                   	push   %eax
40b3d7:	50                   	push   %eax
40b3d8:	50                   	push   %eax
40b3d9:	50                   	push   %eax
40b3da:	50                   	push   %eax
40b3db:	50                   	push   %eax
40b3dc:	50                   	push   %eax
40b3dd:	50                   	push   %eax
40b3de:	8b 55 0c             	mov    0xc(%ebp),%edx
40b3e1:	8d 49 00             	lea    0x0(%ecx),%ecx
40b3e4:	8a 02                	mov    (%edx),%al
40b3e6:	0a c0                	or     %al,%al
40b3e8:	74 09                	je     0x40b3f3
40b3ea:	83 c2 01             	add    $0x1,%edx
40b3ed:	0f ab 04 24          	bts    %eax,(%esp)
40b3f1:	eb f1                	jmp    0x40b3e4
40b3f3:	8b 75 08             	mov    0x8(%ebp),%esi
40b3f6:	8b ff                	mov    %edi,%edi
40b3f8:	8a 06                	mov    (%esi),%al
40b3fa:	0a c0                	or     %al,%al
40b3fc:	74 0c                	je     0x40b40a
40b3fe:	83 c6 01             	add    $0x1,%esi
40b401:	0f a3 04 24          	bt     %eax,(%esp)
40b405:	73 f1                	jae    0x40b3f8
40b407:	8d 46 ff             	lea    -0x1(%esi),%eax
40b40a:	83 c4 20             	add    $0x20,%esp
40b40d:	5e                   	pop    %esi
40b40e:	c9                   	leave
40b40f:	c3                   	ret
40b410:	8b ff                	mov    %edi,%edi
40b412:	55                   	push   %ebp
40b413:	8b ec                	mov    %esp,%ebp
40b415:	6a 00                	push   $0x0
40b417:	ff 75 0c             	push   0xc(%ebp)
40b41a:	ff 75 08             	push   0x8(%ebp)
40b41d:	e8 05 00 00 00       	call   0x40b427
40b422:	83 c4 0c             	add    $0xc,%esp
40b425:	5d                   	pop    %ebp
40b426:	c3                   	ret
40b427:	8b ff                	mov    %edi,%edi
40b429:	55                   	push   %ebp
40b42a:	8b ec                	mov    %esp,%ebp
40b42c:	83 ec 10             	sub    $0x10,%esp
40b42f:	83 7d 08 00          	cmpl   $0x0,0x8(%ebp)
40b433:	75 14                	jne    0x40b449
40b435:	e8 16 c5 ff ff       	call   0x407950
40b43a:	c7 00 16 00 00 00    	movl   $0x16,(%eax)
40b440:	e8 d7 a8 ff ff       	call   0x405d1c
40b445:	33 c0                	xor    %eax,%eax
40b447:	c9                   	leave
40b448:	c3                   	ret
40b449:	56                   	push   %esi
40b44a:	8b 75 0c             	mov    0xc(%ebp),%esi
40b44d:	85 f6                	test   %esi,%esi
40b44f:	75 12                	jne    0x40b463
40b451:	e8 fa c4 ff ff       	call   0x407950
40b456:	c7 00 16 00 00 00    	movl   $0x16,(%eax)
40b45c:	e8 bb a8 ff ff       	call   0x405d1c
40b461:	eb 05                	jmp    0x40b468
40b463:	39 75 08             	cmp    %esi,0x8(%ebp)
40b466:	72 04                	jb     0x40b46c
40b468:	33 c0                	xor    %eax,%eax
40b46a:	eb 45                	jmp    0x40b4b1
40b46c:	ff 75 10             	push   0x10(%ebp)
40b46f:	8d 4d f0             	lea    -0x10(%ebp),%ecx
40b472:	e8 a9 cb ff ff       	call   0x408020
40b477:	8b 4d f8             	mov    -0x8(%ebp),%ecx
40b47a:	8d 56 ff             	lea    -0x1(%esi),%edx
40b47d:	83 79 08 00          	cmpl   $0x0,0x8(%ecx)
40b481:	74 1c                	je     0x40b49f
40b483:	4a                   	dec    %edx
40b484:	39 55 08             	cmp    %edx,0x8(%ebp)
40b487:	77 0a                	ja     0x40b493
40b489:	0f b6 02             	movzbl (%edx),%eax
40b48c:	f6 44 08 19 04       	testb  $0x4,0x19(%eax,%ecx,1)
40b491:	75 f0                	jne    0x40b483
40b493:	8b c6                	mov    %esi,%eax