56e8e4:	83 c2 ff             	add    $0xffffffff,%edx
56e8e7:	85 f6                	test   %esi,%esi
56e8e9:	7f e4                	jg     0x56e8cf
56e8eb:	8b c3                	mov    %ebx,%eax
56e8ed:	8b 55 fc             	mov    -0x4(%ebp),%edx
56e8f0:	c1 e0 02             	shl    $0x2,%eax
56e8f3:	8b 75 f4             	mov    -0xc(%ebp),%esi
56e8f6:	03 c2                	add    %edx,%eax
56e8f8:	83 e6 01             	and    $0x1,%esi
56e8fb:	83 fe 01             	cmp    $0x1,%esi
56e8fe:	8b 55 f0             	mov    -0x10(%ebp),%edx
56e901:	1b f6                	sbb    %esi,%esi
56e903:	8b 4d 10             	mov    0x10(%ebp),%ecx
56e906:	f7 de                	neg    %esi
56e908:	eb 27                	jmp    0x56e931
56e90a:	85 f6                	test   %esi,%esi
56e90c:	74 0d                	je     0x56e91b
56e90e:	83 6d e8 04          	subl   $0x4,-0x18(%ebp)
56e912:	8b 7d e8             	mov    -0x18(%ebp),%edi
56e915:	8b 3f                	mov    (%edi),%edi
56e917:	89 38                	mov    %edi,(%eax)
56e919:	eb 04                	jmp    0x56e91f
56e91b:	8b 39                	mov    (%ecx),%edi
56e91d:	89 38                	mov    %edi,(%eax)
56e91f:	8b fb                	mov    %ebx,%edi
56e921:	c1 e7 02             	shl    $0x2,%edi
56e924:	03 cf                	add    %edi,%ecx
56e926:	8b 7d ec             	mov    -0x14(%ebp),%edi
56e929:	c1 e7 02             	shl    $0x2,%edi
56e92c:	03 c7                	add    %edi,%eax
56e92e:	83 f6 01             	xor    $0x1,%esi
56e931:	8b fa                	mov    %edx,%edi
56e933:	83 c2 ff             	add    $0xffffffff,%edx
56e936:	85 ff                	test   %edi,%edi
56e938:	7f d0                	jg     0x56e90a
56e93a:	8d 85 e8 bf ff ff    	lea    -0x4018(%ebp),%eax
56e940:	8b 55 f8             	mov    -0x8(%ebp),%edx
56e943:	3b c2                	cmp    %edx,%eax
56e945:	74 08                	je     0x56e94f
56e947:	8b 45 f8             	mov    -0x8(%ebp),%eax
56e94a:	e8 35 9a 00 00       	call   0x578384
56e94f:	5f                   	pop    %edi
56e950:	5e                   	pop    %esi
56e951:	5b                   	pop    %ebx
56e952:	8b e5                	mov    %ebp,%esp
56e954:	5d                   	pop    %ebp
56e955:	c2 1c 00             	ret    $0x1c
56e958:	b8 02 00 00 00       	mov    $0x2,%eax
56e95d:	c3                   	ret
56e95e:	90                   	nop
56e95f:	90                   	nop
56e960:	e8 e3 c1 fe ff       	call   0x55ab48
56e965:	83 c8 ff             	or     $0xffffffff,%eax
56e968:	c3                   	ret
56e969:	90                   	nop
56e96a:	90                   	nop
56e96b:	90                   	nop
56e96c:	53                   	push   %ebx
56e96d:	56                   	push   %esi
56e96e:	57                   	push   %edi
56e96f:	8b f9                	mov    %ecx,%edi
56e971:	33 f6                	xor    %esi,%esi
56e973:	33 db                	xor    %ebx,%ebx
56e975:	83 fa 01             	cmp    $0x1,%edx
56e978:	7f 08                	jg     0x56e982
56e97a:	85 d2                	test   %edx,%edx
56e97c:	0f 85 de 00 00 00    	jne    0x56ea60
56e982:	6a 01                	push   $0x1
56e984:	b9 02 00 00 00       	mov    $0x2,%ecx
56e989:	33 d2                	xor    %edx,%edx
56e98b:	83 c8 ff             	or     $0xffffffff,%eax
56e98e:	e8 c5 92 00 00       	call   0x577c58
56e993:	8b f0                	mov    %eax,%esi
56e995:	85 c0                	test   %eax,%eax
56e997:	0f 84 28 01 00 00    	je     0x56eac5
56e99d:	8b 46 1c             	mov    0x1c(%esi),%eax
56e9a0:	8b 4e 04             	mov    0x4(%esi),%ecx
56e9a3:	83 ca ff             	or     $0xffffffff,%edx
56e9a6:	2b d1                	sub    %ecx,%edx
56e9a8:	8b 08                	mov    (%eax),%ecx
56e9aa:	c7 04 91 00 10 00 00 	movl   $0x1000,(%ecx,%edx,4)
56e9b1:	33 d2                	xor    %edx,%edx
56e9b3:	8b 4e 1c             	mov    0x1c(%esi),%ecx
56e9b6:	8b 46 04             	mov    0x4(%esi),%eax
56e9b9:	2b d0                	sub    %eax,%edx
56e9bb:	8b 01                	mov    (%ecx),%eax
56e9bd:	c7 04 90 00 20 00 00 	movl   $0x2000,(%eax,%edx,4)
56e9c4:	ba 01 00 00 00       	mov    $0x1,%edx
56e9c9:	8b 46 1c             	mov    0x1c(%esi),%eax
56e9cc:	8b 4e 04             	mov    0x4(%esi),%ecx
56e9cf:	2b d1                	sub    %ecx,%edx
56e9d1:	8b 08                	mov    (%eax),%ecx
56e9d3:	c7 04 91 00 10 00 00 	movl   $0x1000,(%ecx,%edx,4)
56e9da:	33 d2                	xor    %edx,%edx
56e9dc:	83 c8 ff             	or     $0xffffffff,%eax
56e9df:	b9 04 00 00 00       	mov    $0x4,%ecx
56e9e4:	6a 01                	push   $0x1
56e9e6:	e8 6d 92 00 00       	call   0x577c58
56e9eb:	8b d8                	mov    %eax,%ebx
56e9ed:	85 c0                	test   %eax,%eax
56e9ef:	0f 84 d0 00 00 00    	je     0x56eac5
56e9f5:	8b 43 1c             	mov    0x1c(%ebx),%eax
56e9f8:	8b 4b 04             	mov    0x4(%ebx),%ecx
56e9fb:	83 ca ff             	or     $0xffffffff,%edx
56e9fe:	2b d1                	sub    %ecx,%edx
56ea00:	8b 08                	mov    (%eax),%ecx
56ea02:	c7 04 91 00 fc ff ff 	movl   $0xfffffc00,(%ecx,%edx,4)
56ea09:	33 d2                	xor    %edx,%edx
56ea0b:	8b 4b 1c             	mov    0x1c(%ebx),%ecx
56ea0e:	8b 43 04             	mov    0x4(%ebx),%eax
56ea11:	2b d0                	sub    %eax,%edx
56ea13:	8b 01                	mov    (%ecx),%eax
56ea15:	c7 04 90 00 f8 ff ff 	movl   $0xfffff800,(%eax,%edx,4)
56ea1c:	ba 01 00 00 00       	mov    $0x1,%edx
56ea21:	8b 43 1c             	mov    0x1c(%ebx),%eax
56ea24:	8b 4b 04             	mov    0x4(%ebx),%ecx
56ea27:	2b d1                	sub    %ecx,%edx
56ea29:	8b 08                	mov    (%eax),%ecx
56ea2b:	c7 04 91 00 18 00 00 	movl   $0x1800,(%ecx,%edx,4)
56ea32:	ba 02 00 00 00       	mov    $0x2,%edx
56ea37:	8b 4b 1c             	mov    0x1c(%ebx),%ecx
56ea3a:	8b 43 04             	mov    0x4(%ebx),%eax
56ea3d:	2b d0                	sub    %eax,%edx
56ea3f:	8b 01                	mov    (%ecx),%eax
56ea41:	c7 04 90 00 f8 ff ff 	movl   $0xfffff800,(%eax,%edx,4)
56ea48:	ba 03 00 00 00       	mov    $0x3,%edx
56ea4d:	8b 43 1c             	mov    0x1c(%ebx),%eax
56ea50:	8b 4b 04             	mov    0x4(%ebx),%ecx
56ea53:	2b d1                	sub    %ecx,%edx
56ea55:	8b 08                	mov    (%eax),%ecx
56ea57:	c7 04 91 00 fc ff ff 	movl   $0xfffffc00,(%ecx,%edx,4)
56ea5e:	eb 5c                	jmp    0x56eabc
56ea60:	4a                   	dec    %edx
56ea61:	75 54                	jne    0x56eab7
56ea63:	6a 01                	push   $0x1
56ea65:	b9 01 00 00 00       	mov    $0x1,%ecx
56ea6a:	33 d2                	xor    %edx,%edx
56ea6c:	33 c0                	xor    %eax,%eax
56ea6e:	e8 e5 91 00 00       	call   0x577c58
56ea73:	8b f0                	mov    %eax,%esi
56ea75:	85 c0                	test   %eax,%eax
56ea77:	74 4c                	je     0x56eac5
56ea79:	8b 46 1c             	mov    0x1c(%esi),%eax
56ea7c:	8b 4e 04             	mov    0x4(%esi),%ecx
56ea7f:	33 d2                	xor    %edx,%edx
56ea81:	2b d1                	sub    %ecx,%edx
56ea83:	8b 08                	mov    (%eax),%ecx
56ea85:	c7 04 91 00 20 00 00 	movl   $0x2000,(%ecx,%edx,4)
56ea8c:	33 d2                	xor    %edx,%edx
56ea8e:	33 c0                	xor    %eax,%eax
56ea90:	b9 01 00 00 00       	mov    $0x1,%ecx
56ea95:	6a 01                	push   $0x1
56ea97:	e8 bc 91 00 00       	call   0x577c58
56ea9c:	8b d8                	mov    %eax,%ebx
56ea9e:	85 c0                	test   %eax,%eax
56eaa0:	74 23                	je     0x56eac5
56eaa2:	8b 43 1c             	mov    0x1c(%ebx),%eax
56eaa5:	8b 4b 04             	mov    0x4(%ebx),%ecx
56eaa8:	33 d2                	xor    %edx,%edx
56eaaa:	2b d1                	sub    %ecx,%edx
56eaac:	8b 08                	mov    (%eax),%ecx
56eaae:	c7 04 91 00 40 00 00 	movl   $0x4000,(%ecx,%edx,4)
56eab5:	eb 05                	jmp    0x56eabc
56eab7:	e8 8c c0 fe ff       	call   0x55ab48
56eabc:	89 37                	mov    %esi,(%edi)
56eabe:	89 5f 04             	mov    %ebx,0x4(%edi)
56eac1:	33 c0                	xor    %eax,%eax
56eac3:	eb 19                	jmp    0x56eade
56eac5:	85 f6                	test   %esi,%esi
56eac7:	74 07                	je     0x56ead0
56eac9:	8b c6                	mov    %esi,%eax
56eacb:	e8 c4 92 00 00       	call   0x577d94
56ead0:	85 db                	test   %ebx,%ebx
56ead2:	74 07                	je     0x56eadb
56ead4:	8b c3                	mov    %ebx,%eax
56ead6:	e8 b9 92 00 00       	call   0x577d94
56eadb:	83 c8 ff             	or     $0xffffffff,%eax
56eade:	5f                   	pop    %edi
56eadf:	5e                   	pop    %esi
56eae0:	5b                   	pop    %ebx
56eae1:	c3                   	ret
56eae2:	90                   	nop
56eae3:	90                   	nop
56eae4:	53                   	push   %ebx
56eae5:	56                   	push   %esi
56eae6:	57                   	push   %edi
56eae7:	55                   	push   %ebp
56eae8:	83 c4 c8             	add    $0xffffffc8,%esp
56eaeb:	8b ea                	mov    %edx,%ebp
56eaed:	f7 c5 00 00 01 00    	test   $0x10000,%ebp
56eaf3:	89 04 24             	mov    %eax,(%esp)
56eaf6:	8b f1                	mov    %ecx,%esi
56eaf8:	74 41                	je     0x56eb3b
56eafa:	c7 44 24 20 01 00 00 	movl   $0x1,0x20(%esp)
56eb01:	00
56eb02:	8b 46 14             	mov    0x14(%esi),%eax
56eb05:	48                   	dec    %eax
56eb06:	7e 19                	jle    0x56eb21
56eb08:	8b 56 1c             	mov    0x1c(%esi),%edx
56eb0b:	8b 46 1c             	mov    0x1c(%esi),%eax
56eb0e:	8b 5a 04             	mov    0x4(%edx),%ebx
56eb11:	8b 10                	mov    (%eax),%edx
56eb13:	2b da                	sub    %edx,%ebx
56eb15:	85 db                	test   %ebx,%ebx
56eb17:	79 03                	jns    0x56eb1c
56eb19:	83 c3 03             	add    $0x3,%ebx
56eb1c:	c1 fb 02             	sar    $0x2,%ebx
56eb1f:	eb 02                	jmp    0x56eb23
56eb21:	33 db                	xor    %ebx,%ebx
56eb23:	8b 46 0c             	mov    0xc(%esi),%eax
56eb26:	8b 56 04             	mov    0x4(%esi),%edx
56eb29:	2b c2                	sub    %edx,%eax
56eb2b:	89 44 24 24          	mov    %eax,0x24(%esp)
56eb2f:	8b 7e 08             	mov    0x8(%esi),%edi
56eb32:	8b 46 10             	mov    0x10(%esi),%eax
56eb35:	89 44 24 04          	mov    %eax,0x4(%esp)
56eb39:	eb 3d                	jmp    0x56eb78
56eb3b:	8b 56 14             	mov    0x14(%esi),%edx
56eb3e:	4a                   	dec    %edx
56eb3f:	7e 16                	jle    0x56eb57
56eb41:	8b 46 1c             	mov    0x1c(%esi),%eax
56eb44:	8b 50 04             	mov    0x4(%eax),%edx
56eb47:	8b 08                	mov    (%eax),%ecx
56eb49:	2b d1                	sub    %ecx,%edx
56eb4b:	85 d2                	test   %edx,%edx
56eb4d:	79 03                	jns    0x56eb52
56eb4f:	83 c2 03             	add    $0x3,%edx
56eb52:	c1 fa 02             	sar    $0x2,%edx
56eb55:	eb 02                	jmp    0x56eb59
56eb57:	33 d2                	xor    %edx,%edx
56eb59:	89 54 24 20          	mov    %edx,0x20(%esp)
56eb5d:	bb 01 00 00 00       	mov    $0x1,%ebx
56eb62:	8b 46 10             	mov    0x10(%esi),%eax
56eb65:	8b 56 08             	mov    0x8(%esi),%edx
56eb68:	2b c2                	sub    %edx,%eax
56eb6a:	89 44 24 24          	mov    %eax,0x24(%esp)
56eb6e:	8b 7e 04             	mov    0x4(%esi),%edi
56eb71:	8b 46 0c             	mov    0xc(%esi),%eax
56eb74:	89 44 24 04          	mov    %eax,0x4(%esp)
56eb78:	8b 54 24 04          	mov    0x4(%esp),%edx
56eb7c:	3b fa                	cmp    %edx,%edi
56eb7e:	7c 17                	jl     0x56eb97
56eb80:	68 6f 02 00 00       	push   $0x26f
56eb85:	68 5c 0d 6a 00       	push   $0x6a0d5c
56eb8a:	68 4a 0d 6a 00       	push   $0x6a0d4a
56eb8f:	e8 ac bf fe ff       	call   0x55ab40
56eb94:	83 c4 0c             	add    $0xc,%esp
56eb97:	8b 4e 08             	mov    0x8(%esi),%ecx
56eb9a:	8b 46 08             	mov    0x8(%esi),%eax
56eb9d:	2b c8                	sub    %eax,%ecx
56eb9f:	8b 56 1c             	mov    0x1c(%esi),%edx
56eba2:	8b 46 04             	mov    0x4(%esi),%eax
56eba5:	8b 0c 8a             	mov    (%edx,%ecx,4),%ecx
56eba8:	8b 56 04             	mov    0x4(%esi),%edx
56ebab:	2b c2                	sub    %edx,%eax
56ebad:	c1 e0 02             	shl    $0x2,%eax
56ebb0:	03 c8                	add    %eax,%ecx
56ebb2:	f7 c5 01 00 00 00    	test   $0x1,%ebp
56ebb8:	8b f1                	mov    %ecx,%esi
56ebba:	0f 84 02 03 00 00    	je     0x56eec2
56ebc0:	e9 7a 01 00 00       	jmp    0x56ed3f
56ebc5:	53                   	push   %ebx
56ebc6:	8d 4c 24 0c          	lea    0xc(%esp),%ecx
56ebca:	51                   	push   %ecx
56ebcb:	8d 44 24 14          	lea    0x14(%esp),%eax
56ebcf:	50                   	push   %eax
56ebd0:	8d 54 24 1c          	lea    0x1c(%esp),%edx
56ebd4:	52                   	push   %edx
56ebd5:	8d 4c 24 24          	lea    0x24(%esp),%ecx
56ebd9:	51                   	push   %ecx
56ebda:	8d 44 24 2c          	lea    0x2c(%esp),%eax
56ebde:	50                   	push   %eax
56ebdf:	8d 54 24 34          	lea    0x34(%esp),%edx
56ebe3:	52                   	push   %edx
56ebe4:	8b 4c 24 20          	mov    0x20(%esp),%ecx
56ebe8:	8b d7                	mov    %edi,%edx
56ebea:	8b c6                	mov    %esi,%eax
56ebec:	e8 eb f7 ff ff       	call   0x56e3dc
56ebf1:	8b 4c 24 04          	mov    0x4(%esp),%ecx
56ebf5:	2b cf                	sub    %edi,%ecx
56ebf7:	49                   	dec    %ecx
56ebf8:	0f 8e 2a 01 00 00    	jle    0x56ed28
56ebfe:	53                   	push   %ebx
56ebff:	8b 44 24 0c          	mov    0xc(%esp),%eax
56ec03:	50                   	push   %eax
56ec04:	8b 54 24 14          	mov    0x14(%esp),%edx
56ec08:	52                   	push   %edx
56ec09:	8b 4c 24 1c          	mov    0x1c(%esp),%ecx
56ec0d:	51                   	push   %ecx
56ec0e:	8b 44 24 24          	mov    0x24(%esp),%eax
56ec12:	50                   	push   %eax
56ec13:	8b c6                	mov    %esi,%eax
56ec15:	8b 54 24 2c          	mov    0x2c(%esp),%edx
56ec19:	52                   	push   %edx
56ec1a:	8b d7                	mov    %edi,%edx
56ec1c:	8b 4c 24 34          	mov    0x34(%esp),%ecx
56ec20:	51                   	push   %ecx
56ec21:	8b 4c 24 20          	mov    0x20(%esp),%ecx
56ec25:	e8 72 f8 ff ff       	call   0x56e49c
56ec2a:	8b 4c 24 1c          	mov    0x1c(%esp),%ecx
56ec2e:	8b 6c 24 18          	mov    0x18(%esp),%ebp
56ec32:	2b cd                	sub    %ebp,%ecx
56ec34:	8b 44 24 08          	mov    0x8(%esp),%eax
56ec38:	8b 54 24 14          	mov    0x14(%esp),%edx
56ec3c:	89 4c 24 28          	mov    %ecx,0x28(%esp)
56ec40:	8b 4c 24 18          	mov    0x18(%esp),%ecx
56ec44:	8b 6c 24 0c          	mov    0xc(%esp),%ebp
56ec48:	3b cd                	cmp    %ebp,%ecx
56ec4a:	7d 0f                	jge    0x56ec5b
56ec4c:	8b 08                	mov    (%eax),%ecx
56ec4e:	29 0a                	sub    %ecx,(%edx)
56ec50:	8b cb                	mov    %ebx,%ecx
56ec52:	c1 e1 02             	shl    $0x2,%ecx
56ec55:	03 d1                	add    %ecx,%edx
56ec57:	ff 4c 24 28          	decl   0x28(%esp)
56ec5b:	8b 4c 24 1c          	mov    0x1c(%esp),%ecx
56ec5f:	8b 6c 24 10          	mov    0x10(%esp),%ebp
56ec63:	3b cd                	cmp    %ebp,%ecx
56ec65:	7c 1a                	jl     0x56ec81
56ec67:	ff 4c 24 28          	decl   0x28(%esp)
56ec6b:	eb 14                	jmp    0x56ec81
56ec6d:	8b 08                	mov    (%eax),%ecx
56ec6f:	8b 2c 98             	mov    (%eax,%ebx,4),%ebp
56ec72:	03 cd                	add    %ebp,%ecx
56ec74:	d1 f9                	sar    $1,%ecx
56ec76:	29 0a                	sub    %ecx,(%edx)
56ec78:	8b cb                	mov    %ebx,%ecx
56ec7a:	c1 e1 02             	shl    $0x2,%ecx
56ec7d:	03 d1                	add    %ecx,%edx
56ec7f:	03 c1                	add    %ecx,%eax
56ec81:	8b 4c 24 28          	mov    0x28(%esp),%ecx
56ec85:	83 44 24 28 ff       	addl   $0xffffffff,0x28(%esp)
56ec8a:	85 c9                	test   %ecx,%ecx
56ec8c:	7f df                	jg     0x56ec6d
56ec8e:	8b 4c 24 1c          	mov    0x1c(%esp),%ecx
56ec92:	8b 6c 24 10          	mov    0x10(%esp),%ebp
56ec96:	3b cd                	cmp    %ebp,%ecx
56ec98:	7c 04                	jl     0x56ec9e
56ec9a:	8b 00                	mov    (%eax),%eax
56ec9c:	29 02                	sub    %eax,(%edx)
56ec9e:	8b 4c 24 10          	mov    0x10(%esp),%ecx
56eca2:	8b 6c 24 0c          	mov    0xc(%esp),%ebp
56eca6:	2b cd                	sub    %ebp,%ecx
56eca8:	8b 54 24 08          	mov    0x8(%esp),%edx
56ecac:	8b 44 24 14          	mov    0x14(%esp),%eax
56ecb0:	89 4c 24 2c          	mov    %ecx,0x2c(%esp)
56ecb4:	8b 4c 24 18          	mov    0x18(%esp),%ecx
56ecb8:	8b 6c 24 0c          	mov    0xc(%esp),%ebp
56ecbc:	3b cd                	cmp    %ebp,%ecx
56ecbe:	7c 17                	jl     0x56ecd7