41261f:	83 4d e4 ff          	orl    $0xffffffff,-0x1c(%ebp)
412623:	56                   	push   %esi
412624:	e8 be 40 ff ff       	call   0x4066e7
412629:	59                   	pop    %ecx
41262a:	83 65 fc 00          	andl   $0x0,-0x4(%ebp)
41262e:	56                   	push   %esi
41262f:	ff 75 08             	push   0x8(%ebp)
412632:	e8 cc fe ff ff       	call   0x412503
412637:	59                   	pop    %ecx
412638:	59                   	pop    %ecx
412639:	8b f8                	mov    %eax,%edi
41263b:	89 7d e4             	mov    %edi,-0x1c(%ebp)
41263e:	c7 45 fc fe ff ff ff 	movl   $0xfffffffe,-0x4(%ebp)
412645:	e8 18 00 00 00       	call   0x412662
41264a:	8b c7                	mov    %edi,%eax
41264c:	8b 4d f0             	mov    -0x10(%ebp),%ecx
41264f:	64 89 0d 00 00 00 00 	mov    %ecx,%fs:0x0
412656:	59                   	pop    %ecx
412657:	5f                   	pop    %edi
412658:	5e                   	pop    %esi
412659:	5b                   	pop    %ebx
41265a:	c9                   	leave
41265b:	c3                   	ret
41265c:	8b 75 0c             	mov    0xc(%ebp),%esi
41265f:	8b 7d e4             	mov    -0x1c(%ebp),%edi
412662:	56                   	push   %esi
412663:	e8 93 40 ff ff       	call   0x4066fb
412668:	59                   	pop    %ecx
412669:	c3                   	ret
41266a:	8b ff                	mov    %edi,%edi
41266c:	55                   	push   %ebp
41266d:	8b ec                	mov    %esp,%ebp
41266f:	8b 45 08             	mov    0x8(%ebp),%eax
412672:	56                   	push   %esi
412673:	85 c0                	test   %eax,%eax
412675:	75 18                	jne    0x41268f
412677:	e8 b3 80 ff ff       	call   0x40a72f
41267c:	c7 00 16 00 00 00    	movl   $0x16,(%eax)
412682:	e8 42 4e ff ff       	call   0x4074c9
412687:	83 c8 ff             	or     $0xffffffff,%eax
41268a:	e9 67 01 00 00       	jmp    0x4127f6
41268f:	8b 40 0c             	mov    0xc(%eax),%eax
412692:	53                   	push   %ebx
412693:	90                   	nop
412694:	33 db                	xor    %ebx,%ebx
412696:	c1 e8 0d             	shr    $0xd,%eax
412699:	43                   	inc    %ebx
41269a:	84 c3                	test   %al,%bl
41269c:	0f 84 50 01 00 00    	je     0x4127f2
4126a2:	8b 45 08             	mov    0x8(%ebp),%eax
4126a5:	8b 40 0c             	mov    0xc(%eax),%eax
4126a8:	90                   	nop
4126a9:	c1 e8 0c             	shr    $0xc,%eax
4126ac:	84 c3                	test   %al,%bl
4126ae:	0f 85 3e 01 00 00    	jne    0x4127f2
4126b4:	8b 45 08             	mov    0x8(%ebp),%eax
4126b7:	8b 40 0c             	mov    0xc(%eax),%eax
4126ba:	90                   	nop
4126bb:	d1 e8                	shr    $1,%eax
4126bd:	84 c3                	test   %al,%bl
4126bf:	8b 45 08             	mov    0x8(%ebp),%eax
4126c2:	74 0e                	je     0x4126d2
4126c4:	6a 10                	push   $0x10
4126c6:	59                   	pop    %ecx
4126c7:	83 c0 0c             	add    $0xc,%eax
4126ca:	f0 09 08             	lock or %ecx,(%eax)
4126cd:	e9 20 01 00 00       	jmp    0x4127f2
4126d2:	83 c0 0c             	add    $0xc,%eax
4126d5:	f0 09 18             	lock or %ebx,(%eax)
4126d8:	8b 45 08             	mov    0x8(%ebp),%eax
4126db:	8b 40 0c             	mov    0xc(%eax),%eax
4126de:	90                   	nop
4126df:	a9 c0 04 00 00       	test   $0x4c0,%eax
4126e4:	75 09                	jne    0x4126ef
4126e6:	ff 75 08             	push   0x8(%ebp)
4126e9:	e8 d8 f2 ff ff       	call   0x4119c6
4126ee:	59                   	pop    %ecx
4126ef:	8b 45 08             	mov    0x8(%ebp),%eax
4126f2:	57                   	push   %edi
4126f3:	8b 48 04             	mov    0x4(%eax),%ecx
4126f6:	89 08                	mov    %ecx,(%eax)
4126f8:	8b 45 08             	mov    0x8(%ebp),%eax
4126fb:	50                   	push   %eax
4126fc:	8b 70 18             	mov    0x18(%eax),%esi
4126ff:	8b 78 04             	mov    0x4(%eax),%edi
412702:	e8 bc 8a ff ff       	call   0x40b1c3
412707:	56                   	push   %esi
412708:	57                   	push   %edi
412709:	50                   	push   %eax
41270a:	e8 13 ee ff ff       	call   0x411522
41270f:	8b 4d 08             	mov    0x8(%ebp),%ecx
412712:	83 c4 10             	add    $0x10,%esp
412715:	89 41 08             	mov    %eax,0x8(%ecx)
412718:	8b 45 08             	mov    0x8(%ebp),%eax
41271b:	5f                   	pop    %edi
41271c:	8b 50 08             	mov    0x8(%eax),%edx
41271f:	85 d2                	test   %edx,%edx
412721:	0f 84 b0 00 00 00    	je     0x4127d7
412727:	83 fa ff             	cmp    $0xffffffff,%edx
41272a:	0f 84 a7 00 00 00    	je     0x4127d7
412730:	8b 40 0c             	mov    0xc(%eax),%eax
412733:	90                   	nop
412734:	a8 06                	test   $0x6,%al
412736:	75 5e                	jne    0x412796
412738:	ff 75 08             	push   0x8(%ebp)
41273b:	e8 83 8a ff ff       	call   0x40b1c3
412740:	59                   	pop    %ecx
412741:	83 f8 ff             	cmp    $0xffffffff,%eax
412744:	74 36                	je     0x41277c
412746:	ff 75 08             	push   0x8(%ebp)
412749:	e8 75 8a ff ff       	call   0x40b1c3
41274e:	59                   	pop    %ecx
41274f:	83 f8 fe             	cmp    $0xfffffffe,%eax
412752:	74 28                	je     0x41277c
412754:	ff 75 08             	push   0x8(%ebp)
412757:	e8 67 8a ff ff       	call   0x40b1c3
41275c:	ff 75 08             	push   0x8(%ebp)
41275f:	8b f0                	mov    %eax,%esi
412761:	c1 fe 06             	sar    $0x6,%esi
412764:	e8 5a 8a ff ff       	call   0x40b1c3
412769:	59                   	pop    %ecx
41276a:	83 e0 3f             	and    $0x3f,%eax
41276d:	59                   	pop    %ecx
41276e:	6b c8 38             	imul   $0x38,%eax,%ecx
412771:	8b 04 b5 a8 21 42 00 	mov    0x4221a8(,%esi,4),%eax
412778:	03 c1                	add    %ecx,%eax
41277a:	eb 05                	jmp    0x412781
41277c:	b8 e8 11 42 00       	mov    $0x4211e8,%eax
412781:	8a 40 28             	mov    0x28(%eax),%al
412784:	24 82                	and    $0x82,%al
412786:	3c 82                	cmp    $0x82,%al
412788:	75 0c                	jne    0x412796
41278a:	8b 45 08             	mov    0x8(%ebp),%eax
41278d:	6a 20                	push   $0x20
41278f:	59                   	pop    %ecx
412790:	83 c0 0c             	add    $0xc,%eax
412793:	f0 09 08             	lock or %ecx,(%eax)
412796:	8b 45 08             	mov    0x8(%ebp),%eax
412799:	81 78 18 00 02 00 00 	cmpl   $0x200,0x18(%eax)
4127a0:	75 26                	jne    0x4127c8
4127a2:	8b 40 0c             	mov    0xc(%eax),%eax
4127a5:	90                   	nop
4127a6:	c1 e8 06             	shr    $0x6,%eax
4127a9:	84 c3                	test   %al,%bl
4127ab:	74 18                	je     0x4127c5
4127ad:	8b 45 08             	mov    0x8(%ebp),%eax
4127b0:	8b 40 0c             	mov    0xc(%eax),%eax
4127b3:	90                   	nop
4127b4:	c1 e8 08             	shr    $0x8,%eax
4127b7:	84 c3                	test   %al,%bl
4127b9:	75 0a                	jne    0x4127c5
4127bb:	8b 45 08             	mov    0x8(%ebp),%eax
4127be:	c7 40 18 00 10 00 00 	movl   $0x1000,0x18(%eax)
4127c5:	8b 45 08             	mov    0x8(%ebp),%eax
4127c8:	8b 08                	mov    (%eax),%ecx
4127ca:	ff 48 08             	decl   0x8(%eax)
4127cd:	8a 11                	mov    (%ecx),%dl
4127cf:	41                   	inc    %ecx
4127d0:	89 08                	mov    %ecx,(%eax)
4127d2:	0f b6 c2             	movzbl %dl,%eax
4127d5:	eb 1e                	jmp    0x4127f5
4127d7:	33 c9                	xor    %ecx,%ecx
4127d9:	85 d2                	test   %edx,%edx
4127db:	0f 95 c1             	setne  %cl
4127de:	83 c0 0c             	add    $0xc,%eax
4127e1:	8d 0c cd 08 00 00 00 	lea    0x8(,%ecx,8),%ecx
4127e8:	f0 09 08             	lock or %ecx,(%eax)
4127eb:	8b 4d 08             	mov    0x8(%ebp),%ecx
4127ee:	83 61 08 00          	andl   $0x0,0x8(%ecx)
4127f2:	83 c8 ff             	or     $0xffffffff,%eax
4127f5:	5b                   	pop    %ebx
4127f6:	5e                   	pop    %esi
4127f7:	5d                   	pop    %ebp
4127f8:	c3                   	ret
4127f9:	8b ff                	mov    %edi,%edi
4127fb:	55                   	push   %ebp
4127fc:	8b ec                	mov    %esp,%ebp
4127fe:	51                   	push   %ecx
4127ff:	8b 45 08             	mov    0x8(%ebp),%eax
412802:	53                   	push   %ebx
412803:	56                   	push   %esi
412804:	85 c0                	test   %eax,%eax
412806:	75 15                	jne    0x41281d
412808:	e8 22 7f ff ff       	call   0x40a72f
41280d:	c7 00 16 00 00 00    	movl   $0x16,(%eax)
412813:	e8 b1 4c ff ff       	call   0x4074c9
412818:	e9 a2 01 00 00       	jmp    0x4129bf
41281d:	8b 40 0c             	mov    0xc(%eax),%eax
412820:	90                   	nop
412821:	33 c9                	xor    %ecx,%ecx
412823:	c1 e8 0d             	shr    $0xd,%eax
412826:	41                   	inc    %ecx
412827:	84 c1                	test   %al,%cl
412829:	0f 84 90 01 00 00    	je     0x4129bf
41282f:	8b 45 08             	mov    0x8(%ebp),%eax
412832:	8b 40 0c             	mov    0xc(%eax),%eax
412835:	90                   	nop
412836:	c1 e8 0c             	shr    $0xc,%eax
412839:	84 c1                	test   %al,%cl
41283b:	0f 85 7e 01 00 00    	jne    0x4129bf
412841:	8b 45 08             	mov    0x8(%ebp),%eax
412844:	8b 40 0c             	mov    0xc(%eax),%eax
412847:	90                   	nop
412848:	d1 e8                	shr    $1,%eax
41284a:	84 c1                	test   %al,%cl
41284c:	8b 45 08             	mov    0x8(%ebp),%eax
41284f:	74 0e                	je     0x41285f
412851:	6a 10                	push   $0x10
412853:	59                   	pop    %ecx
412854:	83 c0 0c             	add    $0xc,%eax
412857:	f0 09 08             	lock or %ecx,(%eax)
41285a:	e9 60 01 00 00       	jmp    0x4129bf
41285f:	83 c0 0c             	add    $0xc,%eax
412862:	f0 09 08             	lock or %ecx,(%eax)
412865:	8b 45 08             	mov    0x8(%ebp),%eax
412868:	8b 40 0c             	mov    0xc(%eax),%eax
41286b:	90                   	nop
41286c:	a9 c0 04 00 00       	test   $0x4c0,%eax
412871:	75 0c                	jne    0x41287f
412873:	ff 75 08             	push   0x8(%ebp)
412876:	e8 4b f1 ff ff       	call   0x4119c6
41287b:	59                   	pop    %ecx
41287c:	33 c9                	xor    %ecx,%ecx
41287e:	41                   	inc    %ecx
41287f:	8b 45 08             	mov    0x8(%ebp),%eax
412882:	8b 58 08             	mov    0x8(%eax),%ebx
412885:	3b d9                	cmp    %ecx,%ebx
412887:	75 09                	jne    0x412892
412889:	8b 08                	mov    (%eax),%ecx
41288b:	8a 09                	mov    (%ecx),%cl
41288d:	88 4d ff             	mov    %cl,-0x1(%ebp)
412890:	eb 04                	jmp    0x412896
412892:	c6 45 ff 00          	movb   $0x0,-0x1(%ebp)
412896:	8b 48 04             	mov    0x4(%eax),%ecx
412899:	89 08                	mov    %ecx,(%eax)
41289b:	8b 45 08             	mov    0x8(%ebp),%eax
41289e:	57                   	push   %edi
41289f:	50                   	push   %eax
4128a0:	8b 70 18             	mov    0x18(%eax),%esi
4128a3:	8b 78 04             	mov    0x4(%eax),%edi
4128a6:	e8 18 89 ff ff       	call   0x40b1c3
4128ab:	56                   	push   %esi
4128ac:	57                   	push   %edi
4128ad:	50                   	push   %eax
4128ae:	e8 6f ec ff ff       	call   0x411522
4128b3:	8b 4d 08             	mov    0x8(%ebp),%ecx
4128b6:	83 c4 10             	add    $0x10,%esp
4128b9:	89 41 08             	mov    %eax,0x8(%ecx)
4128bc:	8b 45 08             	mov    0x8(%ebp),%eax
4128bf:	5f                   	pop    %edi
4128c0:	8b 50 08             	mov    0x8(%eax),%edx
4128c3:	85 d2                	test   %edx,%edx
4128c5:	0f 84 d9 00 00 00    	je     0x4129a4
4128cb:	83 fa 01             	cmp    $0x1,%edx
4128ce:	0f 84 d0 00 00 00    	je     0x4129a4
4128d4:	83 fa ff             	cmp    $0xffffffff,%edx
4128d7:	0f 84 c7 00 00 00    	je     0x4129a4
4128dd:	8b 40 0c             	mov    0xc(%eax),%eax
4128e0:	90                   	nop
4128e1:	a8 06                	test   $0x6,%al
4128e3:	75 5e                	jne    0x412943
4128e5:	ff 75 08             	push   0x8(%ebp)
4128e8:	e8 d6 88 ff ff       	call   0x40b1c3
4128ed:	59                   	pop    %ecx
4128ee:	83 f8 ff             	cmp    $0xffffffff,%eax
4128f1:	74 36                	je     0x412929
4128f3:	ff 75 08             	push   0x8(%ebp)
4128f6:	e8 c8 88 ff ff       	call   0x40b1c3
4128fb:	59                   	pop    %ecx
4128fc:	83 f8 fe             	cmp    $0xfffffffe,%eax
4128ff:	74 28                	je     0x412929
412901:	ff 75 08             	push   0x8(%ebp)
412904:	e8 ba 88 ff ff       	call   0x40b1c3
412909:	ff 75 08             	push   0x8(%ebp)
41290c:	8b f0                	mov    %eax,%esi
41290e:	c1 fe 06             	sar    $0x6,%esi
412911:	e8 ad 88 ff ff       	call   0x40b1c3
412916:	59                   	pop    %ecx
412917:	83 e0 3f             	and    $0x3f,%eax
41291a:	59                   	pop    %ecx
41291b:	6b c8 38             	imul   $0x38,%eax,%ecx
41291e:	8b 04 b5 a8 21 42 00 	mov    0x4221a8(,%esi,4),%eax
412925:	03 c1                	add    %ecx,%eax
412927:	eb 05                	jmp    0x41292e
412929:	b8 e8 11 42 00       	mov    $0x4211e8,%eax
41292e:	8a 40 28             	mov    0x28(%eax),%al
412931:	24 82                	and    $0x82,%al
412933:	3c 82                	cmp    $0x82,%al
412935:	75 0c                	jne    0x412943
412937:	8b 45 08             	mov    0x8(%ebp),%eax
41293a:	6a 20                	push   $0x20
41293c:	59                   	pop    %ecx
41293d:	83 c0 0c             	add    $0xc,%eax
412940:	f0 09 08             	lock or %ecx,(%eax)
412943:	8b 55 08             	mov    0x8(%ebp),%edx
412946:	81 7a 18 00 02 00 00 	cmpl   $0x200,0x18(%edx)
41294d:	75 26                	jne    0x412975
41294f:	8b 42 0c             	mov    0xc(%edx),%eax
412952:	90                   	nop
412953:	c1 e8 06             	shr    $0x6,%eax
412956:	a8 01                	test   $0x1,%al
412958:	74 18                	je     0x412972
41295a:	8b 45 08             	mov    0x8(%ebp),%eax
41295d:	8b 40 0c             	mov    0xc(%eax),%eax
412960:	90                   	nop
412961:	c1 e8 08             	shr    $0x8,%eax
412964:	a8 01                	test   $0x1,%al
412966:	75 0a                	jne    0x412972
412968:	8b 45 08             	mov    0x8(%ebp),%eax
41296b:	c7 40 18 00 10 00 00 	movl   $0x1000,0x18(%eax)
412972:	8b 55 08             	mov    0x8(%ebp),%edx
412975:	8b 32                	mov    (%edx),%esi
412977:	83 fb 01             	cmp    $0x1,%ebx
41297a:	75 17                	jne    0x412993
41297c:	0f b6 0e             	movzbl (%esi),%ecx
41297f:	0f b6 45 ff          	movzbl -0x1(%ebp),%eax
412983:	66 c1 e1 08          	shl    $0x8,%cx
412987:	66 0b c8             	or     %ax,%cx
41298a:	ff 4a 08             	decl   0x8(%edx)
41298d:	0f b7 c1             	movzwl %cx,%eax
412990:	46                   	inc    %esi
412991:	eb 0a                	jmp    0x41299d
412993:	0f b7 06             	movzwl (%esi),%eax
412996:	83 42 08 fe          	addl   $0xfffffffe,0x8(%edx)
41299a:	83 c6 02             	add    $0x2,%esi
41299d:	89 32                	mov    %esi,(%edx)
41299f:	0f b7 c0             	movzwl %ax,%eax
4129a2:	eb 20                	jmp    0x4129c4
4129a4:	33 c9                	xor    %ecx,%ecx
4129a6:	85 d2                	test   %edx,%edx
4129a8:	0f 95 c1             	setne  %cl
4129ab:	83 c0 0c             	add    $0xc,%eax
4129ae:	8d 0c cd 08 00 00 00 	lea    0x8(,%ecx,8),%ecx
4129b5:	f0 09 08             	lock or %ecx,(%eax)
4129b8:	8b 45 08             	mov    0x8(%ebp),%eax
4129bb:	83 60 08 00          	andl   $0x0,0x8(%eax)
4129bf:	b8 ff ff 00 00       	mov    $0xffff,%eax
4129c4:	5e                   	pop    %esi
4129c5:	5b                   	pop    %ebx
4129c6:	c9                   	leave
4129c7:	c3                   	ret
4129c8:	8b ff                	mov    %edi,%edi
4129ca:	55                   	push   %ebp
4129cb:	8b ec                	mov    %esp,%ebp
4129cd:	5d                   	pop    %ebp
4129ce:	e9 97 fc ff ff       	jmp    0x41266a
4129d3:	8b ff                	mov    %edi,%edi
4129d5:	55                   	push   %ebp
4129d6:	8b ec                	mov    %esp,%ebp
4129d8:	5d                   	pop    %ebp