40bfd3:	83 c8 ff             	or     $0xffffffff,%eax
40bfd6:	e9 11 01 00 00       	jmp    0x40c0ec
40bfdb:	85 db                	test   %ebx,%ebx
40bfdd:	74 04                	je     0x40bfe3
40bfdf:	85 c0                	test   %eax,%eax
40bfe1:	74 e0                	je     0x40bfc3
40bfe3:	56                   	push   %esi
40bfe4:	57                   	push   %edi
40bfe5:	ff 75 1c             	push   0x1c(%ebp)
40bfe8:	8d 8d 7c fb ff ff    	lea    -0x484(%ebp),%ecx
40bfee:	e8 d5 07 00 00       	call   0x40c7c8
40bff3:	8b 4d 08             	mov    0x8(%ebp),%ecx
40bff6:	8d bd 90 fb ff ff    	lea    -0x470(%ebp),%edi
40bffc:	33 c0                	xor    %eax,%eax
40bffe:	33 d2                	xor    %edx,%edx
40c000:	ab                   	stos   %eax,%es:(%edi)
40c001:	ab                   	stos   %eax,%es:(%edi)
40c002:	ab                   	stos   %eax,%es:(%edi)
40c003:	ab                   	stos   %eax,%es:(%edi)
40c004:	8b c1                	mov    %ecx,%eax
40c006:	8b bd a0 fb ff ff    	mov    -0x460(%ebp),%edi
40c00c:	83 e0 02             	and    $0x2,%eax
40c00f:	89 85 8c fb ff ff    	mov    %eax,-0x474(%ebp)
40c015:	0b c2                	or     %edx,%eax
40c017:	89 bd 90 fb ff ff    	mov    %edi,-0x470(%ebp)
40c01d:	89 9d 94 fb ff ff    	mov    %ebx,-0x46c(%ebp)
40c023:	89 95 98 fb ff ff    	mov    %edx,-0x468(%ebp)
40c029:	75 0a                	jne    0x40c035
40c02b:	88 95 9c fb ff ff    	mov    %dl,-0x464(%ebp)
40c031:	85 ff                	test   %edi,%edi
40c033:	75 07                	jne    0x40c03c
40c035:	c6 85 9c fb ff ff 01 	movb   $0x1,-0x464(%ebp)
40c03c:	ff 75 20             	push   0x20(%ebp)
40c03f:	8d 85 90 fb ff ff    	lea    -0x470(%ebp),%eax
40c045:	89 85 a0 fb ff ff    	mov    %eax,-0x460(%ebp)
40c04b:	8d 85 80 fb ff ff    	lea    -0x480(%ebp),%eax
40c051:	50                   	push   %eax
40c052:	ff 75 18             	push   0x18(%ebp)
40c055:	8d 85 a0 fb ff ff    	lea    -0x460(%ebp),%eax
40c05b:	ff 75 0c             	push   0xc(%ebp)
40c05e:	51                   	push   %ecx
40c05f:	50                   	push   %eax
40c060:	8d 8d a4 fb ff ff    	lea    -0x45c(%ebp),%ecx
40c066:	e8 f3 06 00 00       	call   0x40c75e
40c06b:	8d 8d a4 fb ff ff    	lea    -0x45c(%ebp),%ecx
40c071:	e8 0a 0d 00 00       	call   0x40cd80
40c076:	8b f0                	mov    %eax,%esi
40c078:	85 ff                	test   %edi,%edi
40c07a:	74 4b                	je     0x40c0c7
40c07c:	8b 45 08             	mov    0x8(%ebp),%eax
40c07f:	33 c9                	xor    %ecx,%ecx
40c081:	83 e0 01             	and    $0x1,%eax
40c084:	0b c1                	or     %ecx,%eax
40c086:	74 1c                	je     0x40c0a4
40c088:	85 db                	test   %ebx,%ebx
40c08a:	75 04                	jne    0x40c090
40c08c:	85 f6                	test   %esi,%esi
40c08e:	75 6f                	jne    0x40c0ff
40c090:	8b 85 98 fb ff ff    	mov    -0x468(%ebp),%eax
40c096:	3b c3                	cmp    %ebx,%eax
40c098:	75 2a                	jne    0x40c0c4
40c09a:	85 f6                	test   %esi,%esi
40c09c:	78 29                	js     0x40c0c7
40c09e:	3b f3                	cmp    %ebx,%esi
40c0a0:	76 25                	jbe    0x40c0c7
40c0a2:	eb 5b                	jmp    0x40c0ff
40c0a4:	8b 85 8c fb ff ff    	mov    -0x474(%ebp),%eax
40c0aa:	0b c1                	or     %ecx,%eax
40c0ac:	74 4d                	je     0x40c0fb
40c0ae:	85 db                	test   %ebx,%ebx
40c0b0:	74 15                	je     0x40c0c7
40c0b2:	85 f6                	test   %esi,%esi
40c0b4:	79 04                	jns    0x40c0ba
40c0b6:	88 0f                	mov    %cl,(%edi)
40c0b8:	eb 0d                	jmp    0x40c0c7
40c0ba:	8b 85 98 fb ff ff    	mov    -0x468(%ebp),%eax
40c0c0:	3b c3                	cmp    %ebx,%eax
40c0c2:	74 4d                	je     0x40c111
40c0c4:	88 0c 07             	mov    %cl,(%edi,%eax,1)
40c0c7:	8d 8d e4 fb ff ff    	lea    -0x41c(%ebp),%ecx
40c0cd:	e8 79 07 00 00       	call   0x40c84b
40c0d2:	80 bd 88 fb ff ff 00 	cmpb   $0x0,-0x478(%ebp)
40c0d9:	74 0d                	je     0x40c0e8
40c0db:	8b 8d 7c fb ff ff    	mov    -0x484(%ebp),%ecx
40c0e1:	83 a1 50 03 00 00 fd 	andl   $0xfffffffd,0x350(%ecx)
40c0e8:	5f                   	pop    %edi
40c0e9:	8b c6                	mov    %esi,%eax
40c0eb:	5e                   	pop    %esi
40c0ec:	8b 4d fc             	mov    -0x4(%ebp),%ecx
40c0ef:	33 cd                	xor    %ebp,%ecx
40c0f1:	5b                   	pop    %ebx
40c0f2:	e8 69 af ff ff       	call   0x407060
40c0f7:	8b e5                	mov    %ebp,%esp
40c0f9:	5d                   	pop    %ebp
40c0fa:	c3                   	ret
40c0fb:	85 db                	test   %ebx,%ebx
40c0fd:	75 05                	jne    0x40c104
40c0ff:	83 ce ff             	or     $0xffffffff,%esi
40c102:	eb c3                	jmp    0x40c0c7
40c104:	8b 85 98 fb ff ff    	mov    -0x468(%ebp),%eax
40c10a:	3b c3                	cmp    %ebx,%eax
40c10c:	75 b6                	jne    0x40c0c4
40c10e:	6a fe                	push   $0xfffffffe
40c110:	5e                   	pop    %esi
40c111:	88 4c 1f ff          	mov    %cl,-0x1(%edi,%ebx,1)
40c115:	eb b0                	jmp    0x40c0c7
40c117:	83 b9 04 04 00 00 00 	cmpl   $0x0,0x404(%ecx)
40c11e:	75 06                	jne    0x40c126
40c120:	b8 00 02 00 00       	mov    $0x200,%eax
40c125:	c3                   	ret
40c126:	8b 81 00 04 00 00    	mov    0x400(%ecx),%eax
40c12c:	d1 e8                	shr    $1,%eax
40c12e:	c3                   	ret
40c12f:	8b ff                	mov    %edi,%edi
40c131:	55                   	push   %ebp
40c132:	8b ec                	mov    %esp,%ebp
40c134:	51                   	push   %ecx
40c135:	83 c8 ff             	or     $0xffffffff,%eax
40c138:	33 d2                	xor    %edx,%edx
40c13a:	56                   	push   %esi
40c13b:	8b 75 08             	mov    0x8(%ebp),%esi
40c13e:	f7 f6                	div    %esi
40c140:	57                   	push   %edi
40c141:	83 e0 fe             	and    $0xfffffffe,%eax
40c144:	8b f9                	mov    %ecx,%edi
40c146:	83 f8 02             	cmp    $0x2,%eax
40c149:	73 0f                	jae    0x40c15a
40c14b:	e8 1b 89 00 00       	call   0x414a6b
40c150:	c7 00 0c 00 00 00    	movl   $0xc,(%eax)
40c156:	32 c0                	xor    %al,%al
40c158:	eb 53                	jmp    0x40c1ad
40c15a:	53                   	push   %ebx
40c15b:	33 db                	xor    %ebx,%ebx
40c15d:	03 f6                	add    %esi,%esi
40c15f:	39 9f 04 04 00 00    	cmp    %ebx,0x404(%edi)
40c165:	75 08                	jne    0x40c16f
40c167:	81 fe 00 04 00 00    	cmp    $0x400,%esi
40c16d:	76 08                	jbe    0x40c177
40c16f:	3b b7 00 04 00 00    	cmp    0x400(%edi),%esi
40c175:	77 04                	ja     0x40c17b
40c177:	b0 01                	mov    $0x1,%al
40c179:	eb 31                	jmp    0x40c1ac
40c17b:	56                   	push   %esi
40c17c:	e8 c9 8b 00 00       	call   0x414d4a
40c181:	89 45 fc             	mov    %eax,-0x4(%ebp)
40c184:	59                   	pop    %ecx
40c185:	85 c0                	test   %eax,%eax
40c187:	74 1a                	je     0x40c1a3
40c189:	8d 45 fc             	lea    -0x4(%ebp),%eax
40c18c:	50                   	push   %eax
40c18d:	8d 8f 04 04 00 00    	lea    0x404(%edi),%ecx
40c193:	e8 cd 06 00 00       	call   0x40c865
40c198:	8b 45 fc             	mov    -0x4(%ebp),%eax
40c19b:	b3 01                	mov    $0x1,%bl
40c19d:	89 b7 00 04 00 00    	mov    %esi,0x400(%edi)
40c1a3:	50                   	push   %eax
40c1a4:	e8 67 8b 00 00       	call   0x414d10
40c1a9:	59                   	pop    %ecx
40c1aa:	8a c3                	mov    %bl,%al
40c1ac:	5b                   	pop    %ebx
40c1ad:	5f                   	pop    %edi
40c1ae:	5e                   	pop    %esi
40c1af:	8b e5                	mov    %ebp,%esp
40c1b1:	5d                   	pop    %ebp
40c1b2:	c2 04 00             	ret    $0x4
40c1b5:	8b ff                	mov    %edi,%edi
40c1b7:	55                   	push   %ebp
40c1b8:	8b ec                	mov    %esp,%ebp
40c1ba:	8b 45 14             	mov    0x14(%ebp),%eax
40c1bd:	48                   	dec    %eax
40c1be:	83 e8 01             	sub    $0x1,%eax
40c1c1:	74 2e                	je     0x40c1f1
40c1c3:	83 e8 01             	sub    $0x1,%eax
40c1c6:	74 25                	je     0x40c1ed
40c1c8:	83 e8 09             	sub    $0x9,%eax
40c1cb:	74 20                	je     0x40c1ed
40c1cd:	83 7d 14 0d          	cmpl   $0xd,0x14(%ebp)
40c1d1:	74 1e                	je     0x40c1f1
40c1d3:	8a 45 10             	mov    0x10(%ebp),%al
40c1d6:	3c 63                	cmp    $0x63,%al
40c1d8:	74 08                	je     0x40c1e2
40c1da:	3c 73                	cmp    $0x73,%al
40c1dc:	74 04                	je     0x40c1e2
40c1de:	32 c9                	xor    %cl,%cl
40c1e0:	eb 02                	jmp    0x40c1e4
40c1e2:	b1 01                	mov    $0x1,%cl
40c1e4:	33 c0                	xor    %eax,%eax
40c1e6:	84 c9                	test   %cl,%cl
40c1e8:	0f 94 c0             	sete   %al
40c1eb:	5d                   	pop    %ebp
40c1ec:	c3                   	ret
40c1ed:	b0 01                	mov    $0x1,%al
40c1ef:	5d                   	pop    %ebp
40c1f0:	c3                   	ret
40c1f1:	32 c0                	xor    %al,%al
40c1f3:	5d                   	pop    %ebp
40c1f4:	c3                   	ret
40c1f5:	8b ff                	mov    %edi,%edi
40c1f7:	55                   	push   %ebp
40c1f8:	8b ec                	mov    %esp,%ebp
40c1fa:	8b 45 14             	mov    0x14(%ebp),%eax
40c1fd:	48                   	dec    %eax
40c1fe:	83 e8 01             	sub    $0x1,%eax
40c201:	74 3d                	je     0x40c240
40c203:	83 e8 01             	sub    $0x1,%eax
40c206:	74 34                	je     0x40c23c
40c208:	83 e8 09             	sub    $0x9,%eax
40c20b:	74 2f                	je     0x40c23c
40c20d:	83 7d 14 0d          	cmpl   $0xd,0x14(%ebp)
40c211:	74 29                	je     0x40c23c
40c213:	8b 45 08             	mov    0x8(%ebp),%eax
40c216:	33 c9                	xor    %ecx,%ecx
40c218:	83 e0 04             	and    $0x4,%eax
40c21b:	b2 01                	mov    $0x1,%dl
40c21d:	0b c1                	or     %ecx,%eax
40c21f:	75 02                	jne    0x40c223
40c221:	8a d1                	mov    %cl,%dl
40c223:	66 83 7d 10 63       	cmpw   $0x63,0x10(%ebp)
40c228:	74 07                	je     0x40c231
40c22a:	66 83 7d 10 73       	cmpw   $0x73,0x10(%ebp)
40c22f:	75 02                	jne    0x40c233
40c231:	b1 01                	mov    $0x1,%cl
40c233:	33 c0                	xor    %eax,%eax
40c235:	3a d1                	cmp    %cl,%dl
40c237:	0f 94 c0             	sete   %al
40c23a:	5d                   	pop    %ebp
40c23b:	c3                   	ret
40c23c:	b0 01                	mov    $0x1,%al
40c23e:	5d                   	pop    %ebp
40c23f:	c3                   	ret
40c240:	32 c0                	xor    %al,%al
40c242:	5d                   	pop    %ebp
40c243:	c3                   	ret
40c244:	8b ff                	mov    %edi,%edi
40c246:	56                   	push   %esi
40c247:	8b f1                	mov    %ecx,%esi
40c249:	57                   	push   %edi
40c24a:	8b be 04 04 00 00    	mov    0x404(%esi),%edi
40c250:	e8 c2 fe ff ff       	call   0x40c117
40c255:	85 ff                	test   %edi,%edi
40c257:	75 04                	jne    0x40c25d
40c259:	03 c6                	add    %esi,%eax
40c25b:	eb 02                	jmp    0x40c25f
40c25d:	03 c7                	add    %edi,%eax
40c25f:	5f                   	pop    %edi
40c260:	5e                   	pop    %esi
40c261:	c3                   	ret
40c262:	8b ff                	mov    %edi,%edi
40c264:	55                   	push   %ebp
40c265:	8b ec                	mov    %esp,%ebp
40c267:	53                   	push   %ebx
40c268:	56                   	push   %esi
40c269:	8b f1                	mov    %ecx,%esi
40c26b:	57                   	push   %edi
40c26c:	8d 4e 40             	lea    0x40(%esi),%ecx
40c26f:	8b b9 04 04 00 00    	mov    0x404(%ecx),%edi
40c275:	85 ff                	test   %edi,%edi
40c277:	75 02                	jne    0x40c27b
40c279:	8b f9                	mov    %ecx,%edi
40c27b:	e8 97 fe ff ff       	call   0x40c117
40c280:	8b 5d 08             	mov    0x8(%ebp),%ebx
40c283:	48                   	dec    %eax
40c284:	03 f8                	add    %eax,%edi
40c286:	89 7e 34             	mov    %edi,0x34(%esi)
40c289:	8b 4e 28             	mov    0x28(%esi),%ecx
40c28c:	85 c9                	test   %ecx,%ecx
40c28e:	7f 04                	jg     0x40c294
40c290:	85 db                	test   %ebx,%ebx
40c292:	74 30                	je     0x40c2c4
40c294:	33 d2                	xor    %edx,%edx
40c296:	8b c3                	mov    %ebx,%eax
40c298:	f7 75 0c             	divl   0xc(%ebp)
40c29b:	49                   	dec    %ecx
40c29c:	80 c2 30             	add    $0x30,%dl
40c29f:	89 4e 28             	mov    %ecx,0x28(%esi)
40c2a2:	8b d8                	mov    %eax,%ebx
40c2a4:	80 fa 39             	cmp    $0x39,%dl
40c2a7:	7e 11                	jle    0x40c2ba
40c2a9:	80 7d 10 00          	cmpb   $0x0,0x10(%ebp)
40c2ad:	0f 94 c0             	sete   %al
40c2b0:	fe c8                	dec    %al
40c2b2:	24 e0                	and    $0xe0,%al
40c2b4:	04 61                	add    $0x61,%al
40c2b6:	2c 3a                	sub    $0x3a,%al
40c2b8:	02 d0                	add    %al,%dl
40c2ba:	8b 46 34             	mov    0x34(%esi),%eax
40c2bd:	88 10                	mov    %dl,(%eax)
40c2bf:	ff 4e 34             	decl   0x34(%esi)
40c2c2:	eb c5                	jmp    0x40c289
40c2c4:	8b 46 34             	mov    0x34(%esi),%eax
40c2c7:	2b f8                	sub    %eax,%edi
40c2c9:	89 7e 38             	mov    %edi,0x38(%esi)
40c2cc:	40                   	inc    %eax
40c2cd:	5f                   	pop    %edi
40c2ce:	89 46 34             	mov    %eax,0x34(%esi)
40c2d1:	5e                   	pop    %esi
40c2d2:	5b                   	pop    %ebx
40c2d3:	5d                   	pop    %ebp
40c2d4:	c2 0c 00             	ret    $0xc
40c2d7:	8b ff                	mov    %edi,%edi
40c2d9:	55                   	push   %ebp
40c2da:	8b ec                	mov    %esp,%ebp
40c2dc:	53                   	push   %ebx
40c2dd:	56                   	push   %esi
40c2de:	8b f1                	mov    %ecx,%esi
40c2e0:	57                   	push   %edi
40c2e1:	8d 4e 40             	lea    0x40(%esi),%ecx
40c2e4:	8b b9 04 04 00 00    	mov    0x404(%ecx),%edi
40c2ea:	85 ff                	test   %edi,%edi
40c2ec:	75 02                	jne    0x40c2f0
40c2ee:	8b f9                	mov    %ecx,%edi
40c2f0:	e8 22 fe ff ff       	call   0x40c117
40c2f5:	8b 5d 08             	mov    0x8(%ebp),%ebx
40c2f8:	48                   	dec    %eax
40c2f9:	03 f8                	add    %eax,%edi
40c2fb:	89 7e 34             	mov    %edi,0x34(%esi)
40c2fe:	8b 4e 28             	mov    0x28(%esi),%ecx
40c301:	85 c9                	test   %ecx,%ecx
40c303:	7f 04                	jg     0x40c309
40c305:	85 db                	test   %ebx,%ebx
40c307:	74 30                	je     0x40c339
40c309:	33 d2                	xor    %edx,%edx
40c30b:	8b c3                	mov    %ebx,%eax
40c30d:	f7 75 0c             	divl   0xc(%ebp)
40c310:	49                   	dec    %ecx
40c311:	80 c2 30             	add    $0x30,%dl
40c314:	89 4e 28             	mov    %ecx,0x28(%esi)
40c317:	8b d8                	mov    %eax,%ebx
40c319:	80 fa 39             	cmp    $0x39,%dl
40c31c:	7e 11                	jle    0x40c32f
40c31e:	80 7d 10 00          	cmpb   $0x0,0x10(%ebp)
40c322:	0f 94 c0             	sete   %al
40c325:	fe c8                	dec    %al
40c327:	24 e0                	and    $0xe0,%al
40c329:	04 61                	add    $0x61,%al
40c32b:	2c 3a                	sub    $0x3a,%al
40c32d:	02 d0                	add    %al,%dl
40c32f:	8b 46 34             	mov    0x34(%esi),%eax
40c332:	88 10                	mov    %dl,(%eax)
40c334:	ff 4e 34             	decl   0x34(%esi)
40c337:	eb c5                	jmp    0x40c2fe
40c339:	8b 46 34             	mov    0x34(%esi),%eax
40c33c:	2b f8                	sub    %eax,%edi
40c33e:	89 7e 38             	mov    %edi,0x38(%esi)
40c341:	40                   	inc    %eax
40c342:	5f                   	pop    %edi
40c343:	89 46 34             	mov    %eax,0x34(%esi)
40c346:	5e                   	pop    %esi
40c347:	5b                   	pop    %ebx
40c348:	5d                   	pop    %ebp