40d1eb:	83 cf ff             	or     $0xffffffff,%edi
40d1ee:	eb 13                	jmp    0x40d203
40d1f0:	83 7e 1c 00          	cmpl   $0x0,0x1c(%esi)
40d1f4:	74 0d                	je     0x40d203
40d1f6:	ff 76 1c             	push   0x1c(%esi)
40d1f9:	e8 0d 5f 00 00       	call   0x41310b
40d1fe:	83 66 1c 00          	andl   $0x0,0x1c(%esi)
40d202:	59                   	pop    %ecx
40d203:	56                   	push   %esi
40d204:	e8 9f 8a 00 00       	call   0x415ca8
40d209:	59                   	pop    %ecx
40d20a:	8b c7                	mov    %edi,%eax
40d20c:	5f                   	pop    %edi
40d20d:	5e                   	pop    %esi
40d20e:	5d                   	pop    %ebp
40d20f:	c3                   	ret
40d210:	6a 10                	push   $0x10
40d212:	68 b8 14 43 00       	push   $0x4314b8
40d217:	e8 a4 ad ff ff       	call   0x407fc0
40d21c:	8b 75 08             	mov    0x8(%ebp),%esi
40d21f:	89 75 e0             	mov    %esi,-0x20(%ebp)
40d222:	85 f6                	test   %esi,%esi
40d224:	75 15                	jne    0x40d23b
40d226:	e8 d0 1b 00 00       	call   0x40edfb
40d22b:	c7 00 16 00 00 00    	movl   $0x16,(%eax)
40d231:	e8 4b fe ff ff       	call   0x40d081
40d236:	83 c8 ff             	or     $0xffffffff,%eax
40d239:	eb 3c                	jmp    0x40d277
40d23b:	8b 46 0c             	mov    0xc(%esi),%eax
40d23e:	90                   	nop
40d23f:	c1 e8 0c             	shr    $0xc,%eax
40d242:	56                   	push   %esi
40d243:	a8 01                	test   $0x1,%al
40d245:	74 08                	je     0x40d24f
40d247:	e8 5c 8a 00 00       	call   0x415ca8
40d24c:	59                   	pop    %ecx
40d24d:	eb e7                	jmp    0x40d236
40d24f:	83 65 e4 00          	andl   $0x0,-0x1c(%ebp)
40d253:	e8 2e e5 ff ff       	call   0x40b786
40d258:	59                   	pop    %ecx
40d259:	83 65 fc 00          	andl   $0x0,-0x4(%ebp)
40d25d:	56                   	push   %esi
40d25e:	e8 36 ff ff ff       	call   0x40d199
40d263:	59                   	pop    %ecx
40d264:	8b f0                	mov    %eax,%esi
40d266:	89 75 e4             	mov    %esi,-0x1c(%ebp)
40d269:	c7 45 fc fe ff ff ff 	movl   $0xfffffffe,-0x4(%ebp)
40d270:	e8 15 00 00 00       	call   0x40d28a
40d275:	8b c6                	mov    %esi,%eax
40d277:	8b 4d f0             	mov    -0x10(%ebp),%ecx
40d27a:	64 89 0d 00 00 00 00 	mov    %ecx,%fs:0x0
40d281:	59                   	pop    %ecx
40d282:	5f                   	pop    %edi
40d283:	5e                   	pop    %esi
40d284:	5b                   	pop    %ebx
40d285:	c9                   	leave
40d286:	c3                   	ret
40d287:	8b 75 e4             	mov    -0x1c(%ebp),%esi
40d28a:	ff 75 e0             	push   -0x20(%ebp)
40d28d:	e8 08 e5 ff ff       	call   0x40b79a
40d292:	59                   	pop    %ecx
40d293:	c3                   	ret
40d294:	6a 08                	push   $0x8
40d296:	68 d8 14 43 00       	push   $0x4314d8
40d29b:	e8 20 ad ff ff       	call   0x407fc0
40d2a0:	8b 45 08             	mov    0x8(%ebp),%eax
40d2a3:	ff 30                	push   (%eax)
40d2a5:	e8 dc e4 ff ff       	call   0x40b786
40d2aa:	59                   	pop    %ecx
40d2ab:	83 65 fc 00          	andl   $0x0,-0x4(%ebp)
40d2af:	8b 75 0c             	mov    0xc(%ebp),%esi
40d2b2:	ff 76 04             	push   0x4(%esi)
40d2b5:	8b 06                	mov    (%esi),%eax
40d2b7:	ff 30                	push   (%eax)
40d2b9:	e8 bb 01 00 00       	call   0x40d479
40d2be:	59                   	pop    %ecx
40d2bf:	59                   	pop    %ecx
40d2c0:	84 c0                	test   %al,%al
40d2c2:	74 32                	je     0x40d2f6
40d2c4:	8b 46 08             	mov    0x8(%esi),%eax
40d2c7:	80 38 00             	cmpb   $0x0,(%eax)
40d2ca:	75 0e                	jne    0x40d2da
40d2cc:	8b 06                	mov    (%esi),%eax
40d2ce:	8b 00                	mov    (%eax),%eax
40d2d0:	8b 40 0c             	mov    0xc(%eax),%eax
40d2d3:	90                   	nop
40d2d4:	d1 e8                	shr    $1,%eax
40d2d6:	a8 01                	test   $0x1,%al
40d2d8:	74 1c                	je     0x40d2f6
40d2da:	8b 06                	mov    (%esi),%eax
40d2dc:	ff 30                	push   (%eax)
40d2de:	e8 53 02 00 00       	call   0x40d536
40d2e3:	59                   	pop    %ecx
40d2e4:	83 f8 ff             	cmp    $0xffffffff,%eax
40d2e7:	74 07                	je     0x40d2f0
40d2e9:	8b 46 04             	mov    0x4(%esi),%eax
40d2ec:	ff 00                	incl   (%eax)
40d2ee:	eb 06                	jmp    0x40d2f6
40d2f0:	8b 46 0c             	mov    0xc(%esi),%eax
40d2f3:	83 08 ff             	orl    $0xffffffff,(%eax)
40d2f6:	c7 45 fc fe ff ff ff 	movl   $0xfffffffe,-0x4(%ebp)
40d2fd:	e8 12 00 00 00       	call   0x40d314
40d302:	8b 4d f0             	mov    -0x10(%ebp),%ecx
40d305:	64 89 0d 00 00 00 00 	mov    %ecx,%fs:0x0
40d30c:	59                   	pop    %ecx
40d30d:	5f                   	pop    %edi
40d30e:	5e                   	pop    %esi
40d30f:	5b                   	pop    %ebx
40d310:	c9                   	leave
40d311:	c2 0c 00             	ret    $0xc
40d314:	8b 45 10             	mov    0x10(%ebp),%eax
40d317:	ff 30                	push   (%eax)
40d319:	e8 7c e4 ff ff       	call   0x40b79a
40d31e:	59                   	pop    %ecx
40d31f:	c3                   	ret
40d320:	6a 2c                	push   $0x2c
40d322:	68 f8 14 43 00       	push   $0x4314f8
40d327:	e8 94 ac ff ff       	call   0x407fc0
40d32c:	8b 45 08             	mov    0x8(%ebp),%eax
40d32f:	ff 30                	push   (%eax)
40d331:	e8 ed fd ff ff       	call   0x40d123
40d336:	59                   	pop    %ecx
40d337:	83 65 fc 00          	andl   $0x0,-0x4(%ebp)
40d33b:	8b 35 18 46 43 00    	mov    0x434618,%esi
40d341:	a1 14 46 43 00       	mov    0x434614,%eax
40d346:	8d 1c 86             	lea    (%esi,%eax,4),%ebx
40d349:	8b 7d 0c             	mov    0xc(%ebp),%edi
40d34c:	89 75 d4             	mov    %esi,-0x2c(%ebp)
40d34f:	3b f3                	cmp    %ebx,%esi
40d351:	74 4f                	je     0x40d3a2
40d353:	8b 06                	mov    (%esi),%eax
40d355:	89 45 e0             	mov    %eax,-0x20(%ebp)
40d358:	ff 37                	push   (%edi)
40d35a:	50                   	push   %eax
40d35b:	e8 19 01 00 00       	call   0x40d479
40d360:	59                   	pop    %ecx
40d361:	59                   	pop    %ecx
40d362:	84 c0                	test   %al,%al
40d364:	74 37                	je     0x40d39d
40d366:	8b 57 08             	mov    0x8(%edi),%edx
40d369:	8b 4f 04             	mov    0x4(%edi),%ecx
40d36c:	8b 07                	mov    (%edi),%eax
40d36e:	8d 7d e0             	lea    -0x20(%ebp),%edi
40d371:	89 7d c4             	mov    %edi,-0x3c(%ebp)
40d374:	89 45 c8             	mov    %eax,-0x38(%ebp)
40d377:	89 4d cc             	mov    %ecx,-0x34(%ebp)
40d37a:	89 55 d0             	mov    %edx,-0x30(%ebp)
40d37d:	8b 45 e0             	mov    -0x20(%ebp),%eax
40d380:	89 45 dc             	mov    %eax,-0x24(%ebp)
40d383:	89 45 d8             	mov    %eax,-0x28(%ebp)
40d386:	8d 45 dc             	lea    -0x24(%ebp),%eax
40d389:	50                   	push   %eax
40d38a:	8d 45 c4             	lea    -0x3c(%ebp),%eax
40d38d:	50                   	push   %eax
40d38e:	8d 45 d8             	lea    -0x28(%ebp),%eax
40d391:	50                   	push   %eax
40d392:	8d 4d e7             	lea    -0x19(%ebp),%ecx
40d395:	e8 fa fe ff ff       	call   0x40d294
40d39a:	8b 7d 0c             	mov    0xc(%ebp),%edi
40d39d:	83 c6 04             	add    $0x4,%esi
40d3a0:	eb aa                	jmp    0x40d34c
40d3a2:	c7 45 fc fe ff ff ff 	movl   $0xfffffffe,-0x4(%ebp)
40d3a9:	e8 12 00 00 00       	call   0x40d3c0
40d3ae:	8b 4d f0             	mov    -0x10(%ebp),%ecx
40d3b1:	64 89 0d 00 00 00 00 	mov    %ecx,%fs:0x0
40d3b8:	59                   	pop    %ecx
40d3b9:	5f                   	pop    %edi
40d3ba:	5e                   	pop    %esi
40d3bb:	5b                   	pop    %ebx
40d3bc:	c9                   	leave
40d3bd:	c2 0c 00             	ret    $0xc
40d3c0:	8b 45 10             	mov    0x10(%ebp),%eax
40d3c3:	ff 30                	push   (%eax)
40d3c5:	e8 a1 fd ff ff       	call   0x40d16b
40d3ca:	59                   	pop    %ecx
40d3cb:	c3                   	ret
40d3cc:	6a 0c                	push   $0xc
40d3ce:	68 18 15 43 00       	push   $0x431518
40d3d3:	e8 e8 ab ff ff       	call   0x407fc0
40d3d8:	83 65 e4 00          	andl   $0x0,-0x1c(%ebp)
40d3dc:	8b 45 08             	mov    0x8(%ebp),%eax
40d3df:	ff 30                	push   (%eax)
40d3e1:	e8 a0 e3 ff ff       	call   0x40b786
40d3e6:	59                   	pop    %ecx
40d3e7:	83 65 fc 00          	andl   $0x0,-0x4(%ebp)
40d3eb:	8b 45 0c             	mov    0xc(%ebp),%eax
40d3ee:	8b 00                	mov    (%eax),%eax
40d3f0:	ff 30                	push   (%eax)
40d3f2:	e8 3f 01 00 00       	call   0x40d536
40d3f7:	59                   	pop    %ecx
40d3f8:	8b f0                	mov    %eax,%esi
40d3fa:	89 75 e4             	mov    %esi,-0x1c(%ebp)
40d3fd:	c7 45 fc fe ff ff ff 	movl   $0xfffffffe,-0x4(%ebp)
40d404:	e8 17 00 00 00       	call   0x40d420
40d409:	8b c6                	mov    %esi,%eax
40d40b:	8b 4d f0             	mov    -0x10(%ebp),%ecx
40d40e:	64 89 0d 00 00 00 00 	mov    %ecx,%fs:0x0
40d415:	59                   	pop    %ecx
40d416:	5f                   	pop    %edi
40d417:	5e                   	pop    %esi
40d418:	5b                   	pop    %ebx
40d419:	c9                   	leave
40d41a:	c2 0c 00             	ret    $0xc
40d41d:	8b 75 e4             	mov    -0x1c(%ebp),%esi
40d420:	8b 45 10             	mov    0x10(%ebp),%eax
40d423:	ff 30                	push   (%eax)
40d425:	e8 70 e3 ff ff       	call   0x40b79a
40d42a:	59                   	pop    %ecx
40d42b:	c3                   	ret
40d42c:	8b ff                	mov    %edi,%edi
40d42e:	55                   	push   %ebp
40d42f:	8b ec                	mov    %esp,%ebp
40d431:	83 ec 20             	sub    $0x20,%esp
40d434:	83 65 f8 00          	andl   $0x0,-0x8(%ebp)
40d438:	8d 45 f8             	lea    -0x8(%ebp),%eax
40d43b:	83 65 f4 00          	andl   $0x0,-0xc(%ebp)
40d43f:	8d 4d ff             	lea    -0x1(%ebp),%ecx
40d442:	89 45 e0             	mov    %eax,-0x20(%ebp)
40d445:	8d 45 08             	lea    0x8(%ebp),%eax
40d448:	89 45 e4             	mov    %eax,-0x1c(%ebp)
40d44b:	8d 45 f4             	lea    -0xc(%ebp),%eax
40d44e:	6a 08                	push   $0x8
40d450:	89 45 e8             	mov    %eax,-0x18(%ebp)
40d453:	58                   	pop    %eax
40d454:	89 45 f0             	mov    %eax,-0x10(%ebp)
40d457:	89 45 ec             	mov    %eax,-0x14(%ebp)
40d45a:	8d 45 f0             	lea    -0x10(%ebp),%eax
40d45d:	50                   	push   %eax
40d45e:	8d 45 e0             	lea    -0x20(%ebp),%eax
40d461:	50                   	push   %eax
40d462:	8d 45 ec             	lea    -0x14(%ebp),%eax
40d465:	50                   	push   %eax
40d466:	e8 b5 fe ff ff       	call   0x40d320
40d46b:	80 7d 08 00          	cmpb   $0x0,0x8(%ebp)
40d46f:	8b 45 f8             	mov    -0x8(%ebp),%eax
40d472:	75 03                	jne    0x40d477
40d474:	8b 45 f4             	mov    -0xc(%ebp),%eax
40d477:	c9                   	leave
40d478:	c3                   	ret
40d479:	8b ff                	mov    %edi,%edi
40d47b:	55                   	push   %ebp
40d47c:	8b ec                	mov    %esp,%ebp
40d47e:	8b 45 08             	mov    0x8(%ebp),%eax
40d481:	85 c0                	test   %eax,%eax
40d483:	74 1f                	je     0x40d4a4
40d485:	8b 48 0c             	mov    0xc(%eax),%ecx
40d488:	90                   	nop
40d489:	8b c1                	mov    %ecx,%eax
40d48b:	c1 e8 0d             	shr    $0xd,%eax
40d48e:	a8 01                	test   $0x1,%al
40d490:	74 12                	je     0x40d4a4
40d492:	51                   	push   %ecx
40d493:	e8 14 00 00 00       	call   0x40d4ac
40d498:	83 c4 04             	add    $0x4,%esp
40d49b:	84 c0                	test   %al,%al
40d49d:	75 09                	jne    0x40d4a8
40d49f:	8b 45 0c             	mov    0xc(%ebp),%eax
40d4a2:	ff 00                	incl   (%eax)
40d4a4:	32 c0                	xor    %al,%al
40d4a6:	5d                   	pop    %ebp
40d4a7:	c3                   	ret
40d4a8:	b0 01                	mov    $0x1,%al
40d4aa:	5d                   	pop    %ebp
40d4ab:	c3                   	ret
40d4ac:	8b ff                	mov    %edi,%edi
40d4ae:	55                   	push   %ebp
40d4af:	8b ec                	mov    %esp,%ebp
40d4b1:	8b 45 08             	mov    0x8(%ebp),%eax
40d4b4:	24 03                	and    $0x3,%al
40d4b6:	3c 02                	cmp    $0x2,%al
40d4b8:	75 06                	jne    0x40d4c0
40d4ba:	f6 45 08 c0          	testb  $0xc0,0x8(%ebp)
40d4be:	75 09                	jne    0x40d4c9
40d4c0:	f7 45 08 00 08 00 00 	testl  $0x800,0x8(%ebp)
40d4c7:	74 04                	je     0x40d4cd
40d4c9:	b0 01                	mov    $0x1,%al
40d4cb:	5d                   	pop    %ebp
40d4cc:	c3                   	ret
40d4cd:	32 c0                	xor    %al,%al
40d4cf:	5d                   	pop    %ebp
40d4d0:	c3                   	ret
40d4d1:	8b ff                	mov    %edi,%edi
40d4d3:	55                   	push   %ebp
40d4d4:	8b ec                	mov    %esp,%ebp
40d4d6:	8b 4d 08             	mov    0x8(%ebp),%ecx
40d4d9:	56                   	push   %esi
40d4da:	57                   	push   %edi
40d4db:	8d 71 0c             	lea    0xc(%ecx),%esi
40d4de:	8b 16                	mov    (%esi),%edx
40d4e0:	90                   	nop
40d4e1:	8b c2                	mov    %edx,%eax
40d4e3:	24 03                	and    $0x3,%al
40d4e5:	3c 02                	cmp    $0x2,%al
40d4e7:	75 47                	jne    0x40d530
40d4e9:	f6 c2 c0             	test   $0xc0,%dl
40d4ec:	74 42                	je     0x40d530
40d4ee:	8b 39                	mov    (%ecx),%edi
40d4f0:	8b 41 04             	mov    0x4(%ecx),%eax
40d4f3:	2b f8                	sub    %eax,%edi
40d4f5:	89 01                	mov    %eax,(%ecx)
40d4f7:	83 61 08 00          	andl   $0x0,0x8(%ecx)
40d4fb:	85 ff                	test   %edi,%edi
40d4fd:	7e 31                	jle    0x40d530
40d4ff:	57                   	push   %edi
40d500:	50                   	push   %eax
40d501:	51                   	push   %ecx
40d502:	e8 87 7a 00 00       	call   0x414f8e
40d507:	59                   	pop    %ecx
40d508:	50                   	push   %eax
40d509:	e8 6f 90 00 00       	call   0x41657d
40d50e:	83 c4 0c             	add    $0xc,%esp
40d511:	3b f8                	cmp    %eax,%edi
40d513:	74 0b                	je     0x40d520
40d515:	6a 10                	push   $0x10
40d517:	58                   	pop    %eax
40d518:	f0 09 06             	lock or %eax,(%esi)
40d51b:	83 c8 ff             	or     $0xffffffff,%eax
40d51e:	eb 12                	jmp    0x40d532
40d520:	8b 06                	mov    (%esi),%eax
40d522:	90                   	nop
40d523:	c1 e8 02             	shr    $0x2,%eax
40d526:	a8 01                	test   $0x1,%al
40d528:	74 06                	je     0x40d530
40d52a:	6a fd                	push   $0xfffffffd
40d52c:	58                   	pop    %eax
40d52d:	f0 21 06             	lock and %eax,(%esi)
40d530:	33 c0                	xor    %eax,%eax
40d532:	5f                   	pop    %edi
40d533:	5e                   	pop    %esi
40d534:	5d                   	pop    %ebp
40d535:	c3                   	ret
40d536:	8b ff                	mov    %edi,%edi
40d538:	55                   	push   %ebp
40d539:	8b ec                	mov    %esp,%ebp
40d53b:	56                   	push   %esi
40d53c:	8b 75 08             	mov    0x8(%ebp),%esi
40d53f:	85 f6                	test   %esi,%esi
40d541:	75 09                	jne    0x40d54c
40d543:	56                   	push   %esi
40d544:	e8 e3 fe ff ff       	call   0x40d42c
40d549:	59                   	pop    %ecx
40d54a:	eb 2f                	jmp    0x40d57b
40d54c:	56                   	push   %esi
40d54d:	e8 7f ff ff ff       	call   0x40d4d1
40d552:	59                   	pop    %ecx
40d553:	85 c0                	test   %eax,%eax
40d555:	75 21                	jne    0x40d578
40d557:	8b 46 0c             	mov    0xc(%esi),%eax
40d55a:	90                   	nop
40d55b:	c1 e8 0b             	shr    $0xb,%eax