476e1e:	48                   	dec    %eax
476e1f:	8d 0c 47             	lea    (%edi,%eax,2),%ecx
476e22:	8b 7d 08             	mov    0x8(%ebp),%edi
476e25:	89 4d fc             	mov    %ecx,-0x4(%ebp)
476e28:	8b c1                	mov    %ecx,%eax
476e2a:	89 4e 30             	mov    %ecx,0x30(%esi)
476e2d:	8b d9                	mov    %ecx,%ebx
476e2f:	8a 4d 0c             	mov    0xc(%ebp),%cl
476e32:	8b 56 24             	mov    0x24(%esi),%edx
476e35:	85 d2                	test   %edx,%edx
476e37:	7f 04                	jg     0x476e3d
476e39:	85 ff                	test   %edi,%edi
476e3b:	74 35                	je     0x476e72
476e3d:	8d 42 ff             	lea    -0x1(%edx),%eax
476e40:	89 46 24             	mov    %eax,0x24(%esi)
476e43:	8b c7                	mov    %edi,%eax
476e45:	83 e0 0f             	and    $0xf,%eax
476e48:	c1 ef 04             	shr    $0x4,%edi
476e4b:	83 c0 30             	add    $0x30,%eax
476e4e:	0f b7 d0             	movzwl %ax,%edx
476e51:	83 fa 39             	cmp    $0x39,%edx
476e54:	76 0e                	jbe    0x476e64
476e56:	8a c1                	mov    %cl,%al
476e58:	34 01                	xor    $0x1,%al
476e5a:	c0 e0 05             	shl    $0x5,%al
476e5d:	04 07                	add    $0x7,%al
476e5f:	02 c2                	add    %dl,%al
476e61:	0f b6 d0             	movzbl %al,%edx
476e64:	66 89 13             	mov    %dx,(%ebx)
476e67:	83 46 30 fe          	addl   $0xfffffffe,0x30(%esi)
476e6b:	8b 46 30             	mov    0x30(%esi),%eax
476e6e:	8b d8                	mov    %eax,%ebx
476e70:	eb c0                	jmp    0x476e32
476e72:	8b 4d fc             	mov    -0x4(%ebp),%ecx
476e75:	2b c8                	sub    %eax,%ecx
476e77:	d1 f9                	sar    $1,%ecx
476e79:	83 c0 02             	add    $0x2,%eax
476e7c:	89 4e 34             	mov    %ecx,0x34(%esi)
476e7f:	5f                   	pop    %edi
476e80:	89 46 30             	mov    %eax,0x30(%esi)
476e83:	5e                   	pop    %esi
476e84:	5b                   	pop    %ebx
476e85:	c9                   	leave
476e86:	c2 08 00             	ret    $0x8
476e89:	8b ff                	mov    %edi,%edi
476e8b:	55                   	push   %ebp
476e8c:	8b ec                	mov    %esp,%ebp
476e8e:	51                   	push   %ecx
476e8f:	51                   	push   %ecx
476e90:	53                   	push   %ebx
476e91:	56                   	push   %esi
476e92:	8b f1                	mov    %ecx,%esi
476e94:	57                   	push   %edi
476e95:	8d 4e 3c             	lea    0x3c(%esi),%ecx
476e98:	8b b9 04 04 00 00    	mov    0x404(%ecx),%edi
476e9e:	85 ff                	test   %edi,%edi
476ea0:	75 02                	jne    0x476ea4
476ea2:	8b f9                	mov    %ecx,%edi
476ea4:	e8 81 e9 ff ff       	call   0x47582a
476ea9:	8b 5d 08             	mov    0x8(%ebp),%ebx
476eac:	8d 48 ff             	lea    -0x1(%eax),%ecx
476eaf:	03 cf                	add    %edi,%ecx
476eb1:	8b 7d 0c             	mov    0xc(%ebp),%edi
476eb4:	89 4d f8             	mov    %ecx,-0x8(%ebp)
476eb7:	8b d1                	mov    %ecx,%edx
476eb9:	89 4e 30             	mov    %ecx,0x30(%esi)
476ebc:	89 4d fc             	mov    %ecx,-0x4(%ebp)
476ebf:	8b 46 24             	mov    0x24(%esi),%eax
476ec2:	85 c0                	test   %eax,%eax
476ec4:	7f 09                	jg     0x476ecf
476ec6:	8b c3                	mov    %ebx,%eax
476ec8:	0b c7                	or     %edi,%eax
476eca:	74 20                	je     0x476eec
476ecc:	8b 46 24             	mov    0x24(%esi),%eax
476ecf:	48                   	dec    %eax
476ed0:	89 46 24             	mov    %eax,0x24(%esi)
476ed3:	8a c3                	mov    %bl,%al
476ed5:	24 07                	and    $0x7,%al
476ed7:	0f ac fb 03          	shrd   $0x3,%edi,%ebx
476edb:	04 30                	add    $0x30,%al
476edd:	88 01                	mov    %al,(%ecx)
476edf:	c1 ef 03             	shr    $0x3,%edi
476ee2:	ff 4e 30             	decl   0x30(%esi)
476ee5:	8b 56 30             	mov    0x30(%esi),%edx
476ee8:	8b ca                	mov    %edx,%ecx
476eea:	eb d3                	jmp    0x476ebf
476eec:	8b 4d f8             	mov    -0x8(%ebp),%ecx
476eef:	8d 42 01             	lea    0x1(%edx),%eax
476ef2:	2b ca                	sub    %edx,%ecx
476ef4:	89 4e 34             	mov    %ecx,0x34(%esi)
476ef7:	5f                   	pop    %edi
476ef8:	89 46 30             	mov    %eax,0x30(%esi)
476efb:	5e                   	pop    %esi
476efc:	5b                   	pop    %ebx
476efd:	c9                   	leave
476efe:	c2 0c 00             	ret    $0xc
476f01:	8b ff                	mov    %edi,%edi
476f03:	55                   	push   %ebp
476f04:	8b ec                	mov    %esp,%ebp
476f06:	83 ec 10             	sub    $0x10,%esp
476f09:	53                   	push   %ebx
476f0a:	56                   	push   %esi
476f0b:	8b f1                	mov    %ecx,%esi
476f0d:	57                   	push   %edi
476f0e:	8d 4e 3c             	lea    0x3c(%esi),%ecx
476f11:	8b b9 04 04 00 00    	mov    0x404(%ecx),%edi
476f17:	85 ff                	test   %edi,%edi
476f19:	75 02                	jne    0x476f1d
476f1b:	8b f9                	mov    %ecx,%edi
476f1d:	e8 20 e9 ff ff       	call   0x475842
476f22:	8b 55 0c             	mov    0xc(%ebp),%edx
476f25:	8b 5d 08             	mov    0x8(%ebp),%ebx
476f28:	8d 48 ff             	lea    -0x1(%eax),%ecx
476f2b:	8d 0c 4f             	lea    (%edi,%ecx,2),%ecx
476f2e:	89 4d f8             	mov    %ecx,-0x8(%ebp)
476f31:	8b f9                	mov    %ecx,%edi
476f33:	89 4e 30             	mov    %ecx,0x30(%esi)
476f36:	89 4d fc             	mov    %ecx,-0x4(%ebp)
476f39:	8b 46 24             	mov    0x24(%esi),%eax
476f3c:	89 5d fc             	mov    %ebx,-0x4(%ebp)
476f3f:	89 55 f4             	mov    %edx,-0xc(%ebp)
476f42:	85 c0                	test   %eax,%eax
476f44:	7f 09                	jg     0x476f4f
476f46:	8b c3                	mov    %ebx,%eax
476f48:	0b c2                	or     %edx,%eax
476f4a:	74 25                	je     0x476f71
476f4c:	8b 46 24             	mov    0x24(%esi),%eax
476f4f:	48                   	dec    %eax
476f50:	89 46 24             	mov    %eax,0x24(%esi)
476f53:	8b 45 fc             	mov    -0x4(%ebp),%eax
476f56:	83 e0 07             	and    $0x7,%eax
476f59:	0f ac d3 03          	shrd   $0x3,%edx,%ebx
476f5d:	83 c0 30             	add    $0x30,%eax
476f60:	66 89 01             	mov    %ax,(%ecx)
476f63:	c1 ea 03             	shr    $0x3,%edx
476f66:	83 46 30 fe          	addl   $0xfffffffe,0x30(%esi)
476f6a:	8b 7e 30             	mov    0x30(%esi),%edi
476f6d:	8b cf                	mov    %edi,%ecx
476f6f:	eb c8                	jmp    0x476f39
476f71:	8b 4d f8             	mov    -0x8(%ebp),%ecx
476f74:	8d 47 02             	lea    0x2(%edi),%eax
476f77:	2b cf                	sub    %edi,%ecx
476f79:	d1 f9                	sar    $1,%ecx
476f7b:	89 4e 34             	mov    %ecx,0x34(%esi)
476f7e:	5f                   	pop    %edi
476f7f:	89 46 30             	mov    %eax,0x30(%esi)
476f82:	5e                   	pop    %esi
476f83:	5b                   	pop    %ebx
476f84:	c9                   	leave
476f85:	c2 0c 00             	ret    $0xc
476f88:	8b ff                	mov    %edi,%edi
476f8a:	55                   	push   %ebp
476f8b:	8b ec                	mov    %esp,%ebp
476f8d:	83 ec 0c             	sub    $0xc,%esp
476f90:	53                   	push   %ebx
476f91:	56                   	push   %esi
476f92:	8b f1                	mov    %ecx,%esi
476f94:	57                   	push   %edi
476f95:	8d 4e 3c             	lea    0x3c(%esi),%ecx
476f98:	8b b9 04 04 00 00    	mov    0x404(%ecx),%edi
476f9e:	85 ff                	test   %edi,%edi
476fa0:	75 02                	jne    0x476fa4
476fa2:	8b f9                	mov    %ecx,%edi
476fa4:	e8 81 e8 ff ff       	call   0x47582a
476fa9:	48                   	dec    %eax
476faa:	03 f8                	add    %eax,%edi
476fac:	8b 45 08             	mov    0x8(%ebp),%eax
476faf:	89 7d f4             	mov    %edi,-0xc(%ebp)
476fb2:	8b cf                	mov    %edi,%ecx
476fb4:	89 7e 30             	mov    %edi,0x30(%esi)
476fb7:	89 7d f8             	mov    %edi,-0x8(%ebp)
476fba:	8b 7d 0c             	mov    0xc(%ebp),%edi
476fbd:	89 45 fc             	mov    %eax,-0x4(%ebp)
476fc0:	8b 56 24             	mov    0x24(%esi),%edx
476fc3:	85 d2                	test   %edx,%edx
476fc5:	7f 04                	jg     0x476fcb
476fc7:	0b c7                	or     %edi,%eax
476fc9:	74 4f                	je     0x47701a
476fcb:	6a 00                	push   $0x0
476fcd:	6a 0a                	push   $0xa
476fcf:	57                   	push   %edi
476fd0:	ff 75 fc             	push   -0x4(%ebp)
476fd3:	8d 42 ff             	lea    -0x1(%edx),%eax
476fd6:	89 46 24             	mov    %eax,0x24(%esi)
476fd9:	e8 f2 e9 01 00       	call   0x4959d0
476fde:	6a 00                	push   $0x0
476fe0:	6a 0a                	push   $0xa
476fe2:	8a d8                	mov    %al,%bl
476fe4:	57                   	push   %edi
476fe5:	ff 75 fc             	push   -0x4(%ebp)
476fe8:	80 c3 30             	add    $0x30,%bl
476feb:	8a fb                	mov    %bl,%bh
476fed:	e8 6e 33 ff ff       	call   0x46a360
476ff2:	89 45 fc             	mov    %eax,-0x4(%ebp)
476ff5:	8b fa                	mov    %edx,%edi
476ff7:	80 fb 39             	cmp    $0x39,%bl
476ffa:	7e 0e                	jle    0x47700a
476ffc:	8a 5d 10             	mov    0x10(%ebp),%bl
476fff:	80 f3 01             	xor    $0x1,%bl
477002:	c0 e3 05             	shl    $0x5,%bl
477005:	80 c3 07             	add    $0x7,%bl
477008:	02 df                	add    %bh,%bl
47700a:	8b 4d f8             	mov    -0x8(%ebp),%ecx
47700d:	88 19                	mov    %bl,(%ecx)
47700f:	ff 4e 30             	decl   0x30(%esi)
477012:	8b 4e 30             	mov    0x30(%esi),%ecx
477015:	89 4d f8             	mov    %ecx,-0x8(%ebp)
477018:	eb a6                	jmp    0x476fc0
47701a:	8b 7d f4             	mov    -0xc(%ebp),%edi
47701d:	8d 41 01             	lea    0x1(%ecx),%eax
477020:	2b f9                	sub    %ecx,%edi
477022:	89 7e 34             	mov    %edi,0x34(%esi)
477025:	5f                   	pop    %edi
477026:	89 46 30             	mov    %eax,0x30(%esi)
477029:	5e                   	pop    %esi
47702a:	5b                   	pop    %ebx
47702b:	c9                   	leave
47702c:	c2 0c 00             	ret    $0xc
47702f:	8b ff                	mov    %edi,%edi
477031:	55                   	push   %ebp
477032:	8b ec                	mov    %esp,%ebp
477034:	83 ec 0c             	sub    $0xc,%esp
477037:	53                   	push   %ebx
477038:	56                   	push   %esi
477039:	8b f1                	mov    %ecx,%esi
47703b:	57                   	push   %edi
47703c:	8d 4e 3c             	lea    0x3c(%esi),%ecx
47703f:	8b b9 04 04 00 00    	mov    0x404(%ecx),%edi
477045:	85 ff                	test   %edi,%edi
477047:	75 02                	jne    0x47704b
477049:	8b f9                	mov    %ecx,%edi
47704b:	e8 f2 e7 ff ff       	call   0x475842
477050:	8b 5d 08             	mov    0x8(%ebp),%ebx
477053:	89 5d fc             	mov    %ebx,-0x4(%ebp)
477056:	8d 3c 47             	lea    (%edi,%eax,2),%edi
477059:	83 c7 fe             	add    $0xfffffffe,%edi
47705c:	89 7d f4             	mov    %edi,-0xc(%ebp)
47705f:	8b cf                	mov    %edi,%ecx
477061:	89 7e 30             	mov    %edi,0x30(%esi)
477064:	89 7d f8             	mov    %edi,-0x8(%ebp)
477067:	8b 7d 0c             	mov    0xc(%ebp),%edi
47706a:	8b 56 24             	mov    0x24(%esi),%edx
47706d:	85 d2                	test   %edx,%edx
47706f:	7f 06                	jg     0x477077
477071:	8b c3                	mov    %ebx,%eax
477073:	0b c7                	or     %edi,%eax
477075:	74 5e                	je     0x4770d5
477077:	6a 00                	push   $0x0
477079:	6a 0a                	push   $0xa
47707b:	57                   	push   %edi
47707c:	8d 42 ff             	lea    -0x1(%edx),%eax
47707f:	53                   	push   %ebx
477080:	89 46 24             	mov    %eax,0x24(%esi)
477083:	e8 48 e9 01 00       	call   0x4959d0
477088:	6a 00                	push   $0x0
47708a:	66 83 c0 30          	add    $0x30,%ax
47708e:	6a 0a                	push   $0xa
477090:	0f b7 d8             	movzwl %ax,%ebx
477093:	8b 45 fc             	mov    -0x4(%ebp),%eax
477096:	57                   	push   %edi
477097:	50                   	push   %eax
477098:	e8 c3 32 ff ff       	call   0x46a360
47709d:	89 45 fc             	mov    %eax,-0x4(%ebp)
4770a0:	8b fa                	mov    %edx,%edi
4770a2:	83 fb 39             	cmp    $0x39,%ebx
4770a5:	76 15                	jbe    0x4770bc
4770a7:	8a 4d 10             	mov    0x10(%ebp),%cl
4770aa:	80 f1 01             	xor    $0x1,%cl
4770ad:	c0 e1 05             	shl    $0x5,%cl
4770b0:	80 c1 07             	add    $0x7,%cl
4770b3:	02 cb                	add    %bl,%cl
4770b5:	66 0f be c1          	movsbw %cl,%ax
4770b9:	0f b7 d8             	movzwl %ax,%ebx
4770bc:	8b 4d f8             	mov    -0x8(%ebp),%ecx
4770bf:	66 0f be c3          	movsbw %bl,%ax
4770c3:	8b 5d fc             	mov    -0x4(%ebp),%ebx
4770c6:	66 89 01             	mov    %ax,(%ecx)
4770c9:	83 46 30 fe          	addl   $0xfffffffe,0x30(%esi)
4770cd:	8b 4e 30             	mov    0x30(%esi),%ecx
4770d0:	89 4d f8             	mov    %ecx,-0x8(%ebp)
4770d3:	eb 95                	jmp    0x47706a
4770d5:	8b 7d f4             	mov    -0xc(%ebp),%edi
4770d8:	8d 41 02             	lea    0x2(%ecx),%eax
4770db:	2b f9                	sub    %ecx,%edi
4770dd:	d1 ff                	sar    $1,%edi
4770df:	89 7e 34             	mov    %edi,0x34(%esi)
4770e2:	5f                   	pop    %edi
4770e3:	89 46 30             	mov    %eax,0x30(%esi)
4770e6:	5e                   	pop    %esi
4770e7:	5b                   	pop    %ebx
4770e8:	c9                   	leave
4770e9:	c2 0c 00             	ret    $0xc
4770ec:	8b ff                	mov    %edi,%edi
4770ee:	55                   	push   %ebp
4770ef:	8b ec                	mov    %esp,%ebp
4770f1:	51                   	push   %ecx
4770f2:	51                   	push   %ecx
4770f3:	53                   	push   %ebx
4770f4:	56                   	push   %esi
4770f5:	8b f1                	mov    %ecx,%esi
4770f7:	57                   	push   %edi
4770f8:	8d 4e 3c             	lea    0x3c(%esi),%ecx
4770fb:	8b b9 04 04 00 00    	mov    0x404(%ecx),%edi
477101:	85 ff                	test   %edi,%edi
477103:	75 02                	jne    0x477107
477105:	8b f9                	mov    %ecx,%edi
477107:	e8 1e e7 ff ff       	call   0x47582a
47710c:	8b 5d 08             	mov    0x8(%ebp),%ebx
47710f:	8d 48 ff             	lea    -0x1(%eax),%ecx
477112:	03 cf                	add    %edi,%ecx
477114:	8b 7d 0c             	mov    0xc(%ebp),%edi
477117:	89 4d f8             	mov    %ecx,-0x8(%ebp)
47711a:	8b d1                	mov    %ecx,%edx
47711c:	89 4e 30             	mov    %ecx,0x30(%esi)
47711f:	89 4d fc             	mov    %ecx,-0x4(%ebp)
477122:	8b 46 24             	mov    0x24(%esi),%eax
477125:	85 c0                	test   %eax,%eax
477127:	7f 09                	jg     0x477132
477129:	8b c3                	mov    %ebx,%eax
47712b:	0b c7                	or     %edi,%eax
47712d:	74 32                	je     0x477161
47712f:	8b 46 24             	mov    0x24(%esi),%eax
477132:	48                   	dec    %eax
477133:	89 46 24             	mov    %eax,0x24(%esi)
477136:	8a c3                	mov    %bl,%al
477138:	24 0f                	and    $0xf,%al
47713a:	0f ac fb 04          	shrd   $0x4,%edi,%ebx
47713e:	04 30                	add    $0x30,%al
477140:	c1 ef 04             	shr    $0x4,%edi
477143:	8a d0                	mov    %al,%dl
477145:	3c 39                	cmp    $0x39,%al
477147:	76 0c                	jbe    0x477155
477149:	8a 45 10             	mov    0x10(%ebp),%al
47714c:	34 01                	xor    $0x1,%al
47714e:	c0 e0 05             	shl    $0x5,%al
477151:	04 07                	add    $0x7,%al
477153:	02 c2                	add    %dl,%al
477155:	88 01                	mov    %al,(%ecx)
477157:	ff 4e 30             	decl   0x30(%esi)
47715a:	8b 56 30             	mov    0x30(%esi),%edx
47715d:	8b ca                	mov    %edx,%ecx
47715f:	eb c1                	jmp    0x477122
477161:	8b 4d f8             	mov    -0x8(%ebp),%ecx
477164:	8d 42 01             	lea    0x1(%edx),%eax
477167:	2b ca                	sub    %edx,%ecx
477169:	89 4e 34             	mov    %ecx,0x34(%esi)
47716c:	5f                   	pop    %edi
47716d:	89 46 30             	mov    %eax,0x30(%esi)
477170:	5e                   	pop    %esi
477171:	5b                   	pop    %ebx