40eda2:	40                   	inc    %eax
40eda3:	89 4e 34             	mov    %ecx,0x34(%esi)
40eda6:	5f                   	pop    %edi
40eda7:	89 46 30             	mov    %eax,0x30(%esi)
40edaa:	5e                   	pop    %esi
40edab:	5b                   	pop    %ebx
40edac:	5d                   	pop    %ebp
40edad:	c2 08 00             	ret    $0x8
40edb0:	8b ff                	mov    %edi,%edi
40edb2:	55                   	push   %ebp
40edb3:	8b ec                	mov    %esp,%ebp
40edb5:	51                   	push   %ecx
40edb6:	51                   	push   %ecx
40edb7:	53                   	push   %ebx
40edb8:	56                   	push   %esi
40edb9:	8b f1                	mov    %ecx,%esi
40edbb:	57                   	push   %edi
40edbc:	8d 4e 3c             	lea    0x3c(%esi),%ecx
40edbf:	8b b9 04 04 00 00    	mov    0x404(%ecx),%edi
40edc5:	85 ff                	test   %edi,%edi
40edc7:	75 02                	jne    0x40edcb
40edc9:	8b f9                	mov    %ecx,%edi
40edcb:	e8 36 ec ff ff       	call   0x40da06
40edd0:	8b 55 08             	mov    0x8(%ebp),%edx
40edd3:	48                   	dec    %eax
40edd4:	8d 0c 47             	lea    (%edi,%eax,2),%ecx
40edd7:	89 4d f8             	mov    %ecx,-0x8(%ebp)
40edda:	8b c1                	mov    %ecx,%eax
40eddc:	89 4e 30             	mov    %ecx,0x30(%esi)
40eddf:	89 4d fc             	mov    %ecx,-0x4(%ebp)
40ede2:	8b 5e 24             	mov    0x24(%esi),%ebx
40ede5:	8b fa                	mov    %edx,%edi
40ede7:	85 db                	test   %ebx,%ebx
40ede9:	7f 04                	jg     0x40edef
40edeb:	85 d2                	test   %edx,%edx
40eded:	74 1d                	je     0x40ee0c
40edef:	83 e7 07             	and    $0x7,%edi
40edf2:	c1 ea 03             	shr    $0x3,%edx
40edf5:	8d 43 ff             	lea    -0x1(%ebx),%eax
40edf8:	83 c7 30             	add    $0x30,%edi
40edfb:	89 46 24             	mov    %eax,0x24(%esi)
40edfe:	66 89 39             	mov    %di,(%ecx)
40ee01:	83 46 30 fe          	addl   $0xfffffffe,0x30(%esi)
40ee05:	8b 46 30             	mov    0x30(%esi),%eax
40ee08:	8b c8                	mov    %eax,%ecx
40ee0a:	eb d6                	jmp    0x40ede2
40ee0c:	8b 4d f8             	mov    -0x8(%ebp),%ecx
40ee0f:	2b c8                	sub    %eax,%ecx
40ee11:	d1 f9                	sar    $1,%ecx
40ee13:	83 c0 02             	add    $0x2,%eax
40ee16:	89 4e 34             	mov    %ecx,0x34(%esi)
40ee19:	5f                   	pop    %edi
40ee1a:	89 46 30             	mov    %eax,0x30(%esi)
40ee1d:	5e                   	pop    %esi
40ee1e:	5b                   	pop    %ebx
40ee1f:	c9                   	leave
40ee20:	c2 08 00             	ret    $0x8
40ee23:	8b ff                	mov    %edi,%edi
40ee25:	55                   	push   %ebp
40ee26:	8b ec                	mov    %esp,%ebp
40ee28:	51                   	push   %ecx
40ee29:	51                   	push   %ecx
40ee2a:	53                   	push   %ebx
40ee2b:	56                   	push   %esi
40ee2c:	8b f1                	mov    %ecx,%esi
40ee2e:	57                   	push   %edi
40ee2f:	8d 4e 3c             	lea    0x3c(%esi),%ecx
40ee32:	8b b9 04 04 00 00    	mov    0x404(%ecx),%edi
40ee38:	85 ff                	test   %edi,%edi
40ee3a:	75 02                	jne    0x40ee3e
40ee3c:	8b f9                	mov    %ecx,%edi
40ee3e:	e8 ab eb ff ff       	call   0x40d9ee
40ee43:	8b 5d 08             	mov    0x8(%ebp),%ebx
40ee46:	48                   	dec    %eax
40ee47:	03 f8                	add    %eax,%edi
40ee49:	89 7d f8             	mov    %edi,-0x8(%ebp)
40ee4c:	8b c7                	mov    %edi,%eax
40ee4e:	89 7e 30             	mov    %edi,0x30(%esi)
40ee51:	89 7d fc             	mov    %edi,-0x4(%ebp)
40ee54:	8b 4e 24             	mov    0x24(%esi),%ecx
40ee57:	85 c9                	test   %ecx,%ecx
40ee59:	7f 04                	jg     0x40ee5f
40ee5b:	85 db                	test   %ebx,%ebx
40ee5d:	74 38                	je     0x40ee97
40ee5f:	49                   	dec    %ecx
40ee60:	33 d2                	xor    %edx,%edx
40ee62:	6a 0a                	push   $0xa
40ee64:	89 4e 24             	mov    %ecx,0x24(%esi)
40ee67:	8b c3                	mov    %ebx,%eax
40ee69:	59                   	pop    %ecx
40ee6a:	f7 f1                	div    %ecx
40ee6c:	8b c3                	mov    %ebx,%eax
40ee6e:	6a 0a                	push   $0xa
40ee70:	5b                   	pop    %ebx
40ee71:	8d 4a 30             	lea    0x30(%edx),%ecx
40ee74:	33 d2                	xor    %edx,%edx
40ee76:	f7 f3                	div    %ebx
40ee78:	8b d8                	mov    %eax,%ebx
40ee7a:	80 f9 39             	cmp    $0x39,%cl
40ee7d:	7e 0c                	jle    0x40ee8b
40ee7f:	8a 45 0c             	mov    0xc(%ebp),%al
40ee82:	34 01                	xor    $0x1,%al
40ee84:	c0 e0 05             	shl    $0x5,%al
40ee87:	04 07                	add    $0x7,%al
40ee89:	02 c8                	add    %al,%cl
40ee8b:	88 0f                	mov    %cl,(%edi)
40ee8d:	ff 4e 30             	decl   0x30(%esi)
40ee90:	8b 46 30             	mov    0x30(%esi),%eax
40ee93:	8b f8                	mov    %eax,%edi
40ee95:	eb bd                	jmp    0x40ee54
40ee97:	8b 7d f8             	mov    -0x8(%ebp),%edi
40ee9a:	2b f8                	sub    %eax,%edi
40ee9c:	40                   	inc    %eax
40ee9d:	89 7e 34             	mov    %edi,0x34(%esi)
40eea0:	5f                   	pop    %edi
40eea1:	89 46 30             	mov    %eax,0x30(%esi)
40eea4:	5e                   	pop    %esi
40eea5:	5b                   	pop    %ebx
40eea6:	c9                   	leave
40eea7:	c2 08 00             	ret    $0x8
40eeaa:	8b ff                	mov    %edi,%edi
40eeac:	55                   	push   %ebp
40eead:	8b ec                	mov    %esp,%ebp
40eeaf:	51                   	push   %ecx
40eeb0:	51                   	push   %ecx
40eeb1:	53                   	push   %ebx
40eeb2:	56                   	push   %esi
40eeb3:	8b f1                	mov    %ecx,%esi
40eeb5:	57                   	push   %edi
40eeb6:	8d 4e 3c             	lea    0x3c(%esi),%ecx
40eeb9:	8b b9 04 04 00 00    	mov    0x404(%ecx),%edi
40eebf:	85 ff                	test   %edi,%edi
40eec1:	75 02                	jne    0x40eec5
40eec3:	8b f9                	mov    %ecx,%edi
40eec5:	e8 3c eb ff ff       	call   0x40da06
40eeca:	8b 5d 08             	mov    0x8(%ebp),%ebx
40eecd:	8d 3c 47             	lea    (%edi,%eax,2),%edi
40eed0:	83 c7 fe             	add    $0xfffffffe,%edi
40eed3:	89 7d f8             	mov    %edi,-0x8(%ebp)
40eed6:	8b c7                	mov    %edi,%eax
40eed8:	89 7e 30             	mov    %edi,0x30(%esi)
40eedb:	89 7d fc             	mov    %edi,-0x4(%ebp)
40eede:	8b 4e 24             	mov    0x24(%esi),%ecx
40eee1:	85 c9                	test   %ecx,%ecx
40eee3:	7f 04                	jg     0x40eee9
40eee5:	85 db                	test   %ebx,%ebx
40eee7:	74 46                	je     0x40ef2f
40eee9:	49                   	dec    %ecx
40eeea:	33 d2                	xor    %edx,%edx
40eeec:	6a 0a                	push   $0xa
40eeee:	89 4e 24             	mov    %ecx,0x24(%esi)
40eef1:	8b c3                	mov    %ebx,%eax
40eef3:	59                   	pop    %ecx
40eef4:	f7 f1                	div    %ecx
40eef6:	8b c3                	mov    %ebx,%eax
40eef8:	83 c2 30             	add    $0x30,%edx
40eefb:	0f b7 ca             	movzwl %dx,%ecx
40eefe:	33 d2                	xor    %edx,%edx
40ef00:	6a 0a                	push   $0xa
40ef02:	5b                   	pop    %ebx
40ef03:	f7 f3                	div    %ebx
40ef05:	8b d8                	mov    %eax,%ebx
40ef07:	83 f9 39             	cmp    $0x39,%ecx
40ef0a:	76 11                	jbe    0x40ef1d
40ef0c:	8a 45 0c             	mov    0xc(%ebp),%al
40ef0f:	34 01                	xor    $0x1,%al
40ef11:	c0 e0 05             	shl    $0x5,%al
40ef14:	04 07                	add    $0x7,%al
40ef16:	02 c1                	add    %cl,%al
40ef18:	66 98                	cbtw
40ef1a:	0f b7 c8             	movzwl %ax,%ecx
40ef1d:	66 0f be c1          	movsbw %cl,%ax
40ef21:	66 89 07             	mov    %ax,(%edi)
40ef24:	83 46 30 fe          	addl   $0xfffffffe,0x30(%esi)
40ef28:	8b 46 30             	mov    0x30(%esi),%eax
40ef2b:	8b f8                	mov    %eax,%edi
40ef2d:	eb af                	jmp    0x40eede
40ef2f:	8b 7d f8             	mov    -0x8(%ebp),%edi
40ef32:	2b f8                	sub    %eax,%edi
40ef34:	d1 ff                	sar    $1,%edi
40ef36:	83 c0 02             	add    $0x2,%eax
40ef39:	89 7e 34             	mov    %edi,0x34(%esi)
40ef3c:	5f                   	pop    %edi
40ef3d:	89 46 30             	mov    %eax,0x30(%esi)
40ef40:	5e                   	pop    %esi
40ef41:	5b                   	pop    %ebx
40ef42:	c9                   	leave
40ef43:	c2 08 00             	ret    $0x8
40ef46:	8b ff                	mov    %edi,%edi
40ef48:	55                   	push   %ebp
40ef49:	8b ec                	mov    %esp,%ebp
40ef4b:	51                   	push   %ecx
40ef4c:	53                   	push   %ebx
40ef4d:	56                   	push   %esi
40ef4e:	8b f1                	mov    %ecx,%esi
40ef50:	57                   	push   %edi
40ef51:	8d 4e 3c             	lea    0x3c(%esi),%ecx
40ef54:	8b b9 04 04 00 00    	mov    0x404(%ecx),%edi
40ef5a:	85 ff                	test   %edi,%edi
40ef5c:	75 02                	jne    0x40ef60
40ef5e:	8b f9                	mov    %ecx,%edi
40ef60:	e8 89 ea ff ff       	call   0x40d9ee
40ef65:	8a 7d 0c             	mov    0xc(%ebp),%bh
40ef68:	8b 55 08             	mov    0x8(%ebp),%edx
40ef6b:	8d 48 ff             	lea    -0x1(%eax),%ecx
40ef6e:	03 cf                	add    %edi,%ecx
40ef70:	89 4e 30             	mov    %ecx,0x30(%esi)
40ef73:	8b c1                	mov    %ecx,%eax
40ef75:	89 4d fc             	mov    %ecx,-0x4(%ebp)
40ef78:	8b 7e 24             	mov    0x24(%esi),%edi
40ef7b:	85 ff                	test   %edi,%edi
40ef7d:	7f 04                	jg     0x40ef83
40ef7f:	85 d2                	test   %edx,%edx
40ef81:	74 30                	je     0x40efb3
40ef83:	8d 47 ff             	lea    -0x1(%edi),%eax
40ef86:	89 46 24             	mov    %eax,0x24(%esi)
40ef89:	8a c2                	mov    %dl,%al
40ef8b:	24 0f                	and    $0xf,%al
40ef8d:	c1 ea 04             	shr    $0x4,%edx
40ef90:	04 30                	add    $0x30,%al
40ef92:	8a d8                	mov    %al,%bl
40ef94:	3c 39                	cmp    $0x39,%al
40ef96:	76 0b                	jbe    0x40efa3
40ef98:	8a c7                	mov    %bh,%al
40ef9a:	34 01                	xor    $0x1,%al
40ef9c:	c0 e0 05             	shl    $0x5,%al
40ef9f:	04 07                	add    $0x7,%al
40efa1:	02 c3                	add    %bl,%al
40efa3:	8b 7d fc             	mov    -0x4(%ebp),%edi
40efa6:	88 07                	mov    %al,(%edi)
40efa8:	ff 4e 30             	decl   0x30(%esi)
40efab:	8b 46 30             	mov    0x30(%esi),%eax
40efae:	89 45 fc             	mov    %eax,-0x4(%ebp)
40efb1:	eb c5                	jmp    0x40ef78
40efb3:	2b c8                	sub    %eax,%ecx
40efb5:	40                   	inc    %eax
40efb6:	89 4e 34             	mov    %ecx,0x34(%esi)
40efb9:	5f                   	pop    %edi
40efba:	89 46 30             	mov    %eax,0x30(%esi)
40efbd:	5e                   	pop    %esi
40efbe:	5b                   	pop    %ebx
40efbf:	c9                   	leave
40efc0:	c2 08 00             	ret    $0x8
40efc3:	8b ff                	mov    %edi,%edi
40efc5:	55                   	push   %ebp
40efc6:	8b ec                	mov    %esp,%ebp
40efc8:	51                   	push   %ecx
40efc9:	53                   	push   %ebx
40efca:	56                   	push   %esi
40efcb:	8b f1                	mov    %ecx,%esi
40efcd:	57                   	push   %edi
40efce:	8d 4e 3c             	lea    0x3c(%esi),%ecx
40efd1:	8b b9 04 04 00 00    	mov    0x404(%ecx),%edi
40efd7:	85 ff                	test   %edi,%edi
40efd9:	75 02                	jne    0x40efdd
40efdb:	8b f9                	mov    %ecx,%edi
40efdd:	e8 24 ea ff ff       	call   0x40da06
40efe2:	48                   	dec    %eax
40efe3:	8d 0c 47             	lea    (%edi,%eax,2),%ecx
40efe6:	8b 7d 08             	mov    0x8(%ebp),%edi
40efe9:	89 4d fc             	mov    %ecx,-0x4(%ebp)
40efec:	8b c1                	mov    %ecx,%eax
40efee:	89 4e 30             	mov    %ecx,0x30(%esi)
40eff1:	8b d9                	mov    %ecx,%ebx
40eff3:	8a 4d 0c             	mov    0xc(%ebp),%cl
40eff6:	8b 56 24             	mov    0x24(%esi),%edx
40eff9:	85 d2                	test   %edx,%edx
40effb:	7f 04                	jg     0x40f001
40effd:	85 ff                	test   %edi,%edi
40efff:	74 35                	je     0x40f036
40f001:	8d 42 ff             	lea    -0x1(%edx),%eax
40f004:	89 46 24             	mov    %eax,0x24(%esi)
40f007:	8b c7                	mov    %edi,%eax
40f009:	83 e0 0f             	and    $0xf,%eax
40f00c:	c1 ef 04             	shr    $0x4,%edi
40f00f:	83 c0 30             	add    $0x30,%eax
40f012:	0f b7 d0             	movzwl %ax,%edx
40f015:	83 fa 39             	cmp    $0x39,%edx
40f018:	76 0e                	jbe    0x40f028
40f01a:	8a c1                	mov    %cl,%al
40f01c:	34 01                	xor    $0x1,%al
40f01e:	c0 e0 05             	shl    $0x5,%al
40f021:	04 07                	add    $0x7,%al
40f023:	02 c2                	add    %dl,%al
40f025:	0f b6 d0             	movzbl %al,%edx
40f028:	66 89 13             	mov    %dx,(%ebx)
40f02b:	83 46 30 fe          	addl   $0xfffffffe,0x30(%esi)
40f02f:	8b 46 30             	mov    0x30(%esi),%eax
40f032:	8b d8                	mov    %eax,%ebx
40f034:	eb c0                	jmp    0x40eff6
40f036:	8b 4d fc             	mov    -0x4(%ebp),%ecx
40f039:	2b c8                	sub    %eax,%ecx
40f03b:	d1 f9                	sar    $1,%ecx
40f03d:	83 c0 02             	add    $0x2,%eax
40f040:	89 4e 34             	mov    %ecx,0x34(%esi)
40f043:	5f                   	pop    %edi
40f044:	89 46 30             	mov    %eax,0x30(%esi)
40f047:	5e                   	pop    %esi
40f048:	5b                   	pop    %ebx
40f049:	c9                   	leave
40f04a:	c2 08 00             	ret    $0x8
40f04d:	8b ff                	mov    %edi,%edi
40f04f:	55                   	push   %ebp
40f050:	8b ec                	mov    %esp,%ebp
40f052:	51                   	push   %ecx
40f053:	51                   	push   %ecx
40f054:	53                   	push   %ebx
40f055:	56                   	push   %esi
40f056:	8b f1                	mov    %ecx,%esi
40f058:	57                   	push   %edi
40f059:	8d 4e 3c             	lea    0x3c(%esi),%ecx
40f05c:	8b b9 04 04 00 00    	mov    0x404(%ecx),%edi
40f062:	85 ff                	test   %edi,%edi
40f064:	75 02                	jne    0x40f068
40f066:	8b f9                	mov    %ecx,%edi
40f068:	e8 81 e9 ff ff       	call   0x40d9ee
40f06d:	8b 5d 08             	mov    0x8(%ebp),%ebx
40f070:	8d 48 ff             	lea    -0x1(%eax),%ecx
40f073:	03 cf                	add    %edi,%ecx
40f075:	8b 7d 0c             	mov    0xc(%ebp),%edi
40f078:	89 4d f8             	mov    %ecx,-0x8(%ebp)
40f07b:	8b d1                	mov    %ecx,%edx
40f07d:	89 4e 30             	mov    %ecx,0x30(%esi)
40f080:	89 4d fc             	mov    %ecx,-0x4(%ebp)
40f083:	8b 46 24             	mov    0x24(%esi),%eax
40f086:	85 c0                	test   %eax,%eax
40f088:	7f 09                	jg     0x40f093
40f08a:	8b c3                	mov    %ebx,%eax
40f08c:	0b c7                	or     %edi,%eax
40f08e:	74 20                	je     0x40f0b0
40f090:	8b 46 24             	mov    0x24(%esi),%eax
40f093:	48                   	dec    %eax
40f094:	89 46 24             	mov    %eax,0x24(%esi)
40f097:	8a c3                	mov    %bl,%al
40f099:	24 07                	and    $0x7,%al
40f09b:	0f ac fb 03          	shrd   $0x3,%edi,%ebx
40f09f:	04 30                	add    $0x30,%al
40f0a1:	88 01                	mov    %al,(%ecx)
40f0a3:	c1 ef 03             	shr    $0x3,%edi
40f0a6:	ff 4e 30             	decl   0x30(%esi)
40f0a9:	8b 56 30             	mov    0x30(%esi),%edx
40f0ac:	8b ca                	mov    %edx,%ecx
40f0ae:	eb d3                	jmp    0x40f083
40f0b0:	8b 4d f8             	mov    -0x8(%ebp),%ecx
40f0b3:	8d 42 01             	lea    0x1(%edx),%eax
40f0b6:	2b ca                	sub    %edx,%ecx
40f0b8:	89 4e 34             	mov    %ecx,0x34(%esi)
40f0bb:	5f                   	pop    %edi
40f0bc:	89 46 30             	mov    %eax,0x30(%esi)
40f0bf:	5e                   	pop    %esi