int is_adx(const unsigned char *buf,size_t bufsize)

{

	int	offset;



	if (buf[0]!=0x80) return 0;

	offset = (read_long(buf)^0x80000000)+4;

	if (bufsize<offset || memcmp(buf+offset-6,"(c)CRI",6)) return 0;

	return offset;

}

int is_adx(const unsigned char *buf,size_t bufsize)

{

	int	offset;



	if (buf[0]!=0x80) return 0;

	offset = (read_long(buf)^0x80000000)+4;

	if (bufsize<offset || memcmp(buf+offset-6,"(c)CRI",6)) return 0;

	return offset;

}

	int	offset; 	if (buf[0]!=0x80) return 0; 	offset = (read_long(buf)^0x80000000)+4; 	if (bufsize<offset || memcmp(buf+offset-6,"(c)CRI",6)) return 0; 	return offset; 	return offset;
int FUNC_0(const unsigned char *VAR_0,size_t VAR_1)

{

	int	VAR_2;



	if (VAR_0[0]!=0x80) return 0;

	VAR_2 = (read_long(VAR_0)^0x80000000)+4;

	if (VAR_1<VAR_2 || memcmp(VAR_0+VAR_2-6,"(c)CRI",6)) return 0;

	return VAR_2;

}

int FUNC_0(const unsigned char *VAR_0,size_t VAR_1)
{ int	VAR_2; if (VAR_0[0]!=0x80) return 0; VAR_2 = (read_long(VAR_0)^0x80000000)+4; if (VAR_1<VAR_2 || memcmp(VAR_0+VAR_2-6,"(c)CRI",6)) return 0; return VAR_2; }