4018d2:	8b 5d 08             	mov    0x8(%ebp),%ebx
4018d5:	33 ff                	xor    %edi,%edi
4018d7:	8b c7                	mov    %edi,%eax
4018d9:	89 45 e8             	mov    %eax,-0x18(%ebp)
4018dc:	8b 4d 0c             	mov    0xc(%ebp),%ecx
4018df:	8d 51 02             	lea    0x2(%ecx),%edx
4018e2:	66 8b 01             	mov    (%ecx),%ax
4018e5:	83 c1 02             	add    $0x2,%ecx
4018e8:	66 3b c7             	cmp    %di,%ax
4018eb:	75 f5                	jne    0x4018e2
4018ed:	2b ca                	sub    %edx,%ecx
4018ef:	d1 f9                	sar    $1,%ecx
4018f1:	89 4d e4             	mov    %ecx,-0x1c(%ebp)
4018f4:	8b 03                	mov    (%ebx),%eax
4018f6:	8b 40 04             	mov    0x4(%eax),%eax
4018f9:	8b 74 18 20          	mov    0x20(%eax,%ebx,1),%esi
4018fd:	8b 44 18 24          	mov    0x24(%eax,%ebx,1),%eax
401901:	3b c7                	cmp    %edi,%eax
401903:	7c 16                	jl     0x40191b
401905:	7f 0e                	jg     0x401915
401907:	3b f7                	cmp    %edi,%esi
401909:	76 10                	jbe    0x40191b
40190b:	3b c7                	cmp    %edi,%eax
40190d:	7c 0c                	jl     0x40191b
40190f:	7f 04                	jg     0x401915
401911:	3b f1                	cmp    %ecx,%esi
401913:	76 06                	jbe    0x40191b
401915:	2b f1                	sub    %ecx,%esi
401917:	1b c7                	sbb    %edi,%eax
401919:	eb 0e                	jmp    0x401929
40191b:	0f 57 c0             	xorps  %xmm0,%xmm0
40191e:	66 0f 13 45 dc       	movlpd %xmm0,-0x24(%ebp)
401923:	8b 45 e0             	mov    -0x20(%ebp),%eax
401926:	8b 75 dc             	mov    -0x24(%ebp),%esi
401929:	89 45 ec             	mov    %eax,-0x14(%ebp)
40192c:	53                   	push   %ebx
40192d:	8d 4d d4             	lea    -0x2c(%ebp),%ecx
401930:	e8 b4 b7 00 00       	call   0x40d0e9
401935:	89 7d fc             	mov    %edi,-0x4(%ebp)
401938:	80 7d d8 00          	cmpb   $0x0,-0x28(%ebp)
40193c:	75 08                	jne    0x401946
40193e:	6a 04                	push   $0x4
401940:	5a                   	pop    %edx
401941:	e9 0e 01 00 00       	jmp    0x401a54
401946:	c6 45 fc 01          	movb   $0x1,-0x4(%ebp)
40194a:	8b 0b                	mov    (%ebx),%ecx
40194c:	8b 41 04             	mov    0x4(%ecx),%eax
40194f:	8b 44 18 14          	mov    0x14(%eax,%ebx,1),%eax
401953:	25 c0 01 00 00       	and    $0x1c0,%eax
401958:	83 f8 40             	cmp    $0x40,%eax
40195b:	74 44                	je     0x4019a1
40195d:	8b 45 ec             	mov    -0x14(%ebp),%eax
401960:	3b c7                	cmp    %edi,%eax
401962:	7c 3b                	jl     0x40199f
401964:	7f 04                	jg     0x40196a
401966:	3b f7                	cmp    %edi,%esi
401968:	76 35                	jbe    0x40199f
40196a:	8b 03                	mov    (%ebx),%eax
40196c:	8b 40 04             	mov    0x4(%eax),%eax
40196f:	8b 4c 18 38          	mov    0x38(%eax,%ebx,1),%ecx
401973:	0f b7 44 18 40       	movzwl 0x40(%eax,%ebx,1),%eax
401978:	50                   	push   %eax
401979:	e8 5b 13 02 00       	call   0x422cd9
40197e:	0f b7 c0             	movzwl %ax,%eax
401981:	b9 ff ff 00 00       	mov    $0xffff,%ecx
401986:	66 3b c8             	cmp    %ax,%cx
401989:	74 7a                	je     0x401a05
40198b:	83 c6 ff             	add    $0xffffffff,%esi
40198e:	89 75 dc             	mov    %esi,-0x24(%ebp)
401991:	8b 45 ec             	mov    -0x14(%ebp),%eax
401994:	83 d0 ff             	adc    $0xffffffff,%eax
401997:	89 45 ec             	mov    %eax,-0x14(%ebp)
40199a:	89 45 e0             	mov    %eax,-0x20(%ebp)
40199d:	eb c1                	jmp    0x401960
40199f:	8b 0b                	mov    (%ebx),%ecx
4019a1:	8b 41 04             	mov    0x4(%ecx),%eax
4019a4:	8b 4c 18 38          	mov    0x38(%eax,%ebx,1),%ecx
4019a8:	8b 01                	mov    (%ecx),%eax
4019aa:	8b 40 24             	mov    0x24(%eax),%eax
4019ad:	57                   	push   %edi
4019ae:	ff 75 e4             	push   -0x1c(%ebp)
4019b1:	ff 75 0c             	push   0xc(%ebp)
4019b4:	ff d0                	call   *%eax
4019b6:	3b 45 e4             	cmp    -0x1c(%ebp),%eax
4019b9:	75 4a                	jne    0x401a05
4019bb:	3b d7                	cmp    %edi,%edx
4019bd:	75 46                	jne    0x401a05
4019bf:	8b 45 ec             	mov    -0x14(%ebp),%eax
4019c2:	3b c7                	cmp    %edi,%eax
4019c4:	7c 3b                	jl     0x401a01
4019c6:	7f 04                	jg     0x4019cc
4019c8:	3b f7                	cmp    %edi,%esi
4019ca:	76 35                	jbe    0x401a01
4019cc:	8b 03                	mov    (%ebx),%eax
4019ce:	8b 40 04             	mov    0x4(%eax),%eax
4019d1:	8b 4c 18 38          	mov    0x38(%eax,%ebx,1),%ecx
4019d5:	0f b7 44 18 40       	movzwl 0x40(%eax,%ebx,1),%eax
4019da:	50                   	push   %eax
4019db:	e8 f9 12 02 00       	call   0x422cd9
4019e0:	0f b7 c0             	movzwl %ax,%eax
4019e3:	b9 ff ff 00 00       	mov    $0xffff,%ecx
4019e8:	66 3b c8             	cmp    %ax,%cx
4019eb:	74 18                	je     0x401a05
4019ed:	83 c6 ff             	add    $0xffffffff,%esi
4019f0:	89 75 dc             	mov    %esi,-0x24(%ebp)
4019f3:	8b 45 ec             	mov    -0x14(%ebp),%eax
4019f6:	83 d0 ff             	adc    $0xffffffff,%eax
4019f9:	89 45 ec             	mov    %eax,-0x14(%ebp)
4019fc:	89 45 e0             	mov    %eax,-0x20(%ebp)
4019ff:	eb c1                	jmp    0x4019c2
401a01:	8b d7                	mov    %edi,%edx
401a03:	eb 06                	jmp    0x401a0b
401a05:	6a 04                	push   $0x4
401a07:	5a                   	pop    %edx
401a08:	89 55 e8             	mov    %edx,-0x18(%ebp)
401a0b:	8b 03                	mov    (%ebx),%eax
401a0d:	8b 40 04             	mov    0x4(%eax),%eax
401a10:	89 7c 18 20          	mov    %edi,0x20(%eax,%ebx,1)
401a14:	89 7c 18 24          	mov    %edi,0x24(%eax,%ebx,1)
401a18:	89 7d fc             	mov    %edi,-0x4(%ebp)
401a1b:	eb 37                	jmp    0x401a54
401a1d:	8b 4d 08             	mov    0x8(%ebp),%ecx
401a20:	8b 01                	mov    (%ecx),%eax
401a22:	8b 70 04             	mov    0x4(%eax),%esi
401a25:	03 f1                	add    %ecx,%esi
401a27:	8b 56 0c             	mov    0xc(%esi),%edx
401a2a:	83 ca 04             	or     $0x4,%edx
401a2d:	6a 01                	push   $0x1
401a2f:	8b c2                	mov    %edx,%eax
401a31:	83 c8 04             	or     $0x4,%eax
401a34:	83 7e 38 00          	cmpl   $0x0,0x38(%esi)
401a38:	0f 44 d0             	cmove  %eax,%edx
401a3b:	52                   	push   %edx
401a3c:	8b ce                	mov    %esi,%ecx
401a3e:	e8 06 df 01 00       	call   0x41f949
401a43:	b8 49 1a 40 00       	mov    $0x401a49,%eax
401a48:	c3                   	ret
401a49:	33 ff                	xor    %edi,%edi
401a4b:	89 7d fc             	mov    %edi,-0x4(%ebp)
401a4e:	8b 5d 08             	mov    0x8(%ebp),%ebx
401a51:	8b 55 e8             	mov    -0x18(%ebp),%edx
401a54:	8b 03                	mov    (%ebx),%eax
401a56:	8b 48 04             	mov    0x4(%eax),%ecx
401a59:	03 cb                	add    %ebx,%ecx
401a5b:	8b 71 0c             	mov    0xc(%ecx),%esi
401a5e:	0b f2                	or     %edx,%esi
401a60:	57                   	push   %edi
401a61:	8b d6                	mov    %esi,%edx
401a63:	83 ca 04             	or     $0x4,%edx
401a66:	39 79 38             	cmp    %edi,0x38(%ecx)
401a69:	0f 44 f2             	cmove  %edx,%esi
401a6c:	56                   	push   %esi
401a6d:	e8 d7 de 01 00       	call   0x41f949
401a72:	83 4d fc ff          	orl    $0xffffffff,-0x4(%ebp)
401a76:	8d 4d d4             	lea    -0x2c(%ebp),%ecx
401a79:	e8 dc da 00 00       	call   0x40f55a
401a7e:	8b c3                	mov    %ebx,%eax
401a80:	e8 8e df 03 00       	call   0x43fa13
401a85:	c3                   	ret
401a86:	55                   	push   %ebp
401a87:	8b ec                	mov    %esp,%ebp
401a89:	8b 45 0c             	mov    0xc(%ebp),%eax
401a8c:	83 78 14 08          	cmpl   $0x8,0x14(%eax)
401a90:	8b 48 10             	mov    0x10(%eax),%ecx
401a93:	72 02                	jb     0x401a97
401a95:	8b 00                	mov    (%eax),%eax
401a97:	51                   	push   %ecx
401a98:	50                   	push   %eax
401a99:	ff 75 08             	push   0x8(%ebp)
401a9c:	e8 38 26 00 00       	call   0x4040d9
401aa1:	83 c4 0c             	add    $0xc,%esp
401aa4:	5d                   	pop    %ebp
401aa5:	c3                   	ret
401aa6:	55                   	push   %ebp
401aa7:	8b ec                	mov    %esp,%ebp
401aa9:	8b 45 08             	mov    0x8(%ebp),%eax
401aac:	56                   	push   %esi
401aad:	57                   	push   %edi
401aae:	8b 50 04             	mov    0x4(%eax),%edx
401ab1:	8b 30                	mov    (%eax),%esi
401ab3:	8b 45 0c             	mov    0xc(%ebp),%eax
401ab6:	8b 38                	mov    (%eax),%edi
401ab8:	8b 48 04             	mov    0x4(%eax),%ecx
401abb:	8b c2                	mov    %edx,%eax
401abd:	2b cf                	sub    %edi,%ecx
401abf:	2b c6                	sub    %esi,%eax
401ac1:	33 c8                	xor    %eax,%ecx
401ac3:	f7 c1 fc ff ff ff    	test   $0xfffffffc,%ecx
401ac9:	75 16                	jne    0x401ae1
401acb:	ff 75 08             	push   0x8(%ebp)
401ace:	57                   	push   %edi
401acf:	52                   	push   %edx
401ad0:	56                   	push   %esi
401ad1:	e8 92 1f 00 00       	call   0x403a68
401ad6:	83 c4 10             	add    $0x10,%esp
401ad9:	84 c0                	test   %al,%al
401adb:	74 04                	je     0x401ae1
401add:	b0 01                	mov    $0x1,%al
401adf:	eb 02                	jmp    0x401ae3
401ae1:	32 c0                	xor    %al,%al
401ae3:	5f                   	pop    %edi
401ae4:	5e                   	pop    %esi
401ae5:	5d                   	pop    %ebp
401ae6:	c3                   	ret
401ae7:	55                   	push   %ebp
401ae8:	8b ec                	mov    %esp,%ebp
401aea:	8b 45 0c             	mov    0xc(%ebp),%eax
401aed:	83 38 00             	cmpl   $0x0,(%eax)
401af0:	0f 95 c0             	setne  %al
401af3:	5d                   	pop    %ebp
401af4:	c3                   	ret
401af5:	55                   	push   %ebp
401af6:	8b ec                	mov    %esp,%ebp
401af8:	8b 45 0c             	mov    0xc(%ebp),%eax
401afb:	83 38 00             	cmpl   $0x0,(%eax)
401afe:	0f 95 c0             	setne  %al
401b01:	5d                   	pop    %ebp
401b02:	c3                   	ret
401b03:	55                   	push   %ebp
401b04:	8b ec                	mov    %esp,%ebp
401b06:	8b 45 0c             	mov    0xc(%ebp),%eax
401b09:	83 38 00             	cmpl   $0x0,(%eax)
401b0c:	0f 95 c0             	setne  %al
401b0f:	5d                   	pop    %ebp
401b10:	c3                   	ret
401b11:	55                   	push   %ebp
401b12:	8b ec                	mov    %esp,%ebp
401b14:	8b 45 0c             	mov    0xc(%ebp),%eax
401b17:	83 38 00             	cmpl   $0x0,(%eax)
401b1a:	0f 95 c0             	setne  %al
401b1d:	5d                   	pop    %ebp
401b1e:	c3                   	ret
401b1f:	55                   	push   %ebp
401b20:	8b ec                	mov    %esp,%ebp
401b22:	8b 45 0c             	mov    0xc(%ebp),%eax
401b25:	83 38 00             	cmpl   $0x0,(%eax)
401b28:	0f 95 c0             	setne  %al
401b2b:	5d                   	pop    %ebp
401b2c:	c3                   	ret
401b2d:	55                   	push   %ebp
401b2e:	8b ec                	mov    %esp,%ebp
401b30:	8b 45 0c             	mov    0xc(%ebp),%eax
401b33:	83 38 00             	cmpl   $0x0,(%eax)
401b36:	0f 95 c0             	setne  %al
401b39:	5d                   	pop    %ebp
401b3a:	c3                   	ret
401b3b:	55                   	push   %ebp
401b3c:	8b ec                	mov    %esp,%ebp
401b3e:	8b 45 0c             	mov    0xc(%ebp),%eax
401b41:	83 38 00             	cmpl   $0x0,(%eax)
401b44:	0f 95 c0             	setne  %al
401b47:	5d                   	pop    %ebp
401b48:	c3                   	ret
401b49:	55                   	push   %ebp
401b4a:	8b ec                	mov    %esp,%ebp
401b4c:	8b 45 0c             	mov    0xc(%ebp),%eax
401b4f:	83 38 00             	cmpl   $0x0,(%eax)
401b52:	0f 95 c0             	setne  %al
401b55:	5d                   	pop    %ebp
401b56:	c3                   	ret
401b57:	55                   	push   %ebp
401b58:	8b ec                	mov    %esp,%ebp
401b5a:	8b 45 0c             	mov    0xc(%ebp),%eax
401b5d:	83 38 00             	cmpl   $0x0,(%eax)
401b60:	0f 95 c0             	setne  %al
401b63:	5d                   	pop    %ebp
401b64:	c3                   	ret
401b65:	55                   	push   %ebp
401b66:	8b ec                	mov    %esp,%ebp
401b68:	8b 45 0c             	mov    0xc(%ebp),%eax
401b6b:	83 38 00             	cmpl   $0x0,(%eax)
401b6e:	0f 95 c0             	setne  %al
401b71:	5d                   	pop    %ebp
401b72:	c3                   	ret
401b73:	6a 04                	push   $0x4
401b75:	b8 16 9d 48 00       	mov    $0x489d16,%eax
401b7a:	e8 cb de 03 00       	call   0x43fa4a
401b7f:	33 c0                	xor    %eax,%eax
401b81:	89 45 fc             	mov    %eax,-0x4(%ebp)
401b84:	89 45 f0             	mov    %eax,-0x10(%ebp)
401b87:	8b 7d 08             	mov    0x8(%ebp),%edi
401b8a:	89 47 10             	mov    %eax,0x10(%edi)
401b8d:	c7 47 14 0f 00 00 00 	movl   $0xf,0x14(%edi)
401b94:	88 07                	mov    %al,(%edi)
401b96:	89 45 fc             	mov    %eax,-0x4(%ebp)
401b99:	8b 55 10             	mov    0x10(%ebp),%edx
401b9c:	c7 45 f0 01 00 00 00 	movl   $0x1,-0x10(%ebp)
401ba3:	8d 4a 01             	lea    0x1(%edx),%ecx
401ba6:	8a 02                	mov    (%edx),%al
401ba8:	42                   	inc    %edx
401ba9:	84 c0                	test   %al,%al
401bab:	75 f9                	jne    0x401ba6
401bad:	8b 75 0c             	mov    0xc(%ebp),%esi
401bb0:	2b d1                	sub    %ecx,%edx
401bb2:	8b 4e 10             	mov    0x10(%esi),%ecx
401bb5:	03 ca                	add    %edx,%ecx
401bb7:	51                   	push   %ecx
401bb8:	8b cf                	mov    %edi,%ecx
401bba:	e8 40 0c 02 00       	call   0x4227ff
401bbf:	56                   	push   %esi
401bc0:	8b cf                	mov    %edi,%ecx
401bc2:	e8 4d d9 01 00       	call   0x41f514
401bc7:	ff 75 10             	push   0x10(%ebp)
401bca:	8b cf                	mov    %edi,%ecx
401bcc:	e8 ba d9 01 00       	call   0x41f58b
401bd1:	8b c7                	mov    %edi,%eax
401bd3:	e8 3b de 03 00       	call   0x43fa13
401bd8:	c3                   	ret
401bd9:	6a 04                	push   $0x4
401bdb:	b8 4a 9d 48 00       	mov    $0x489d4a,%eax
401be0:	e8 65 de 03 00       	call   0x43fa4a
401be5:	ff 75 10             	push   0x10(%ebp)
401be8:	8b 4d 0c             	mov    0xc(%ebp),%ecx
401beb:	83 65 f0 00          	andl   $0x0,-0x10(%ebp)
401bef:	e8 11 da 01 00       	call   0x41f605
401bf4:	8b 4d 08             	mov    0x8(%ebp),%ecx
401bf7:	50                   	push   %eax
401bf8:	e8 12 97 00 00       	call   0x40b30f
401bfd:	83 65 fc 00          	andl   $0x0,-0x4(%ebp)
401c01:	c7 45 f0 01 00 00 00 	movl   $0x1,-0x10(%ebp)
401c08:	8b 45 08             	mov    0x8(%ebp),%eax
401c0b:	e8 03 de 03 00       	call   0x43fa13
401c10:	c3                   	ret
401c11:	6a 04                	push   $0x4
401c13:	b8 7e 9d 48 00       	mov    $0x489d7e,%eax
401c18:	e8 2d de 03 00       	call   0x43fa4a
401c1d:	ff 75 10             	push   0x10(%ebp)
401c20:	8b 4d 0c             	mov    0xc(%ebp),%ecx
401c23:	83 65 f0 00          	andl   $0x0,-0x10(%ebp)
401c27:	e8 50 da 01 00       	call   0x41f67c
401c2c:	8b 4d 08             	mov    0x8(%ebp),%ecx
401c2f:	50                   	push   %eax
401c30:	e8 da 96 00 00       	call   0x40b30f
401c35:	83 65 fc 00          	andl   $0x0,-0x4(%ebp)
401c39:	c7 45 f0 01 00 00 00 	movl   $0x1,-0x10(%ebp)
401c40:	8b 45 08             	mov    0x8(%ebp),%eax
401c43:	e8 cb dd 03 00       	call   0x43fa13
401c48:	c3                   	ret
401c49:	6a 04                	push   $0x4
401c4b:	b8 b2 9d 48 00       	mov    $0x489db2,%eax
401c50:	e8 f5 dd 03 00       	call   0x43fa4a
401c55:	33 f6                	xor    %esi,%esi
401c57:	89 75 fc             	mov    %esi,-0x4(%ebp)
401c5a:	33 c0                	xor    %eax,%eax
401c5c:	89 75 f0             	mov    %esi,-0x10(%ebp)
401c5f:	8b 7d 08             	mov    0x8(%ebp),%edi
401c62:	89 77 10             	mov    %esi,0x10(%edi)
401c65:	c7 47 14 07 00 00 00 	movl   $0x7,0x14(%edi)
401c6c:	66 89 07             	mov    %ax,(%edi)
401c6f:	89 75 fc             	mov    %esi,-0x4(%ebp)