497fdc:	8d 45 d0             	lea    -0x30(%ebp),%eax
497fdf:	2b c8                	sub    %eax,%ecx
497fe1:	83 f9 16             	cmp    $0x16,%ecx
497fe4:	73 68                	jae    0x49804e
497fe6:	8b 55 80             	mov    -0x80(%ebp),%edx
497fe9:	c6 45 9f 01          	movb   $0x1,-0x61(%ebp)
497fed:	39 95 7c ff ff ff    	cmp    %edx,-0x84(%ebp)
497ff3:	7f 05                	jg     0x497ffa
497ff5:	ff 45 84             	incl   -0x7c(%ebp)
497ff8:	eb 1b                	jmp    0x498015
497ffa:	85 c9                	test   %ecx,%ecx
497ffc:	75 04                	jne    0x498002
497ffe:	85 d2                	test   %edx,%edx
498000:	74 13                	je     0x498015
498002:	8a 81 e8 4c 69 00    	mov    0x694ce8(%ecx),%al
498008:	8b 4d 98             	mov    -0x68(%ebp),%ecx
49800b:	88 01                	mov    %al,(%ecx)
49800d:	41                   	inc    %ecx
49800e:	42                   	inc    %edx
49800f:	89 4d 98             	mov    %ecx,-0x68(%ebp)
498012:	89 55 80             	mov    %edx,-0x80(%ebp)
498015:	8b 5d 94             	mov    -0x6c(%ebp),%ebx
498018:	8d 45 b8             	lea    -0x48(%ebp),%eax
49801b:	8b 55 8c             	mov    -0x74(%ebp),%edx
49801e:	83 fb 10             	cmp    $0x10,%ebx
498021:	8b 4d 88             	mov    -0x78(%ebp),%ecx
498024:	0f 43 c2             	cmovae %edx,%eax
498027:	80 3c 08 7f          	cmpb   $0x7f,(%eax,%ecx,1)
49802b:	0f 84 e4 01 00 00    	je     0x498215
498031:	83 fb 10             	cmp    $0x10,%ebx
498034:	8d 45 b8             	lea    -0x48(%ebp),%eax
498037:	0f 43 c2             	cmovae %edx,%eax
49803a:	fe 04 08             	incb   (%eax,%ecx,1)
49803d:	8b 5d cc             	mov    -0x34(%ebp),%ebx
498040:	8b 45 b8             	mov    -0x48(%ebp),%eax
498043:	89 5d 94             	mov    %ebx,-0x6c(%ebp)
498046:	89 45 8c             	mov    %eax,-0x74(%ebp)
498049:	e9 c7 01 00 00       	jmp    0x498215
49804e:	8b 4d 94             	mov    -0x6c(%ebp),%ecx
498051:	8d 45 b8             	lea    -0x48(%ebp),%eax
498054:	8b 55 8c             	mov    -0x74(%ebp),%edx
498057:	83 f9 10             	cmp    $0x10,%ecx
49805a:	8b 7d 88             	mov    -0x78(%ebp),%edi
49805d:	0f 43 c2             	cmovae %edx,%eax
498060:	80 3c 38 00          	cmpb   $0x0,(%eax,%edi,1)
498064:	8b bd 78 ff ff ff    	mov    -0x88(%ebp),%edi
49806a:	0f 84 f4 01 00 00    	je     0x498264
498070:	8a 45 93             	mov    -0x6d(%ebp),%al
498073:	84 c0                	test   %al,%al
498075:	0f 84 e9 01 00 00    	je     0x498264
49807b:	80 7d 91 00          	cmpb   $0x0,-0x6f(%ebp)
49807f:	75 43                	jne    0x4980c4
498081:	8b 0e                	mov    (%esi),%ecx
498083:	85 c9                	test   %ecx,%ecx
498085:	74 27                	je     0x4980ae
498087:	8b 41 1c             	mov    0x1c(%ecx),%eax
49808a:	8b 10                	mov    (%eax),%edx
49808c:	85 d2                	test   %edx,%edx
49808e:	74 0d                	je     0x49809d
498090:	8b 41 2c             	mov    0x2c(%ecx),%eax
498093:	83 38 00             	cmpl   $0x0,(%eax)
498096:	7e 05                	jle    0x49809d
498098:	0f b6 1a             	movzbl (%edx),%ebx
49809b:	eb 07                	jmp    0x4980a4
49809d:	8b 01                	mov    (%ecx),%eax
49809f:	ff 50 18             	call   *0x18(%eax)
4980a2:	8b d8                	mov    %eax,%ebx
4980a4:	83 fb ff             	cmp    $0xffffffff,%ebx
4980a7:	74 05                	je     0x4980ae
4980a9:	88 5e 05             	mov    %bl,0x5(%esi)
4980ac:	eb 09                	jmp    0x4980b7
4980ae:	8a 5e 05             	mov    0x5(%esi),%bl
4980b1:	c7 06 00 00 00 00    	movl   $0x0,(%esi)
4980b7:	8b 4d 94             	mov    -0x6c(%ebp),%ecx
4980ba:	8b 55 8c             	mov    -0x74(%ebp),%edx
4980bd:	8a 45 93             	mov    -0x6d(%ebp),%al
4980c0:	c6 46 04 01          	movb   $0x1,0x4(%esi)
4980c4:	3a d8                	cmp    %al,%bl
4980c6:	0f 85 98 01 00 00    	jne    0x498264
4980cc:	8b 5d c8             	mov    -0x38(%ebp),%ebx
4980cf:	3b d9                	cmp    %ecx,%ebx
4980d1:	73 23                	jae    0x4980f6
4980d3:	8d 43 01             	lea    0x1(%ebx),%eax
4980d6:	83 f9 10             	cmp    $0x10,%ecx
4980d9:	89 45 c8             	mov    %eax,-0x38(%ebp)
4980dc:	8d 45 b8             	lea    -0x48(%ebp),%eax
4980df:	0f 43 c2             	cmovae %edx,%eax
4980e2:	66 c7 04 18 00 00    	movw   $0x0,(%eax,%ebx,1)
4980e8:	8b 5d cc             	mov    -0x34(%ebp),%ebx
4980eb:	8b 45 b8             	mov    -0x48(%ebp),%eax
4980ee:	89 5d 94             	mov    %ebx,-0x6c(%ebp)
4980f1:	e9 19 01 00 00       	jmp    0x49820f
4980f6:	b8 ff ff ff 7f       	mov    $0x7fffffff,%eax
4980fb:	2b c3                	sub    %ebx,%eax
4980fd:	83 f8 01             	cmp    $0x1,%eax
498100:	0f 82 76 0d 00 00    	jb     0x498e7c
498106:	8d 43 01             	lea    0x1(%ebx),%eax
498109:	8b d1                	mov    %ecx,%edx
49810b:	83 c8 0f             	or     $0xf,%eax
49810e:	89 95 60 ff ff ff    	mov    %edx,-0xa0(%ebp)
498114:	89 45 94             	mov    %eax,-0x6c(%ebp)
498117:	3d ff ff ff 7f       	cmp    $0x7fffffff,%eax
49811c:	76 07                	jbe    0x498125
49811e:	b9 ff ff ff 7f       	mov    $0x7fffffff,%ecx
498123:	eb 21                	jmp    0x498146
498125:	8b ca                	mov    %edx,%ecx
498127:	b8 ff ff ff 7f       	mov    $0x7fffffff,%eax
49812c:	d1 e9                	shr    $1,%ecx
49812e:	2b c1                	sub    %ecx,%eax
498130:	3b d0                	cmp    %eax,%edx
498132:	76 07                	jbe    0x49813b
498134:	b9 ff ff ff 7f       	mov    $0x7fffffff,%ecx
498139:	eb 0b                	jmp    0x498146
49813b:	8d 04 0a             	lea    (%edx,%ecx,1),%eax
49813e:	8b 4d 94             	mov    -0x6c(%ebp),%ecx
498141:	3b c8                	cmp    %eax,%ecx
498143:	0f 42 c8             	cmovb  %eax,%ecx
498146:	8d 41 01             	lea    0x1(%ecx),%eax
498149:	89 4d 94             	mov    %ecx,-0x6c(%ebp)
49814c:	50                   	push   %eax
49814d:	8d 4d b8             	lea    -0x48(%ebp),%ecx
498150:	e8 fb 12 fa ff       	call   0x439450
498155:	8d 4b 01             	lea    0x1(%ebx),%ecx
498158:	89 85 68 ff ff ff    	mov    %eax,-0x98(%ebp)
49815e:	89 4d c8             	mov    %ecx,-0x38(%ebp)
498161:	8b 4d 94             	mov    -0x6c(%ebp),%ecx
498164:	89 4d cc             	mov    %ecx,-0x34(%ebp)
498167:	8d 0c 18             	lea    (%eax,%ebx,1),%ecx
49816a:	89 8d 5c ff ff ff    	mov    %ecx,-0xa4(%ebp)
498170:	8d 4b 01             	lea    0x1(%ebx),%ecx
498173:	03 c8                	add    %eax,%ecx
498175:	83 bd 60 ff ff ff 10 	cmpl   $0x10,-0xa0(%ebp)
49817c:	89 8d 58 ff ff ff    	mov    %ecx,-0xa8(%ebp)
498182:	53                   	push   %ebx
498183:	72 5f                	jb     0x4981e4
498185:	8b 5d 8c             	mov    -0x74(%ebp),%ebx
498188:	53                   	push   %ebx
498189:	50                   	push   %eax
49818a:	e8 71 ad 14 00       	call   0x5e2f00
49818f:	8b 85 5c ff ff ff    	mov    -0xa4(%ebp),%eax
498195:	83 c4 0c             	add    $0xc,%esp
498198:	8b 8d 60 ff ff ff    	mov    -0xa0(%ebp),%ecx
49819e:	41                   	inc    %ecx
49819f:	c6 00 00             	movb   $0x0,(%eax)
4981a2:	8b 85 58 ff ff ff    	mov    -0xa8(%ebp),%eax
4981a8:	c6 00 00             	movb   $0x0,(%eax)
4981ab:	8b c3                	mov    %ebx,%eax
4981ad:	81 f9 00 10 00 00    	cmp    $0x1000,%ecx
4981b3:	72 14                	jb     0x4981c9
4981b5:	8b 5b fc             	mov    -0x4(%ebx),%ebx
4981b8:	83 c1 23             	add    $0x23,%ecx
4981bb:	2b c3                	sub    %ebx,%eax
4981bd:	83 c0 fc             	add    $0xfffffffc,%eax
4981c0:	83 f8 1f             	cmp    $0x1f,%eax
4981c3:	0f 87 b8 0c 00 00    	ja     0x498e81
4981c9:	51                   	push   %ecx
4981ca:	53                   	push   %ebx
4981cb:	e8 a2 8e 14 00       	call   0x5e1072
4981d0:	8b 95 68 ff ff ff    	mov    -0x98(%ebp),%edx
4981d6:	83 c4 08             	add    $0x8,%esp
4981d9:	8b 5d 94             	mov    -0x6c(%ebp),%ebx
4981dc:	89 55 8c             	mov    %edx,-0x74(%ebp)
4981df:	89 55 b8             	mov    %edx,-0x48(%ebp)
4981e2:	eb 2e                	jmp    0x498212
4981e4:	8d 4d b8             	lea    -0x48(%ebp),%ecx
4981e7:	51                   	push   %ecx
4981e8:	50                   	push   %eax
4981e9:	e8 12 ad 14 00       	call   0x5e2f00
4981ee:	8b 85 5c ff ff ff    	mov    -0xa4(%ebp),%eax
4981f4:	83 c4 0c             	add    $0xc,%esp
4981f7:	8b 5d 94             	mov    -0x6c(%ebp),%ebx
4981fa:	c6 00 00             	movb   $0x0,(%eax)
4981fd:	8b 85 58 ff ff ff    	mov    -0xa8(%ebp),%eax
498203:	c6 00 00             	movb   $0x0,(%eax)
498206:	8b 85 68 ff ff ff    	mov    -0x98(%ebp),%eax
49820c:	89 45 b8             	mov    %eax,-0x48(%ebp)
49820f:	89 45 8c             	mov    %eax,-0x74(%ebp)
498212:	ff 45 88             	incl   -0x78(%ebp)
498215:	8b 0e                	mov    (%esi),%ecx
498217:	85 c9                	test   %ecx,%ecx
498219:	74 38                	je     0x498253
49821b:	8b 41 1c             	mov    0x1c(%ecx),%eax
49821e:	83 38 00             	cmpl   $0x0,(%eax)
498221:	74 1b                	je     0x49823e
498223:	8b 51 2c             	mov    0x2c(%ecx),%edx
498226:	8b 02                	mov    (%edx),%eax
498228:	85 c0                	test   %eax,%eax
49822a:	7e 12                	jle    0x49823e
49822c:	48                   	dec    %eax
49822d:	89 02                	mov    %eax,(%edx)
49822f:	8b 49 1c             	mov    0x1c(%ecx),%ecx
498232:	8b 11                	mov    (%ecx),%edx
498234:	8d 42 01             	lea    0x1(%edx),%eax
498237:	89 01                	mov    %eax,(%ecx)
498239:	0f b6 02             	movzbl (%edx),%eax
49823c:	eb 05                	jmp    0x498243
49823e:	8b 01                	mov    (%ecx),%eax
498240:	ff 50 1c             	call   *0x1c(%eax)
498243:	83 f8 ff             	cmp    $0xffffffff,%eax
498246:	74 0b                	je     0x498253
498248:	c6 46 04 00          	movb   $0x0,0x4(%esi)
49824c:	32 c0                	xor    %al,%al
49824e:	e9 9d fc ff ff       	jmp    0x497ef0
498253:	c7 06 00 00 00 00    	movl   $0x0,(%esi)
498259:	b0 01                	mov    $0x1,%al
49825b:	c6 46 04 01          	movb   $0x1,0x4(%esi)
49825f:	e9 8c fc ff ff       	jmp    0x497ef0
498264:	8b 5d 94             	mov    -0x6c(%ebp),%ebx
498267:	8b 4d 88             	mov    -0x78(%ebp),%ecx
49826a:	8b 55 8c             	mov    -0x74(%ebp),%edx
49826d:	85 c9                	test   %ecx,%ecx
49826f:	74 13                	je     0x498284
498271:	83 fb 10             	cmp    $0x10,%ebx
498274:	8d 45 b8             	lea    -0x48(%ebp),%eax
498277:	0f 43 c2             	cmovae %edx,%eax
49827a:	80 3c 08 00          	cmpb   $0x0,(%eax,%ecx,1)
49827e:	7e 5f                	jle    0x4982df
498280:	41                   	inc    %ecx
498281:	89 4d 88             	mov    %ecx,-0x78(%ebp)
498284:	8b 45 88             	mov    -0x78(%ebp),%eax
498287:	85 c0                	test   %eax,%eax
498289:	74 58                	je     0x4982e3
49828b:	8b 8d 70 ff ff ff    	mov    -0x90(%ebp),%ecx
498291:	8a 09                	mov    (%ecx),%cl
498293:	80 f9 7f             	cmp    $0x7f,%cl
498296:	74 4b                	je     0x4982e3
498298:	83 e8 01             	sub    $0x1,%eax
49829b:	89 45 88             	mov    %eax,-0x78(%ebp)
49829e:	74 1a                	je     0x4982ba
4982a0:	8b 7d 88             	mov    -0x78(%ebp),%edi
4982a3:	8d 45 b8             	lea    -0x48(%ebp),%eax
4982a6:	83 fb 10             	cmp    $0x10,%ebx
4982a9:	0f 43 c2             	cmovae %edx,%eax
4982ac:	3a 0c 38             	cmp    (%eax,%edi,1),%cl
4982af:	8b bd 78 ff ff ff    	mov    -0x88(%ebp),%edi
4982b5:	75 28                	jne    0x4982df
4982b7:	8b 45 88             	mov    -0x78(%ebp),%eax
4982ba:	85 c0                	test   %eax,%eax
4982bc:	75 0d                	jne    0x4982cb
4982be:	83 fb 10             	cmp    $0x10,%ebx
4982c1:	8d 45 b8             	lea    -0x48(%ebp),%eax
4982c4:	0f 43 c2             	cmovae %edx,%eax
4982c7:	3a 08                	cmp    (%eax),%cl
4982c9:	7c 14                	jl     0x4982df
4982cb:	8b 85 70 ff ff ff    	mov    -0x90(%ebp),%eax
4982d1:	40                   	inc    %eax
4982d2:	80 38 00             	cmpb   $0x0,(%eax)
4982d5:	7e ad                	jle    0x498284
4982d7:	89 85 70 ff ff ff    	mov    %eax,-0x90(%ebp)
4982dd:	eb a5                	jmp    0x498284
4982df:	c6 45 92 01          	movb   $0x1,-0x6e(%ebp)
4982e3:	c6 45 fc 01          	movb   $0x1,-0x4(%ebp)
4982e7:	83 fb 10             	cmp    $0x10,%ebx
4982ea:	72 2b                	jb     0x498317
4982ec:	8d 4b 01             	lea    0x1(%ebx),%ecx
4982ef:	8b c2                	mov    %edx,%eax
4982f1:	81 f9 00 10 00 00    	cmp    $0x1000,%ecx
4982f7:	72 14                	jb     0x49830d
4982f9:	8b 52 fc             	mov    -0x4(%edx),%edx
4982fc:	83 c1 23             	add    $0x23,%ecx
4982ff:	2b c2                	sub    %edx,%eax
498301:	83 c0 fc             	add    $0xfffffffc,%eax
498304:	83 f8 1f             	cmp    $0x1f,%eax
498307:	0f 87 74 0b 00 00    	ja     0x498e81
49830d:	51                   	push   %ecx
49830e:	52                   	push   %edx
49830f:	e8 5e 8d 14 00       	call   0x5e1072
498314:	83 c4 08             	add    $0x8,%esp
498317:	8b 5d 80             	mov    -0x80(%ebp),%ebx
49831a:	80 7d 9f 00          	cmpb   $0x0,-0x61(%ebp)
49831e:	74 0e                	je     0x49832e
498320:	85 db                	test   %ebx,%ebx
498322:	75 0a                	jne    0x49832e
498324:	8b 45 98             	mov    -0x68(%ebp),%eax
498327:	c6 00 30             	movb   $0x30,(%eax)
49832a:	40                   	inc    %eax
49832b:	89 45 98             	mov    %eax,-0x68(%ebp)
49832e:	80 7e 04 00          	cmpb   $0x0,0x4(%esi)
498332:	0f 85 a9 01 00 00    	jne    0x4984e1
498338:	8b 0e                	mov    (%esi),%ecx
49833a:	85 c9                	test   %ecx,%ecx
49833c:	0f 84 95 01 00 00    	je     0x4984d7
498342:	8b 41 1c             	mov    0x1c(%ecx),%eax
498345:	8b 10                	mov    (%eax),%edx
498347:	85 d2                	test   %edx,%edx
498349:	0f 84 79 01 00 00    	je     0x4984c8
49834f:	8b 41 2c             	mov    0x2c(%ecx),%eax
498352:	83 38 00             	cmpl   $0x0,(%eax)
498355:	0f 8e 6d 01 00 00    	jle    0x4984c8
49835b:	0f b6 02             	movzbl (%edx),%eax
49835e:	e9 6a 01 00 00       	jmp    0x4984cd
498363:	8a 46 04             	mov    0x4(%esi),%al
498366:	84 c0                	test   %al,%al
498368:	75 35                	jne    0x49839f
49836a:	8b 0e                	mov    (%esi),%ecx
49836c:	85 c9                	test   %ecx,%ecx
49836e:	74 25                	je     0x498395
498370:	8b 41 1c             	mov    0x1c(%ecx),%eax
498373:	8b 10                	mov    (%eax),%edx
498375:	85 d2                	test   %edx,%edx
498377:	74 0d                	je     0x498386
498379:	8b 41 2c             	mov    0x2c(%ecx),%eax
49837c:	83 38 00             	cmpl   $0x0,(%eax)
49837f:	7e 05                	jle    0x498386
498381:	0f b6 02             	movzbl (%edx),%eax
498384:	eb 05                	jmp    0x49838b
498386:	8b 01                	mov    (%ecx),%eax
498388:	ff 50 18             	call   *0x18(%eax)
49838b:	83 f8 ff             	cmp    $0xffffffff,%eax
49838e:	74 05                	je     0x498395
498390:	88 46 05             	mov    %al,0x5(%esi)
498393:	eb 06                	jmp    0x49839b
498395:	c7 06 00 00 00 00    	movl   $0x0,(%esi)
49839b:	c6 46 04 01          	movb   $0x1,0x4(%esi)
49839f:	80 7f 04 00          	cmpb   $0x0,0x4(%edi)
4983a3:	75 35                	jne    0x4983da
4983a5:	8b 0f                	mov    (%edi),%ecx
4983a7:	85 c9                	test   %ecx,%ecx
4983a9:	74 25                	je     0x4983d0
4983ab:	8b 41 1c             	mov    0x1c(%ecx),%eax
4983ae:	8b 10                	mov    (%eax),%edx
4983b0:	85 d2                	test   %edx,%edx
4983b2:	74 0d                	je     0x4983c1
4983b4:	8b 41 2c             	mov    0x2c(%ecx),%eax
4983b7:	83 38 00             	cmpl   $0x0,(%eax)
4983ba:	7e 05                	jle    0x4983c1
4983bc:	0f b6 02             	movzbl (%edx),%eax
4983bf:	eb 05                	jmp    0x4983c6
4983c1:	8b 01                	mov    (%ecx),%eax
4983c3:	ff 50 18             	call   *0x18(%eax)
4983c6:	83 f8 ff             	cmp    $0xffffffff,%eax
4983c9:	74 05                	je     0x4983d0
4983cb:	88 47 05             	mov    %al,0x5(%edi)
4983ce:	eb 06                	jmp    0x4983d6
4983d0:	c7 07 00 00 00 00    	movl   $0x0,(%edi)
4983d6:	c6 47 04 01          	movb   $0x1,0x4(%edi)
4983da:	8b 0e                	mov    (%esi),%ecx
4983dc:	8b 07                	mov    (%edi),%eax
4983de:	85 c9                	test   %ecx,%ecx
4983e0:	75 0c                	jne    0x4983ee
4983e2:	85 c0                	test   %eax,%eax
4983e4:	75 0c                	jne    0x4983f2
4983e6:	89 5d 80             	mov    %ebx,-0x80(%ebp)
4983e9:	e9 2c ff ff ff       	jmp    0x49831a
4983ee:	85 c0                	test   %eax,%eax
4983f0:	75 f4                	jne    0x4983e6
4983f2:	80 7e 04 00          	cmpb   $0x0,0x4(%esi)
4983f6:	75 33                	jne    0x49842b
4983f8:	85 c9                	test   %ecx,%ecx
4983fa:	74 25                	je     0x498421