4109e2:	ff 75 08             	push   0x8(%ebp)
4109e5:	e8 53 e9 ff ff       	call   0x40f33d
4109ea:	59                   	pop    %ecx
4109eb:	59                   	pop    %ecx
4109ec:	5d                   	pop    %ebp
4109ed:	c3                   	ret
4109ee:	e8 b6 ff ff ff       	call   0x4109a9
4109f3:	33 c9                	xor    %ecx,%ecx
4109f5:	38 4d 08             	cmp    %cl,0x8(%ebp)
4109f8:	0f 95 c1             	setne  %cl
4109fb:	c1 e1 1f             	shl    $0x1f,%ecx
4109fe:	81 c9 00 00 80 7f    	or     $0x7f800000,%ecx
410a04:	89 08                	mov    %ecx,(%eax)
410a06:	5d                   	pop    %ebp
410a07:	c3                   	ret
410a08:	8b ff                	mov    %edi,%edi
410a0a:	55                   	push   %ebp
410a0b:	8b ec                	mov    %esp,%ebp
410a0d:	83 ec 24             	sub    $0x24,%esp
410a10:	53                   	push   %ebx
410a11:	56                   	push   %esi
410a12:	8b 75 0c             	mov    0xc(%ebp),%esi
410a15:	33 db                	xor    %ebx,%ebx
410a17:	57                   	push   %edi
410a18:	8b 7d 08             	mov    0x8(%ebp),%edi
410a1b:	3b f3                	cmp    %ebx,%esi
410a1d:	77 16                	ja     0x410a35
410a1f:	83 ff ff             	cmp    $0xffffffff,%edi
410a22:	77 11                	ja     0x410a35
410a24:	0f bd c7             	bsr    %edi,%eax
410a27:	89 5d dc             	mov    %ebx,-0x24(%ebp)
410a2a:	74 05                	je     0x410a31
410a2c:	8d 48 01             	lea    0x1(%eax),%ecx
410a2f:	eb 14                	jmp    0x410a45
410a31:	8b cb                	mov    %ebx,%ecx
410a33:	eb 10                	jmp    0x410a45
410a35:	0f bd c6             	bsr    %esi,%eax
410a38:	89 5d dc             	mov    %ebx,-0x24(%ebp)
410a3b:	8d 48 01             	lea    0x1(%eax),%ecx
410a3e:	75 02                	jne    0x410a42
410a40:	8b cb                	mov    %ebx,%ecx
410a42:	83 c1 20             	add    $0x20,%ecx
410a45:	8b 45 1c             	mov    0x1c(%ebp),%eax
410a48:	33 d2                	xor    %edx,%edx
410a4a:	8a 40 04             	mov    0x4(%eax),%al
410a4d:	84 c0                	test   %al,%al
410a4f:	88 45 ff             	mov    %al,-0x1(%ebp)
410a52:	0f 94 c2             	sete   %dl
410a55:	33 c0                	xor    %eax,%eax
410a57:	4a                   	dec    %edx
410a58:	83 e2 1d             	and    $0x1d,%edx
410a5b:	83 c2 18             	add    $0x18,%edx
410a5e:	2b d1                	sub    %ecx,%edx
410a60:	8b 4d 10             	mov    0x10(%ebp),%ecx
410a63:	2b ca                	sub    %edx,%ecx
410a65:	89 55 f4             	mov    %edx,-0xc(%ebp)
410a68:	38 45 ff             	cmp    %al,-0x1(%ebp)
410a6b:	89 4d f8             	mov    %ecx,-0x8(%ebp)
410a6e:	0f 94 c0             	sete   %al
410a71:	48                   	dec    %eax
410a72:	25 80 03 00 00       	and    $0x380,%eax
410a77:	83 c0 7f             	add    $0x7f,%eax
410a7a:	89 45 f0             	mov    %eax,-0x10(%ebp)
410a7d:	3b c8                	cmp    %eax,%ecx
410a7f:	7e 15                	jle    0x410a96
410a81:	ff 75 1c             	push   0x1c(%ebp)
410a84:	ff 75 14             	push   0x14(%ebp)
410a87:	e8 42 ff ff ff       	call   0x4109ce
410a8c:	59                   	pop    %ecx
410a8d:	59                   	pop    %ecx
410a8e:	6a 03                	push   $0x3
410a90:	58                   	pop    %eax
410a91:	e9 b7 02 00 00       	jmp    0x410d4d
410a96:	33 c0                	xor    %eax,%eax
410a98:	38 45 ff             	cmp    %al,-0x1(%ebp)
410a9b:	0f 94 c0             	sete   %al
410a9e:	48                   	dec    %eax
410a9f:	25 80 fc ff ff       	and    $0xfffffc80,%eax
410aa4:	83 c0 82             	add    $0xffffff82,%eax
410aa7:	3b c8                	cmp    %eax,%ecx
410aa9:	0f 8d 35 01 00 00    	jge    0x410be4
410aaf:	8b 45 f0             	mov    -0x10(%ebp),%eax
410ab2:	48                   	dec    %eax
410ab3:	03 c1                	add    %ecx,%eax
410ab5:	8b 4d f0             	mov    -0x10(%ebp),%ecx
410ab8:	03 c2                	add    %edx,%eax
410aba:	f7 d9                	neg    %ecx
410abc:	89 45 ec             	mov    %eax,-0x14(%ebp)
410abf:	89 4d f8             	mov    %ecx,-0x8(%ebp)
410ac2:	85 c0                	test   %eax,%eax
410ac4:	0f 89 12 01 00 00    	jns    0x410bdc
410aca:	f7 d8                	neg    %eax
410acc:	89 45 f0             	mov    %eax,-0x10(%ebp)
410acf:	83 f8 40             	cmp    $0x40,%eax
410ad2:	0f 83 f0 00 00 00    	jae    0x410bc8
410ad8:	8d 48 ff             	lea    -0x1(%eax),%ecx
410adb:	33 d2                	xor    %edx,%edx
410add:	33 c0                	xor    %eax,%eax
410adf:	40                   	inc    %eax
410ae0:	e8 eb 58 01 00       	call   0x4263d0
410ae5:	8b 4d f0             	mov    -0x10(%ebp),%ecx
410ae8:	89 45 e8             	mov    %eax,-0x18(%ebp)
410aeb:	83 c0 ff             	add    $0xffffffff,%eax
410aee:	89 45 e0             	mov    %eax,-0x20(%ebp)
410af1:	8b c2                	mov    %edx,%eax
410af3:	83 d0 ff             	adc    $0xffffffff,%eax
410af6:	89 55 e4             	mov    %edx,-0x1c(%ebp)
410af9:	89 45 dc             	mov    %eax,-0x24(%ebp)
410afc:	33 d2                	xor    %edx,%edx
410afe:	33 c0                	xor    %eax,%eax
410b00:	40                   	inc    %eax
410b01:	e8 ca 58 01 00       	call   0x4263d0
410b06:	23 c7                	and    %edi,%eax
410b08:	c6 45 fd 01          	movb   $0x1,-0x3(%ebp)
410b0c:	23 d6                	and    %esi,%edx
410b0e:	0b c2                	or     %edx,%eax
410b10:	75 03                	jne    0x410b15
410b12:	88 5d fd             	mov    %bl,-0x3(%ebp)
410b15:	8b 45 e8             	mov    -0x18(%ebp),%eax
410b18:	8b 4d e4             	mov    -0x1c(%ebp),%ecx
410b1b:	23 c7                	and    %edi,%eax
410b1d:	23 ce                	and    %esi,%ecx
410b1f:	0b c1                	or     %ecx,%eax
410b21:	b1 01                	mov    $0x1,%cl
410b23:	75 02                	jne    0x410b27
410b25:	8a cb                	mov    %bl,%cl
410b27:	88 4d ff             	mov    %cl,-0x1(%ebp)
410b2a:	38 5d 18             	cmp    %bl,0x18(%ebp)
410b2d:	74 10                	je     0x410b3f
410b2f:	8b 45 e0             	mov    -0x20(%ebp),%eax
410b32:	8b 55 dc             	mov    -0x24(%ebp),%edx
410b35:	23 c7                	and    %edi,%eax
410b37:	23 d6                	and    %esi,%edx
410b39:	0b c2                	or     %edx,%eax
410b3b:	8a c3                	mov    %bl,%al
410b3d:	74 02                	je     0x410b41
410b3f:	b0 01                	mov    $0x1,%al
410b41:	88 45 fe             	mov    %al,-0x2(%ebp)
410b44:	84 c9                	test   %cl,%cl
410b46:	75 04                	jne    0x410b4c
410b48:	84 c0                	test   %al,%al
410b4a:	74 35                	je     0x410b81
410b4c:	e8 b1 9e 00 00       	call   0x41aa02
410b51:	85 c0                	test   %eax,%eax
410b53:	74 1b                	je     0x410b70
410b55:	3d 00 01 00 00       	cmp    $0x100,%eax
410b5a:	74 0c                	je     0x410b68
410b5c:	3d 00 02 00 00       	cmp    $0x200,%eax
410b61:	75 1e                	jne    0x410b81
410b63:	8a 5d 14             	mov    0x14(%ebp),%bl
410b66:	eb 19                	jmp    0x410b81
410b68:	38 5d 14             	cmp    %bl,0x14(%ebp)
410b6b:	0f 94 c3             	sete   %bl
410b6e:	eb 11                	jmp    0x410b81
410b70:	38 5d ff             	cmp    %bl,-0x1(%ebp)
410b73:	74 0c                	je     0x410b81
410b75:	38 5d fe             	cmp    %bl,-0x2(%ebp)
410b78:	75 05                	jne    0x410b7f
410b7a:	38 5d fd             	cmp    %bl,-0x3(%ebp)
410b7d:	74 02                	je     0x410b81
410b7f:	b3 01                	mov    $0x1,%bl
410b81:	8b 4d f0             	mov    -0x10(%ebp),%ecx
410b84:	8b c7                	mov    %edi,%eax
410b86:	8b d6                	mov    %esi,%edx
410b88:	e8 63 58 01 00       	call   0x4263f0
410b8d:	8b f8                	mov    %eax,%edi
410b8f:	8b f2                	mov    %edx,%esi
410b91:	0f b6 c3             	movzbl %bl,%eax
410b94:	99                   	cltd
410b95:	03 f8                	add    %eax,%edi
410b97:	8b c7                	mov    %edi,%eax
410b99:	13 f2                	adc    %edx,%esi
410b9b:	0b c6                	or     %esi,%eax
410b9d:	74 29                	je     0x410bc8
410b9f:	8b 4d 1c             	mov    0x1c(%ebp),%ecx
410ba2:	e8 de 21 00 00       	call   0x412d85
410ba7:	3b f2                	cmp    %edx,%esi
410ba9:	0f 82 5d 01 00 00    	jb     0x410d0c
410baf:	77 08                	ja     0x410bb9
410bb1:	3b f8                	cmp    %eax,%edi
410bb3:	0f 86 53 01 00 00    	jbe    0x410d0c
410bb9:	8b 5d 10             	mov    0x10(%ebp),%ebx
410bbc:	2b 5d ec             	sub    -0x14(%ebp),%ebx
410bbf:	2b 5d f4             	sub    -0xc(%ebp),%ebx
410bc2:	4b                   	dec    %ebx
410bc3:	e9 47 01 00 00       	jmp    0x410d0f
410bc8:	ff 75 1c             	push   0x1c(%ebp)
410bcb:	ff 75 14             	push   0x14(%ebp)
410bce:	e8 0f 03 00 00       	call   0x410ee2
410bd3:	59                   	pop    %ecx
410bd4:	59                   	pop    %ecx
410bd5:	6a 02                	push   $0x2
410bd7:	e9 b4 fe ff ff       	jmp    0x410a90
410bdc:	8b 4d ec             	mov    -0x14(%ebp),%ecx
410bdf:	e9 1b 01 00 00       	jmp    0x410cff
410be4:	85 d2                	test   %edx,%edx
410be6:	0f 89 0e 01 00 00    	jns    0x410cfa
410bec:	f7 da                	neg    %edx
410bee:	89 55 f4             	mov    %edx,-0xc(%ebp)
410bf1:	83 fa 40             	cmp    $0x40,%edx
410bf4:	72 09                	jb     0x410bff
410bf6:	8b fb                	mov    %ebx,%edi
410bf8:	8b f3                	mov    %ebx,%esi
410bfa:	e9 c1 00 00 00       	jmp    0x410cc0
410bff:	33 c0                	xor    %eax,%eax
410c01:	8d 4a ff             	lea    -0x1(%edx),%ecx
410c04:	40                   	inc    %eax
410c05:	33 d2                	xor    %edx,%edx
410c07:	e8 c4 57 01 00       	call   0x4263d0
410c0c:	8b 4d f4             	mov    -0xc(%ebp),%ecx
410c0f:	89 45 dc             	mov    %eax,-0x24(%ebp)
410c12:	83 c0 ff             	add    $0xffffffff,%eax
410c15:	89 45 e4             	mov    %eax,-0x1c(%ebp)
410c18:	8b c2                	mov    %edx,%eax
410c1a:	83 d0 ff             	adc    $0xffffffff,%eax
410c1d:	89 55 e0             	mov    %edx,-0x20(%ebp)
410c20:	89 45 e8             	mov    %eax,-0x18(%ebp)
410c23:	33 d2                	xor    %edx,%edx
410c25:	33 c0                	xor    %eax,%eax
410c27:	40                   	inc    %eax
410c28:	e8 a3 57 01 00       	call   0x4263d0
410c2d:	23 c7                	and    %edi,%eax
410c2f:	c6 45 ff 01          	movb   $0x1,-0x1(%ebp)
410c33:	23 d6                	and    %esi,%edx
410c35:	0b c2                	or     %edx,%eax
410c37:	75 03                	jne    0x410c3c
410c39:	88 5d ff             	mov    %bl,-0x1(%ebp)
410c3c:	8b 45 dc             	mov    -0x24(%ebp),%eax
410c3f:	8b 4d e0             	mov    -0x20(%ebp),%ecx
410c42:	23 c7                	and    %edi,%eax
410c44:	23 ce                	and    %esi,%ecx
410c46:	0b c1                	or     %ecx,%eax
410c48:	b1 01                	mov    $0x1,%cl
410c4a:	75 02                	jne    0x410c4e
410c4c:	8a cb                	mov    %bl,%cl
410c4e:	88 4d fd             	mov    %cl,-0x3(%ebp)
410c51:	38 5d 18             	cmp    %bl,0x18(%ebp)
410c54:	74 10                	je     0x410c66
410c56:	8b 45 e4             	mov    -0x1c(%ebp),%eax
410c59:	8b 55 e8             	mov    -0x18(%ebp),%edx
410c5c:	23 c7                	and    %edi,%eax
410c5e:	23 d6                	and    %esi,%edx
410c60:	0b c2                	or     %edx,%eax
410c62:	8a c3                	mov    %bl,%al
410c64:	74 02                	je     0x410c68
410c66:	b0 01                	mov    $0x1,%al
410c68:	88 45 fe             	mov    %al,-0x2(%ebp)
410c6b:	84 c9                	test   %cl,%cl
410c6d:	75 04                	jne    0x410c73
410c6f:	84 c0                	test   %al,%al
410c71:	74 35                	je     0x410ca8
410c73:	e8 8a 9d 00 00       	call   0x41aa02
410c78:	85 c0                	test   %eax,%eax
410c7a:	74 1b                	je     0x410c97
410c7c:	3d 00 01 00 00       	cmp    $0x100,%eax
410c81:	74 0c                	je     0x410c8f
410c83:	3d 00 02 00 00       	cmp    $0x200,%eax
410c88:	75 1e                	jne    0x410ca8
410c8a:	8a 5d 14             	mov    0x14(%ebp),%bl
410c8d:	eb 19                	jmp    0x410ca8
410c8f:	38 5d 14             	cmp    %bl,0x14(%ebp)
410c92:	0f 94 c3             	sete   %bl
410c95:	eb 11                	jmp    0x410ca8
410c97:	38 5d fd             	cmp    %bl,-0x3(%ebp)
410c9a:	74 0c                	je     0x410ca8
410c9c:	38 5d fe             	cmp    %bl,-0x2(%ebp)
410c9f:	75 05                	jne    0x410ca6
410ca1:	38 5d ff             	cmp    %bl,-0x1(%ebp)
410ca4:	74 02                	je     0x410ca8
410ca6:	b3 01                	mov    $0x1,%bl
410ca8:	8b 4d f4             	mov    -0xc(%ebp),%ecx
410cab:	8b c7                	mov    %edi,%eax
410cad:	8b d6                	mov    %esi,%edx
410caf:	e8 3c 57 01 00       	call   0x4263f0
410cb4:	8b f8                	mov    %eax,%edi
410cb6:	8b f2                	mov    %edx,%esi
410cb8:	0f b6 c3             	movzbl %bl,%eax
410cbb:	99                   	cltd
410cbc:	03 f8                	add    %eax,%edi
410cbe:	13 f2                	adc    %edx,%esi
410cc0:	8b 4d 1c             	mov    0x1c(%ebp),%ecx
410cc3:	e8 7b 26 00 00       	call   0x413343
410cc8:	3b f2                	cmp    %edx,%esi
410cca:	72 40                	jb     0x410d0c
410ccc:	77 04                	ja     0x410cd2
410cce:	3b f8                	cmp    %eax,%edi
410cd0:	76 3a                	jbe    0x410d0c
410cd2:	8b 4d 1c             	mov    0x1c(%ebp),%ecx
410cd5:	33 c0                	xor    %eax,%eax
410cd7:	8b 5d f8             	mov    -0x8(%ebp),%ebx
410cda:	0f ac f7 01          	shrd   $0x1,%esi,%edi
410cde:	d1 ee                	shr    $1,%esi
410ce0:	43                   	inc    %ebx
410ce1:	38 41 04             	cmp    %al,0x4(%ecx)
410ce4:	0f 94 c0             	sete   %al
410ce7:	48                   	dec    %eax
410ce8:	25 80 03 00 00       	and    $0x380,%eax
410ced:	83 c0 7f             	add    $0x7f,%eax
410cf0:	3b d8                	cmp    %eax,%ebx
410cf2:	7e 1b                	jle    0x410d0f
410cf4:	51                   	push   %ecx
410cf5:	e9 8a fd ff ff       	jmp    0x410a84
410cfa:	7e 10                	jle    0x410d0c
410cfc:	8b 4d f4             	mov    -0xc(%ebp),%ecx
410cff:	8b d6                	mov    %esi,%edx
410d01:	8b c7                	mov    %edi,%eax
410d03:	e8 c8 56 01 00       	call   0x4263d0
410d08:	8b f2                	mov    %edx,%esi
410d0a:	8b f8                	mov    %eax,%edi
410d0c:	8b 5d f8             	mov    -0x8(%ebp),%ebx
410d0f:	8b 4d 1c             	mov    0x1c(%ebp),%ecx
410d12:	e8 6e 20 00 00       	call   0x412d85
410d17:	23 f8                	and    %eax,%edi
410d19:	23 f2                	and    %edx,%esi
410d1b:	8b 45 1c             	mov    0x1c(%ebp),%eax
410d1e:	8b c8                	mov    %eax,%ecx
410d20:	80 78 04 00          	cmpb   $0x0,0x4(%eax)
410d24:	74 13                	je     0x410d39
410d26:	e8 59 fc ff ff       	call   0x410984
410d2b:	50                   	push   %eax
410d2c:	56                   	push   %esi
410d2d:	57                   	push   %edi
410d2e:	53                   	push   %ebx
410d2f:	ff 75 14             	push   0x14(%ebp)
410d32:	e8 f8 e6 ff ff       	call   0x40f42f
410d37:	eb 11                	jmp    0x410d4a
410d39:	e8 6b fc ff ff       	call   0x4109a9
410d3e:	50                   	push   %eax
410d3f:	56                   	push   %esi
410d40:	57                   	push   %edi
410d41:	53                   	push   %ebx
410d42:	ff 75 14             	push   0x14(%ebp)
410d45:	e8 b5 e6 ff ff       	call   0x40f3ff
410d4a:	83 c4 14             	add    $0x14,%esp
410d4d:	5f                   	pop    %edi
410d4e:	5e                   	pop    %esi
410d4f:	5b                   	pop    %ebx
410d50:	8b e5                	mov    %ebp,%esp
410d52:	5d                   	pop    %ebp
410d53:	c3                   	ret
410d54:	8b ff                	mov    %edi,%edi
410d56:	55                   	push   %ebp
410d57:	8b ec                	mov    %esp,%ebp
410d59:	83 ec 1c             	sub    $0x1c,%esp
410d5c:	33 d2                	xor    %edx,%edx
410d5e:	53                   	push   %ebx
410d5f:	8b 5d 18             	mov    0x18(%ebp),%ebx
410d62:	56                   	push   %esi
410d63:	57                   	push   %edi
410d64:	8b 7d 0c             	mov    0xc(%ebp),%edi